OSDN Git Service

902f7fc39ef184b03bc8c6bd9ed63fb88b70f40d
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
2
3         PR debug/41225
4         * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
5
6 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
7
8         PR target/41252
9         * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
10         pattern of the split.
11
12 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
13
14         * toplev.c (process_options): Move setter of flag_var_tracking
15         before other tests that depend on it.  Move down setter of
16         flag_rename_registers.  Don't enable var-tracking-assignments
17         by default if selective scheduling is enabled.  Warn if both
18         are enabled.
19
20 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
21
22         * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
23         comment.  Use switch statement to catch overlaps between rtx
24         and tree codes.  Accept FUNCTION_DECLs in addition to those in...
25         (IS_DECL_CODE): ... here. Remove.
26         (check_value_is_not_decl): Remove.
27         (dv_from_decl, dv_from_value): Check after conversion.
28
29 2009-09-04  Richard Guenther  <rguenther@suse.de>
30
31         PR middle-end/41257
32         * (cgraph_finalize_compilation_unit): Move finalizing aliases
33         after emitting tunks.  Move emitting thunks and ctors from ...
34         (cgraph_optimize): ... here.  Remove redundant
35         cgraph_analyze_functions.
36         * varasm.c (find_decl_and_mark_needed): Remove no longer
37         necessary check.
38         (finish_aliases_1): Adjust check for thunk aliases.
39
40 2009-09-04  Daniel Gutson  <dgutson@codesourcery.com>
41
42         * config/arm/arm.md (ctzsi2): Added braces
43         to avoid warning that broke booststrap.
44
45 2009-09-04  Martin Jambor  <mjambor@suse.cz>
46
47         PR tree-optimization/41112
48         * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
49         handle variable-bounded arrays.
50         (expr_with_var_bounded_array_refs_p): New function.
51         (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
52
53 2009-09-04  Wolfgang Gellerich  <gellerich@de.ibm.com>
54
55         * config/s390/2097.md: Removed two incorrect bypasses.
56         (z10_fsimpdf): Fixed latency.
57         (z10_fhex): New insn_reservation.
58         (z10_floaddf): Fixed latency.
59         (z10_floadsf): Fixed latency.
60         (z10_ftrunctf): Fixed latency.
61         (z10_ftruncdf): Fixed latency.
62         * config/s390/s390.c (z10_cost): Fixed values.
63         (s390_adjust_priority): Added z10 path.
64         * config/s390/s390.md (type): Added fhex.
65         (*mov<mode>_64dfp): Updated type attribute.
66         (*mov<mode>_64): Updated type attribute.
67         (*mov<mode>_31): Updated type attribute.
68         (*mov<mode>"): Likewise.
69         * config/s390/2084.md (x_fsimpdf): Updated condition.
70
71 2009-09-04  Andreas Krebbel  <krebbel1@de.ibm.com>
72
73         * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
74         RTXs in the predicate for operand 1.
75
76 2009-09-03  Daniel Gutson  <dgutson@codesourcery.com>
77
78         * config/arm/arm.md (UNSPEC_RBIT): New constant.
79         (rbitsi2): New insn.
80         (ctzsi2): New expand.
81         * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
82
83         testsuite/
84         * gcc.target/arm/ctz.c: New test case.
85
86 2009-09-03  Martin Jambor  <mjambor@suse.cz>
87
88         * tree-sra.c (duplicate_expr_for_different_base): Removed.
89         (create_artificial_child_access): Use build_ref_for_offset instead
90         of duplicate_expr_for_different_base.
91         (propagate_subacesses_accross_link): Likewise.
92         
93 2009-09-03  Richard Sandiford  <rdsandiford@googlemail.com>
94
95         * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
96         of INSN_P.
97         (mips16e_collect_argument_saves): Skip debug instructions.
98         (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
99         (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
100         (r10k_insert_cache_barriers): Likewise.
101         (mips_reorg_process_insns): Likewise.
102
103 2009-09-03  Vladimir Makarov  <vmakarov@redhat.com>
104
105         PR bootstrap/41241
106         * ira.c (update_equiv_reg): Remove check on class likely spill.
107
108 2009-09-03  Jakub Jelinek  <jakub@redhat.com>
109
110         PR debug/41236
111         * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
112         SIGN_EXTEND or ZERO_EXTEND.  Don't assume there is a REG inside of
113         it or SUBREG.
114
115         PR debug/41238
116         * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
117         the stack slot if it is passed by invisible reference.
118         * var-tracking.c (vt_add_function_parameters): Handle arguments passed
119         by invisible reference.
120
121 2009-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
122
123         * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
124         * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
125         * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
126         0.
127         * config/bfin/sync.md: New file.
128         * config/bfin/bfin.md: Include it.
129         (UNSPEC_ATOMIC): New.
130         (UNSPEC_ONES): Provide a unique number.
131
132         From Jie Zhang <jie.zhang@analog.com>:
133         * config/bfin/bfin.c (ret_regs): New.
134         (must_save_fp_p): Don't return true because of frame_pointer_needed.
135         (must_save_rets_p): New.
136         (n_regs_saved_by_prologue): Use must_save_rets_p instead of
137         current_function_is_leaf.
138         (do_link): Likewise.
139         (do_unlink): Likewise.
140         (expand_interrupt_handler_prologue): Use ret_regs array.
141         (expand_interrupt_handler_epilogue): Use ret_regs array and
142         pass return register to gen_return_internal.
143         (bfin_expand_epilogue): Pass return register to
144         gen_return_internal.
145         (bfin_expand_call): Explicitly clobber RETS.
146         * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
147         * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
148         call_insn_fdpic, call_value_insn_fdpic, call_symbol,
149         call_value_symbol, call_insn, call_value_insn): Explicitly clobber
150         RETS.
151         (return_internal): Take a reg rtx rather than the register number.
152
153 2009-09-03  H.J. Lu  <hongjiu.lu@intel.com>
154
155         * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
156         when comparing against estimated_loop_iterations_int return.
157
158 2009-09-03  Richard Guenther  <rguenther@suse.de>
159
160         * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
161         eh_personality_libfunc.
162
163 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
164
165         * tree-parloops.c (separate_decls_in_region): Add space.
166                 
167 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
168
169         * tree-parloops.c (separate_decls_in_region): Change the condition 
170         checking if there are reductions in the loop.
171
172 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
173
174         PR tree-optimization/38275
175         
176         * tree-parloops.c (parallelize_loops): Replace profitability condition 
177         for expected number of iterations.
178
179 2009-09-03  Alon Dayan  <alond@il.ibm.com>
180         
181         PR tree-optimization/38275
182         
183         * testsuite/gcc.dg/autopar/reduc-1char.c: Increase number 
184         of iterations. Adjust the logic accordingly.
185         * testsuite/gcc.dg/autopar/reduc-2char.c: Ditto.
186         * testsuite/gcc.dg/autopar/reduc-1.c: Ditto.
187         * testsuite/gcc.dg/autopar/reduc-2.c: Ditto.
188         * testsuite/gcc.dg/autopar/reduc-3.c: Ditto.
189         * testsuite/gcc.dg/autopar/reduc-6.c: Ditto.
190         * testsuite/gcc.dg/autopar/reduc-7.c: Ditto.
191         * testsuite/gcc.dg/autopar/reduc-8.c: Ditto.
192         * testsuite/gcc.dg/autopar/reduc-9.c: Ditto.
193         * testsuite/gcc.dg/autopar/pr39500-1.c: Ditto.
194         * testsuite/gcc.dg/autopar/reduc-1short.c: Ditto.
195         * testsuite/gcc.dg/autopar/reduc-2short.c: Ditto.
196         * testsuite/gcc.dg/autopar/parallelization-1.c: Ditto.
197
198
199 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
200
201         * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
202         (bootstrap-debug): Explain conditions in which it becomes default.
203         (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
204         make it add to it.
205
206 2009-09-03  Namhyung Kim  <namhyung@gmail.com>
207
208         * doc/invoke.texi (Optimize Options): Move
209         -finline-small-functions to the -O2 list.
210
211 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
212
213         * toplev.c (process_options): Enable var-tracking-assignments
214         by default if var-tracking is enabled.
215
216 2009-09-02  David Daney  <ddaney@caviumnetworks.com>
217
218         * cfgbuild.c (find_bb_boundaries): Split blocks containing a
219         barrier.
220         * emit-rtl.c (prev_nonnote_insn_bb): New function.
221         * rtl.h (prev_nonnote_insn_bb): Declare it.
222
223 2009-09-03  Diego Novillo  <dnovillo@google.com>
224
225         * cgraph.c (cgraph_node_for_decl): New.
226         * cgraph.h (cgraph_node_for_decl): Declare.
227         * tree.c (host_integerp): Return 0 if T is NULL.
228
229 2009-09-03  Diego Novillo  <dnovillo@google.com>
230
231         * tree.h (struct alias_pair): Move from varasm.c.
232         (alias_pairs): Likewise.
233         (TYPE_MAXVAL): Define.
234         (TYPE_MINVAL): Define.
235         (iterative_hash_host_wide_int): Declare.
236         (remove_unreachable_alias_pairs): Declare.
237         * tree-pass.h (pass_ipa_free_lang_data): Declare.
238         * diagnostic.c (default_diagnostic_starter): Make extern.
239         (default_diagnostic_finalizer): Make extern.
240         * diagnostic.h (default_diagnostic_starter): Declare.
241         (default_diagnostic_finalizer): Declare.
242         (default_tree_printer): Declare.
243         * toplev.c (default_tree_printer): Make extern.
244
245 2009-09-03  Richard Guenther  <rguenther@suse.de>
246             Diego Novillo  <dnovillo@google.com>
247
248         * cgraph.c (cgraph_add_new_function): Remove gimplification.
249         * cgraphunit.c (cgraph_expand_function): Do not emit
250         associated thunks from here.
251         (cgraph_emit_thunks): New.
252         (cgraph_optimize): Call it.
253         Return if any IPA pass finds an error.
254         * varasm.c (finish_aliases_1): Ignore errorneous aliases used
255         by thunks.
256
257 2009-09-03  Simon Baldwin  <simonb@google.com>
258             Rafael Espindola  <espindola@google.com>
259             Richard Guenther  <rguenther@suse.de>
260             Doug Kwan  <dougkwan@google.com>
261             Diego Novillo  <dnovillo@google.com>
262
263         * tree.c: Include tree-pass.h, langhooks-def.h,
264         diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
265         (free_lang_data_in_type): New.
266         (need_assembler_name_p): New.
267         (free_lang_data_in_block): New.
268         (free_lang_data_in_decl): New.
269         (struct free_lang_data_d): New.
270         (add_tree_to_fld_list): New.
271         (find_decls_types_r): New.
272         (get_eh_types_for_runtime): New.
273         (find_decls_types_in_eh_region): New.
274         (find_decls_types_in_node): New.
275         (find_decls_types_in_var): New.
276         (free_lang_data_in_cgraph): New.
277         (free_lang_data): New.
278         (gate_free_lang_data): New.
279         (pass_ipa_free_lang_data): New.
280
281 2009-09-03  Diego Novillo  <dnovillo@google.com>
282
283         * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
284         * langhooks.h (struct lang_hooks): Add field free_lang_data.
285         (lang_hooks): Remove const qualifier.
286         * ipa.c (cgraph_remove_unreachable_nodes): Call
287         remove_unreachable_alias_pairs.
288         * except.c (add_type_for_runtime): Check if TYPE has
289         already been converted.
290         (lookup_type_for_runtime): Likewise.
291         (check_handled): Handle converted types.
292         * varasm.c (remove_unreachable_alias_pairs): New.
293         * gimple.c: Include demangle.h.
294         (gimple_decl_printable_name): New.
295         (gimple_fold_obj_type_ref): New.
296         * gimple.h (gimple_decl_printable_name): Declare.
297         (gimple_fold_obj_type_ref): Declare.
298         * passes.c (init_optimization_passes): Add pass
299         pass_ipa_free_lang_data.
300         * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
301         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
302
303 2009-09-03  Diego Novillo  <dnovillo@google.com>
304
305         * c-lang.c (lang_hooks): Remove const qualifier.
306
307 2009-09-02  Loren James Rittle  <ljrittle@acm.org>
308
309         * doc/install.texi (*-*-freebsd*): Update target information.
310
311 2009-09-02  Anatoly Sokolov  <aesok@post.ru>
312
313         * hard-reg-set.h (call_fixed_regs): Remove.
314         * reginfo.c (call_fixed_regs): Remove.
315         (init_reg_sets_1): Remove initialization of call_fixed_regs.
316         (globalize_reg): Don't use call_fixed_regs.
317         * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
318         call_fixed_regs.
319
320 2009-09-01  Michael Matz  <matz@suse.de>
321
322         * expr.h (emit_storent_insn, expand_expr_real_1,
323         expand_expr_real_2): Declare.
324         * expr.c (emit_storent_insn, expand_expr_real_1,
325         expand_expr_real_2): Export.
326         (store_expr): Setting and evaluating dont_return_target is
327         useless.
328         (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
329         LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
330         * except.c (expand_resx_expr): Rename to ...
331         (expand_resx_stmt): ... this.  Rewrite to take gimple statement.
332         * except.h (expand_resx_stmt): Declare.
333         * stmt.c: Add include gimple.h
334         (expand_asm_expr): Rename to ...
335         (expand_asm_stmt): ... this. Rewrite to take gimple statement.
336         (expand_case): Rewrite to take gimple statement.
337         * tree.h (expand_asm_stmt): Declare.
338         (expand_case): Change prototype.
339         * Makefile.in (stmt.o): Depend on gimple.h.
340         * builtins.c (expand_builtin_synchronize): Build gimple asm
341         statement, not an ASM_EXPR.
342         * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
343         gimple_to_tree, release_stmt_tree): Remove.
344         (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
345         ggc_free, but hold comparison code and operands separately.
346         Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
347         (expand_call_stmt, expand_gimple_stmt_1,
348         expand_gimple_stmt): New helpers.
349         (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
350         release_stmt_tree.  Call expand_gimple_stmt instead.
351         (expand_gimple_basic_block): Ditto.
352
353         * calls.c (emit_call_1): Don't look at EH regions here, make
354         fntree parameter useless.
355         (expand_call): New local rettype for TREE_TYPE(exp), use it
356         throughout.  Remove local p, use addr instead.
357         Don't look at EH regions here.
358
359 2009-09-02  Vladimir Makarov  <vmakarov@redhat.com>
360
361         * doc/invoke.texi (-fsched-pressure): Document it.
362         (-fsched-reg-pressure-heuristic): Remove it.
363         
364         * reload.c (ira.h): Include.
365         (find_reloads): Add choosing reload on number of small spilled
366         classes.
367         
368         * haifa-sched.c (ira.h): Include.
369         (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
370         saved_reg_pressure, curr_reg_live, saved_reg_live,
371         region_ref_regs): New variables.
372         (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
373         initiate_reg_pressure_info, setup_ref_regs,
374         initiate_bb_reg_pressure_info, save_reg_pressure,
375         restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
376         functions.
377         (setup_insn_reg_pressure_info): New function.
378         (rank_for_schedule): Add pressure checking and insn issue time.
379         Remove comparison of insn reg weights.
380         (ready_sort): Set insn reg pressure info.
381         (update_register_pressure, setup_insn_max_reg_pressure,
382         update_reg_and_insn_max_reg_pressure,
383         sched_setup_bb_reg_pressure_info): New functions.
384         (schedule_insn): Add code for printing and updating reg pressure
385         info.
386         (find_set_reg_weight, find_insn_reg_weight): Remove.
387         (ok_for_early_queue_removal): Do nothing if pressure_only_p.
388         (debug_ready_list): Print reg pressure info.
389         (schedule_block): Ditto.  Check insn issue time.
390         (sched_init): Set up sched_pressure_p.  Allocate and set up some
391         reg pressure related info.
392         (sched_finish): Free some reg pressure related info.
393         (fix_tick_ready): Make insn always ready if pressure_p.
394         (init_h_i_d): Don't call find_insn_reg_weight.
395         (haifa_finish_h_i_d): Free insn reg pressure info.
396         
397         * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
398         ira_memory_move_cost, ira_class_hard_regs,
399         ira_class_hard_regs_num, ira_no_alloc_regs,
400         ira_available_class_regs, ira_reg_class_cover_size,
401         ira_reg_class_cover, ira_class_translate): Move to ira.h.
402
403         * ira-lives.c (single_reg_class): Check mode to find how many
404         registers are necessary for operand.
405         (ira_implicitly_set_insn_hard_regs): New.
406
407         * common.opt (fsched-pressure): New options.
408         (fsched-reg-pressure-heuristic): Remove.
409
410         * ira.c (setup_eliminable_regset): Rename to
411         ira_setup_eliminable_regset.  Make it external.
412         (expand_reg_info): Pass cover class to setup_reg_classes.
413         (ira): Call resize_reg_info instead of allocate_reg_info.
414
415         * sched-deps.c: Include ira.h.
416         (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
417         (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
418         reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
419         mark_insn_hard_regno_birth, mark_insn_reg_birth,
420         mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
421         mark_insn_reg_store, mark_insn_reg_clobber,
422         setup_insn_reg_pressure_info): New.
423         (sched_analyze_1): Update implicit_reg_pending_uses.
424         (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
425         Use them to create dependencies.  Set insn reg uses and pressure
426         info.  Process reg_pending_uses in one place.
427         (free_deps): Free implicit sets.
428         (remove_from_deps): Remove implicit sets if necessary.  Check
429         implicit sets when clearing reg_last_in_use.
430         (init_deps_global): Clear implicit_reg_pending_clobbers and
431         implicit_reg_pending_uses.
432         
433         * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
434         ira_memory_move_cost, ira_class_hard_regs,
435         ira_class_hard_regs_num, ira_no_alloc_regs,
436         ira_available_class_regs, ira_reg_class_cover_size,
437         ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
438         (ira_setup_eliminable_regset, ira_set_pseudo_classes,
439         ira_implicitly_set_insn_hard_regs): New prototypes.
440         
441         * ira-costs.c (pseudo_classes_defined_p, allocno_p,
442         cost_elements_num): New variables.
443         (allocno_costs, total_costs): Rename to costs and
444         total_allocno_costs.
445         (COSTS_OF_ALLOCNO): Rename to COSTS.
446         (allocno_pref): Rename to pref.
447         (allocno_pref_buffer): Rename to pref_buffer.
448         (common_classes): Rename to regno_cover_class.
449         (COST_INDEX): New.
450         (record_reg_classes): Set allocno attributes only if allocno_p.
451         (record_address_regs): Ditto.  Use COST_INDEX instead of
452         ALLOCNO_NUM.
453         (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
454         and COSTS_OF_ALLOCNO.
455         (print_costs): Rename to print_allocno_costs.
456         (print_pseudo_costs): New.
457         (process_bb_node_for_costs): Split into 2 functions with new
458         function process_bb_for_costs.  Pass BB to process_bb_for_costs.
459         (find_allocno_class_costs): Rename to find_costs_and_classes.  Add
460         new parameter dump_file.  Use cost_elements_num instead of
461         ira_allocnos_num.  Make one iteration if preferred classes were
462         already calculated for scheduler.  Make 2 versions of code
463         depending on allocno_p.
464         (setup_allocno_cover_class_and_costs): Check allocno_p.  Use
465         regno_cover_class and COSTS instead of common_classes and
466         COSTS_OF_ALLOCNO.
467         (init_costs, finish_costs): New.
468         (ira_costs): Set up allocno_p and cost_elements_num.  Call
469         init_costs and finish_costs.
470         (ira_set_pseudo_classes): New.
471
472         * rtl.h (allocate_reg_info): Remove.
473         (resize_reg_info): Change return type.
474         (reg_cover_class): New.
475         (setup_reg_classes): Add new parameter.
476         
477         * sched-int.h (struct deps_reg): New member implicit_sets.
478         (sched_pressure_p, sched_regno_cover_class): New external
479         definitions.
480         (INCREASE_BITS): New macro.
481         (struct reg_pressure_data, struct reg_use_data): New.
482         (struct _haifa_insn_data): Remove reg_weight.  Add members
483         reg_pressure, reg_use_list, reg_set_list, and
484         reg_pressure_excess_cost_change.
485         (struct deps): New member implicit_sets.
486         (pressure_p): New variable.
487         (COVER_CLASS_BITS, INCREASE_BITS): New macros.
488         (struct reg_pressure_data, struct reg_use_data): New.
489         (INSN_REG_WEIGHT): Remove.
490         (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
491         INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New
492         macros.
493         (sched_init_region_reg_pressure_info,
494         sched_setup_bb_reg_pressure_info): New prototypes.
495         
496         * reginfo.c (struct reg_pref): New member coverclass.
497         (reg_cover_class): New function.
498         (reginfo_init, pass_reginfo_init): Move after free_reg_info.
499         (reg_info_size): New variable.
500         (allocate_reg_info): Make static.  Setup reg_info_size.
501         (resize_reg_info): Use reg_info_size.  Return flag of resizing.
502         (setup_reg_classes): Add a new parameter.  Setup cover class too.
503
504         * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to the
505         dependencies.
506
507         * sched-rgn.c (deps_join): Set up implicit_sets.
508         (schedule_region): Set up region and basic blocks pressure
509         relative info.
510         
511         * passes.c (init_optimization_passes): Move
512         pass_subregs_of_mode_init before pass_sched.
513         
514 2009-09-02  Martin Jambor  <mjambor@suse.cz>
515
516         * tree-sra.c (struct access): New field grp_hint.
517         (dump_access): Dump grp_hint.
518         (sort_and_splice_var_accesses): Set grp_hint if a group is read
519         multiple times.
520         (analyze_access_subtree): Only scalarize accesses with grp_hint set or
521         those which have been specifically read and somehow written to.
522         (propagate_subacesses_accross_link): Set grp_hint of right child and
523         also possibly of the left child.
524
525 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
526
527         * tree-object-size.c (addr_object_size): Always use object_size_type
528         0 or 2 when determining the pointer pointed object size.
529
530 2009-09-02  Richard Guenther  <rguenther@suse.de>
531
532         Revert
533         2009-08-31  Richard Guenther  <rguenther@suse.de>
534
535         * builtins.c (fold_builtin_memory_op): Use the alias oracle
536         to query if the memory regions for memmove overlap.
537         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
538         asserts on pointers, instead deal with odd trees.
539         (ptr_derefs_may_alias_p): Likewise.
540         (refs_may_alias_p_1): Constructor bases also never alias.
541
542 2009-08-01  Christian Bruel  <christian.bruel@st.com>
543
544         Revert:
545         2009-07-31  Christian Bruel  <christian.bruel@st.com>
546         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
547         
548 2009-09-01  Alexandre Oliva  <aoliva@redhat.com>
549
550         * doc/invoke.texi (-fvar-tracking-assignments): New.
551         (-fvar-tracking-assignments-toggle): New.
552         (-fdump-final-insns=file): Mark filename as optional.
553         (--param min-nondebug-insn-uid): New.
554         (-gdwarf-@{version}): Mention version 4.
555         * opts.c (common_handle_option): Accept it.
556         * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
557         * regrename.c (regrename_optimize): Drop last.  Don't count debug
558         insns as uses.  Don't reject change because of debug insn.
559         (do_replace): Reject DEBUG_INSN as chain starter.  Take base_regno
560         from the chain starter, and check for inexact matches in
561         DEBUG_INSNS.
562         (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
563         (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
564         * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
565         * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
566         * doc/gimple.texi (is_gimple_debug): New.
567         (gimple_debug_bind_p): New.
568         (is_gimple_call, gimple_assign_cast_p): End sentence with period.
569         * doc/install.texi (bootstrap-debug): More details.
570         (bootstrap-debug-big, bootstrap-debug-lean): Document.
571         (bootstrap-debug-lib): More details.
572         (bootstrap-debug-ckovw): Update.
573         (bootstrap-time): New.
574         * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
575         (insert_phi_nodes_for): Insert debug stmts.
576         (rewrite_stmt): Take iterator.  Insert debug stmts.
577         (rewrite_enter_block): Adjust.
578         (maybe_replace_use_in_debug_stmt): New.
579         (rewrite_update_stmt): Use it.
580         (mark_use_interesting): Return early for debug stmts.
581         * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
582         stmts before replacing stmt.
583         (move_computations_stmt): Likewise.
584         * ira-conflicts.c (add_copies): Skip debug insns.
585         * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
586         (regstat_bb_compute_ri): Skip debug insns.
587         * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
588         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
589         check_loop_closed_ssa_stmt): Skip debug stmts.
590         * tree-tailcall.c (find_tail_calls): Likewise.
591         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
592         * tree.h (MAY_HAVE_DEBUG_STMTS): New.
593         (build_var_debug_value_stat): Declare.
594         (build_var_debug_value): Define.
595         (target_for_debug_bind): Declare.
596         * reload.c (find_equiv_reg): Skip debug insns.
597         * rtlanal.c (reg_used_between_p): Skip debug insns.
598         (side_effects_p): Likewise.
599         (canonicalize_condition): Likewise.
600         * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug 
601         insns never depend on debug insns.
602         (create_ddg_dep_no_link): Likewise.
603         (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
604         Don't add inter-loop dependencies for debug insns.
605         (build_intra_loop_deps): Likewise.
606         (create_ddg): Count debug insns.
607         * ddg.h (struct ddg::num_debug): New.
608         (num_backargs): Pair up with previous int field.
609         * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
610         -fcompare-debug-second.
611         * final.c (get_attr_length_1): Skip debug insns.
612         (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
613         * gcc.c (invoke_as): Call compare-debug-dump-opt.
614         (driver_self_specs): Map -fdump-final-insns to
615         -fdump-final-insns=..
616         (get_local_tick): New.
617         (compare_debug_dump_opt_spec_function): Test for . argument and
618         compute output name.  Compute temp output spec without flag name.
619         Compute -frandom-seed.
620         (OPT): Undef after use.
621         * cfgloopanal.c (num_loop_insns): Skip debug insns.
622         (average_num_loop_insns): Likewise.
623         * params.h (MIN_NONDEBUG_INSN_UID): New.
624         * gimple.def (GIMPLE_DEBUG): New.
625         * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
626         * auto-inc-dec.c (merge_in_block): Skip debug insns.
627         (merge_in_block): Fix whitespace.
628         * toplev.c (flag_var_tracking): Update comment.
629         (flag_var_tracking_assignments): New.
630         (flag_var_tracking_assignments_toggle): New.
631         (process_options): Don't open final insns dump file if we're not
632         going to write to it.  Compute defaults for var_tracking.
633         * df-scan.c (df_insn_rescan_debug_internal): New.
634         (df_uses_record): Handle debug insns.
635         * haifa-sched.c (ready): Initialize n_debug.
636         (contributes_to_priority): Skip debug insns.
637         (dep_list_size): New.
638         (priority): Use it.
639         (rank_for_schedule): Likewise.  Schedule debug insns as soon as 
640         they're ready.  Disregard previous debug insns to make decisions.
641         (queue_insn): Never queue debug insns.
642         (ready_add, ready_remove_first, ready_remove): Count debug insns.
643         (schedule_insn): Don't reject debug insns because of issue rate.
644         (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
645         (queue_to_ready): Skip and discount debug insns.
646         (choose_ready): Let debug insns through.
647         (schedule_block): Check boundary debug insns.  Discount debug
648         insns, schedule them early.  Adjust whitespace.
649         (set_priorities): Check for boundary debug insns.
650         (add_jump_dependencies): Use dep_list_size.
651         (prev_non_location_insn): New.
652         (check_cfg): Use it.
653         * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
654         stmts.
655         (remove_unused_ivs): Reset debug stmts.
656         * modulo-sched.c (const_iteration_count): Skip debug insns.
657         (res_MII): Discount debug insns.
658         (loop_single_full_bb_p): Skip debug insns.
659         (sms_schedule): Likewise.
660         (sms_schedule_by_order): Likewise.
661         (ps_has_conflicts): Likewise.
662         * caller-save.c (refmarker_fn): New.
663         (save_call_clobbered_regs): Replace regs with saved mem in
664         debug insns.
665         (mark_referenced_regs): Take pointer, mark and arg.  Adjust.
666         Call refmarker_fn mark for hardregnos.
667         (mark_reg_as_referenced): New.
668         (replace_reg_with_saved_mem): New.
669         * ipa-pure-const.c (check_stmt): Skip debug stmts.
670         * cse.c (cse_insn): Canonicalize debug insns.  Skip them when
671         searching back.
672         (cse_extended_basic_block): Skip debug insns.
673         (count_reg_usage): Likewise.
674         (is_dead_reg): New, split out of...
675         (set_live_p): ... here.
676         (insn_live_p): Use it for debug insns.
677         * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
678         (execute_optimize_stdarg): Likewise.
679         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
680         * tree-ssa-propagate.c (substitute_and_fold): Don't regard
681         changes in debug stmts as changes.
682         * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
683         (moveup_expr): Don't move across debug insns.  Don't move
684         debug insn if it would create a bookkeeping block.
685         (moveup_expr_cached): Don't use cache for debug insns that
686         are heads of blocks.
687         (compute_av_set_inside_bb): Skip debug insns.
688         (sel_rank_for_schedule): Schedule debug insns first.  Remove
689         dead code.
690         (block_valid_for_bookkeeping_p); Support lax searches.
691         (create_block_for_bookkeeping): Adjust block numbers when
692         encountering debug-only blocks.
693         (find_place_for_bookkeeping): Deal with debug-only blocks.
694         (generate_bookkeeping_insn): Accept no place to insert.
695         (remove_temp_moveop_nops): New argument full_tidying.
696         (prepare_place_to_insert): Deal with debug insns.
697         (advance_state_on_fence): Debug insns don't start cycles.
698         (update_boundaries): Take fence as argument.  Deal with
699         debug insns.
700         (schedule_expr_on_boundary): No full_tidying on debug insns.
701         (fill_insns): Deal with debug insns.
702         (track_scheduled_insns_and_blocks): Don't count debug insns.
703         (need_nop_to_preserve_insn_bb): New, split out of...
704         (remove_insn_from_stream): ... this.
705         (fur_orig_expr_not_found): Skip debug insns.
706         * rtl.def (VALUE): Move up.
707         (DEBUG_INSN): New.
708         * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug
709         stmts.
710         (nearest_common_dominator_of_uses): Take debug_stmts argument.
711         Set it if debug stmts are found.
712         (statement_sink_location): Skip debug stmts.  Propagate
713         moving defs into debug stmts.
714         * ifcvt.c (first_active_insn): Skip debug insns.
715         (last_active_insns): Likewise.
716         (cond_exec_process_insns): Likewise.
717         (noce_process_if_block): Likewise.
718         (check_cond_move_block): Likewise.
719         (cond_move_convert_if_block): Likewise.
720         (block_jumps_and_fallthru_p): Likewise.
721         (dead_or_predicable): Likewise.
722         * dwarf2out.c (debug_str_hash_forced): New.
723         (find_AT_string): Add comment.
724         (gen_label_for_indirect_string): New.
725         (get_debug_string_label): New.
726         (AT_string_form): Use it.
727         (mem_loc_descriptor): Handle non-TLS symbols.  Handle MINUS , DIV,
728         MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING.  Accept but
729         discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
730         several operations that cannot be represented with DWARF opcodes.
731         (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND.  Require
732         dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
733         (dwarf2out_var_location): Take during-call mark into account.
734         (output_indirect_string): Update comment.  Output if there are
735         label and references.
736         (prune_indirect_string): New.
737         (prune_unused_types): Call it if debug_str_hash_forced.
738         More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
739         (dw_long_long_const): Remove.
740         (struct dw_val_struct): Change val_long_long type to rtx.
741         (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
742         val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
743         (output_die): Likewise.  Use HOST_BITS_PER_WIDE_INT size of each
744         component instead of HOST_BITS_PER_LONG.
745         (output_loc_operands): Likewise.   For const8* assert
746         HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
747         (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
748         rather than HOST_BITS_PER_LONG is >= 64.
749         (add_AT_long_long): Remove val_hi and val_lo arguments, add
750         val_const_double.
751         (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
752         HOST_BITS_PER_LONG for dw_val_class_long_long.
753         (add_const_value_attribute): Adjust add_AT_long_long caller.  Don't
754         handle TLS SYMBOL_REFs.  If CONST wraps a constant, tail recurse.
755         (dwarf_stack_op_name): Handle DW_OP_implicit_value and
756         DW_OP_stack_value.
757         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
758         Handle DW_OP_implicit_value.
759         (extract_int): Move prototype earlier.
760         (mem_loc_descriptor): For SUBREG punt if inner
761         mode size is wider than DWARF2_ADDR_SIZE.  Handle SIGN_EXTEND
762         and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}.  Handle
763         EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
764         UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
765         (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
766         instead of Pmode size.
767         (loc_descriptor): Add MODE argument.  Handle CONST_INT, CONST_DOUBLE,
768         CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
769         attempt to handle other expressions.  Don't handle TLS SYMBOL_REFs.
770         (concat_loc_descriptor, concatn_loc_descriptor,
771         loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
772         (add_location_or_const_value_attribute): Likewise.  For single
773         location loc_lists attempt to use add_const_value_attribute
774         for constant decls.  Add DW_AT_const_value even if
775         NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
776         in its expression.
777         * cfgbuild.c (inside_basic_block_p): Handle debug insns.
778         (control_flow_insn_p): Likewise.
779         * tree-parloops.c (eliminate_local_variables_stmt): Handle debug
780         stmt.
781         (separate_decls_in_region_debug_bind): New.
782         (separate_decls_in_region): Process debug bind stmts afterwards.
783         * recog.c (verify_changes): Handle debug insns.
784         (extract_insn): Likewise.
785         (peephole2_optimize): Skip debug insns.
786         * dse.c (scan_insn): Skip debug insns.
787         * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
788         Pass it on.
789         (setup_id_for_insn): Handle debug insns.
790         (maybe_tidy_empty_bb): Adjust whitespace.
791         (tidy_control_flow): Skip debug insns.
792         (sel_remove_insn): Adjust for debug insns.
793         (sel_estimate_number_of_insns): Skip debug insns.
794         (create_insn_rtx_from_pattern): Handle debug insns.
795         (create_copy_of_insn_rtx): Likewise.
796         * sel-sched-.h (sel_bb_end): Declare.
797         (sel_bb_empty_or_nop_p): New.
798         (get_all_loop_exits): Use it.
799         (_eligible_successor_edge_p): Likewise.
800         (return_nop_to_pool): Adjust.
801         * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
802         * ira-lives.c (process_bb_node_lives): Skip debug insns.
803         * gimple-pretty-print.c (dump_gimple_debug): New.
804         (dump_gimple_stmt): Use it.
805         (dump_bb_header): Skip gimple debug stmts.
806         * regmove.c (optimize_reg_copy_1): Discount debug insns.
807         (fixup_match_2): Likewise.
808         (regmove_backward_pass): Likewise.  Simplify combined
809         replacement.  Handle debug insns.
810         * function.c (instantiate_virtual_regs): Handle debug insns.
811         * function.h (struct emit_status): Add x_cur_debug_insn_uid.
812         * print-rtl.h: Include cselib.h.
813         (print_rtx): Print VALUEs.  Split out and recurse for
814         VAR_LOCATIONs.
815         * df.h (df_inns_rescan_debug_internal): Declare.
816         * gcse.c (alloc_hash_table): Estimate n_insns.
817         (cprop_insn): Don't regard debug insns as changes.
818         (bypass_conditional_jumps): Skip debug insns.
819         (one_pre_gcse_pass): Adjust.
820         (one_code_hoisting_pass): Likewise.
821         (compute_ld_motion_mems): Skip debug insns.
822         (one_cprop_pass): Adjust.
823         * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
824         (if_convertible_stmt_p): Handle debug stmts.
825         * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
826         * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
827         * ira-build.c (create_bb_allocnos): Skip debug insns.
828         * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
829         (has_single_use): Likewise.
830         (single_imm_use): Likewise.
831         (num_imm_uses): Likewise.
832         * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
833         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
834         (create_outofssa_var_map): Likewise.
835         * lower-subreg.c (adjust_decomposed_uses): New.
836         (resolve_debug): New.
837         (decompose_multiword_subregs): Use it.
838         * tree-dfa.c (find_referenced_vars): Skip debug stmts.
839         * emit-rtl.c: Include params.h.
840         (cur_debug_insn_uid): Define.
841         (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
842         (copy_rtx_if_shared_1): Handle debug insns.
843         (reset_used_flags): Likewise.
844         (set_used_flags): LIkewise.
845         (get_max_insn_count): New.
846         (next_nondebug_insn): New.
847         (prev_nondebug_insn): New.
848         (make_debug_insn_raw): New.
849         (emit_insn_before_noloc): Handle debug insns.
850         (emit_jump_insn_before_noloc): Likewise.
851         (emit_call_insn_before_noloc): Likewise.
852         (emit_debug_insn_before_noloc): New.
853         (emit_insn_after_noloc): Handle debug insns.
854         (emit_jump_insn_after_noloc): Likewise.
855         (emit_call_insn_after_noloc): Likewise.
856         (emit_debug_insn_after_noloc): Likewise.
857         (emit_insn_after): Take loc from earlier non-debug insn.
858         (emit_jump_insn_after): Likewise.
859         (emit_call_insn_after): Likewise.
860         (emit_debug_insn_after_setloc): New.
861         (emit_debug_insn_after): New.
862         (emit_insn_before): Take loc from later non-debug insn.
863         (emit_jump_insn_before): Likewise.
864         (emit_call_insn_before): Likewise.
865         (emit_debug_insn_before_setloc): New.
866         (emit_debug_insn_before): New.
867         (emit_insn): Handle debug insns.
868         (emit_debug_insn): New.
869         (emit_jump_insn): Handle debug insns.
870         (emit_call_insn): Likewise.
871         (emit): Likewise.
872         (init_emit): Take min-nondebug-insn-uid into account.
873         Initialize cur_debug_insn_uid.
874         (emit_copy_of_insn_after): Handle debug insns.
875         * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
876         location of single rhs in place.
877         (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
878         (floor_sdiv_adjust): New.
879         (cell_sdiv_adjust): New.
880         (cell_udiv_adjust): New.
881         (round_sdiv_adjust): New.
882         (round_udiv_adjust): New.
883         (wrap_constant): Moved from cselib.
884         (unwrap_constant): New.
885         (expand_debug_expr): New.
886         (expand_debug_locations): New.
887         (expand_gimple_basic_block): Drop hiding redeclaration.  Expand
888         debug bind stmts.
889         (gimple_expand_cfg): Expand debug locations.
890         * cselib.c: Include tree-pass.h.
891         (struct expand_value_data): New.
892         (cselib_record_sets_hook): New.
893         (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
894         (cselib_clear_table): Move, and implemnet in terms of...
895         (cselib_reset_table_with_next_value): ... this.
896         (cselib_get_next_unknown_value): New.
897         (discard_useless_locs): Don't discard preserved values.
898         (cselib_preserve_value): New.
899         (cselib_preserved_value_p): New.
900         (cselib_preserve_definitely): New.
901         (cselib_clear_preserve): New.
902         (cselib_preserve_only_values): New.
903         (new_cselib_val): Take rtx argument.  Dump it in details.
904         (cselib_lookup_mem): Adjust.
905         (expand_loc): Take regs_active in struct.  Adjust.  Silence
906         dumps unless details are requested.
907         (cselib_expand_value_rtx_cb): New.
908         (cselib_expand_value_rtx): Rename and reimplment in terms of...
909         (cselib_expand_value_rtx_1): ... this.  Adjust.  Silence dumps
910         without details.  Copy more subregs.  Try to resolve values
911         using a callback.  Wrap constants.
912         (cselib_subst_to_values): Adjust.
913         (cselib_log_lookup): New.
914         (cselib_lookup): Call it.
915         (cselib_invalidate_regno): Don't count preserved values as
916         useless.
917         (cselib_invalidate_mem): Likewise.
918         (cselib_record_set): Likewise.
919         (struct set): Renamed to cselib_set, moved to cselib.h.
920         (cselib_record_sets): Adjust.  Call hook.
921         (cselib_process_insn): Reset table when it would be cleared.
922         (dump_cselib_val): New.
923         (dump_cselib_table): New.
924         * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
925         (remove_forwarder_block): Support moving debug stmts.
926         * cselib.h (cselib_record_sets_hook): Declare.
927         (cselib_expand_callback): New type.
928         (cselib_expand_value_rtx_cb): Declare.
929         (cselib_reset_table_with_next_value): Declare.
930         (cselib_get_next_unknown_value): Declare.
931         (cselib_preserve_value): Declare.
932         (cselib_preserved_value_p): Declare.
933         (cselib_preserve_only_values): Declare.
934         (dump_cselib_table): Declare.
935         * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
936         (try_crossjump_to_edge): Likewise.
937         (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
938         dominated blocks when debug stmts are present.
939         * simplify-rtx.c (delegitimize_mem_from_attrs): New.
940         * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
941         (set_var_live_on_entry): Likewise.
942         * loop-invariant.c (find_invariants_bb): Skip debug insns.
943         * cfglayout.c (curr_location, last_location): Make static.
944         (set_curr_insn_source_location): Don't avoid bouncing.
945         (get_curr_insn_source_location): New.
946         (get_curr_insn_block): New.
947         (duplicate_insn_chain): Handle debug insns.
948         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
949         into debug stmts.
950         * common.opt (fcompare-debug): Move to sort order.
951         (fdump-unnumbered-links): Likewise.
952         (fvar-tracking-assignments): New.
953         (fvar-tracking-assignments-toggle): New.
954         * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
955         because of debug stmts.
956         (mark_stmt_if_obviously_necessary): Mark debug stmts.
957         (eliminate_unnecessary_stmts): Walk dominated blocks before
958         dominators.
959         * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
960         * ira.c (memref_used_between_p): Skip debug insns.
961         (update_equiv_regs): Likewise.
962         * sched-deps.c (sd_lists_size): Accept empty list.
963         (sd_init_insn): Mark debug insns.
964         (sd_finish_insn): Unmark them.
965         (sd_add_dep): Reject non-debug deps on debug insns.
966         (fixup_sched_groups): Give debug insns group treatment.
967         Skip debug insns.
968         (sched_analyze_reg): Don't mark debug insns for sched before call.
969         (sched_analyze_2): Handle debug insns.
970         (sched_analyze_insn): Compute next non-debug insn.  Handle debug
971         insns.
972         (deps_analyze_insn): Handle debug insns.
973         (deps_start_bb): Skip debug insns.
974         (init_deps): Initialize last_debug_insn.
975         * tree-ssa.c (target_for_debug_bind): New.
976         (find_released_ssa_name): New.
977         (propagate_var_def_into_debug_stmts): New.
978         (propagate_defs_into_debug_stmts): New.
979         (verify_ssa): Skip debug bind stmts without values.
980         (warn_uninialized_vars): Skip debug stmts.
981         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
982         * rtl.c (rtx_equal_p_cb): Handle VALUEs.
983         (rtx_equal_p): Likewise.
984         * ira-costs.c (scan_one_insn): Skip debug insns.
985         (process_bb_node_for_hard_reg_moves): Likewise.
986         * rtl.h (DEBUG_INSN_P): New.
987         (NONDEBUG_INSN_P): New.
988         (MAY_HAVE_DEBUG_INSNS): New.
989         (INSN_P): Accept debug insns.
990         (RTX_FRAME_RELATED_P): Likewise.
991         (INSN_DELETED_P): Likewise
992         (PAT_VAR_LOCATION_DECL): New.
993         (PAT_VAR_LOCATION_LOC): New.
994         (PAT_VAR_OCATION_STATUS): New.
995         (NOTE_VAR_LOCATION_DECL): Reimplement.
996         (NOTE_VAR_LOCATION_LOC): Likewise.
997         (NOTE_VAR_LOCATION_STATUS): Likewise.
998         (INSN_VAR_LOCATION): New.
999         (INSN_VAR_LOCATION_DECL): New.
1000         (INSN_VAR_LOCATION_LOC): New.
1001         (INSN_VAR_LOCATION_STATUS): New.
1002         (gen_rtx_UNKNOWN_VAR_LOC): New.
1003         (VAR_LOC_UNKNOWN_P): New.
1004         (NOTE_DURING_CALL_P): New.
1005         (SCHED_GROUP_P): Accept debug insns.
1006         (emit_debug_insn_before): Declare.
1007         (emit_debug_insn_before_noloc): Declare.
1008         (emit_debug_insn_beore_setloc): Declare.
1009         (emit_debug_insn_after): Declare.
1010         (emit_debug_insn_after_noloc): Declare.
1011         (emit_debug_insn_after_setloc): Declare.
1012         (emit_debug_insn): Declare.
1013         (make_debug_insn_raw): Declare.
1014         (prev_nondebug_insn): Declare.
1015         (next_nondebug_insn): Declare.
1016         (delegitimize_mem_from_attrs): Declare.
1017         (get_max_insn_count): Declare.
1018         (wrap_constant): Declare.
1019         (unwrap_constant): Declare.
1020         (get_curr_insn_source_location): Declare.
1021         (get_curr_insn_block): Declare.
1022         * tree-inline.c (insert_debug_decl_map): New.
1023         (processing_debug_stmt): New.
1024         (remap_decl): Don't create new mappings in debug stmts.
1025         (remap_gimple_op_r): Don't add references in debug stmts.
1026         (copy_tree_body_r): Likewise.
1027         (remap_gimple_stmt): Handle debug bind stmts.
1028         (copy_bb): Skip debug stmts.
1029         (copy_edges_for_bb): Likewise.
1030         (copy_debug_stmt): New.
1031         (copy_debug_stmts): New.
1032         (copy_body): Copy debug stmts at the end.
1033         (insert_init_debug_bind): New.
1034         (insert_init_stmt): Take id.  Skip and emit debug stmts.
1035         (setup_one_parameter): Remap variable earlier, register debug
1036         mapping.
1037         (estimate_num_insns): Skip debug stmts.
1038         (expand_call_inline): Preserve debug_map.
1039         (optimize_inline_calls): Check for no debug_stmts left-overs.
1040         (unsave_expr_now): Preserve debug_map.
1041         (copy_gimple_seq_and_replace_locals): Likewise.
1042         (tree_function_versioning): Check for no debug_stmts left-overs.
1043         Init and destroy debug_map as needed.  Split edges unconditionally.
1044         (build_duplicate_type): Init and destroy debug_map as needed.
1045         * tree-inline.h: Include gimple.h instead of pointer-set.h.
1046         (struct copy_body_data): Add debug_stmts and debug_map.
1047         * sched-int.h (struct ready_list): Add n_debug.
1048         (struct deps): Add last_debug_insn.
1049         (DEBUG_INSN_SCHED_P): New.
1050         (BOUNDARY_DEBUG_INSN_P): New.
1051         (SCHEDULE_DEBUG_INSN_P): New.
1052         (sd_iterator_cond): Accept empty list.
1053         * combine.c (create_log_links): Skip debug insns.
1054         (combine_instructions): Likewise.
1055         (cleanup_auto_inc_dec): New.  From Jakub Jelinek: Make sure the
1056         return value is always unshared.
1057         (struct rtx_subst_pair): New.
1058         (auto_adjust_pair): New.
1059         (propagate_for_debug_subst): New.
1060         (propagate_for_debug): New.
1061         (try_combine): Skip debug insns.  Propagate removed defs into
1062         debug insns.
1063         (next_nonnote_nondebug_insn): New.
1064         (distribute_notes): Use it.  Skip debug insns.
1065         (distribute_links): Skip debug insns.
1066         * tree-outof-ssa.c (set_location_for_edge): Likewise.
1067         * resource.c (mark_target_live_regs): Likewise.
1068         * var-tracking.c: Include cselib.h and target.h.
1069         (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
1070         MO_VAL_SET.
1071         (micro_operation_type_name): New.
1072         (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
1073         (struct micro_operation_def): Update comments.
1074         (decl_or_value): New type.  Use instead of decls.
1075         (struct emit_note_data_def): Add vars.
1076         (struct attrs_def): Use decl_or_value.
1077         (struct variable_tracking_info_def): Add permp, flooded.
1078         (struct location_chain_def): Update comment.
1079         (struct variable_part_def): Use decl_or_value.
1080         (struct variable_def): Make var_part a variable length array.
1081         (valvar_pool): New.
1082         (scratch_regs): New.
1083         (cselib_hook_called): New.
1084         (dv_is_decl_p): New.
1085         (dv_is_value_p): New.
1086         (dv_as_decl): New.
1087         (dv_as_value): New.
1088         (dv_as_opaque): New.
1089         (dv_onepart_p): New.
1090         (dv_pool): New.
1091         (IS_DECL_CODE): New.
1092         (check_value_is_not_decl): New.
1093         (dv_from_decl): New.
1094         (dv_from_value): New.
1095         (dv_htab_hash): New.
1096         (variable_htab_hash): Use it.
1097         (variable_htab_eq): Support values.
1098         (variable_htab_free): Free from the right pool.
1099         (attrs_list_member, attrs_list_insert): Use decl_or_value.
1100         (attrs_list_union): Adjust.
1101         (attrs_list_mpdv_union): New.
1102         (tie_break_pointers): New.
1103         (canon_value_cmp): New.
1104         (unshare_variable): Return possibly-modified slot.
1105         (vars_copy_1): Adjust.
1106         (var_reg_decl_set): Adjust.  Split out of...
1107         (var_reg_set): ... this.
1108         (get_init_value): Adjust.
1109         (var_reg_delete_and_set): Adjust.
1110         (var_reg_delete): Adjust.
1111         (var_regno_delete): Adjust.
1112         (var_mem_decl_set): Split out of...
1113         (var_mem_set): ... this.
1114         (var_mem_delete_and_set): Adjust.
1115         (var_mem_delete): Adjust.
1116         (val_store): New.
1117         (val_reset): New.
1118         (val_resolve): New.
1119         (variable_union): Adjust.  Speed up merge of 1-part vars.
1120         (variable_canonicalize): Use unshared slot.
1121         (VALUED_RECURSED_INTO): New.
1122         (find_loc_in_1pdv): New.
1123         (struct dfset_merge): New.
1124         (insert_into_intersection): New.
1125         (intersect_loc_chains): New.
1126         (loc_cmp): New.
1127         (canonicalize_loc_order_check): New.
1128         (canonicalize_values_mark): New.
1129         (canonicalize_values_star): New.
1130         (variable_merge_over_cur): New.
1131         (variable_merge_over_src): New.
1132         (dataflow_set_merge): New.
1133         (dataflow_set_equiv_regs): New.
1134         (remove_duplicate_values): New.
1135         (struct dfset_post_merge): New.
1136         (variable_post_merge_new_vals): New.
1137         (variable_post_merge_perm_vals): New.
1138         (dataflow_post_merge_adjust): New.
1139         (find_mem_expr_in_1pdv): New.
1140         (dataflow_set_preserve_mem_locs): New.
1141         (dataflow_set_remove_mem_locs): New.
1142         (dataflow_set_clear_at_call): New.
1143         (onepart_variable_different_p): New.
1144         (variable_different_p): Use it.
1145         (dataflow_set_different_1): Adjust.  Make detailed dump
1146         more verbose.
1147         (track_expr_p): Add need_rtl parameter.  Don't generate rtl
1148         if not needed.
1149         (track_loc_p): Pass it true.
1150         (struct count_use_info): New.
1151         (find_use_val): New.
1152         (replace_expr_with_values): New.
1153         (log_op_type): New.
1154         (use_type): New, partially split out of...
1155         (count_uses): ... this.  Count new micro-ops.
1156         (count_uses_1): Adjust.
1157         (count_stores): Adjust.
1158         (count_with_sets): New.
1159         (VAL_NEEDS_RESOLUTION): New.
1160         (VAL_HOLDS_TRACK_EXPR): New.
1161         (VAL_EXPR_IS_COPIED): New.
1162         (VAL_EXPR_IS_CLOBBERED): New.
1163         (add_uses): Adjust.  Generate new micro-ops.
1164         (add_uses_1): Adjust.
1165         (add_stores): Generate new micro-ops.
1166         (add_with_sets): New.
1167         (find_src_status): Adjust.
1168         (find_src_set_src): Adjust.
1169         (compute_bb_dataflow): Use dataflow_set_clear_at_call.
1170         Handle new micro-ops.  Canonicalize value equivalances.
1171         (vt_find_locations): Compute total size of hash tables for
1172         dumping.  Perform merge for var-tracking-assignments.  Don't
1173         disregard single-block loops.
1174         (dump_attrs_list): Handle decl_or_value.
1175         (dump_variable): Take variable.  Deal with decl_or_value.
1176         (dump_variable_slot): New.
1177         (dump_vars): Use it.
1178         (dump_dataflow_sets): Adjust.
1179         (set_slot_part): New, extended to support one-part variables
1180         after splitting out of...
1181         (set_variable_part): ... this.
1182         (clobber_slot_part): New, split out of...
1183         (clobber_variable_part): ... this.
1184         (delete_slot_part): New, split out of...
1185         (delete_variable_part): .... this.
1186         (check_wrap_constant): New.
1187         (vt_expand_loc_callback): New.
1188         (vt_expand_loc): New.
1189         (emit_note_insn_var_location): Adjust.  Handle values.  Handle
1190         EMIT_NOTE_AFTER_CALL_INSN.
1191         (emit_notes_for_differences_1): Adjust.  Handle values.
1192         (emit_notes_for_differences_2): Likewise.
1193         (emit_notes_for_differences): Adjust.
1194         (emit_notes_in_bb): Take pointer to set.  Emit AFTER_CALL_INSN
1195         notes.  Adjust.  Handle new micro-ops.
1196         (vt_add_function_parameters): Adjust.  Create and bind values.
1197         (vt_initialize): Adjust.  Initialize scratch_regs and
1198         valvar_pool, flooded and perm..  Initialize and use cselib.  Log
1199         operations.  Move some code to count_with_sets and add_with_sets.
1200         (delete_debug_insns): New.
1201         (vt_debug_insns_local): New.
1202         (vt_finalize): Release permp, valvar_pool, scratch_regs.  Finish
1203         cselib.
1204         (var_tracking_main): If var-tracking-assignments is enabled
1205         but var-tracking isn't, delete debug insns and leave.  Likewise
1206         if we exceed limits or fail the stack adjustments tests, and
1207         after all var-tracking processing.
1208         More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
1209         (dataflow_set): Add traversed_vars.
1210         (value_chain, const_value_chain): New typedefs.
1211         (value_chain_pool, value_chains): New variables.
1212         (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
1213         add_value_chains, add_cselib_value_chains, remove_value_chain,
1214         remove_value_chains, remove_cselib_value_chains): New functions.
1215         (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
1216         shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
1217         static inlines.
1218         (shared_hash_find_slot_unshare, shared_hash_find_slot,
1219         shared_hash_find_slot_noinsert, shared_hash_find): Update.
1220         (dst_can_be_shared): New variable.
1221         (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
1222         Clear dst_can_be_shared.  If set->traversed_vars is non-NULL and
1223         different from set->vars, look up slot again instead of using the
1224         passed in slot.
1225         (dataflow_set_init): Initialize traversed_vars.
1226         (variable_union): Use shared_hash_*.  Use initially NO_INSERT
1227         lookup if set->vars is shared.  Don't keep slot cleared before
1228         calling unshare_variable.  Unshare set->vars if needed.  Adjust
1229         unshare_variable callers.  Clear dst_can_be_shared if needed.
1230         Even ->refcount == 1 vars must be unshared if set->vars is shared
1231         and var needs to be modified.
1232         (dataflow_set_union): Set traversed_vars during canonicalization.
1233         (VALUE_CHANGED, DECL_CHANGED): Define.
1234         (set_dv_changed, dv_changed_p): New static inlines.     
1235         (track_expr_p): Clear DECL_CHANGED.
1236         (dump_dataflow_sets): Set it.
1237         (variable_was_changed): Call set_dv_changed.
1238         (emit_note_insn_var_location): Likewise.
1239         (changed_variables_stack): New variable.
1240         (check_changed_vars_1, check_changed_vars_2): New functions.
1241         (emit_notes_for_changes): Do nothing if changed_variables is
1242         empty.  Traverse changed_variables with check_changed_vars_1,
1243         call check_changed_vars_2 on each changed_variables_stack entry.
1244         (emit_notes_in_bb): Add SET argument.  Just clear it at the
1245         beginning, use it instead of local &set, don't destroy it at the
1246         end.
1247         (vt_emit_notes): Call dataflow_set_clear early on all
1248         VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
1249         computed set, dataflow_set_clear also VTI(bb)->in when we are
1250         done with the basic block.  Initialize changed_variables_stack,
1251         free it afterwards.  If ENABLE_CHECKING verify that after noting
1252         differences to an empty set value_chains hash table is empty.
1253         (vt_initialize): Initialize value_chains and value_chain_pool.
1254         (vt_finalize): Delete value_chains htab, free value_chain_pool.
1255         (variable_tracking_main): Call dump_dataflow_sets before calling
1256         vt_emit_notes, not after it.
1257         * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
1258         (propagate_var_def_into_debug_stmts): Declare.
1259         * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
1260         (df_set_note): Reject debug insns.
1261         (df_whole_mw_reg_dead_p): Take added_notes_p argument.  Don't
1262         add notes to debug insns.
1263         (df_note_bb_compute): Adjust.  Likewise.
1264         (df_simulate_uses): Skip debug insns.
1265         (df_simulate_initialize_backwards): Likewise.
1266         * reg-stack.c (subst_stack_regs_in_debug_insn): New.
1267         (subst_stack_regs_pat): Reject debug insns.
1268         (convert_regs_1): Handle debug insns.
1269         * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
1270         (print-rtl.o): Depend on cselib.h.
1271         (cselib.o): Depend on TREE_PASS_H.
1272         (var-tracking.o): Depend on cselib.h and TARGET_H.
1273         * sched-rgn.c (rgn_estimate_number_of_insns): Discount
1274         debug insns.
1275         (init_ready_list): Skip boundary debug insns.
1276         (add_branch_dependences): Skip debug insns.
1277         (free_block_dependencies): Check for blocks with only debug
1278         insns.
1279         (compute_priorities): Likewise.
1280         * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
1281         (gimple_build_with_ops_stat): Take subcode as unsigned.  Adjust
1282         all callers.
1283         (gimple_build_debug_bind_stat): New.
1284         (empty_body_p): Skip debug stmts.
1285         (gimple_has_side_effects): Likewise.
1286         (gimple_rhs_has_side_effects): Likewise.
1287         * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
1288         (gimple_build_debug_bind_stat): Declare.
1289         (gimple_build_debug_bind): Define.
1290         (is_gimple_debug): New.
1291         (gimple_debug_bind_p): New.
1292         (gimple_debug_bind_get_var): New.
1293         (gimple_debug_bind_get_value): New.
1294         (gimple_debug_bind_get_value_ptr): New.
1295         (gimple_debug_bind_set_var): New.
1296         (gimple_debug_bind_set_value): New.
1297         (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
1298         (gimple_debug_bind_reset_value): New.
1299         (gimple_debug_bind_has_value_p): New.
1300         (gsi_next_nondebug): New.
1301         (gsi_prev_nondebug): New.
1302         (gsi_start_nondebug_bb): New.
1303         (gsi_last_nondebug_bb): New.
1304         * sched-vis.c (print_pattern): Handle VAR_LOCATION.
1305         (print_insn): Handle DEBUG_INSN.
1306         * tree-cfg.c (remove_bb): Walk stmts backwards.  Let loc
1307         of first insn prevail.
1308         (first_stmt): Skip debug stmts.
1309         (first_non_label_stmt): Likewise.
1310         (last_stmt): Likewise.
1311         (has_zero_uses_1): New.
1312         (single_imm_use_1): New.
1313         (verify_gimple_debug): New.
1314         (verify_types_in_gimple_stmt): Handle debug stmts.
1315         (verify_stmt): Likewise.
1316         (debug_loop_num): Skip debug stmts.
1317         (remove_edge_and_dominated_blocks): Remove dominators last.
1318         * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into
1319         debug stmts.
1320         (linearize_expr): Likewise.
1321         * config/i386/i386.c (ix86_delegitimize_address): Call
1322         default implementation.
1323         * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug
1324         insns.
1325         (group_barrier_needed): Skip debug insns.
1326         (emit_insn_group_barriers): Likewise.
1327         (emit_all_insn_group_barriers): Likewise.
1328         (ia64_variable_issue): Handle debug insns.
1329         (ia64_dfa_new_cycle): Likewise.
1330         (final_emit_insn_group_barriers): Skip debug insns.
1331         (ia64_dwarf2out_def_steady_cfa): Take frame argument.  Don't
1332         def cfa without frame.
1333         (process_set): Likewise.
1334         (process_for_unwind_directive): Pass frame on.
1335         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
1336         (rs6000_delegitimize_address): New.
1337         (rs6000_debug_adjust_cost): Handle debug insns.
1338         (is_microcoded_insn): Likewise.
1339         (is_cracked_insn): Likewise.
1340         (is_nonpipeline_insn): Likewise.
1341         (insn_must_be_first_in_group): Likewise.
1342         (insn_must_be_last_in_group): Likewise.
1343         (force_new_group): Likewise.
1344         * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
1345         contains only debug insns.
1346         (rtl_merge_blocks): Skip debug insns.
1347         (purge_dead_edges): Likewise.
1348         (rtl_block_ends_with_call_p): Skip debug insns.
1349         * dce.c (deletable_insn_p): Handle VAR_LOCATION.
1350         (mark_reg_dependencies): Skip debug insns.
1351         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
1352         * tree-ssanames.c (release_ssa_name): Propagate def into
1353         debug stmts.
1354         * tree-ssa-threadedge.c
1355         (record_temporary_equivalences_from_stmts): Skip debug stmts.
1356         * regcprop.c (replace_oldest_value_addr): Skip debug insns.
1357         (replace_oldest_value_mem): Use ALL_REGS for debug insns.
1358         (copyprop_hardreg_forward_1): Handle debug insns.
1359         * reload1.c (reload): Skip debug insns.  Replace unassigned
1360         pseudos in debug insns with their equivalences.
1361         (eliminate_regs_in_insn): Skip debug insns.
1362         (emit_input_reload_insns): Skip debug insns at first, adjust
1363         them later.
1364         * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
1365         (get_indirect_ref_operands): Pass opf_no_vops on.
1366         (get_expr_operands): Likewise.  Skip debug stmts.
1367         (parse_ssa_operands): Scan debug insns with opf_no_vops.
1368
1369 2009-09-01  Richard Henderson  <rth@redhat.com>
1370
1371         * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate 
1372         stmt_ends_pp_p statements at least once.
1373         * tree-vrp.c (vrp_initialize): Likewise.
1374         (vrp_visit_stmt): Be prepared for non-interesting stmts.
1375
1376 2009-09-01  Dodji Seketeli  <dodji@redhat.com>
1377
1378         PR bootstrap/41205
1379         Fix AIX bootstrap after PR debug/30161
1380         * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
1381         that is a GNU extension.
1382         (tmpl_value_parm_die_table): Move the definition of this global
1383         outside #ifdef DWARF2_DEBUGGING_INFO region.
1384
1385 2009-09-01  Richard Guenther  <rguenther@suse.de>
1386
1387         * tree.c (tree_expr_size): New function.
1388         * tree.h (tree_expr_size): Declare.
1389         * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
1390         * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
1391         * langhooks.c (lhd_expr_size): Remove.
1392         * langhooks.h (struct lang_hooks): Remove expr_size.
1393         * explow.c (expr_size): Use tree_expr_size.
1394         (int_expr_size): Likewise.
1395         * langhooks-def.h (lhd_expr_size): Remove.
1396         (LANG_HOOKS_EXPR_SIZE): Likewise.
1397         (LANG_HOOKS_INITIALIZER): Adjust.
1398
1399 2009-09-01  Richard Guenther  <rguenther@suse.de>
1400
1401         * tree-flow.h (mark_addressable): Move declaration ...
1402         * tree.h (mark_addressable): ... here.
1403         * stmt.c (expand_asm_operands): Use mark_addressable, not
1404         lang_hooks.mark_addressable.
1405         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
1406         LANG_HOOKS_MARK_ADDRESSABLE.
1407         * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
1408         * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
1409
1410 2009-08-31  Chris Demetriou  <cgd@google.com>
1411
1412         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
1413         vectorize if not TARGET_SSE2.
1414
1415 2009-08-31  DJ Delorie  <dj@redhat.com>
1416
1417         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
1418         registers if no coprocessor is enabled.
1419
1420 2009-08-31  Dodji Seketeli  <dodji@redhat.com>
1421
1422         PR debug/30161
1423         * cgraph.h (cgraph_get_node): Declare ...
1424         * cgraph.c (cgraph_get_node): ... new function.
1425         * dwarf2out.c (gen_generic_params_dies,
1426         generic_parameter_die, tree_add_const_value_attribute_for_decl,
1427         make_ith_pack_parameter_name,
1428         append_entry_to_tmpl_value_parm_die_table,
1429         gen_remaining_tmpl_value_param_die_attribute): New functions.
1430         (gen_subprogram_die): Generate debug info for template parameters
1431         if debug info level is higher than DINFO_LEVEL_TERSE.
1432         Use tree_add_const_value_attribute_for_decl instead of
1433         tree_add_const_value_attribute.
1434         (gen_const_die): Use tree_add_const_value_attribute_for_decl
1435         instead of tree_add_const_value_attribute.
1436         (gen_struct_or_union_type_die): Generate debug
1437         info for template parameters if debug info level is higher than
1438         DINFO_LEVEL_TERSE.
1439         (tree_add_const_value_attribute): Handle integral and pointer
1440         constants. Update comment.
1441         (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
1442         (dwarf_attr_name): Support DW_AT_GNU_template_name.
1443         (reference_to_unused): Fix thinko. Remove redundant predicates from
1444         tests.
1445         (tree_add_const_value_attribute): Make this work for constant
1446         expressions only.
1447         tree_add_const_value_attribute_for_decl is to be used for variable
1448         DECLs now.
1449         (add_location_or_const_value_attribute): Use
1450         tree_add_const_value_attribute_for_decl now.
1451         (dwarf2out_finish): Emit the DW_AT_const_value attribute of
1452         DW_TAG_template_value_param DIEs after function DIEs have been
1453         emitted.
1454         * langhooks.h (lang_hooks_for_types): Add
1455         get_argument_pack_elems.
1456         (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
1457         (lang_hooks): Added get_innermost_generic_parms,
1458         get_innermost_generic_args.
1459         * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
1460         LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
1461         LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
1462         LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
1463
1464 2009-08-31  DJ Delorie  <dj@redhat.com>
1465
1466         * config/mep/mep.c (machine_function): Add frame_locked flag.  Set
1467         it once we start generating the prologue or epilogue.
1468         (mep_call_saves_register): If the frame is locked, re-use
1469         cached values.
1470         (mep_assign_save_slots): New, broken out from mep_expand_prologue.
1471         (mep_expand_prologue): Call it.
1472         (mep_expand_epilogue): Likewise.
1473         (mep_start_function): Use the same logic as mep_expand_prologue.
1474         (mep_pass_by_reference): Make logic more readable.
1475         (mep_return_in_memory): Zero-sized objects are passed in memory.
1476         (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
1477
1478
1479 2009-08-31  Richard Guenther  <rguenther@suse.de>
1480
1481         * builtins.c (fold_builtin_memory_op): Use the alias oracle
1482         to query if the memory regions for memmove overlap.
1483         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
1484         asserts on pointers, instead deal with odd trees.
1485         (ptr_derefs_may_alias_p): Likewise.
1486         (refs_may_alias_p_1): Constructor bases also never alias.
1487
1488 2009-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
1489
1490         * doc/install.texi (Final install): Adjust reference on where to
1491         order printed manuals.
1492
1493 2009-08-30  Olivier Hainque  <hainque@adacore.com>
1494
1495         * dwarf2out.c (switch_to_frame_table_section): Move
1496         definition prior to first use.
1497
1498 2009-08-30  Richard Guenther  <rguenther@suse.de>
1499
1500         PR tree-optimization/41186
1501         * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
1502         (ao_ref_init_from_ptr_and_size): New function.
1503         (ref_maybe_used_by_call_p_1): Be more precise tracking
1504         used ranges for builtin functions.
1505         (ref_maybe_used_by_call_p): Adjust.
1506         (call_may_clobber_ref_p_1): Be more precise tracking clobbered
1507         ranges for builtin functions.
1508         * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
1509
1510 2009-08-30  Alan Modra  <amodra@bigpond.net.au>
1511
1512         PR target/41081
1513         * fwprop.c (get_reg_use_in): Delete.
1514         (free_load_extend): New function.
1515         (forward_propagate_subreg): Use it.
1516
1517 2009-08-29  Kaz Kojima  <kkojima@gcc.gnu.org>
1518
1519         * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
1520
1521 2009-08-29  Kai Tietz<kai.tietz@onevision.com>
1522
1523         PR/41184
1524         * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
1525         padding.
1526
1527 2009-08-29  Douglas B Rupp  <rupp@gnat.com>
1528
1529         * crtstuff.c (__do_global_dtors_aux): Use atexit if no
1530         fini or fini_array section.
1531
1532 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
1533
1534         * graphite-dependences.c (graphite_legal_transform_bb): Call
1535         pbb_remove_duplicate_pdrs.
1536         * graphite-poly.c (can_collapse_pdr): Removed.
1537         (pdr_find_duplicate): Removed.
1538         (can_collapse_pdrs): New.
1539         (pbb_remove_duplicate_pdrs): New.
1540         (new_poly_dr): Do not look for duplicates.
1541         * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
1542         (PBB_PDR_DUPLICATES_REMOVED): New.
1543         (pbb_remove_duplicate_pdrs): Declared.
1544
1545 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
1546
1547         * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
1548         the strides by multiplying by PDR_NB_REFS.
1549         * graphite-poly.c (can_collapse_pdr): New.
1550         (pdr_find_duplicate): New.
1551         (new_poly_dr): Call pdr_find_duplicate.  Collapse duplicate PDRs.
1552         Initialize PDR_NB_REFS.
1553         * graphite-poly.h (struct poly_dr): Add field nb_refs.
1554         (PDR_NB_REFS): New.
1555         (new_poly_dr): Number of subscripts is a graphite_dim_t.
1556
1557 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
1558
1559         PR middle-end/40965
1560         * graphite-poly.c (apply_poly_transforms): Remove legality test before
1561         any transform.
1562
1563 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
1564
1565         * graphite-dependences.c (pddr_original_scattering): Return NULL
1566         for read-read dependence relations.
1567         * graphite-poly.h (enum poly_dr_type): Fix comment.
1568         (pdr_read_p): New.
1569         (pdr_write_p): New.
1570         (pdr_may_write_p): New.
1571
1572 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
1573
1574         * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
1575         (struct poly_dr): Same.
1576         (new_poly_dr): Same.
1577         * graphite-poly.c (new_poly_dr): Same.
1578         * graphite-dependences.c (dot_deps): Disable call to system.
1579
1580 2009-08-28  Cary Coutant  <ccoutant@google.com>
1581
1582         PR debug/41063
1583         * dwarf2out.c (gen_type_die_with_usage): Use proper context for
1584         struct/union/enum types local to a function.
1585
1586 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
1587             Sebastian Pop  <sebastian.pop@amd.com>
1588
1589         * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
1590         pbb_strip_mine_time_depth.  Changed the implementation so that
1591         transformation is expressed as a transformation on
1592         time (scatttering) dimensions.  Also, ensures that the 2d+1
1593         scheduling format is preserved.
1594         (pbb_strip_mine_profitable_p): Profitability is based on the
1595         iteration number of a given time (scattering) dimension,
1596         and not on a original loop depth dimension.
1597         (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
1598         (pbb_do_strip_mine): Call psct_dynamic_dim.
1599         * graphite-poly.c (pbb_number_of_iterations_at_time): New.
1600         * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
1601         (pbb_nb_dynamic_scattering_transform): New.
1602         (psct_dynamic_dim): New.
1603
1604 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
1605
1606         * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
1607         * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
1608         * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
1609         * graphite-interchange.c (build_linearized_memory_access): Same.
1610         (memory_stride_in_loop): Same.
1611
1612 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
1613
1614         * graphite-dependences.c (pddr_original_scattering): New.
1615         (graphite_legal_transform_dr): Call pddr_original_scattering.
1616         (dot_deps_1): New.
1617         (dot_deps): New.
1618         * graphite-dependences.h (dot_deps): Declared.
1619         * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
1620         (print_pdr): Print PDR_ID.
1621         * graphite-poly.h (struct poly_dr): Add field id.
1622         (PDR_ID): New.
1623         (pbb_index): New.
1624         * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
1625
1626 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
1627
1628         * graphite-dependences.c (graphite_carried_dependence_level_k): Do
1629         not delete the original dependence relation.
1630
1631 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
1632
1633         * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
1634         (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
1635         (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
1636         (free_poly_ddr): New.
1637         (pddr_is_empty): New.
1638         (dependence_polyhedron_1): Now returns a poly_ddr_p.
1639         (dependence_polyhedron): Same.  Remove useless gcc_assert.
1640         Remove fprintfs.
1641         (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
1642         (graphite_carried_dependence_level_k): Call pddr_is_empty.
1643         * graphite-dependences.h (enum poly_dependence_kind): New.
1644         (poly_dr_pair): Renamed poly_ddr.  Added a field kind.
1645         (PDRP_SOURCE): Renamed PDDR_SOURCE.
1646         (PDRP_SINK): Renamed PDDR_SINK.
1647         (PDRP_DDP): Renamed PDDR_DDP.
1648         (PDDR_KIND): New.
1649         (free_poly_ddr): Declared.
1650         * graphite-poly.c (new_scop): Use the new hash function names.
1651         * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
1652         into original_pddrs.
1653         (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
1654
1655 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
1656
1657         * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
1658         bounds with LT_EXPR to make niter analysis more precise on code
1659         generated by Graphite.
1660
1661 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
1662
1663         * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
1664         (graphite_legal_transform_bb): Same.
1665         (poly_drs_may_alias_p): Same.
1666
1667 2009-08-28  Richard Guenther  <rguenther@suse.de>
1668
1669         * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
1670
1671 2009-08-28  Jan Beulich  <jbeulich@novell.com>
1672
1673         * config/i386/netware.c: Include langhooks.h.
1674         (i386_nlm_encode_section_info): Simplify.
1675         (netware_override_options): Delete.
1676         * config/i386/netware.h (netware_override_options): Delete
1677         declaration.
1678         (OVERRIDE_OPTIONS): Delete definition.
1679         (SUBTARGET_OVERRIDE_OPTIONS): Define.
1680         (ASM_COMMENT_START): Define.
1681         * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
1682
1683 2009-08-28  Jan Beulich  <jbeulich@novell.com>
1684
1685         * configure.ac: For in-tree ld, do a plain version check to
1686         determine whether comdat groups are supported.
1687         * configure: Regenerate.
1688
1689 2009-08-28  Olivier Hainque  <hainque@adacore.com>
1690
1691         * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
1692         always defined.  Reflect definition or absence of such for
1693         COLLECT_EXPORT_LIST.  Readability helper.
1694         (scanfilter): New enum, to help control what symbols
1695         are to be considered or ignored by scan_prog_file.
1696         (enum pass): Rename as "scanpass", moved together with scanfilter
1697         prior to scan_prog_file's prototype.
1698         (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
1699         Group prototype with the scanpass/scanfilter definitions, factorize
1700         head comments for the several implementations at the prototype.
1701         (main): Reorganize the first pass link control to let AIX
1702         drag only the needed frame tables in executables.  Prevent
1703         frame tables collection during the scan aimed at static ctors.
1704         Pre-link and scan for frame tables later to compensate.
1705         * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
1706         A C statement to issue assembly directives that create a reference
1707         to the given DWARF table identifier label from the current function
1708         section.
1709         * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
1710         to differentiate first time section entry.  Only emit a .data
1711         tables start identifier label the first time around.
1712         (switch_to_frame_table_section): New function.  Helper for
1713         output_call_frame_info to switch possibly BACK into the eh_frame
1714         or the debug_frame section depending on FOR_EH.
1715         (output_call_frame_info): Use helper to first enter the proper
1716         frame section.
1717         (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
1718         emit a link to the frame table start label from each function
1719         section.
1720         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
1721         New function.  Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
1722         * config/rs6000/rs6000-protos.h: Declare it.
1723         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
1724
1725 2009-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
1726
1727         * config/sh/sh.c (split_branches): Check the result of
1728         next_active_insn.
1729
1730 2009-08-27  Steve Ellcey  <sje@cup.hp.com>
1731
1732         * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
1733         using -pthread -fopenmp
1734
1735 2009-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
1736
1737         * doc/service.texi (service directory): Update URL.
1738
1739 2009-08-27  Uros Bizjak  <ubizjak@gmail.com>
1740
1741         PR rtl-optimization/40861
1742         * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
1743         extract word from a multi-word subreg for negative byte positions.
1744
1745 2009-08-27  Tristan Gingold  <gingold@adacore.com>
1746             Douglas B Rupp  <rupp@gnat.com>
1747
1748         * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
1749         (SECTION_VMS_OVERLAY): Define.
1750         (ia64_vms_common_object_attribute): Added.  Handle the "common_object"
1751         attribute.
1752         (ia64_vms_elf_asm_named_section): Added.  Generate .section pseudo-op
1753         for common_object.
1754         (ia64_vms_output_aligned_decl_common): Added.  Generate pseudo-op for
1755         common_object declarations.
1756         (ia64_section_type_flags): Set section flag for common_object.
1757         * config/ia64/ia64-protos.h
1758         (ia64_vms_output_aligned_decl_common): Declare.
1759         (ia64_vms_elf_asm_named_section): Declare.
1760
1761 2009-08-27  Michael Matz  <matz@suse.de>
1762
1763         * expr.c (expand_expr_real_2): New function taking exploded
1764         unary or binary expression, split out from ...
1765         (expand_expr_real_1): ... here.  Move over all unary/binary
1766         switch parts to above function, in particular these codes:
1767         PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
1768         MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
1769         ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
1770         FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
1771         FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
1772         BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
1773         BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
1774         LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
1775         NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
1776         UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
1777         WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
1778         VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
1779         VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
1780         VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
1781         VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
1782         VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
1783         VEC_PACK_FIX_TRUNC_EXPR.
1784         (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
1785         full expression.
1786
1787 2009-08-27  Richard Guenther  <rguenther@suse.de>
1788
1789         * gengtype.c (main): Handle uint64_t.
1790         * ipa-utils.c (get_base_var): Indent properly.
1791         * tree-ssa-live.c (debug_scope_block): New function.
1792         * tree-flow.h (debug_scope_block): Declare.
1793         * tree-ssa-copy.c (replace_exp_1): Add vertical space.
1794         * basic-block.h (enum profile_status): Rename to
1795         enum profile_status_d.
1796         (x_profile_status): Adjust type.
1797
1798 2009-08-27  Dodji Seketeli  <dodji@redhat.com>
1799
1800         PR debug/41170
1801         * dwarf2out.c (get_context_die): Declare this static function.
1802         (gen_type_die_with_usage): Make sure a DIE is a generated for
1803         the context of a typedef.
1804
1805 2009-08-26  Anatoly Sokolov  <aesok@post.ru>
1806
1807         * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
1808         switch.
1809
1810 2009-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
1811
1812         * config/mips/mips-protos.h (mips_output_sync): Declare.
1813         (mips_sync_loop_insns): Likewise.
1814         (mips_output_sync_loop): Replace first two parameters with an rtx.
1815         * config/mips/mips.c (mips_multi_member): New structure.
1816         (mips_multi_members): New variable.
1817         (mips_multi_start): New function.
1818         (mips_multi_add): Likewise.
1819         (mips_multi_add_insn): Likewise.
1820         (mips_multi_add_label): Likewise.
1821         (mips_multi_last_index): Likewise.
1822         (mips_multi_copy_insn): Likewise.
1823         (mips_multi_set_operand): Likewise.
1824         (mips_multi_write): Likewise.
1825         (mips_print_operand_punctuation): Remove '%|' and '%-'.
1826         (mips_init_print_operand_punct): Update accordingly.
1827         (mips_start_ll_sc_sync_block): New function.
1828         (mips_end_ll_sc_sync_block): Likewise.
1829         (mips_output_sync): Likewise.
1830         (mips_sync_insn1_template): Likewise.
1831         (mips_sync_insn2_template): Likewise.
1832         (mips_get_sync_operand): Likewise.
1833         (mips_process_sync_loop): Likewise.
1834         (mips_output_sync_loop): Use mips_process_sync_loop.
1835         (mips_sync_loop_insns): New function.
1836         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
1837         (MIPS_COMPARE_AND_SWAP_12): Likewise.
1838         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
1839         (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
1840         (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
1841         (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
1842         (MIPS_SYNC_OLD_OP_12): Likewise.
1843         (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
1844         (MIPS_SYNC_NEW_OP_12): Likewise.
1845         (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
1846         (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
1847         (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
1848         (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
1849         (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
1850         (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
1851         * config/mips/mips.md (sync_mem): New attribute.
1852         (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
1853         (sync_exclusive_mask, sync_required_oldval): Likewise.
1854         (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
1855         (sync_release_barrier): Likewise.
1856         (length): Handle sync loops.
1857         (sync): Use mips_output_sync.
1858         * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
1859         (sync_compare_and_swap<mode>): Set the new sync_* attributes
1860         and use mips_output_sync_loop.
1861         (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
1862         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
1863         (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
1864         (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
1865         (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
1866         (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
1867         (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
1868         (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
1869         (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
1870
1871 2009-08-26  Richard Guenther  <rguenther@suse.de>
1872
1873         PR middle-end/41163
1874         * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
1875         the types to not match.
1876         * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
1877         verification.
1878         * tree-ssa.c (useless_type_conversion_p): Conversions to
1879         pointers to unprototyped functions are useless.
1880
1881 2009-08-26  Richard Guenther  <rguenther@suse.de>
1882
1883         * tree-ssa-structalias.c (create_variable_info_for): Remove strange
1884         whole-program condition, prepare to be called for non-globals.
1885         (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
1886         params build a representative with known type and track its fields.
1887
1888 2009-08-26  Uros Bizjak  <ubizjak@gmail.com>
1889
1890         * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
1891         clearing by a taken branch.
1892         (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
1893         effectively after bbro pass.
1894         (sync_nand<mode>): Ditto.
1895         (sync_old_<fetchop_name><mode>): Ditto.
1896         (sync_old_nand<mode>): Ditto.
1897         (sync_new_<fetchop_name><mode>): Dito.
1898         (sync_new_nand<mode>): Ditto.
1899         (sync_compare_and_swap<mode>_1): Ditto.
1900         (*sync_compare_and_swap<mode>): Ditto.
1901         (sync_lock_test_and_set<mode>_1): Ditto.
1902         ("sync_lock_test_and_set<mode>): Ditto.
1903
1904 2009-08-25  Douglas B Rupp  <rupp@gnat.com>
1905
1906         * hwint.h (HOST_LONG_FORMAT): New macro
1907         * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
1908         Use HOST_PTR_PRINTF.
1909         * system.h (HOST_PTR_PRINTF): Resurrect old macro
1910         * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
1911         (HOST_PTR_PRINTF): Document.
1912
1913 2009-08-25 Jan Hubicka  <jh@suse.cz>
1914
1915         * config/i386/bmmintrin.h: Replace by #error.
1916
1917         Revert:
1918         Michael Meissner  <michael.meissner@amd.com>
1919         Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
1920         Tony Linthicum  <tony.linthicum@amd.com>
1921
1922         * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
1923         (TARGET_ROUND): New macro for the round/ptest instructions which
1924         are shared between SSE4.1 and SSE5.
1925         (OPTION_MASK_ISA_ROUND): Ditto.
1926         (OPTION_ISA_ROUND): Ditto.
1927         (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
1928         (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
1929
1930         * config/i386/i386.opt (-msse5): New switch for SSE5 support.
1931         (-mfused-madd): New switch to give users control over whether the
1932         compiler optimizes to use the multiply/add SSE5 instructions.
1933
1934         * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
1935         (ix86_handle_option): Turn off 3dnow if -msse5.
1936         (override_options): Add SSE5 support.
1937         (print_operand): %Y prints comparison codes for SSE5 com/pcom
1938         instructions.
1939         (ix86_expand_sse_movcc): Add SSE5 support.
1940         (ix86_expand_sse5_unpack): New function to use pperm to unpack a
1941         vector type to the next largest size.
1942         (ix86_expand_sse5_pack): New function to use pperm to pack a
1943         vector type to the next smallest size.
1944         (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
1945         (IX86_BUILTIN_FMADDSD): Ditto.
1946         (IX86_BUILTIN_FMADDPS): Ditto.
1947         (IX86_BUILTIN_FMADDPD): Ditto.
1948         (IX86_BUILTIN_FMSUBSS): Ditto.
1949         (IX86_BUILTIN_FMSUBSD): Ditto.
1950         (IX86_BUILTIN_FMSUBPS): Ditto.
1951         (IX86_BUILTIN_FMSUBPD): Ditto.
1952         (IX86_BUILTIN_FNMADDSS): Ditto.
1953         (IX86_BUILTIN_FNMADDSD): Ditto.
1954         (IX86_BUILTIN_FNMADDPS): Ditto.
1955         (IX86_BUILTIN_FNMADDPD): Ditto.
1956         (IX86_BUILTIN_FNMSUBSS): Ditto.
1957         (IX86_BUILTIN_FNMSUBSD): Ditto.
1958         (IX86_BUILTIN_FNMSUBPS): Ditto.
1959         (IX86_BUILTIN_FNMSUBPD): Ditto.
1960         (IX86_BUILTIN_PCMOV_V2DI): Ditto.
1961         (IX86_BUILTIN_PCMOV_V4SI): Ditto.
1962         (IX86_BUILTIN_PCMOV_V8HI): Ditto.
1963         (IX86_BUILTIN_PCMOV_V16QI): Ditto.
1964         (IX86_BUILTIN_PCMOV_V4SF): Ditto.
1965         (IX86_BUILTIN_PCMOV_V2DF): Ditto.
1966         (IX86_BUILTIN_PPERM): Ditto.
1967         (IX86_BUILTIN_PERMPS): Ditto.
1968         (IX86_BUILTIN_PERMPD): Ditto.
1969         (IX86_BUILTIN_PMACSSWW): Ditto.
1970         (IX86_BUILTIN_PMACSWW): Ditto.
1971         (IX86_BUILTIN_PMACSSWD): Ditto.
1972         (IX86_BUILTIN_PMACSWD): Ditto.
1973         (IX86_BUILTIN_PMACSSDD): Ditto.
1974         (IX86_BUILTIN_PMACSDD): Ditto.
1975         (IX86_BUILTIN_PMACSSDQL): Ditto.
1976         (IX86_BUILTIN_PMACSSDQH): Ditto.
1977         (IX86_BUILTIN_PMACSDQL): Ditto.
1978         (IX86_BUILTIN_PMACSDQH): Ditto.
1979         (IX86_BUILTIN_PMADCSSWD): Ditto.
1980         (IX86_BUILTIN_PMADCSWD): Ditto.
1981         (IX86_BUILTIN_PHADDBW): Ditto.
1982         (IX86_BUILTIN_PHADDBD): Ditto.
1983         (IX86_BUILTIN_PHADDBQ): Ditto.
1984         (IX86_BUILTIN_PHADDWD): Ditto.
1985         (IX86_BUILTIN_PHADDWQ): Ditto.
1986         (IX86_BUILTIN_PHADDDQ): Ditto.
1987         (IX86_BUILTIN_PHADDUBW): Ditto.
1988         (IX86_BUILTIN_PHADDUBD): Ditto.
1989         (IX86_BUILTIN_PHADDUBQ): Ditto.
1990         (IX86_BUILTIN_PHADDUWD): Ditto.
1991         (IX86_BUILTIN_PHADDUWQ): Ditto.
1992         (IX86_BUILTIN_PHADDUDQ): Ditto.
1993         (IX86_BUILTIN_PHSUBBW): Ditto.
1994         (IX86_BUILTIN_PHSUBWD): Ditto.
1995         (IX86_BUILTIN_PHSUBDQ): Ditto.
1996         (IX86_BUILTIN_PROTB): Ditto.
1997         (IX86_BUILTIN_PROTW): Ditto.
1998         (IX86_BUILTIN_PROTD): Ditto.
1999         (IX86_BUILTIN_PROTQ): Ditto.
2000         (IX86_BUILTIN_PROTB_IMM): Ditto.
2001         (IX86_BUILTIN_PROTW_IMM): Ditto.
2002         (IX86_BUILTIN_PROTD_IMM): Ditto.
2003         (IX86_BUILTIN_PROTQ_IMM): Ditto.
2004         (IX86_BUILTIN_PSHLB): Ditto.
2005         (IX86_BUILTIN_PSHLW): Ditto.
2006         (IX86_BUILTIN_PSHLD): Ditto.
2007         (IX86_BUILTIN_PSHLQ): Ditto.
2008         (IX86_BUILTIN_PSHAB): Ditto.
2009         (IX86_BUILTIN_PSHAW): Ditto.
2010         (IX86_BUILTIN_PSHAD): Ditto.
2011         (IX86_BUILTIN_PSHAQ): Ditto.
2012         (IX86_BUILTIN_FRCZSS): Ditto.
2013         (IX86_BUILTIN_FRCZSD): Ditto.
2014         (IX86_BUILTIN_FRCZPS): Ditto.
2015         (IX86_BUILTIN_FRCZPD): Ditto.
2016         (IX86_BUILTIN_CVTPH2PS): Ditto.
2017         (IX86_BUILTIN_CVTPS2PH): Ditto.
2018         (IX86_BUILTIN_COMEQSS): Ditto.
2019         (IX86_BUILTIN_COMNESS): Ditto.
2020         (IX86_BUILTIN_COMLTSS): Ditto.
2021         (IX86_BUILTIN_COMLESS): Ditto.
2022         (IX86_BUILTIN_COMGTSS): Ditto.
2023         (IX86_BUILTIN_COMGESS): Ditto.
2024         (IX86_BUILTIN_COMUEQSS): Ditto.
2025         (IX86_BUILTIN_COMUNESS): Ditto.
2026         (IX86_BUILTIN_COMULTSS): Ditto.
2027         (IX86_BUILTIN_COMULESS): Ditto.
2028         (IX86_BUILTIN_COMUGTSS): Ditto.
2029         (IX86_BUILTIN_COMUGESS): Ditto.
2030         (IX86_BUILTIN_COMORDSS): Ditto.
2031         (IX86_BUILTIN_COMUNORDSS): Ditto.
2032         (IX86_BUILTIN_COMFALSESS): Ditto.
2033         (IX86_BUILTIN_COMTRUESS): Ditto.
2034         (IX86_BUILTIN_COMEQSD): Ditto.
2035         (IX86_BUILTIN_COMNESD): Ditto.
2036         (IX86_BUILTIN_COMLTSD): Ditto.
2037         (IX86_BUILTIN_COMLESD): Ditto.
2038         (IX86_BUILTIN_COMGTSD): Ditto.
2039         (IX86_BUILTIN_COMGESD): Ditto.
2040         (IX86_BUILTIN_COMUEQSD): Ditto.
2041         (IX86_BUILTIN_COMUNESD): Ditto.
2042         (IX86_BUILTIN_COMULTSD): Ditto.
2043         (IX86_BUILTIN_COMULESD): Ditto.
2044         (IX86_BUILTIN_COMUGTSD): Ditto.
2045         (IX86_BUILTIN_COMUGESD): Ditto.
2046         (IX86_BUILTIN_COMORDSD): Ditto.
2047         (IX86_BUILTIN_COMUNORDSD): Ditto.
2048         (IX86_BUILTIN_COMFALSESD): Ditto.
2049         (IX86_BUILTIN_COMTRUESD): Ditto.
2050         (IX86_BUILTIN_COMEQPS): Ditto.
2051         (IX86_BUILTIN_COMNEPS): Ditto.
2052         (IX86_BUILTIN_COMLTPS): Ditto.
2053         (IX86_BUILTIN_COMLEPS): Ditto.
2054         (IX86_BUILTIN_COMGTPS): Ditto.
2055         (IX86_BUILTIN_COMGEPS): Ditto.
2056         (IX86_BUILTIN_COMUEQPS): Ditto.
2057         (IX86_BUILTIN_COMUNEPS): Ditto.
2058         (IX86_BUILTIN_COMULTPS): Ditto.
2059         (IX86_BUILTIN_COMULEPS): Ditto.
2060         (IX86_BUILTIN_COMUGTPS): Ditto.
2061         (IX86_BUILTIN_COMUGEPS): Ditto.
2062         (IX86_BUILTIN_COMORDPS): Ditto.
2063         (IX86_BUILTIN_COMUNORDPS): Ditto.
2064         (IX86_BUILTIN_COMFALSEPS): Ditto.
2065         (IX86_BUILTIN_COMTRUEPS): Ditto.
2066         (IX86_BUILTIN_COMEQPD): Ditto.
2067         (IX86_BUILTIN_COMNEPD): Ditto.
2068         (IX86_BUILTIN_COMLTPD): Ditto.
2069         (IX86_BUILTIN_COMLEPD): Ditto.
2070         (IX86_BUILTIN_COMGTPD): Ditto.
2071         (IX86_BUILTIN_COMGEPD): Ditto.
2072         (IX86_BUILTIN_COMUEQPD): Ditto.
2073         (IX86_BUILTIN_COMUNEPD): Ditto.
2074         (IX86_BUILTIN_COMULTPD): Ditto.
2075         (IX86_BUILTIN_COMULEPD): Ditto.
2076         (IX86_BUILTIN_COMUGTPD): Ditto.
2077         (IX86_BUILTIN_COMUGEPD): Ditto.
2078         (IX86_BUILTIN_COMORDPD): Ditto.
2079         (IX86_BUILTIN_COMUNORDPD): Ditto.
2080         (IX86_BUILTIN_COMFALSEPD): Ditto.
2081         (IX86_BUILTIN_COMTRUEPD): Ditto.
2082         (IX86_BUILTIN_PCOMEQUB): Ditto.
2083         (IX86_BUILTIN_PCOMNEUB): Ditto.
2084         (IX86_BUILTIN_PCOMLTUB): Ditto.
2085         (IX86_BUILTIN_PCOMLEUB): Ditto.
2086         (IX86_BUILTIN_PCOMGTUB): Ditto.
2087         (IX86_BUILTIN_PCOMGEUB): Ditto.
2088         (IX86_BUILTIN_PCOMFALSEUB): Ditto.
2089         (IX86_BUILTIN_PCOMTRUEUB): Ditto.
2090         (IX86_BUILTIN_PCOMEQUW): Ditto.
2091         (IX86_BUILTIN_PCOMNEUW): Ditto.
2092         (IX86_BUILTIN_PCOMLTUW): Ditto.
2093         (IX86_BUILTIN_PCOMLEUW): Ditto.
2094         (IX86_BUILTIN_PCOMGTUW): Ditto.
2095         (IX86_BUILTIN_PCOMGEUW): Ditto.
2096         (IX86_BUILTIN_PCOMFALSEUW): Ditto.
2097         (IX86_BUILTIN_PCOMTRUEUW): Ditto.
2098         (IX86_BUILTIN_PCOMEQUD): Ditto.
2099         (IX86_BUILTIN_PCOMNEUD): Ditto.
2100         (IX86_BUILTIN_PCOMLTUD): Ditto.
2101         (IX86_BUILTIN_PCOMLEUD): Ditto.
2102         (IX86_BUILTIN_PCOMGTUD): Ditto.
2103         (IX86_BUILTIN_PCOMGEUD): Ditto.
2104         (IX86_BUILTIN_PCOMFALSEUD): Ditto.
2105         (IX86_BUILTIN_PCOMTRUEUD): Ditto.
2106         (IX86_BUILTIN_PCOMEQUQ): Ditto.
2107         (IX86_BUILTIN_PCOMNEUQ): Ditto.
2108         (IX86_BUILTIN_PCOMLTUQ): Ditto.
2109         (IX86_BUILTIN_PCOMLEUQ): Ditto.
2110         (IX86_BUILTIN_PCOMGTUQ): Ditto.
2111         (IX86_BUILTIN_PCOMGEUQ): Ditto.
2112         (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
2113         (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
2114         (IX86_BUILTIN_PCOMEQB): Ditto.
2115         (IX86_BUILTIN_PCOMNEB): Ditto.
2116         (IX86_BUILTIN_PCOMLTB): Ditto.
2117         (IX86_BUILTIN_PCOMLEB): Ditto.
2118         (IX86_BUILTIN_PCOMGTB): Ditto.
2119         (IX86_BUILTIN_PCOMGEB): Ditto.
2120         (IX86_BUILTIN_PCOMFALSEB): Ditto.
2121         (IX86_BUILTIN_PCOMTRUEB): Ditto.
2122         (IX86_BUILTIN_PCOMEQW): Ditto.
2123         (IX86_BUILTIN_PCOMNEW): Ditto.
2124         (IX86_BUILTIN_PCOMLTW): Ditto.
2125         (IX86_BUILTIN_PCOMLEW): Ditto.
2126         (IX86_BUILTIN_PCOMGTW): Ditto.
2127         (IX86_BUILTIN_PCOMGEW): Ditto.
2128         (IX86_BUILTIN_PCOMFALSEW): Ditto.
2129         (IX86_BUILTIN_PCOMTRUEW): Ditto.
2130         (IX86_BUILTIN_PCOMEQD): Ditto.
2131         (IX86_BUILTIN_PCOMNED): Ditto.
2132         (IX86_BUILTIN_PCOMLTD): Ditto.
2133         (IX86_BUILTIN_PCOMLED): Ditto.
2134         (IX86_BUILTIN_PCOMGTD): Ditto.
2135         (IX86_BUILTIN_PCOMGED): Ditto.
2136         (IX86_BUILTIN_PCOMFALSED): Ditto.
2137         (IX86_BUILTIN_PCOMTRUED): Ditto.
2138         (IX86_BUILTIN_PCOMEQQ): Ditto.
2139         (IX86_BUILTIN_PCOMNEQ): Ditto.
2140         (IX86_BUILTIN_PCOMLTQ): Ditto.
2141         (IX86_BUILTIN_PCOMLEQ): Ditto.
2142         (IX86_BUILTIN_PCOMGTQ): Ditto.
2143         (IX86_BUILTIN_PCOMGEQ): Ditto.
2144         (IX86_BUILTIN_PCOMFALSEQ): Ditto.
2145         (IX86_BUILTIN_PCOMTRUEQ): Ditto.
2146         (enum multi_arg_type): New enum for describing the various SSE5
2147         intrinsic argument types.
2148         (bdesc_multi_arg): New table for SSE5 intrinsics.
2149         (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
2150         (ix86_expand_multi_arg_builtin): New function for creating SSE5
2151         intrinsics.
2152         (ix86_expand_builtin): Add SSE5 intrinsic support.
2153         (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
2154         operand instructions.
2155         (ix86_expand_sse5_multiple_memory): New function to split the
2156         second memory reference from SSE5 instructions.
2157         (type_has_variadic_args_p): Delete in favor of stdarg_p.
2158         (ix86_return_pops_args): Use stdarg_p to determine if the function
2159         has variable arguments.
2160         (ix86_setup_incoming_varargs): Ditto.
2161         (x86_this_parameter): Ditto.
2162
2163         * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
2164         declaration.
2165         (ix86_expand_sse5_pack): Ditto.
2166         (ix86_sse5_valid_op_p): Ditto.
2167         (ix86_expand_sse5_multiple_memory): Ditto.
2168
2169         * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
2170         constant for SSE5 support.
2171         (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
2172         (UNSPEC_SSE5_TRUEFALSE): Ditto.
2173         (UNSPEC_SSE5_PERMUTE): Ditto.
2174         (UNSPEC_SSE5_ASHIFT): Ditto.
2175         (UNSPEC_SSE5_LSHIFT): Ditto.
2176         (UNSPEC_FRCZ): Ditto.
2177         (UNSPEC_CVTPH2PS): Ditto.
2178         (UNSPEC_CVTPS2PH): Ditto.
2179         (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
2180         (PCOM_TRUE): Ditto.
2181         (COM_FALSE_S): Ditto.
2182         (COM_FALSE_P): Ditto.
2183         (COM_TRUE_S): Ditto.
2184         (COM_TRUE_P): Ditto.
2185         (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
2186         (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
2187         types.
2188         (memory attribute): Ditto.
2189         (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
2190         Use SSE4_1_ROUND_* constants instead of hard coded numbers.
2191         (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
2192         (floor<mode>2): Ditto.
2193         (ceil<mode>2): Ditto.
2194         (btrunc<mode>2): Ditto.
2195         (nearbyintdf2): Ditto.
2196         (nearbyintsf2): Ditto.
2197         (sse_setccsf): Disable if SSE5.
2198         (sse_setccdf): Ditto.
2199         (sse5_setcc<mode>): New support for SSE5 conditional move.
2200         (sse5_pcmov_<mode>): Ditto.
2201
2202         * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
2203         (SSEMODEF4): Ditto.
2204         (SSEMODEF2P): Ditto.
2205         (ssemodesuffixf4): New mode attribute for SSE5.
2206         (ssemodesuffixf2s): Ditto.
2207         (ssemodesuffixf2c): Ditto.
2208         (sserotatemax): Ditto.
2209         (ssescalarmode): Ditto.
2210         (sse_maskcmpv4sf3): Disable if SSE5.
2211         (sse_maskcmpv2df3): Ditto.
2212         (sse_vmmaskcmpv4sf3): Ditto.
2213         (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
2214         (sse5_vmfmadd<mode>4): Ditto.
2215         (sse5_fmsub<mode>4): Ditto.
2216         (sse5_vmfmsub<mode>4): Ditto.
2217         (sse5_fnmadd<mode>4): Ditto.
2218         (sse5_vmfnmadd<mode>4): Ditto.
2219         (sse5_fnmsub<mode>4): Ditto.
2220         (sse5_vmfnmsub<mode>4): Ditto.
2221         (sse5i_fmadd<mode>4): Ditto.
2222         (sse5i_fmsub<mode>4): Ditto.
2223         (sse5i_fnmadd<mode>4): Ditto.
2224         (sse5i_fnmsub<mode>4): Ditto.
2225         (sse5i_vmfmadd<mode>4): Ditto.
2226         (sse5i_vmfmsub<mode>4): Ditto.
2227         (sse5i_vmfnmadd<mode>4): Ditto.
2228         (sse5i_vmfnmsub<mode>4): Ditto.
2229         (mulv16qi3): Add SSE5 support.
2230         (mulv4si3): Ditto.
2231         (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
2232         (sse2_mulv4si3): Disable if SSE5.
2233         (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
2234         (sse4_1_roundps): Ditto.
2235         (sse4_1_roundsd): Ditto.
2236         (sse4_1_roundss): Ditto.
2237         (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
2238         be generated.
2239         (sse_maskcmpsf3): Ditto.
2240         (sse_vmmaskcmpv4sf3): Ditto.
2241         (sse2_maskcmpv2df3): Ditto.
2242         (sse2_maskcmpdf3): Ditto.
2243         (sse2_vmmaskcmpv2df3): Ditto.
2244         (sse2_eq<mode>3): Ditto.
2245         (sse2_gt<mode>3): Ditto.
2246         (sse5_pcmov_<mode>): Add SSE5 support.
2247         (vec_unpacku_hi_v16qi): Ditto.
2248         (vec_unpacks_hi_v16qi): Ditto.
2249         (vec_unpacku_lo_v16qi): Ditto.
2250         (vec_unpacks_lo_v16qi): Ditto.
2251         (vec_unpacku_hi_v8hi): Ditto.
2252         (vec_unpacks_hi_v8hi): Ditto.
2253         (vec_unpacku_lo_v8hi): Ditto.
2254         (vec_unpacks_lo_v8hi): Ditto.
2255         (vec_unpacku_hi_v4si): Ditto.
2256         (vec_unpacks_hi_v4si): Ditto.
2257         (vec_unpacku_lo_v4si): Ditto.
2258         (vec_unpacks_lo_v4si): Ditto.
2259         (sse5_pmacsww): New SSE5 intrinsic insn.
2260         (sse5_pmacssww): Ditto.
2261         (sse5_pmacsdd): Ditto.
2262         (sse5_pmacssdd): Ditto.
2263         (sse5_pmacssdql): Ditto.
2264         (sse5_pmacssdqh): Ditto.
2265         (sse5_pmacsdqh): Ditto.
2266         (sse5_pmacsswd): Ditto.
2267         (sse5_pmacswd): Ditto.
2268         (sse5_pmadcsswd): Ditto.
2269         (sse5_pmadcswd): Ditto.
2270         (sse5_pcmov_<move>): Conditional move support on SSE5.
2271         (sse5_phaddbw): New SSE5 intrinsic insn.
2272         (sse5_phaddbd): Ditto.
2273         (sse5_phaddbq): Ditto.
2274         (sse5_phaddwd): Ditto.
2275         (sse5_phaddwq): Ditto.
2276         (sse5_phadddq): Ditto.
2277         (sse5_phaddubw): Ditto.
2278         (sse5_phaddubd): Ditto.
2279         (sse5_phaddubq): Ditto.
2280         (sse5_phadduwd): Ditto.
2281         (sse5_phadduwq): Ditto.
2282         (sse5_phaddudq): Ditto.
2283         (sse5_phsubbw): Ditto.
2284         (sse5_phsubwd): Ditto.
2285         (sse5_phsubdq): Ditto.
2286         (sse5_pperm): Ditto.
2287         (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
2288         (sse5_pperm_zero_v16qi_v8hi): Ditto.
2289         (sse5_pperm_sign_v8hi_v4si): Ditto.
2290         (sse5_pperm_zero_v8hi_v4si): Ditto.
2291         (sse5_pperm_sign_v4si_v2di): Ditto.
2292         (sse5_pperm_sign_v4si_v2di): Ditto.
2293         (sse5_pperm_pack_v2di_v4si): Ditto.
2294         (sse5_pperm_pack_v4si_v8hi): Ditto.
2295         (sse5_pperm_pack_v8hi_v16qi): Ditto.
2296         (sse5_perm<mode>): New SSE5 intrinsic insn.
2297         (rotl<mode>3): Ditto.
2298         (sse5_rotl<mode>3): Ditto.
2299         (sse5_ashl<mode>3): Ditto.
2300         (sse5_lshl<mode>3): Ditto.
2301         (sse5_frcz<mode>2): Ditto.
2302         (sse5s_frcz<mode>2): Ditto.
2303         (sse5_cvtph2ps): Ditto.
2304         (sse5_cvtps2ph): Ditto.
2305         (sse5_vmmaskcmp<mode>3): Ditto.
2306         (sse5_com_tf<mode>3): Ditto.
2307         (sse5_maskcmp<mode>3): Ditto.
2308         (sse5_maskcmp_uns<mode>3): Ditto.
2309         (sse5_maskcmp_uns2<mode>3): Ditto.
2310         (sse5_pcom_tf<mode>3): Ditto.
2311
2312         * config/i386/predicates.md (sse5_comparison_float_operator):
2313         New predicate to match the comparison operators supported by
2314         the SSE5 com instruction.
2315         (ix86_comparison_int_operator): New predicate to match just the
2316         signed int comparisons.
2317         (ix86_comparison_uns_operator): New predicate to match just the
2318         unsigned int comparisons.
2319
2320         * doc/invoke.texi (-msse5): Add documentation.
2321         (-mfused-madd): Ditto.
2322
2323         * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
2324
2325         * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
2326         mmintrin-common.h.
2327         (x86_64-*-*): Ditto.
2328
2329         * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
2330
2331         * config/i386/bmmintrin.h: New file, provide common x86 compiler
2332         intrinisics for SSE5.
2333
2334         * config/i386/smmintrin.h: Move instructions shared with SSE5 to
2335         mmintrin-common.h.
2336
2337         * config/i386/mmintrin-common.h: New file, to contain common
2338         instructions between SSE4.1 and SSE5.
2339
2340         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
2341         FOREACH_FUNCTION_ARGS to iterate over the argument list.
2342         (gen_regparm_prefix): Ditto.
2343
2344         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
2345         FOREACH_FUNCTION_ARGS to iterate over the argument list.  Use
2346         prototype_p to determine if a function is prototyped.
2347
2348 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
2349
2350         * c-common.c (c_common_reswords) add the alignof keyword,
2351         with same RID as __alignof and __alignof__
2352
2353 2009-08-25  Anatoly Sokolov  <aesok@post.ru>
2354
2355         * hooks.h (hook_bool_const_int_const_int_true): Declare.
2356         * hooks.c (hook_bool_const_int_const_int_true): New function.
2357         * target.h (struct gcc_target): Add can_eliminate field.
2358         * target-def.h (TARGET_CAN_ELIMINATE): Define.
2359         (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
2360         * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
2361         * reload1.c (update_eliminables, init_elim_table): (Ditto.).
2362         (elim_table): Revise comment.
2363         * system.h (CAN_ELIMINATE): Poison.
2364         * defaults.h (CAN_ELIMINATE): Remove.
2365         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
2366
2367         * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
2368         * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
2369         Define macro.
2370         (alpha_vms_can_eliminate): Declare as static, change return type to
2371         bool.
2372         * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
2373
2374         * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
2375         * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
2376         (arm_can_eliminate): New function.
2377
2378         * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
2379         * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
2380         (avr_can_eliminate): Declare as static.
2381         * config/avr/avr-protos.h (avr_can_eliminate): Remove.
2382
2383         * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
2384         * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
2385         (bfin_can_eliminate): New function.
2386
2387         * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
2388         * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
2389         (crx_can_eliminate): New function.
2390
2391         * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
2392         * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
2393         (fr30_can_eliminate): New function.
2394
2395         * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
2396         * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
2397         (frv_can_eliminate): New function.
2398
2399         * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
2400         * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
2401         (h8300_can_eliminate): New function.
2402
2403         * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
2404         * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
2405         (i386_can_eliminate): Declare as static, change return type to bool.
2406         * config/i386/i386-protos.h (i386_can_eliminate): Remove.
2407
2408         * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
2409         * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
2410         (ia64_can_eliminate): New function.
2411
2412         * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
2413         * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
2414         (iq2000_can_eliminate): New function.
2415
2416         * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
2417         * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
2418         (m32r_can_eliminate): New function.
2419
2420         * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
2421         * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
2422         (m68hc11_can_eliminate): New function.
2423
2424         * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
2425         * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
2426         (m68k_can_eliminate): New function.
2427
2428         * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
2429         * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
2430         (mep_can_eliminate): New function.
2431
2432         * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
2433         * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
2434         (mips_can_eliminate): New function.
2435
2436         * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
2437         * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
2438         (rs6000_can_eliminate): New function.
2439
2440         * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
2441         * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
2442         (s390_can_eliminate): Declare as static.
2443         * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
2444
2445         * config/score/score.h (CAN_ELIMINATE): Remove macro.
2446         * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
2447         (score_can_eliminate): New function.
2448
2449         * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
2450         * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
2451         (sparc_can_eliminate): Declare as static.
2452         * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
2453
2454         * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
2455         * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
2456         (xstormy16_can_eliminate): New function.
2457
2458         * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
2459         * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
2460         (v850_can_eliminate): New function.
2461
2462 2009-08-25  Uros Bizjak  <ubizjak@gmail.com>
2463
2464         * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
2465         (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
2466         (*movdfcc_ext[1234]): Disable for IEEE mode.
2467
2468 2009-08-25  Eric Botcazou  <ebotcazou@adacore.com>
2469
2470         * gimplify.c (prepare_gimple_addressable): New static function.
2471         (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
2472         it addressable.
2473         (gimplify_addr_expr): Invoke it similarly on the operand instead of
2474         manually fiddling with it.
2475
2476 2009-08-25  Michael Matz  <matz@suse.de>
2477
2478         * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
2479         * dojump.c (do_jump_by_parts_greater): Take two operands instead of
2480         full expression.
2481         (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
2482         (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
2483         (do_jump): Split out code for simple binary comparisons into ...
2484         (do_jump_1): ... this, taking the individual operands and code.
2485         Change callers to helper function above accordingly.
2486         * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
2487         comparisons.
2488
2489 2009-08-25  Michael Matz  <matz@suse.de>
2490
2491         * expr.h (struct separate_ops, sepops): New type for passing
2492         around an exploded simple expression.
2493         * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
2494         Use this structure instead of expression tree.
2495         (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
2496         expression, only its type.
2497         (expand_vec_cond_expr): Take type and individual operands instead
2498         of full expression.
2499         * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
2500         expand_vec_shift_expr): Change prototype accordingly.
2501         * tree-vect-stmts.c (vectorizable_condition): Change call of
2502         expand_vec_cond_expr_p to pass only type.
2503         * expr.c (do_store_flags): Change prototype and implementation
2504         to take an exploded expression.
2505         (expand_expr_real_1): New local ops initialized with details
2506         of the full expression.  Use it instead of full
2507         expression in calls to do_store_flags, expand_vec_cond_expr,
2508         expand_widen_pattern_expr and expand_vec_shift_expr.
2509
2510 2009-08-25  Michael Matz  <matz@suse.de>
2511
2512         * expr.c (expand_expr_real_1): New local treeop0, treeop1,
2513         treeop2 initialized with first three operands of the full expression.
2514         Substitute all TREE_OPERAND (exp, [012]) calls with them.
2515
2516 2009-08-25  Kai Tietz  <kai.tietz@onevision.com>
2517
2518         * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
2519         (__gthread_objc_condition_allocate): Mark arguments as unused.
2520         (__gthread_objc_condition_deallocate): Likewise.
2521         (__gthread_objc_condition_wait): Likewise.
2522         (__gthread_objc_condition_broadcast): Likewise.
2523         (__gthread_objc_condition_signal): Likewise.
2524         (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
2525         (__gthread_objc_thread_id): Likewise.
2526
2527 2009-08-25  Janus Weil  <janus@gcc.gnu.org>
2528
2529         PR middle-end/41149
2530         * tree-pretty-print.c (print_call_name): Print the correct call name
2531         for procedure pointer components.
2532
2533 2009-08-24  Steve Ellcey  <sje@cup.hp.com>
2534
2535         * config/ia64/ia64.c (ia64_promote_function_mode): Call
2536         default_promote_function_mode when not VMS.
2537
2538 2009-08-24  Olivier Hainque  <hainque@adacore.com>
2539
2540         * convert.c (convert_to_integer): Don't assume an input pointer is
2541         POINTER_SIZE wide.  Fetch from the type instead.
2542
2543 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2544
2545         * configure.ac (AC_PREREQ): Bump to 2.64.
2546
2547 2009-08-24  Rafael Avila de Espindola  <espindola@google.com>
2548
2549         * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
2550         (process_command): Don't search standard_exec_prefix_1 and
2551         standard_exec_prefix_2.
2552
2553 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2554
2555         * config/arm/arm.c (output_return_instruction): Handle for
2556         unified syntax.
2557
2558 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2559
2560         * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
2561
2562 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2563
2564         * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
2565         (*arm_movdf_vfp): Likewise.
2566
2567 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2568
2569         * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
2570         (vashr<mode>3): Rename from ashr<mode>3.
2571         (vlshr<mode>3): Rename from lshr<mode>3.
2572
2573 2009-08-24  Kai Tietz  <kai.tietz@onevision.com>
2574
2575         PR/40786
2576         * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
2577         (check_format_info_main): Use scalar_identify_flag.
2578         (check_format_types): Check for scalar size identity if
2579         scalar_identify_flag is set.
2580         (printf_length_specs): Extend by new field.
2581         (asm_fprintf_length_specs): Likewise.
2582         (gcc_diag_length_specs): Likewise.
2583         (scanf_length_specs): Likewise.
2584         (strfmon_length_specs): Likewise.
2585         (gcc_gfc_length_specs): Likewise.
2586         * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
2587         (ms_printf_flag_specs): Likewise.
2588         * c-format.h (format_length_info): Add new member scalar_identity_flag.
2589
2590 2009-08-23  Uros Bizjak  <ubizjak@gmail.com>
2591
2592         PR target/40718
2593         * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
2594         (*call_value_pop_1): Ditto.
2595         (*sibcall_pop_1): New insn pattern.
2596         (*sibcall_value_pop_1): Ditto.
2597
2598 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
2599
2600         PR target/41081
2601         * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
2602         ashrsi3_64): New.
2603
2604 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
2605
2606         PR target/41081
2607         * fwprop.c (try_fwprop_subst): Allow multiple sets.
2608         (get_reg_use_in): New function.
2609         (forward_propagate_subreg): Propagate through subreg of zero_extend
2610         or sign_extend.
2611
2612 2009-08-22  Kaz Kojima  <kkojima@gcc.gnu.org>
2613
2614         * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
2615         * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
2616
2617 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2618
2619         * configure.ac: Remove --with-datarootdir, --with-docdir,
2620         --with-htmldir switches.  No need to call AC_SUBST for
2621         datarootdir, docdir, htmldir any more.
2622         * configure: Regenerate.
2623         * doc/install.texi (Configuration): Document --datarootdir,
2624         --docdir, --htmldir, --pdfdir; update documentation for
2625         --infodir, --mandir.
2626         (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
2627         M4 to 1.4.6.
2628
2629         * aclocal.m4: Regenerate.
2630         * config.in: Regenerate.
2631         * configure: Regenerate.
2632
2633 2009-08-21  Douglas B Rupp  <rupp@gnat.com>
2634             Olivier Hainque  <hainque@adacore.com>
2635
2636         * config/ia64/ia64.c: Include libfuncs.h.
2637         (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
2638         (ia64_expand_call): Use reg 25 on VMS.
2639         (ia64_initialize_trampoline): Fix for VMS ABI.
2640         (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
2641         (ia64_function_arg): Initialize reg 25 on VMS.
2642         Fix OpenVMS ABI issues for varargs.
2643         For OpenVMS, emit the Argument Information register set in the
2644         incoming/sibcall case as well.
2645         (ia64_arg_type): New function.
2646         (ia64_function_arg_advance): Keep track of cum->words.
2647         Fix OpenVMS ABI issues for varargs.
2648         (ia64_function_value): On VMS, promote mode of non-aggregate types.
2649         (ia64_override_options): Set flag_no_common on VMS.
2650         (ia64_init_builtins): Disable FWRITE builtin.
2651         (ia64_asm_output_external): Call DO_CRTL_NAMES.
2652         (ia64_vms_init_libfuncs): Add decc$ routines.
2653         (ia64_vms_valid_pointer_mode): New function.
2654         (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
2655         (ia64_promote_function_mode): New function
2656         * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
2657         (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
2658         (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
2659         (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
2660         (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
2661         (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
2662         Suppress trailing '#' if VALUE is numeric.
2663         * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
2664         ia64_promote_function_mode.
2665         (TARGET_VALID_POINTER_MODE): Define.
2666
2667 2009-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
2668
2669         PR target/40671
2670         * config/rs6000/rs6000.c (rs6000_override_options): Use
2671         TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
2672
2673         PR target/41145
2674         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
2675         reporting of vector + decimal/boolean/complex error.
2676
2677 2009-08-21  Jakub Jelinek  <jakub@redhat.com>
2678
2679         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
2680         __vector double TYPE_DECL.
2681
2682 2009-08-21  Richard Earnshaw  <rearnsha@arm.com>
2683
2684         * arm.h (MACHMODE): New define.  Include insn-modes.h if available.
2685         (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
2686         * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
2687         to pointer to enum machine_mode.  Update all callers as needed.
2688
2689 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
2690
2691         * config/alpha/alpha.md (exception_receiver): Emit alternative
2692         GP load sequence if flag_reorder_blocks_and_partition is set.
2693         (*exception_receiver_2): Also enable when
2694         flag_reorder_blocks_and_partition is set.
2695
2696 2009-08-20  Matt Rice  <ratmice@gmail.com>
2697             Diego Novillo  <dnovillo@google.com>
2698
2699         * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
2700         tree-ssa-sccvn.h.
2701
2702 2009-08-20  Richard Guenther  <rguenther@suse.de>
2703
2704         * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
2705         * c-tree.h (c_dup_lang_specific_decl): Remove.
2706         (struct lang_decl, struct lang_type): Move definitions ...
2707         * c-lang.h: ... here.  New file.
2708         * c-decl.c: Include c-lang.h.
2709         (c_dup_lang_specific_decl): Remove.
2710         * c-typeck.c: Include c-lang.h.
2711         * Makefile.in (c-decl.o): Add c-lang.h dependency.
2712         (c-typeck.o): Likewise.
2713         * c-config-lang.in (gtfiles): Add c-lang.h.
2714         * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
2715         like c-tree.h.
2716
2717 2009-08-20  Uros Bizjak  <ubizjak@gmail.com>
2718
2719         * config/alpha/alpha.c (alpha_end_function): Do not clear
2720         crtl->emit structure and free insn locators if cfun->is_thunk is true,
2721         this is now handled in generic code.
2722
2723 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
2724
2725         * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
2726         (s390_z10_fix_long_loop_prediction): New function.
2727         (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
2728         (s390_reorg): Walk over the INSNs and invoke
2729         s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
2730
2731 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
2732
2733         * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
2734         "*brx_64bit", "*brx_31bit"): New patterns.
2735         * config/s390/s390.c ('E'): New output modifier.
2736
2737 2009-08-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2738             Richard Earnshaw  <richard.earnshaw@arm.com>
2739
2740         * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
2741         * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
2742
2743 2009-08-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2744
2745         * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
2746         patterns.
2747         * pa.c (emit_move_sequence): Check if address of operand1 is valid
2748         for mode mode of operand0 when doing secondary reload for SAR.
2749
2750 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
2751
2752         PR middle-end/41123
2753         * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
2754         of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
2755
2756 2009-08-19  Jason Merrill  <jason@redhat.com>
2757
2758         * doc/invoke.texi (C++ Dialect Options): Note change of minimum
2759         supported template depth in C++0x.
2760
2761 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
2762
2763         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
2764         free_after_compilation.
2765         * config/score/score7.c (score7_output_mi_thunk): Likewise.
2766         * config/score/score3.c (score3_output_mi_thunk): Likewise.
2767         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
2768         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
2769         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
2770         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
2771         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
2772
2773 2009-08-19  Ian Lance Taylor  <iant@google.com>
2774
2775         * doc/md.texi (Insn Canonicalizations): Correct canonicalization
2776         of (plus (mult (neg B) C) A).
2777
2778 2009-08-18  Michael Matz  <matz@suse.de>
2779
2780         * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
2781         instead of comparing TYPE_MAIN_VARIANT for equality.
2782         * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
2783         vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
2784         * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
2785         * gimplify.c (goa_lhs_expr_p): Ditto and use
2786         STRIP_USELESS_TYPE_CONVERSION.
2787
2788 2009-08-18  Michael Matz  <matz@suse.de>
2789
2790         * tree-ssa-structalias.c (create_variable_info_for): Also mark
2791         first field in a struct.
2792         (intra_create_variable_infos): Don't deal with flag_argument_noalias.
2793
2794 2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
2795
2796         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
2797         locators before emit_insn is called.  Remove assert that
2798         cfun->is_thunk.
2799         (alpha_end_function): Clear crtl->emit structure and free insn
2800         locators if cfun->is_thunk is true.
2801
2802 2009-08-18  Jason Merrill  <jason@redhat.com>
2803
2804         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
2805         type if available.
2806         * configure.ac: Test for it.
2807         * configure, config.in: Regenerate.
2808         * doc/install.texi: Document --enable-gnu-unique-object.
2809
2810 2009-08-18  Richard Guenther  <rguenther@suse.de>
2811
2812         PR middle-end/41094
2813         * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
2814         pow(x,y*z) only if x is nonnegative.
2815
2816 2009-08-18  Jakub Jelinek  <jakub@redhat.com>
2817
2818         * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
2819         on jumps.
2820
2821         PR target/40971
2822         * config/rs6000/rs6000.c (rs6000_legitimize_address): For
2823         [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
2824
2825 2009-08-17  DJ Delorie  <dj@redhat.com>
2826
2827         * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
2828         * config/m32c/prologue.md (epilogue_freit): New.
2829         (fset_b): New.
2830         * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
2831         (bank_switch_p): Likewise.
2832         (fast_interrupt_p): Likewise.
2833         (interrupt_p): Likewise.
2834         (m32c_conditional_register_usage): Round memregs size up.
2835         (need_to_save): We only need to save $a0 when we use ENTER.
2836         (interrupt_p): Check for fast_interrupt too.
2837         (bank_switch_p): New.
2838         (fast_interrupt_p): New.
2839         (m32c_attribute_table): Add bank_switch and fast_interrupt.
2840         (m32c_emit_prolog): Support bank switching and fast interrupts.
2841         * doc/extend.texi (Function Attributes): Add bank_switch and
2842         fast_interrupt.
2843
2844 2009-08-17  Douglas B Rupp  <rupp@gnat.com>
2845
2846         * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
2847         * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
2848
2849 2009-08-16  Douglas B Rupp  <rupp@gnat.com>
2850
2851         * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
2852         (menu): Add IA-64/VMS Options.
2853         (IA-64/VMS Options): Likewise.
2854
2855 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
2856
2857         PR target/38599
2858         * config/mips/mips.md (*lwxs): Use :P for pointer values.
2859
2860 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
2861
2862         * config/mips/mips-protos.h (mips_push_asm_switch): New function.
2863         (mips_pop_asm_switch): Likewise.
2864         * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
2865         with...
2866         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
2867         (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
2868         (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
2869         (mips_print_operand_punctuation): Use them.  Check mips_noreorder
2870         instead of set_noreorder.
2871         (mips_output_function_prologue): Use the new functions.
2872         (mips_output_function_epilogue): Likewise.
2873         (mips_need_noat_wrapper_p): New function, split out from...
2874         (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
2875         Use mips_push_asm_switch and mips_pop_asm_switch.
2876         * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
2877         and mips_pop_asm_switch.
2878         (ASM_OUTPUT_REG_POP): Likewise.
2879         (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
2880         Use mips_pop_asm_switch.
2881         (mips_asm_switch): New structure.
2882         (set_noreorder, set_nomacro): Replace with...
2883         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
2884         * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
2885         instead of set_nomacro.
2886         (fix_truncsfsi2_macro): Likewise.
2887         (cprestore): Likewise.
2888         (hazard): Use mips_noreorder instead of set_noreorder.
2889         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
2890
2891 2009-08-16  Uros Bizjak  <ubizjak@gmail.com>
2892
2893         * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
2894         from prev_active_insn.
2895
2896 2009-08-16  Anatoly Sokolov  <aesok@post.ru>
2897
2898         * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
2899         * config/avr/avr.c (avr_override_options): Initialize
2900         avr_current_arch variable.
2901         (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
2902         __AVR_HAVE_16BIT_SP__ according to the device type.
2903         (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
2904         TARGET_TINY_STACK.
2905         (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
2906         Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
2907
2908 2009-08-16  Dodji Seketeli  <dodji@redhat.com>
2909
2910         PR debug/37801
2911         * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
2912         generating inlined subroutine die only. We shouldn't be
2913         called for anything else.
2914         (gen_block_die): Don't generate inline subroutine debug info for
2915         abstract blocks.
2916
2917 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
2918
2919         * graphite-poly.c (print_pbb): Print PBB index.
2920
2921 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
2922
2923         PR middle-end/40981
2924         * graphite-interchange.c (ppl_max_for_le): Moved...
2925         * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
2926         * graphite-ppl.c (ppl_max_for_le): ... here.  Correct the use of
2927         ppl_Pointset_Powerset_C_Polyhedron_maximize.
2928         * graphite-ppl.h (ppl_max_for_le): Declared.
2929
2930 2009-08-14  Olatunji Ruwase <tjruwase@google.com>
2931
2932         * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
2933         supported on all platforms.
2934         * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
2935         * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
2936         * c-pragma.c: Likewise.
2937         * target-def.h (TARGET_INITIALIZER): Remove
2938         TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
2939         * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
2940
2941 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
2942
2943         * config/ia64/fde-vms.c: New file.
2944         * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
2945         * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
2946         (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
2947         (uw_frame_state_for): Only register a personality routine if it is
2948         known to be compatible with our expectations.
2949         (_Unwind_FindEnclosingFunction, uw_frame_state_for):
2950         Declare unw_table_entry stack variable and
2951         mod all calls to _Unwind_FindTableEntry to add arg.
2952         * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
2953         (_Unwind_FindTableEntry): Add arg to prototype.
2954
2955 2009-08-14  Eric Botcazou  <ebotcazou@adacore.com>
2956
2957         * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
2958         field 'signal_pfs_loc'.
2959         (uw_frame_state_for): Remove duplicate code dealing with leaf
2960         procedures without unwind info.
2961         If in the frame after unwinding through a signal handler, restore
2962         the AR.PFS register instead of the CFM if AR.PFS has not been saved.
2963         * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
2964         'pfs_loc' to the AR.PFS location in the signal context; instead
2965         set 'signal_pfs_loc'.
2966         Manually generate the unwind info for the AR.PFS register.
2967         (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
2968         ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
2969         (ia64_handle_unwabi): Test 'fs->unwabi' against them.
2970         Do not set 'pfs_loc' to the AR.PFS location in the signal context;
2971         instead set 'signal_pfs_loc'.
2972         Remove code preventing the AR.PFS register from being restored
2973         from the signal context.
2974
2975 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
2976             Tristan Gingold  <gingold@adacore.com>
2977
2978         * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
2979         * config/ia64/t-vms: New file.
2980         * config/ia64/vms64.h: New file.
2981         * config/ia64/vms.h: New file.
2982         * config/ia64/vms-crtinit.asm: New file.
2983         * config/ia64/vms_symvec_libgcc_s.opt: New file.
2984         * config/ia64/vms-unwind.h: New file.
2985
2986 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
2987
2988         * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
2989         TFmode compares.
2990
2991 2009-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2992
2993         PR middle-end/30789
2994         * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
2995         Move declaration...
2996         * real.h (do_mpc_arg2): ... here.
2997         * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
2998         and RDIV_EXPR.
2999
3000 2009-08-14  Rafael Avila de Espindola  <espindola@google.com>
3001
3002         * final.c (add_debug_prefix_map): Don't use GC memory for
3003         old_prefix and new_prefix.
3004
3005 2009-08-14  Richard Guenther  <rguenther@suse.de>
3006
3007         * ipa-prop.c (compute_complex_pass_through): If we cannot
3008         compute a non-varying offset for IPA_JF_ANCESTOR punt.
3009
3010 2009-08-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3011
3012         * c-lex.c (c_lex_with_flags): Increase size of local variable
3013         to avoid memory clobber.
3014
3015 2009-08-14  Paolo Bonzini  <bonzini@gnu.org>
3016
3017         PR target/40934
3018         * config/i386/i386.c (ix86_fp_comparison_strategy):
3019         Only enable/disable sahf at function granularity.
3020
3021 2009-08-14  Hans-Peter Nilsson  <hp@axis.com>
3022
3023         PR rtl-optimization/41064
3024         * reload1.c (reload_as_needed): Don't call extract_insn
3025         for known invalid replacements after calling
3026         validate_replace_rtx_group and verify_changes.
3027
3028 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
3029
3030         PR target/41019
3031         * config/i386/sse.md (SSEMODE124C8): New mode iterator.
3032         (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
3033         ix86_expand_fp_vcond.
3034         (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
3035         Assert that operation is supported by ix86_expand_int_vcond.
3036         (vcondu<SSEMODE124C8:mode>): Ditto.
3037
3038 2009-08-13  DJ Delorie  <dj@redhat.com>
3039
3040         * config/i386/djgpp-stdint.h: New.
3041         * config.gcc (djgpp): Use it.
3042
3043 2009-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
3044
3045         * config/sh/sh.c (sh_override_options): When flag_exceptions or
3046         flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
3047
3048 2009-08-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
3049
3050         * tree-ssa-loop-prefetch.c
3051         (prune_ref_by_group_reuse): Enhance probabilistic analysis
3052         for long-stride pruning.
3053         (compute_miss_rate): New function to compute the probability
3054         that two memory references access different cache lines.
3055
3056 2009-08-13  Dave Korn  <dave.korn.cygwin@gmail.com>
3057
3058         * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
3059
3060 2009-08-13  Richard Guenther  <rguenther@suse.de>
3061
3062         PR middle-end/41047
3063         * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
3064         use the constant pointer type.
3065         * gimplify.c (canonicalize_addr_expr): Canonicalize independent
3066         of CV qualifiers on the target pointer type.
3067         * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
3068         conversion check before restrict check.
3069
3070 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
3071
3072         PR target/41029
3073         * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
3074
3075 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
3076
3077         * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
3078
3079 2009-08-12  Richard Guenther  <rguenther@suse.de>
3080
3081         PR tree-optimization/41011
3082         * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
3083         and reference constructing.
3084
3085 2009-08-12  Xinliang David Li  <davidxl@google.com>
3086
3087         PR tree-optimization/41012
3088         * tree-flow.h : New external interface.
3089         * gimple-low.c (check_call_arg): Change to public function.
3090         Remove argument mismatch check in lowering.
3091         * tree-inline.h (tree_can_inline_p): Interface change.
3092         * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
3093         into this function.
3094         * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
3095         Call change to tree_can_inline_p function.
3096         (cgraph_decide_inlining_incrementally): Ditto.
3097
3098 2009-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
3099
3100         PR tree-optimization/41031
3101         * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
3102         on the partition variable rather than promote_mode on the source
3103         type.  Assert that the partition variable's type has the same
3104         mode as the source value's.
3105
3106 2009-08-12  Paolo Bonzini  <bonzini@gnu.org>
3107
3108         * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
3109         for for_return == 2.
3110         * function.c (assign_parm_setup_reg): Use for_return == 2, improve
3111         comments.
3112         * calls.c (expand_call): Fix typo.
3113         * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
3114         and PARM_DECL.
3115         * stmt.c (expand_value_return): Use promote_function_mode to copy out
3116         of pseudo.
3117         * targhooks.c (default_promote_function_mode): Handle for_return == 2.
3118         * config/cris/cris.c (cris_promote_function_mode): Likewise.
3119         * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
3120         * config/pa/pa.c (pa_promote_function_mode): Likewise.
3121
3122 2009-08-12  Andrew Haley  <aph@redhat.com>
3123
3124         * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
3125
3126 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
3127
3128         PR bootstrap/40103
3129         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
3130
3131 2009-08-12  Richard Guenther  <rguenther@suse.de>
3132
3133         * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
3134         * gimplify.c (gimplify_modify_expr): Do not use
3135         lang_hooks.types_compatible_p.
3136         * tree-ssa.c (useless_type_conversion_p): For aggregates
3137         just return false if the canonical types differ.
3138
3139 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
3140
3141         PR middle-end/40980
3142         * sese.c (convert_for_phi_arg): New.
3143         (add_guard_exit_phis): Use convert_for_phi_arg.
3144
3145 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
3146
3147         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
3148         unknown subscript upper bounds.
3149
3150 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
3151             Pranav Garg  <pranav.garg2107@gmail.com>
3152
3153         * graphite-interchange.c (gather_access_strides): Removed.
3154         (ppl_max_for_le): New.
3155         (build_linearized_memory_access): New.
3156         (memory_stride_in_loop): New.
3157         (pbb_interchange_profitable_p): Reimplemented.
3158         * graphite-ppl.h (ppl_new_id_map): New.
3159         (ppl_interchange): New.
3160
3161 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
3162
3163         * graphite-interchange.c (compute_subscript): Removed.
3164         (compute_array_size_cstr): Removed.
3165         (compute_array_size_poly): Removed.
3166         (compute_array_size): Removed.
3167         (gather_access_strides_poly): Removed.
3168         (gather_access_strides): Empty.
3169
3170 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
3171
3172         * graphite-dependences.c (dependence_polyhedron_1): Replace
3173         pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
3174         (graphite_legal_transform_dr): Same.
3175         (graphite_carried_dependence_level_k): Same.
3176         * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
3177         Initialize PDR_NB_SUBSCRIPTS.
3178         (print_pdr_access_layout): Replace pdr_nb_subscripts with
3179         PDR_NB_SUBSCRIPTS.
3180         * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
3181         (PDR_NB_SUBSCRIPTS): New.
3182         (pdr_nb_subscripts): Removed.
3183         (pdr_dim): Simplified.
3184         * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
3185         with PDR_NB_SUBSCRIPTS.
3186
3187 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
3188
3189         * graphite-interchange.c (compute_array_size): Remove use of
3190         PDR_DATA_CONTAINER.
3191         * graphite-poly.c (new_poly_dr): Remove argument data_container.
3192         Do not initialize PDR_DATA_CONTAINER.
3193         (print_pdr): Do not print PDR_DATA_CONTAINER.
3194         * graphite-poly.h (struct poly_dr): Remove data_container field.
3195         (PDR_DATA_CONTAINER): Removed.
3196         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
3197         PDR_DATA_CONTAINER.
3198         (build_poly_dr): Same.
3199
3200 2009-08-12  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
3201             Sebastian Pop  <sebastian.pop@amd.com>
3202
3203         * graphite-dependences.c (graphite_legal_transform_dr): Work on a
3204         copy of the dependence polyhedron.  Free the temporary objects.
3205         (graphite_carried_dependence_level_k): Free unused objects before
3206         returning.
3207
3208         * testsuite/gcc.dg/graphite/interchange-1.c: XFAILed.
3209         * testsuite/gcc.dg/graphite/interchange-2.c: XFAILed.
3210         * testsuite/gcc.dg/graphite/interchange-3.c: XFAILed.
3211         * testsuite/gcc.dg/graphite/interchange-4.c: XFAILed.
3212         * testsuite/gcc.dg/graphite/interchange-7.c: XFAILed.
3213
3214 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
3215
3216         * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
3217         Early return without analyzing the data dependences if no
3218         transform has been done.  Call restore_scattering if the transform
3219         is not legal.
3220         (graphite-interchange.c): Same.
3221         * graphite-poly.c (print_scattering_function): Test for
3222         PBB_TRANSFORMED.
3223         (graphite_read_transforms): Initialize PBB_TRANSFORMED.
3224         (apply_poly_transforms): Do not gcc_assert that
3225         the transform is legal.
3226         (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
3227         Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
3228         PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
3229         (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
3230         * graphite-poly.h (struct poly_scattering): New.
3231         (struct poly_bb): Add original, transformed, and saved fields.
3232         Remove transformed_scattering, original_scattering,
3233         nb_local_variables and nb_scattering_transform fields.
3234         (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
3235         (poly_scattering_new): New.
3236         (poly_scattering_free): New.
3237         (poly_scattering_copy): New.
3238         (store_scattering_pbb): New.
3239         (store_scattering): New.
3240         (restore_scattering_pbb): New.
3241         (restore_scattering): New.
3242         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
3243         Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
3244
3245 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
3246
3247         * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
3248         (print_scop): Same.
3249
3250 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
3251
3252         * Makefile.in (graphite.o): Depends on PREDICT_H.
3253         * graphite.c: Include predict.h.
3254         (graphite_finalize): Call tree_estimate_probability.
3255         * predict.c (predict_loops): Do not call scev_initialize and
3256         scev_finalize.
3257         (tree_estimate_probability_bb): New.
3258         (tree_estimate_probability): Do not initialize loops: move that
3259         code to the driver.  Call tree_estimate_probability_bb.
3260         (tree_estimate_probability_driver): New.
3261         (pass_profile): Use tree_estimate_probability_driver.
3262         * predict.h (tree_estimate_probability): Declared.
3263
3264 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
3265
3266         * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
3267         * graphite-dependences.c (graphite_legal_transform): Add time to
3268         TV_GRAPHITE_DATA_DEPS.
3269         (dependency_between_pbbs_p): Same.
3270         * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
3271
3272 2009-08-12  Andrey Belevantsev  <abel@ispras.ru>
3273
3274         PR rtl-optimization/41033
3275         * alias.c (nonoverlapping_component_refs_p): Punt when strict
3276         aliasing is disabled.
3277
3278 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
3279
3280         * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
3281         si_mask_operand, and_load_operand, low_bitmask_operand,
3282         and_reg_operand, and_operand): New predicates.
3283         * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
3284         * config/mips/mips.c (and_operands_ok): New function.
3285         * config/mips/mips-protos.h (and_operands_ok): Declare it.
3286         * config/mips/mips.md (move_type): Add ext_ins and logical.
3287         (type): Handle them.
3288         (and<mode>3): Use and_reg_operand as the second operand's predicate.
3289         (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
3290         shift_shift.  Remove commutative constraint modifier.
3291         (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
3292         shift_shift.
3293         (*clear_upper32_dext): Remove define_insn_and_split.
3294         (*clear_upper32): Turn this define_insn_and_split ...
3295         (splitter for ANDing register with 0xffff_ffff): .. into this.
3296
3297 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
3298
3299         * combine.c (try_widen_shift_mode): Factor out code to check if an
3300         integer constant is a low-order bitmask from here ...
3301         * rtlanal.c (low_bitmask_len): ... to here.
3302         * rtl.h (low_bitmask_len): Declare.
3303
3304 2009-08-11  Uros Bizjak  <ubizjak@gmail.com>
3305
3306         PR target/8603
3307         * config/alpha/alpha.md (addsi3): Remove expander.
3308         (addsi3): Rename from *addsi3_internal insn pattern.
3309         (subsi3): Remove expander.
3310         (subsi3): Rename from *subsi3_internal insn pattern.
3311
3312 2009-08-11  Douglas B Rupp  <rupp@gnat.com>
3313
3314         * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
3315         FWRITE_UNLOCKED.
3316
3317 2009-08-11  Vasiliy Fofanov  <fofanov@adacore.com>
3318             Eric Botcazou  <botcazou@adacore.com>
3319             Douglas B Rupp  <rupp@gnat.com>
3320
3321         * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
3322         that records that fit in 64 bits are returned by immediate value,
3323         as required by OpenVMS Calling Standard.
3324         (function_value): Adjust for above modification.
3325         (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
3326         virtual_incoming_args_rtx as base object, not next_arg.
3327         * config/alpha/vms.h: (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
3328
3329 2009-08-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3330
3331         * reload.c (find_reloads_subreg_address): Check the original
3332         req_equiv_mem address to detect the case where an address is
3333         not valid in the outer mode.
3334
3335 2009-08-11  Richard Guenther  <rguenther@suse.de>
3336
3337         PR bootstrap/40788
3338         * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
3339
3340 2009-08-10  Douglas B Rupp  <rupp@gnat.com>
3341
3342         * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
3343         (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
3344
3345 2009-08-10  Olivier Hainque  <hainqueu@adacore.com>
3346             Douglas B Rupp  <rupp@gnat.com>
3347
3348         * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
3349         PT_STACK when frame_pointer_needed on OpenVMS.
3350         (alpha_pv_save_size, alpha_using_fp): Remove.
3351         (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
3352         with proper processing for PT_NULL.
3353         (alpha_vms_initial_elimination_offset): New function. Support for
3354         INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
3355         (alpha_sa_size): Force procedure type to PT_STACK when
3356         frame_pointer_needed on OpenVMS.
3357         * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
3358         (alpha_using_fp): Likewise.
3359         (alpha_vms_can_eliminate): Add prototype.
3360         (alpha_vms_initial_elimination_offset): Likewise.
3361         * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
3362         Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
3363
3364 2009-08-10  Eric Botcazou  <botcazou@adacore.com>
3365             Douglas B Rupp  <rupp@gnat.com>
3366
3367         * config/alpha/alpha.c (common_object_handler): New function.
3368         (vms_attribute_table): Declare a single attribute "common_object".
3369         (vms_output_aligned_decl_common): New global function.
3370         (SECTION_VMS_OVERLAY): Delete.
3371         (SECTION_VMS_GLOBAL): Likewise.
3372         (SECTION_VMS_INITIALIZE): Likewise.
3373         (vms_asm_named_section): Remove support for above flags.
3374         (vms_section_type_flags): Delete.
3375         (TARGET_SECTION_TYPE_FLAGS): Likewise.
3376         * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
3377         * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
3378         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
3379
3380 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
3381
3382         PR target/41015
3383         * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
3384         (sub_ddmmss): Likewise.
3385
3386 2009-08-10  Andreas Tobler  <a.tobler@schweiz.org>
3387
3388         PR bootstrap/41018
3389         * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
3390         year.
3391
3392 2009-08-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3393
3394         PR target/37053
3395         * reload1.c (reload_as_needed): Use cancel_changes to completely
3396         undo a failed replacement attempt.
3397
3398 2009-08-10  Richard Guenther  <rguenther@suse.de>
3399
3400         PR middle-end/41006
3401         * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
3402         (useless_type_conversion_p): ... here.  Require pointer targets
3403         to be compatible.
3404
3405 2009-08-10  Dodji Seketeli  <dodji@redhat.com>
3406
3407         PR c++/40866
3408         * tree-inline.c (copy_statement_list): The resulting copy shouldn't
3409         loose the original type of the statement list.
3410
3411 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
3412
3413         * config/alpha/alpha.c: Include libfuncs.h
3414         (avms_asm_output_extern): New function.
3415         (alpha_init_libfuncs): Init some decc libfuncs.
3416         * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
3417         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
3418         (DO_CRTL_NAMES): Define.
3419         (LIB_SPEC): Remove.
3420         * config/alpha/vms64.h: (POINTERS_EXTEND_UNSIGNED): Remove undef.
3421         (LONG_TYPE_SIZE): Define.
3422         (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
3423         (SUBTARGET_SWITCHES): Define malloc64 switch.
3424         (TARGET_DEFAULT): Default MASK_MALLOC64 set.
3425         (MASK_RETURN_ADDR): Define.
3426         doc/invoke.texi (mmalloc64): Document switch.
3427
3428 2009-08-09  Olivier Hainque  <hainque@adacore.com>
3429             Douglas B Rupp  <rupp@gnat.com>
3430
3431         * config/alpha/alpha.c (struct machine_function): New flag for VMS,
3432         uses_condition_handler.
3433         (alpha_expand_builtin_establish_vms_condition_handler): New expander.
3434         (alpha_expand_builtin_revert_vms_condition_handler): New expander.
3435         (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
3436         and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
3437         (code_for_builtin): New insn codes for the new alpha_builtins.
3438         (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
3439         (alpha_sa_size): Account for uses_condition_handler.
3440         (alpha_expand_prologue): Likewise.
3441         (alpha_start_function): Likewise.
3442         (alpha_expand_epilogue): Likewise.
3443         * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
3444         establish/revert expanders.
3445         * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
3446         * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
3447         New expander, resorting to the alpha.c associated function.
3448         (builtin_revert_vms_condition_handler): Likewise.
3449         * config/alpha/vms-gcc_shell_handler.c: New file. Implements
3450         __gcc_shell_handler, the static VMS condition handler used as
3451         an indirection wrapper to the current dynamically established
3452         handler.
3453         * config/alpha/vms-unwind.h: Complete rewrite.
3454         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
3455         * config/alpha/vms.h (MD_UNWIND_SUPPORT):
3456
3457 2009-08-09  Eric Botcazou  <botcazou@adacore.com>
3458             Douglas B Rupp  <rupp@gnat.com>
3459
3460         * config/alpha/alpha.c (alpha_links): Add 'target' field.
3461         (alpha_need_linkage): Handle aliases.  Return function symbol.
3462         (alpha_use_linkage): Rename 'linkage' argument to 'func'.
3463         Use ultimate alias target for the linkage name.
3464         * config/alpha/alpha.md (movmemdi): Use the symbol returned
3465         by alpha_need_linkage for the function symbol.
3466         (setmemdi): Likewise.
3467
3468 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
3469
3470         * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
3471         * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
3472         (ASM_WEAKEN_LABEL): Define.
3473         (CRT_CALL_STATIC_FUNCTION): Define.
3474         (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
3475         (ENDFILE_SPEC): Define.
3476         (INIT_SECTION_ASM_OP): Define.
3477         * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
3478         * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
3479         crtend.o crtendS.o.
3480         (MULTILIB_OSDIRNAMES): Define.
3481         (shlib_version): Define.
3482         (SHLIB_EXT): Define.
3483         (SHLIB_OBJS): Define.
3484         (SHLIB_NAME): Define.
3485         (SHLIB_MULTILIB): Define.
3486         (SHLIB_INSTALL): Define.
3487         (SHLIB_SYMVEC): Define.
3488         (SHLIB_SYMVECX2): Define.
3489         (SHLIB_LINK): Define.
3490
3491 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
3492
3493         * config/alpha/alpha.c (alpha_initialize_trampoline):
3494         Initialize VMS trampoline IAW ABI for bounded procedure calls.
3495         (alpha_start_function): Emit transfer address on nested functions
3496         for VMS trampoline call.
3497         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
3498         since no longer used.
3499         * config/alpha/vms-tramp.asm: Remove.
3500         * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
3501         since now only data initialized at runtime.
3502
3503 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
3504
3505         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
3506         (LINK_GCC_C_SEQUENCE_SPEC): Define.
3507         (MD_EXEC_PREFIX): Remove, no longer used.
3508         (MD_STARTFILE_PREFIX): Likewise.
3509         (INCLUDE_DEFAULTS): Likewise.
3510         * config/alpha/t-vms:
3511         (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
3512
3513 2009-08-09  Richard Guenther  <rguenther@suse.de>
3514
3515         PR tree-optimization/41016
3516         * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
3517         (operand_precision): Remove.
3518         (integral_operand_p): Likewise.
3519         (recognize_single_bit_test): Adjust.
3520
3521 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
3522
3523         * c-common.c (c_fully_fold_internal): Issue a warning if a binary
3524         operation overflows.  Likewise non-cast unary arithmetic.
3525         If one arm of a conditional expression is always taken,
3526         inhibit evaluation warnings for the other arm.  Likewise inhibit
3527         evaluation warnings for the second && or || operand if the first
3528         operand is enough to determine the result.
3529         * c-typeck.c (build_conditional_expr): Apply the same inhibition
3530         rules here.
3531         (build_binary_op): Prevent duplicate evaluation warnings.
3532
3533 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
3534
3535         * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
3536         and destination have different modes, Use promote_mode to
3537         determine the signedness of the conversion.  Assert that the
3538         promoted source mode matches the destination mode.  Don't pass
3539         the destination and destination mode to expand_expr if the source
3540         mode is different.  Simplify conversion logic.
3541
3542 2009-08-09  Ira Rosen  <irar@il.ibm.com>
3543
3544         PR tree-optimization/41008
3545         * tree-vect-loop.c (vect_is_simple_reduction): Get operands
3546         from condition only in case it's a comparison. Adjust checks.
3547
3548 2009-08-09  Bernd Schmidt  <bernd.schmidt@analog.com>
3549
3550         * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
3551         * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
3552         * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
3553         (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
3554         (dump_cand): Handle them.
3555         (struct iv_cand): New members COST_STEP and AINC_USE.
3556         (stmt_after_increment): Likewise.
3557         (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos.  All
3558         callers changed.  Use gimple_uid comparison instead of scanning.
3559         (add_candidate_1): When looking for identical candidates, take
3560         AINC_USE into account.  Set it for new candidates.
3561         (force_expr_to_var_cost): Cast target_spill_cost to int.
3562         (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
3563         All callers changed.  Check for availability of autoinc addressing
3564         modes, both in general for a given mode, and in the specific use case.
3565         (get_computation_cost_at): New argument CAN_AUTOINC.  All callers
3566         changed.
3567         (get_computation_cost): Likewise.
3568         (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
3569         add_autoinc_candidates): New static functions.
3570         (add_candidate): Call add_autoinc_candidates for candidates based on
3571         a USE_ADDRESS use.
3572         (find_iv_candidates): Call set_autoinc_for_original_candidates.
3573         (determine_use_iv_cost_address): If we have an autoinc candidate at
3574         the matching use, verify autoinc is possible and subtract the cost
3575         of the candidate's step from the cost.
3576         (determine_iv_cost): Record the cost of the increment in the COST_STEP
3577         member of the candidate.
3578         (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
3579         determine_use_iv_costs.  Call renumber_gimple_stmt_uids_in_blocks.
3580
3581 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
3582
3583         * config.build (ia64-hp-*vms*): New target.
3584         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
3585         with ia64-hp-*vms*.
3586         * config.gcc (ia64-hp-*vms*): New target.
3587         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
3588         with ia64-hp-*vms*.
3589         * config.host (ia64-hp-*vms*): New target.
3590         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
3591         with ia64-hp-*vms*.
3592
3593 2009-08-08  Richard Guenther  <rguenther@suse.de>
3594
3595         PR tree-optimization/40991
3596         * tree-ssa-pre.c (eliminate): Delay purging EH edges.
3597
3598 2009-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
3599
3600         * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
3601         mode check.  Do truncations in an integer mode.
3602         (force_to_mode): Handle subregs for all mode types.  Only do
3603         arithmetic simplifications on integer modes.
3604
3605 2009-08-07  Richard Guenther  <rguenther@suse.de>
3606
3607         PR tree-optimization/40999
3608         * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
3609         (maybe_fold_reference): Lookup constant initializers.
3610         (fold_gimple_assign): Likewise.
3611
3612 2009-08-07  Richard Guenther  <rguenther@suse.de>
3613
3614         * tree-ssa.c (useless_type_conversion_p_1): Only for types
3615         that require structural equality defer to the langhook.
3616
3617 2009-08-07  Martin Jambor  <mjambor@suse.cz>
3618
3619         * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
3620         comments.
3621         (struct ipa_pass_through_data): New type.
3622         (struct ipa_ancestor_jf_data): New type.
3623         (union jump_func_value): Removed field formal_id, added fields
3624         pass_through and ancestor.
3625         (struct ipa_param_call_note): Changed type of formal_id to int from
3626         unsigned.
3627         * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
3628         operations jump functions and ancestor jump functions.
3629         (compute_complex_pass_through): New function.
3630         (compute_scalar_jump_functions): Call compute_complex_pass_through,
3631         reflect changes in the jump function strucutre.
3632         (update_jump_functions_after_inlining): Ignore complex pass-through
3633         and ancestor jump functions.
3634         * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
3635         polynomial pass-through with operation jump functions.
3636
3637 2009-08-07  Jakub Jelinek  <jakub@redhat.com>
3638
3639         * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
3640         fde->dw_fde_begin as begin label instead of hot/cold label.
3641         Use LLSDAC label instead of LLSDA for second section lsda.
3642         (dwarf2out_do_cfi_startproc): Add SECOND argument.  Use LLSDAC
3643         label instead of LLSDA if it is true.
3644         (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
3645         callers.
3646         * except.c (add_call_site, dw2_size_of_call_site_table): Add
3647         SECTION argument.  Use it as index into crtl->eh.call_site_record
3648         array.
3649         (dw2_output_call_site_table): Likewise.  Add CS_FORMAT argument,
3650         use it to determine how to print table entries instead of using
3651         #ifdef HAVE_AS_LEB128.  For SECTION > 0 use hot resp. cold
3652         label instead of normal begin label as base.
3653         (sjlj_assign_call_site_values): Adjust add_call_site caller.
3654         (convert_to_eh_region_ranges): When doing hot/cold partitioning,
3655         ensure no EH range spans between sections and that landing pads
3656         are always in the corresponding section.
3657         (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
3658         for crtl->eh.call_site_record being an array rather than scalar.
3659         (output_one_function_exception_table): New function, copied
3660         from output_function_exception_table.  Adjust
3661         dw2_size_of_call_site_table, dw2_output_call_site_table
3662         callers.  For SECOND section use *C suffixed labels.
3663         (output_function_exception_table): Call
3664         output_one_function_exception_table and, when doing hot/cold
3665         partitioning, also another time for the second section.
3666         * opts.c: Include except.h.
3667         (decode_options): Allow -freorder-blocks-and-partition with
3668         exceptions, unless SJLJ or TARGET_UNWIND_INFO.
3669         * Makefile.in (opts.o): Depend on $(EXCEPT_H).
3670         * function.h (struct rtl_eh): Change call_site_record from
3671         scalar into array of 2 elements.
3672
3673 2009-08-07  Martin Jambor  <mjambor@suse.cz>
3674
3675         * ipa-prop.c (count_formal_params_1): New function.
3676         (ipa_get_vector_of_formal_parms): New function.
3677         (get_vector_of_formal_parm_types): New function.
3678         (ipa_modify_formal_parameters): New function.
3679         (ipa_modify_call_arguments): New function.
3680         (index_in_adjustments_multiple_times_p): New function.
3681         (ipa_combine_adjustments): New function.
3682         (ipa_dump_param_adjustments): New function.
3683         * ipa-prop.h (struct ipa_parm_adjustment): New type.
3684         (ipa_get_vector_of_formal_parms): Declare.
3685         (ipa_modify_formal_parameters): Declare.
3686         (ipa_modify_call_arguments): Declare.
3687         (ipa_combine_adjustments): Declare.
3688         (ipa_dump_param_adjustments): Declare.
3689         (build_ref_for_offset): Declare.
3690         * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
3691         * tree-sra.c: Include ipa-prop.c.
3692         (build_ref_for_offset): Make public.
3693
3694 2009-08-06  Neil Vachharajani  <nvachhar@gmail.com>
3695
3696         * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
3697
3698 2009-08-06  Thomas Schwinge  <tschwinge@gnu.org>
3699
3700         * gcc/doc/extend.texi (__builtin_extract_return_address)
3701         (__builtin_frob_return_address): Document.
3702
3703 2009-08-06  Paul Brook  <paul@codesourcery.com>
3704
3705         * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
3706         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
3707         implementation on ARMv6-M.
3708
3709 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
3710
3711         * doc/extend.texi (pcs): Document new attribute for ARM.
3712
3713 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
3714
3715         * arm.c (pcs_attribute_args): Comment out unsupported attribute
3716         variants.
3717
3718 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
3719
3720         * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
3721         warning ().
3722
3723 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
3724
3725         * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
3726
3727 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
3728
3729         Merge ARM/hard_vfp_branch to trunk.
3730
3731         2009-08-04  Richard Earnshaw  <rearnsha@arm.com>
3732
3733         * arm.c (libcall_eq): New function.
3734         (libcall_hash): New function.
3735         (add_libcall): New function.
3736         (arm_libcall_uses_aapcs_base): New function.
3737         (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
3738         libcalls using the base PCS.
3739         (arm_init_cumulative_args): Likewise.
3740
3741         2009-07-20  Joseph Myers  <joseph@codesourcery.com>
3742
3743         * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
3744         Use base ABI for conversion libfuncs between HFmode and SFmode.
3745
3746         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
3747
3748         * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
3749         V4SImode as representatives of all 64-bit and 128-bit vector
3750         types.  Allow vector types without vector modes.
3751         (aapcs_vfp_is_call_or_return_candidate): Handle vector types
3752         without vector modes like BLKmode.
3753         (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
3754         BLKmode.  Avoid unsupported vector modes or TImode moves for
3755         non-TARGET_NEON.
3756         (aapcs_vfp_allocate_return_reg): Likewise.
3757         (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
3758         V8QImode if TARGET_NEON || TARGET_IWMMXT.
3759
3760         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
3761
3762         * config/arm/arm.c (arm_handle_pcs_attribute): New.
3763         (arm_get_pcs_model): Pass attribute arguments to
3764         arm_pcs_from_attribute.
3765         (arm_init_cumulative_args): Use base AAPCS for conversions from
3766         floating-point types to DImode.
3767         (arm_attribute_table): Add pcs attribute.
3768         (arm_handle_pcs_attribute): New.
3769         * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
3770         conversions from floating-point types to DImode, also declare them
3771         to use base AAPCS and declare functions they call to use base
3772         AAPCS and their RTABI names.
3773
3774         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
3775
3776         * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
3777         -mfloat-abi=hard not being supported for VFP.
3778
3779         2009-05-11  Kazu Hirata  <kazu@codesourcery.com>
3780
3781         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
3782         SYMBOL_REF to hard_libcall_value.
3783
3784         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
3785             Richard Earnshaw  <rearnsha@arm.com>
3786
3787         * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
3788         has been put on the stack, all remaining co-processory arguments for
3789         that co-processor also go on the stack.
3790
3791         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
3792
3793         * config/arm/arm.c (arm_return_in_memory): Handle returning
3794         vectors of suitable size in registers also for AAPCS case.
3795
3796         2009-01-13  Richard Earnshaw <rearnsha@arm.com>
3797
3798         * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
3799
3800         2008-12-09  Richard Earnshaw <rearnsha@arm.com>
3801
3802         ARM Hard-VFP calling convention
3803         * target-def.h (TARGET_LIBCALL_VALUE): New hook.
3804         * target.h (gcc_target): Add libcall_value to table of call hooks.
3805         * targhooks.h (default_libcall_value): Default implementation.
3806         * targhooks.c (default_libcall_value): Likewise.
3807         * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
3808         * optabs.c (expand_unop): Use it.
3809         * expr.h (hard_libcall_value): Pass the function RTX through.
3810         * calls.c (emit_library_call_value_1): Update call to
3811         hard_libcall_value.
3812         * explow.c (hard_libcall_value): Use new target hook.
3813         * testsuite/lib/target-supports.exp
3814         (check_effective_target_arm_hard_vfp_ok): New hook.
3815         (check_effective_target_arm_neon_ok): Improve test for neon
3816         availability.
3817         * testsuite/gcc.target/arm/eabi1.c: Only run test in base variant.
3818         * config/arm/arm.c: Include cgraph.h
3819         (TARGET_FUNCTION_VALUE): Override default hook.
3820         (arm_pcs_default): New variable.
3821         (arm_override_options): Don't fault hard calling convention with VFP.
3822         Add support for AAPCS variants.
3823         (arm_function_value): Make static.  Handle AAPCS variants.
3824         (arm_libcall_value): New function.
3825         (arm_apply_result_size): Handle VFP registers in results.
3826         (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
3827         conventions.
3828         (pcs_attribute_args): New variable.
3829         (arm_pcs_from_attribute): New function.
3830         (arm_get_pcs_model): New function.
3831         (aapcs_vfp_cum_init): New function.
3832         (aapcs_vfp_sub_candidate): New function.
3833         (aapcs_vfp_is_return_candidate): New function.
3834         (aapcs_vfp_is_call_candidate): New function.
3835         (aapcs_vfp_allocate): New function.
3836         (aapcs_vfp_allocate_return_reg): New function.
3837         (aapcs_vfp_advance): New function.
3838         (aapcs_cp_arg_layout): New variable.
3839         (aapcs_select_call_coproc): New function.
3840         (aapcs_select_return_coproc): New function.
3841         (aapcs_allocate_return_reg): New function.
3842         (aapcs_libcall_value): New function.
3843         (aapcs_layout_arg): New function.
3844         (arm_init_cumulative_args): Initialize AAPCS args data.
3845         (arm_function_arg): Handle AAPCS variants using new interface.
3846         (arm_arg_parital_bytes): Likewise.
3847         (arm_function_arg_advance): New function.
3848         (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
3849         calling conventions.
3850         (arm_setup_incoming_varargs): Handle new AAPCS args data.
3851         * arm.h (NUM_VFP_ARG_REGS): Define.
3852         (LIBCALL_VALUE): Update.
3853         (FUNCTION_VALUE): Delete.
3854         (FUNCTION_VALUE_REGNO_P): Add VFP regs.
3855         (arm_pcs): New enum.
3856         (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
3857         (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
3858         (FUNCTION_ARG_REGNO_P): Add VFP regs.
3859         * arm-protos.h (arm_function_arg_advance): Add.
3860         (aapcs_libcall_value): Add.
3861         (arm_function_value): Delete.
3862
3863 2009-08-06  Uros Bizjak  <ubizjak@gmail.com>
3864             H.J. Lu  <hongjiu.lu@intel.com>
3865
3866         PR target/40957
3867         * config/i386/i386.c (standard_sse_mode_p): Remove.
3868         (standard_sse_constant_p): Return 2 for integer mode
3869         vector_all_ones_operand when SSE2 is enabled.
3870         (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
3871         (ix86_expand_vector_move): Do not check for negative values from
3872         standard_sse_constant_p.
3873
3874 2009-08-06  Richard Guenther  <rguenther@suse.de>
3875
3876         * tree-ssa.c (useless_type_conversion_p_1): Make function and
3877         array type comparisons frontend independent.
3878         * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
3879         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
3880         out array reference lower bound and element size operands.
3881         (ao_ref_init_from_vn_reference): Properly compute the offset
3882         for ARRAY_RANGE_REF.
3883         (vn_reference_fold_indirect): Fill out array reference lower
3884         bound and element size operands.
3885         * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
3886         a non gimple valued reference operand which can happen for
3887         array reference lower bound or element size.
3888         (create_component_ref_by_pieces_1): Properly generate the
3889         element size operand for array references.
3890
3891 2009-08-06  Richard Guenther  <rguenther@suse.de>
3892
3893         PR tree-optimization/40964
3894         * tree.c (iterative_hash_host_wide_int): Export.
3895         * tree.h (iterative_hash_host_wide_int): Declare.
3896         * tree-ssa-structalias.c (heapvar_map): New struct.
3897         (heapvar_map_eq): New function.
3898         (heapvar_map_hash): Likewise.
3899         (heapvar_lookup): Adjust.
3900         (heapvar_insert): Likewise.
3901         (make_constraint_from_heapvar): Allow multiple heap variables
3902         per decl at different offsets.
3903         (init_alias_heapvars): Adjust.
3904
3905 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
3906
3907         * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
3908         * mips_output_sync_loop (mips_output_sync_loop): Only emit
3909         trailing sync if TARGET_SYNC_AFTER_SC.
3910
3911 2009-08-05  David Daney  <ddaney@caviumnetworks.com>
3912
3913         * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
3914         compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
3915         sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
3916         sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
3917         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
3918         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
3919         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
3920         sync_new_nand<mode>, sync_lock_test_and_set<mode>,
3921         test_and_set_12): Rewrite calls to mips_output_sync_loop.
3922         * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
3923         the prototype declaration match the definition.
3924         * gcc/config/mips/mips.c (mips_output_sync_loop):  Emit sync
3925         instructions explicitly.  Add barrier_before and operands
3926         parameters.
3927         * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
3928         MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
3929         MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
3930         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
3931         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
3932         MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
3933
3934 2009-08-05  Andrew Pinski  <pinskia@gmail.com>
3935
3936         * tree-ssa-alias.c: Fix intervals to use [) syntax.
3937
3938 2009-08-05  Uros Bizjak  <ubizjak@gmail.com>
3939             Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
3940
3941         PR target/40906
3942         * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
3943         source operand.
3944
3945 2009-08-05  Jakub Jelinek  <jakub@redhat.com>
3946
3947         PR rtl-optimization/40924
3948         * dse.c (canon_address): Before calling cselib_expand_value_rtx
3949         make sure canon_rtx (mem_address) isn't simpler than
3950         canon_rtx (expanded_mem_address).
3951
3952 2009-08-05  Li Feng  <nemokingdom@gmail.com>
3953
3954         * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
3955         for each poly_bb_p.
3956         (build_scop_drs): Build alias set for each SCoP.
3957
3958 2009-08-04  Sandra Loosemore  <sandra@codesourcery.com>
3959
3960         * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
3961         * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
3962         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
3963         (MIPS_ARCH_FLOAT_SPEC): Likewise.
3964         (BASE_DRIVER_SELF_SPECS): Likewise.
3965
3966 2009-08-04  Andrew Pinski  <pinskia@gmail.com>
3967
3968         * tree-ssa-alias.c: Fix some comment typos.
3969
3970 2009-08-04  Kaz Kojima  <kkojima@gcc.gnu.org>
3971
3972         * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
3973         ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
3974
3975 2009-08-03  Janis Johnson  <janis187@us.ibm.com>
3976
3977         PR c/39902
3978         * simplify-rtx.c (simplify_binary_operation_1): Disable
3979         simplifications for decimal float operations.
3980
3981 2009-08-03  Jakub Jelinek  <jakub@redhat.com>
3982
3983         PR middle-end/40943
3984         * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
3985         operand of INDIRECT_REF.
3986
3987 2009-08-03  Uros Bizjak  <ubizjak@gmail.com>
3988
3989         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
3990         constants referencing TLS symbols.
3991
3992 2009-08-03  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
3993
3994         * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
3995         __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
3996
3997 2009-08-03  Richard Guenther  <rguenther@suse.de>
3998
3999         * tree.c (make_vector_type): Build a main variant first,
4000         get the canonical one and then build the variant.
4001         * tree-ssa.c (useless_type_conversion_p_1): Handle
4002         fixed-point types.
4003         (useless_type_conversion_p): Conversions to pointers to
4004         incomplete record types are useless.
4005
4006 2009-08-03  Richard Guenther  <rguenther@suse.de>
4007
4008         * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
4009         file will be created.
4010         * omp-low.c (pass_diagnose_omp_blocks): Likewise.
4011         * toplev.c (compile_file): Adjust comment.
4012
4013 2009-08-03  Kaz Kojima  <kkojima@gcc.gnu.org>
4014
4015         * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
4016         * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
4017         (TARGET_PROMOTE_FUNCTION_MODE): Define.
4018         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
4019         (sh_promote_function_mode): Fix typo.
4020
4021 2009-08-03  Andreas Krebbel  <krebbel1@de.ibm.com>
4022
4023         * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
4024
4025 2009-08-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4026
4027         * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
4028         declaration arguments.
4029
4030 2009-08-02  Uros Bizjak  <ubizjak@gmail.com>
4031
4032         * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
4033         of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
4034         (ix86_split_ashl): Ditto.
4035         (ix86_expand_vector_init_one_nonzero): Ditto.
4036         (ix86_expand_vector_set): Ditto.
4037         (ix86_expand_reduc_v4sf): Ditto.
4038
4039 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
4040
4041         * explow.c (promote_function_mode): Remove assert.
4042         * config/sh/sh.c (sh_promote_function_mode): Declare.
4043
4044 2009-08-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4045
4046         * config/pa/pa.c (pa_promote_function_mode): Declare.
4047         Change to static.  Fix promote_mode call.
4048
4049         * gthr-dce.h (CONST_CAST2): Define if not defined.
4050         (__gthread_setspecific): Use CONST_CAST2 to fix warning.
4051
4052         * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
4053
4054 2009-08-01  Paolo Bonzini  <bonzini@gnu.org>
4055
4056         * expr.c (store_constructor): Use promote_decl_mode.  Remove
4057         now write-only variable unsignedp.
4058         (expand_expr_real_1): Use promote_decl_mode.
4059         * expr.h (promote_function_mode, promote_decl_mode): New.
4060         (promote_mode): Remove last argument.
4061         * function.c (assign_temp): Drop last argument of promote_mode.
4062         (assign_parm_find_data_types): Use promote_function_mode.
4063         (assign_parm_setup_reg): Likewise.
4064         (expand_function_end): Use promote_function_mode.
4065         * calls.c (initialize_argument_information): Use promote_function_mode.
4066         (precompute_arguments): Use promote_mode instead of checking if
4067         only PROMOTE_FUNCTION_MODE is defined.
4068         (expand_call): When making sibcall decisions, use promote_function_mode.
4069         Below, remove an if for targetm.calls.promote_function_return and
4070         and use promote_function_mode.
4071         (emit_library_call_value_1): Use promote_function_mode, fix bug
4072         where promote_mode was passed FOR_CALL == 0 for a return value in an
4073         assertion.
4074         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
4075         * explow.c (promote_function_mode, promote_decl_mode): New.
4076         (promote_mode): Keep only the FOR_CALL == 0 case.
4077         * combine.c (setup_incoming_promotion): Remove test of
4078         promote_function_args.  Use promote_function_mode.
4079         * stmt.c (expand_value_return): Use promote_decl_mode.
4080         (expand_decl): Use promote_decl_mode.
4081
4082         * expr.c (store_constructor): Use promote_decl_mode.  Remove
4083         now write-only variable unsignedp.
4084         (expand_expr_real_1): Use promote_decl_mode.
4085         * expr.h (promote_function_mode, promote_decl_mode): New.
4086         (promote_mode): Remove last argument.
4087         * function.c (assign_temp): Drop last argument of promote_mode.
4088         (assign_parm_find_data_types): Use promote_function_mode.
4089         (assign_parm_setup_reg): Likewise.
4090         (expand_function_end): Use promote_function_mode.
4091         * calls.c (initialize_argument_information): Use promote_function_mode.
4092         (precompute_arguments): Use promote_mode instead of checking if
4093         only PROMOTE_FUNCTION_MODE is defined.
4094         (expand_call): When making sibcall decisions, use promote_function_mode.
4095         Below, remove an if for targetm.calls.promote_function_return and
4096         and use promote_function_mode.
4097         (emit_library_call_value_1): Use promote_function_mode, fix bug
4098         where promote_mode was passed FOR_CALL == 0 for a return value in an
4099         assertion.
4100         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
4101         * explow.c (promote_function_mode, promote_decl_mode): New.
4102         (promote_mode): Keep only the FOR_CALL == 0 case.
4103         * combine.c (setup_incoming_promotion): Remove test of
4104         promote_function_args.  Use promote_function_mode.
4105         * stmt.c (expand_value_return): Use promote_decl_mode.
4106         (expand_decl): Use promote_decl_mode.
4107
4108         * explow.c (promote_function_mode): Just call the target hook.
4109         * targhooks.c (default_promote_function_mode,
4110         default_promote_function_mode_always_promote): New.
4111         * targhooks.h (default_promote_function_mode,
4112         default_promote_function_mode_always_promote): Declare.
4113         * target.h (promote_function_args, promote_function_return): Remove.
4114         (promote_function_mode): New.
4115         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
4116         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
4117         (TARGET_PROMOTE_FUNCTION_MODE): New.
4118         (TARGET_CALLS): Adjust.
4119         * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
4120         TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
4121
4122         * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
4123         * config/s390/s390.c (s390_promote_function_mode): ... here,
4124         with pointer handling.
4125         (TARGET_PROMOTE_FUNCTION_MODE): Define.
4126         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
4127
4128         * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
4129         * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
4130         with pointer handling.
4131         (TARGET_PROMOTE_FUNCTION_MODE): Define.
4132         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
4133
4134         * config/sh/sh-protos.h (sh_promote_function_mode): New.
4135         * config/sh/sh.c (sh_promote_function_mode): New.
4136         (TARGET_PROMOTE_FUNCTION_MODE): Define.
4137         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
4138
4139         * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
4140         * config/cris/cris.c (cris_promote_function_mode): ... here.
4141         (TARGET_PROMOTE_FUNCTION_MODE): Define.
4142         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
4143
4144         * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
4145         * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
4146         (TARGET_PROMOTE_FUNCTION_MODE): Define.
4147         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
4148
4149         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
4150         * config/arm/arm.c (arm_promote_function_mode): ... here, without
4151         complex type handling.
4152         (TARGET_PROMOTE_FUNCTION_MODE): Define.
4153         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
4154
4155         * config/pa/pa.c (pa_promote_function_mode): New.
4156         (TARGET_PROMOTE_FUNCTION_MODE): Define.
4157         (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
4158
4159         * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
4160         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
4161         (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
4162         * config/xtensa/xtensa.c: Likewise.
4163         * config/stormy16/stormy16.c: Likewise.
4164         * config/iq2000/iq2000.c: Likewise.
4165         * config/rs6000/rs6000.c: Likewise.
4166         * config/picochip/picochip.c: Likewise.
4167         * config/arc/arc.c: Likewise.
4168         * config/mcore/mcore.c: Likewise.
4169         * config/score/score.c: Likewise.
4170         * config/mips/mips.c: Likewise.
4171         * config/bfin/bfin.c: Likewise.
4172         * config/ia64/ia64.c: Likewise (disabled though).
4173
4174         * config/frv/frv.h: Remove pointless remark.
4175
4176         * doc/tm.texi (PROMOTE_FUNCTION_MODE,
4177         TARGET_PROMOTE_FUNCTION_ARGS,
4178         TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
4179         (TARGET_PROMOTE_FUNCTION_MODE): ... this.
4180
4181 2009-08-01  Sebastian Pop  <sebastian.pop@amd.com>
4182
4183         * doc/invoke.texi (-fgraphite-force-parallel): Renamed
4184         -floop-parallelize-all.
4185         * toplev.c (process_options): Rename flag_graphite_force_parallel to
4186         flag_loop_parallelize_all.
4187         * tree-ssa-loop.c (gate_graphite_transforms): Same.
4188         * graphite.c (graphite_transform_loops): Same.
4189         * common.opt: Same.
4190         * graphite-poly.c (apply_poly_transforms): Same.
4191
4192 2009-07-31  Richard Earnshaw  <rearnsha@arm.com>
4193
4194         PR tree-optimization/40914
4195         * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
4196         if set, then check the delta field of the PMF record.
4197         (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
4198         (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
4199         call is stored in the delta.
4200
4201 2009-07-31  Adam Nemet  <anemet@caviumnetworks.com>
4202
4203         * config/mips/mips.md (*clear_upper32_dext): New pattern.
4204
4205 2009-07-31  Uros Bizjak  <ubizjak@gmail.com>
4206
4207         * config/i386/bsd.h (ASM_BYTE): New define.
4208         * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
4209         * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
4210         .byte.  Use fputs or putc instead of fprintf where appropriate.
4211         * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte.  Use
4212         fputs or putc instead of fprintf where appropriate.
4213         * config/i386/i386elf.h: Ditto.
4214         * config/i386/sysv4.h: Ditto.
4215
4216         * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
4217         * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
4218         (*tls_global_dynamic_64): Ditto.
4219
4220 2009-07-31  Christian Bruel  <christian.bruel@st.com>
4221
4222         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
4223
4224 2009-07-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4225
4226         * config/arm/arm.c (arm_arm_address_cost): Fix typo.
4227         Remove dead code for MINUS.
4228
4229 2009-07-31  Anthony Green  <green@moxielogic.com>
4230
4231         * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
4232         $r12 in prologue.
4233         (moxie_expand_epilogue): Ditto for epilogue.
4234         (moxie_setup_incoming_varargs): ABI change.  Use 5 registers for
4235         incoming arguments.
4236         (moxie_function_arg): Ditto.
4237         (moxie_pass_by_reference): Ditto.
4238         (moxie_arg_partial_bytes): Ditto.
4239         * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
4240         (FUNCTION_ARG_ADVANCE) Ditto.
4241         (REG_PARM_STACK_SPACE) Ditto.
4242         (FUNCTION_ARG_REGNO_P) Dito.
4243
4244         * config.gcc: Add moxie linux config support.
4245         * gcc/config/moxie/uclinux.h: New file.
4246
4247 2009-07-31  DJ Delorie  <dj@redhat.com>
4248
4249         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
4250         (UNSPECV_SP_SWITCH_E): New.
4251         (sp_switch_1): Change to an unspec.
4252         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
4253         replace $r15.
4254         * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
4255         reference the new stack's address
4256
4257 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
4258
4259         * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
4260         graphite-clast-to-gimple.o, graphite-dependences.o,
4261         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
4262         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
4263         (graphite-blocking.o,
4264         graphite-clast-to-gimple.o, graphite-dependences.o,
4265         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
4266         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
4267         * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
4268         * cfgloop.h (struct loop): Add can_be_parallel field.
4269         * common.opt (fgraphite-identity): Moved up.
4270         (fgraphite-force-parallel): New flag.
4271         * graphite.c: Rewrite.
4272         * graphite.h: Rewrite.
4273         * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
4274         after Graphite.
4275         * toplev.c (graphite_out_file): New file descriptor.
4276         (graphite_in_file): New.
4277         (process_options): flag_graphite_force_parallel cannot be used without
4278         Graphite.
4279         * tree-ssa-loop.c: Include toplev.h.
4280         (gate_graphite_transforms): Enable flag_graphite for
4281         flag_graphite_force_parallel.
4282
4283 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
4284
4285         * ChangeLog.graphite: New.
4286         * graphite-blocking.c: New.
4287         * graphite-clast-to-gimple.c: New.
4288         * graphite-clast-to-gimple.h: New.
4289         * graphite-dependences.c: New.
4290         * graphite-dependences.h: New.
4291         * graphite-interchange.c: New.
4292         * graphite-poly.c: New.
4293         * graphite-poly.h: New.
4294         * graphite-ppl.c: New.
4295         * graphite-ppl.h: New.
4296         * graphite-scop-detection.c: New.
4297         * graphite-scop-detection.h: New.
4298         * graphite-sese-to-poly.c: New.
4299         * graphite-sese-to-poly.h: New.
4300         * sese.c: New.
4301         * sese.h: New.
4302
4303 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
4304
4305         * tree-chrec.c (evolution_function_right_is_integer_cst): New.
4306         * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
4307
4308 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
4309
4310         * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
4311         (scev_is_linear_expression): Return false if the evolution is not
4312         affine multivariate.
4313
4314 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
4315
4316         * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
4317         * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
4318
4319 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
4320
4321         * tree-data-ref.c (debug_data_references): New.
4322         (debug_data_reference): New.
4323         * tree-data-ref.h (debug_data_references): Declared.
4324         (debug_data_reference): Declared.
4325
4326 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
4327
4328         * tree-data-ref.c (stmt_simple_memref_p: Removed.
4329         * tree-data-ref.h (scop_p): Removed.
4330         (struct data_reference): Remove field scop.
4331         (DR_SCOP): Removed.
4332         (stmt_simple_memref_p): Removed.
4333
4334 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
4335
4336         * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
4337         * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
4338         basic block empty.
4339
4340 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
4341
4342         * doc/invoke.texi (-fgraphite-force-parallel): Documented.
4343
4344 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
4345
4346         * doc/invoke.texi (-fgraphite-identity): Documented.
4347
4348 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
4349
4350         * tree-scalar-evolution.c: Fix comment.
4351         (instantiate_scev_1): Return unknow from scev instantiation if the
4352         result is not above instantiate_below.
4353
4354 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
4355
4356         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
4357         static anymore.  Instantiate the symbols that may have been introduced
4358         by chrec_apply.
4359         * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
4360         Declared.
4361
4362 2009-07-30  DJ Delorie  <dj@redhat.com>
4363
4364         * config/mep/mep.c (mep_asm_init_sections): Add section flags and
4365         .vliw directive to VLIW sections.
4366
4367 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4368
4369         * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
4370         New variables.
4371         ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
4372         (AUTOHEADER): New variable.
4373         ($(srcdir)/cstamp-h.in): Use it.
4374
4375 2009-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
4376             Pat Haugen  <pthaugen@us.ibm.com>
4377             Revital Eres <ERES@il.ibm.com>
4378
4379         * config/rs6000/vector.md (VEC_F): Add VSX support.
4380         (VEC_A): Ditto.
4381         (VEC_N): Ditto.
4382         (mov<mode>): Ditto.
4383         (vector_load_<mode>): Ditto.
4384         (vector_store_<mode>): Ditto.
4385         (vector GPR move split): Ditto.
4386         (vec_reload_and_plus_<mptrsize>): Ditto.
4387         (vec_reload_and_reg_<mptrsize>): Ditto.
4388         (add<mode>3): Ditto.
4389         (sub<mode>3): Ditto.
4390         (mul<mode>3): Ditto.
4391         (neg<mode>2): Ditto.
4392         (abs<mode>2): Ditto.
4393         (smin<mode>3): Ditto.
4394         (smax<mode>3): Ditto.
4395         (vector_eq<mode>): Ditto.
4396         (vector_gt<mode>): Ditto.
4397         (vector_ge<mode>): Ditto.
4398         (vector_gtu<mode>): Ditto.
4399         (vector_select_<mode>_uns): Ditto.
4400         (vector_eq_<mode>_p): Ditto.
4401         (vector_gt_<mode>_p): Ditto.
4402         (vector_ge_<mode>_p): Ditto.
4403         (vector_gtu_<mode>_p): Ditto.
4404         (cr6_test_for_zero): Ditto.
4405         (cr6_test_for_zero_reverse): Ditto.
4406         (cr6_test_for_lt): Ditto.
4407         (cr6_test_for_lt_reverse): Ditto.
4408         (xor<mode>3): Ditto.
4409         (ior<mode>3): Ditto.
4410         (and<mode>3): Ditto.
4411         (one_cmpl<mode>2): Ditto.
4412         (nor<mode>2): Ditto.
4413         (andc<mode>2): Ditto.
4414         (float<VEC_int<mode>2): Ditto.
4415         (unsigned_float<VEC_int><mode>2): Ditto.
4416         (fix_trunc<mode><VEC_int>2): Ditto.
4417         (fixuns_trunc<mode><VEC_int>2): Ditto.
4418         (vec_init<mode>):
4419         (vec_set<mode>): Ditto.
4420         (vec_extract<mode>): Ditto.
4421         (vec_interleave_highv4sf): Ditto.
4422         (vec_interleave_lowv4sf): Ditto.
4423         (vec_realign_load_<mode>): Ditto.
4424         (vec_shl_<mode>): Ditto.
4425         (vec_shr_<mode>): Ditto.
4426         (div<mode>3): New patterns for VSX.
4427         (vec_interleave_highv2df): Ditto.
4428         (vec_interleave_lowv2df): Ditto.
4429         (vec_pack_trunc_v2df): Ditto.
4430         (vec_pack_sfix_trunc_v2df): Ditto.
4431         (vec_pack_ufix_trunc_v2df): Ditto.
4432         (vec_unpacks_hi_v4sf): Ditto.
4433         (vec_unpacks_lo_v4sf): Ditto.
4434         (vec_unpacks_float_hi_v4si): Ditto.
4435         (vec_unpacks_float_lo_v4si): Ditto.
4436         (vec_unpacku_float_hi_v4si): Ditto.
4437         (vec_unpacku_float_lo_v4si): Ditto.
4438         (movmisalign<mode>): Ditto.
4439         (vector_ceil<mode>2): New patterns for vectorizing math library.
4440         (vector_floor<mode>2): Ditto.
4441         (vector_btrunc<mode>2): Ditto.
4442         (vector_copysign<mode>3): Ditto.
4443
4444         * config/rs6000/predicates.md (easy_vector_constant_msb): New
4445         predicate for setting the high bit in each word, used for copysign.
4446
4447         * config/rs6000/ppc-asm.h (f19): Whitespace.
4448         (f32-f63): Define if VSX.
4449         (v0-v31): Define if Altivec.
4450         (vs0-vs63): Define if VSX.
4451
4452         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
4453
4454         * config/rs6000/power7.md: New file, provide tuning parameters for
4455         -mcpu=power7.
4456
4457         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
4458         (rs6000_cpu_cpp_builtins): Ditto.
4459         (altivec_overloaded_builtins): Ditto.
4460         (altivec_resolve_overloaded_builtin): Ditto.
4461
4462         * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
4463         debug switch to disable vectorizing simple math builtin
4464         functions.
4465
4466         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
4467         Vectorize simple math builtin functions.
4468         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
4469         hook to vectorize math builtins.
4470         (rs6000_override_options): Enable -mvsx on -mcpu=power7.
4471         (rs6000_builtin_conversion): Add VSX/power7 support.
4472         (rs6000_builtin_vec_perm): Ditto.
4473         (vsplits_constant): Add support for loading up a vector constant
4474         with just the high bit set in each part.
4475         (rs6000_expand_vector_init): Add VSX/power7 support.
4476         (rs6000_expand_vector_set): Ditto.
4477         (rs6000_expand_vector_extract): Ditto.
4478         (rs6000_emit_move): Ditto.
4479         (bdesc_3arg): Ditto.
4480         (bdesc_2arg): Ditto.
4481         (bdesc_1arg): Ditto.
4482         (rs6000_expand_ternop_builtin): Ditto.
4483         (altivec_expand_builtin): Ditto.
4484         (rs6000_expand_unop_builtin): Ditto.
4485         (rs6000_init_builtins): Ditto.
4486         (altivec_init_builtins): Ditto.
4487         (builtin_function_type): Ditto.
4488         (rs6000_common_init_builtins): Ditto.
4489         (rs6000_handle_altivec_attribute); Ditto.
4490         (rs6000_mangle_type): Ditto.
4491         (rs6000_vector_mode_supported_p): Ditto.
4492         (rs6000_mode_dependent_address): Altivec addresses with AND -16
4493         are mode dependent.
4494
4495         * config/rs6000/vsx.md: New file for VSX support.
4496
4497         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
4498         identifing values with just the most significant bit set.
4499         (enum rs6000_builtins): Add builtins for VSX.  Add simple math
4500         vectorized builtins.
4501
4502         * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
4503         (UNSPEC_VRFIM): Delete.
4504         (splitter for loading up vector with most significant bit): New
4505         splitter for vectorizing copysign.
4506         (altivec_vrfiz): Rename from altivec_fturncv4sf2.  Add support for
4507         vectorizing simple math functions.
4508         (altivec_vrfip): Add support for vectorizing simple math functions.
4509         (altivec_vrfim): Ditto.
4510         (altivec_copysign_v4sf3): New insn for Altivec copysign support.
4511
4512         * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
4513         (power7.md, vsx.md): Include for power7 support.
4514         (copysigndf3): Use VSX instructions if -mvsx.
4515         (negdf2_fpr): Ditto.
4516         (absdf2_fpr): Ditto.
4517         (nabsdf2_fpr): Ditto.
4518         (adddf3_fpr): Ditto.
4519         (subdf3_fpr): Ditto.
4520         (muldf3_fpr): Ditto.
4521         (divdf3_fpr): Ditto.
4522         (fix_truncdfdi2_fpr): Ditto.
4523         (cmpdf_internal1): Ditto.
4524         (fred, fred_fpr): Convert into expander/insn to add VSX support.
4525         (btruncdf2, btruncdf2_fpr): Ditto.
4526         (ceildf2, ceildf2_fpr): Ditto.
4527         (floordf2, floordf2_fpr): Ditto.
4528         (floatdidf2, floatdidf2_fpr): Ditto.
4529         (fmadddf4_fpr): Name insn.  Use VSX instructions if -mvsx.
4530         (fmsubdf4_fpr): Ditto.
4531         (fnmadddf4_fpr_1): Ditto.
4532         (fnmadddf4_fpr_2): Ditto.
4533         (fnmsubdf4_fpr_1): Ditto.
4534         (fnmsubdf4_fpr_2): Ditto.
4535         (fixuns_truncdfdi2): Add expander for VSX support.
4536         (fix_truncdfdi2): Ditto.
4537         (fix_truncdfsi2): Ditto.
4538         (ftruncdf2): Ditto.
4539         (btruncsf2): Whitespace.
4540         (movdf_hardfloat32): Add support for VSX registers.
4541         (movdf_softfloat32): Ditto.
4542         (movdf_hardfloat64): Ditto.
4543         (movdf_hardfloat64_mfpgpr): Ditto.
4544         (movdf_softfloat64): Ditto.
4545         (movti splitters): Add check for vector registers supporting
4546         TImode in the future.
4547         (bpermd): Add power7 bpermd instruction.
4548
4549         * config/rs6000/altivec.h (vec_div): Define if VSX.
4550         (vec_mul): Ditto.
4551         (vec_msub): Ditto.
4552         (vec_nmadd): Ditto.
4553         (vec_nearbyint): Ditto.
4554         (vec_rint): Ditto.
4555         (vec_sqrt): Ditto.
4556         (all predicates): Use the generic builtin function, and not the V4SF
4557         specific function so that the predicates will work with VSX's V2DF.
4558         (vec_all_*): Ditto.
4559         (vec_any_*): Ditto.
4560
4561         * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
4562         Document new VSX functions and types.
4563
4564         * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
4565         switches.
4566
4567         * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
4568         "wa", and "j" constraints.  Modify "v" to talk about Altivec
4569         instead of just vector.
4570
4571 2009-07-30  Andrew MacLeod  <amacleod@redhat.com>
4572
4573         PR debug/26475
4574         * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
4575         location for phi arguments.
4576         (rewrite_update_phi_arguments): Find locations for reaching defs.
4577         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
4578         Add location to add_phi_arg calls.
4579         * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
4580         * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
4581         split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
4582         * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
4583         create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
4584         * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
4585         * tree-phinodes.c (make_phi_node): Initialize location.
4586         (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
4587         (add_phi_arg): Add location parameter.
4588         (remove_phi_arg_num): Move location when moving phi argument.
4589         * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
4590         location.
4591         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
4592         slpeel_update_phi_nodes_for_guard1,
4593         slpeel_update_phi_nodes_for_guard2,
4594         slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
4595         vect_loop_versioning): Set locations.
4596         * tree-parloops.c (create_phi_for_local_result,
4597         transform_to_exit_first_loop, create_parallel_loop): Add locations.
4598         * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
4599         * tree-vect-loop.c (get_initial_def_for_induction,
4600         vect_create_epilog_for_reduction, vect_finalize_reduction): Add
4601         locations.
4602         * tree-flow-inline.h (gimple_phi_arg_location): New.  Return locus.
4603         (gimple_phi_arg_location_from_edge): New.  Return locus from an edge.
4604         (gimple_phi_arg_set_location): New.  Set locus.
4605         (gimple_phi_arg_has_location): New.  Check for locus.
4606         (redirect_edge_var_map_location): New.  Return locus from var_map.
4607         * tree-vect-data-refs.c (vect_setup_realignment): Set location.
4608         * tree-ssa-phiopt.c (conditional_replacement): Set locus when
4609         combining PHI arguments.
4610         (cond_store_replacement): Set location.
4611         * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
4612         * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
4613         scop_add_exit_phis_edge): Add locations.
4614         * tree-cfgcleanup.c (remove_forwarder_block,
4615         remove_forwarder_block_with_phi): Add locations.
4616         * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
4617         * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
4618         locations.
4619         * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
4620         * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
4621         flush_pending_stmts): Add source location.
4622         * lambda-code.c (perfect_nestify): Maintain location stack with argument
4623         stack to preserve locations.
4624         * tree-vect-stmts.c (vectorizable_load): Add location.
4625         * tree-inline.c (copy_phis_for_bb): Copy locus.
4626         (setup_one_parameter): Add call locus to inlined parameter stmts.
4627         (initialize_inlined_parameters): Pass in call location as parameter
4628         assignment locus.
4629         (tree_function_versioning): Pass location to setup_one_parameter.
4630         * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
4631         * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
4632         copy and edge lists.
4633         (insert_partition_copy_on_edge, insert_value_copy_on_edge,
4634         insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
4635         locus parameter and override the stmt default if provided.
4636         (new_elim_graph, clear_elim_graph, delete_elim_graph,
4637         elim_graph_add_edge, elim_graph_remove_succ_edge,
4638         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
4639         elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
4640         eliminate_phi):  Add locus info in elimination graph for each edge and
4641         value copy.
4642         (insert_backedge_copies): Copy locus if present.
4643         * tree-flow.h (struct _edge_var_map): Add locus field.
4644         * tree-switch_conversions.c (fix_phi_nodes): Add locations.
4645         * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
4646         add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
4647         locations.
4648         * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
4649
4650 2009-07-30  Martin Jambor  <mjambor@suse.cz>
4651
4652         PR tree-optimization/40570
4653         * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
4654         use inlining loops.
4655
4656 2009-07-30  Razya Ladelsky <razya@il.ibm.com>
4657
4658         * ssa-loop-manip.c: Include langhooks.h.
4659         (rewrite_phi_with_iv): New.
4660         (rewrite_all_phi_nodes_with_iv): New.
4661         (canonicalize_loop_ivs): Move here from tree-parloops.c.
4662         Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
4663         * tree-parloops.c (loop_parallel_p): Move out all conditions
4664         except dependency check.
4665         (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
4666         (gen_parallel_loop): Call canonicalize_loop_ivs without
4667         reduction_list argument.
4668         (build_new_reduction): New.
4669         (gather_scalar_reductions): New.
4670         (try_get_loop_niter): New.
4671         (try_create_reduction_list): New.
4672         (parallleize_loops): Change the parallel conditions check.
4673         * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
4674         * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
4675
4676 2009-07-30  Dave Korn  <dave.korn.cygwin@gmail.com>
4677
4678         * opt-functions.awk (opt_args): Allow argument to be enclosed in
4679         curly braces.
4680         * doc/options.texi (Option properties):  Mention new quoting syntax.
4681
4682 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
4683
4684         * config/alpha/alpha.c (alpha_start_function):
4685         Handle VMS_DEBUG_MAIN_POINTER
4686         * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
4687         * doc/invoke.texi: Document -mdebug-main switch.
4688
4689 2009-07-29  Richard Henderson  <rth@redhat.com>
4690
4691         * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
4692         (cgraph_create_edge_including_clones): Likewise.
4693         * tree-inline.c (copy_bb): Operate on the correct edges
4694         when updating the callgraph.
4695
4696 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
4697
4698         * config/alpha/vms-cc.c: Deleted.
4699         * config/alpha/vms-ld.c: Deleted.
4700         * config/alpha/t-vms64: Moved to config/vms
4701         * config/alpha/vms-crt0-64.c: Moved to config/vms
4702         * config/alpha/vms-crt0.c: Moved to config/vms
4703         * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
4704         * config/alpha/vms-psxcrt0.c: Moved to config/vms
4705         * config/alpha/xm-vms.h: Moved to config/vms
4706         * config/alpha/x-vms: Moved to config/vms
4707         * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
4708         config/vms/t-vms.
4709         * config/vms/t-vms: Moved here from config/alpha. Alpha specific
4710         parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
4711         (version): Set.
4712         * config/vms/t-vms64: Moved here from config/alpha
4713         * config/vms/vms-crt0-64.c: Moved here from config/alpha.
4714         (argc,argv,envp): Enforce 32bit malloc'ing.
4715         * config/vms/vms-psxcrt0-64.c: Likewise.
4716         * config/vms/vms-crt0.c: Moved here from config/alpha.
4717         * config/vms/vms-psxcrt0.c: Likewise.
4718         * config/vms/vms-crtl-64.h: New file.
4719         * config/vms/vms-crtl.h: New file.
4720         * config/vms/vms.opt: New file.
4721         * config/vms/xm-vms64.h: New file.
4722         * config/vms/xm-vms.h: Moved here from config/alpha.
4723         (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
4724         Set.
4725         * config/vms/x-vms: Moved here from config/alpha.
4726         (version, VMS_EXTRA_PARTS): Moved to t-vms.
4727         (vms-ld.o, vms-cc.o): Removed.
4728         (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
4729
4730 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
4731
4732         * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
4733         correct stack (obvious VMS fix).
4734
4735 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
4736
4737         * dwarf2out.c (output_file_names): Output VMS style file name, size,
4738         date, version info if VMS_DEBUGGING_INFO defined.
4739         * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
4740         size, date calculating code moved here.
4741
4742 2009-07-29  Paul Brook  <paul@codesourcery.com>
4743
4744         * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
4745         do_push/do_pop.
4746
4747 2009-07-29  Uros Bizjak  <ubizjak@gmail.com>
4748
4749         PR target/40577
4750         * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
4751         to DImode when generating insq_le insn.
4752
4753 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
4754
4755         * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
4756         New macro set for VMS_DEBUGGGING_INFO.
4757         (AT_string_form): Use it.
4758
4759 2009-07-28  DJ Delorie  <dj@redhat.com>
4760
4761         * config/mep/mep.c (vtext_section): New.
4762         (vftext_section): New.
4763         (ftext_section): New.
4764         (mep_select_section): Add support for functions.
4765         (mep_unique_section): Likewise.
4766         (mep_asm_init_sections): Likewise.
4767         (mep_encode_section_info): Remove it from here.
4768
4769         * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
4770
4771 2009-07-28  Paolo Bonzini  <bonzinI@gnu.org>
4772
4773         * tree.h (TREE_DEPRECATED): Document it is used for types too.
4774         (TYPE_VECTOR_OPAQUE): Use default_def_flag
4775
4776 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
4777
4778         * dwarf2out.c (output_file_names): Test new macro
4779         DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
4780         (add_comp_dir_attribute): Likewise.
4781
4782 2009-07-28  Kai Tietz  <kai.tietz@onevision.com>
4783
4784         * config/i386/mingw-w64.h (LINK_SPEC): Add
4785         separating space between commands.
4786
4787 2009-07-28  Jan Hubicka  <jh@suse.cz>
4788
4789         PR tree-optimization/40759
4790         * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
4791         for renaming.
4792
4793 2009-07-27  DJ Delorie  <dj@redhat.com>
4794
4795         * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
4796         types are dword-aligned.
4797         (mep_expand_va_start): Likewise.
4798
4799 2009-07-27  Olivier Hainque  <hainque@adacore.com>
4800             Douglas B Rupp  <rupp@gnat.com>
4801
4802         * convert.c (convert_to_pointer): Don't assume the target
4803         pointer type is POINTER_SIZE long. Fetch its precision instead.
4804
4805 2009-07-27  Douglas B Rupp  <rupp@gnat.com>
4806
4807         * system.h (fopen): Undefine if macro.
4808
4809 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
4810
4811         * dwarf2out.c (output_cfi_p): Removed.
4812         (output_cfis): New function.
4813         (output_fde): New function, split from output_call_frame_info.
4814         (output_call_frame_info): Use it.
4815         (dwarf2out_switch_text_section): Use output_cfis.
4816
4817 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
4818
4819         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
4820         TARGET_BI_ARCH is specified without enabling SJLJ.
4821         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
4822         if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
4823
4824 2009-07-26  Mikael Pettersson <mikpe@it.uu.se>
4825
4826         * arm.md (negdi2): Use DImode if forcing a value into a register.
4827
4828 2009-07-26  Ira Rosen  <irar@il.ibm.com>
4829
4830         PR tree-optimization/40801
4831         * tree-vect-stmts.c (vectorizable_call): Get previous copy
4832         of vector operand from the previous copy of vector statement.
4833         Pass the correct definition type value to
4834         vect_get_vec_def_for_stmt_copy().
4835
4836 2009-07-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4837
4838         * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
4839         const char ** conversion.
4840
4841 2009-07-25 David Daney <ddaney@caviumnetworks.com>
4842
4843         * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
4844         fancy_abort() if !ENABLE_ASSERT_CHECKING.
4845         (gcc_unreachable): Invoke __builtin_unreachable() if
4846         !ENABLE_ASSERT_CHECKING.
4847
4848 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
4849
4850         PR rtl-optimization/40445
4851         * emit-rtl.c (next_nonnote_insn_bb): New function.
4852         * rtl.h (next_nonnote_insn_bb): Declare new function.
4853         * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
4854         with no successors that is the successor of the ENTRY_BLOCK.
4855         Continue from the top after removing an empty fallthrough block.
4856         * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
4857         of next_nonnote_insn.
4858
4859 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
4860
4861         * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
4862
4863 2009-07-25  Martin Jambor  <mjambor@suse.cz>
4864
4865         * c-common.c (c_common_attribute_table): New element for noclone.
4866         (handle_noclone_attribute): New function. Forward-declare.
4867         * tree-inline.c (tree_versionable_function_p): Check for noclone
4868         attribute.
4869         * doc/extend.texi (Labels as Values): Document need for noclone.
4870         (Function Attributes): Document noclone attribute.
4871
4872 2009-07-25  Jakub Jelinek  <jakub@redhat.com>
4873
4874         PR rtl-optimization/34999
4875         * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
4876         and dw_fde_switched_cold_to_hot fields.
4877         (output_cfi_p): New function.
4878         (output_call_frame_info): If fde->dw_fde_switched_sections,
4879         output 2 FDEs instead of one with corrupted header.
4880         (dwarf2out_do_cfi_startproc): New function.
4881         (dwarf2out_begin_prologue): Use it.  Initialize fde->dw_fde_switch_cfi
4882         and fde->dw_fde_switched_cold_to_hot.
4883         (dwarf2out_switch_text_section): Compute
4884         fde->dw_fde_switched_cold_to_hot.  Switch to new text section here.
4885         If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
4886         dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
4887         Otherwise, compute fde->dw_fde_switch_cfi.
4888
4889 2009-07-24  Cary Coutant  <ccoutant@google.com>
4890
4891         * tree-cfg.c (assign_discriminator): Add explicit parentheses.
4892
4893 2009-07-24  Cary Coutant  <ccoutant@google.com>
4894
4895         * cfghooks.c (split_block): Copy discriminator to new block.
4896         * tree-cfg.c (assign_discriminator): Check location of last
4897         instruction in block as well as first.
4898
4899 2009-07-24  Uros Bizjak  <ubizjak@gmail.com>
4900
4901         * config/i386/linux.c: Use fputs or putc instead of fprintf
4902         where appropriate.
4903         * config/i386/gas.h: Ditto.
4904         * config/i386/x86-64.h: Ditto.
4905         * config/i386/att.h: Ditto.
4906
4907 2009-07-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4908
4909         * expmed.c (emit_store_flag): Use a recursive call to optimize the
4910         xor case.
4911
4912 2009-07-24  Martin Jambor  <mjambor@suse.cz>
4913
4914         * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
4915         (ipa_push_func_to_list_1): Declare.
4916         (ipa_push_func_to_list): New function.
4917
4918         * ipa-prop.c (ipa_push_func_to_list_1): New function.
4919         (ipa_init_func_list): Call ipa_push_func_to_list_1.
4920         (ipa_push_func_to_list): Removed.
4921         (ipa_pop_func_from_list): Clear node_enqueued flag.
4922
4923 2009-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
4924
4925         * config/s390/s390.c (override_options): Default
4926         max-unrolled-insns to 100 for z10 tuning.
4927
4928 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
4929
4930         * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
4931         tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
4932         tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
4933         tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
4934         tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
4935         tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
4936         lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
4937
4938 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
4939
4940         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
4941         use default set in mingw32.h header.
4942         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
4943         64-bit /mingw/include path.
4944         (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
4945         path.
4946
4947 2009-07-23  Neil Vachharajani  <nvachhar@google.com>
4948
4949         PR rtl-optimization/40209
4950         * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
4951
4952 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
4953
4954         * config/i386/i386.c: Use ASM_LONG instead of .long.  Concatenate
4955         ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
4956         with the rest of string where appropriate.  Use fputs or putc
4957         instead of fprintf where appropriate.
4958
4959 2009-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
4960             Pat Haugen  <pthaugen@us.ibm.com>
4961             Revital Eres <ERES@il.ibm.com>
4962
4963         * config/rs6000/vector.md: New file.  Move most of the vector
4964         expander support here from altivec.md to allow for the VSX vector
4965         unit in the future.  Add support for secondary_reload patterns.
4966         Rewrite the patterns for vector comparison, and vector comparison
4967         predicate instructions so that the RTL expresses the desired
4968         behavior, instead of using unspec.
4969
4970         * config/rs6000/constraints.md ("f" constraint): Use
4971         rs6000_constraints to hold the precalculated register class.
4972         ("d" constraint): Ditto.
4973         ("wd" constraint): New constraint for VSX.
4974         ("wf" constraint): Ditto.
4975         ("ws" constraint): Ditto.
4976         ("wa" constraint): Ditto.
4977         ("wZ" constraint): Ditto.
4978         ("j" constraint): Ditto.
4979
4980         * config/rs6000/predicates.md (vsx_register_operand): New
4981         predicate for VSX.
4982         (vfloat_operand): New predicate for vector.md.
4983         (vint_operand): Ditto.
4984         (vlogical_operand): Ditto.
4985         (easy_fp_constant): If VSX, 0.0 is an easy constant.
4986         (easy_vector_constant): Add VSX support.
4987         (altivec_indexed_or_indirect_operand): New predicate for
4988         recognizing Altivec style memory references with AND -16.
4989
4990         * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
4991         for vector secondary reload support.
4992         (rs6000_vector_reg_class): Delete, replacing it with
4993         rs6000_constraints.
4994         (rs6000_vsx_reg_class): Ditto.
4995         (rs6000_constraints): New array to hold the register classes of
4996         each of the register constraints that can vary at runtime.
4997         (builtin_mode_to_type): New static array for builtin function type
4998         creation.
4999         (builtin_hash_table): New static hash table for builtin function
5000         type creation.
5001         (TARGET_SECONDARY_RELOAD): Define target hook.
5002         (TARGET_IRA_COVER_CLASSES): Ditto.
5003         (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
5004         registers are 128 bits if VSX memory reference instructions are used.
5005         (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
5006         unit is being used.
5007         (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
5008         (rs6000_debug_reg_global): Move -mdebug=reg statements here.
5009         Print several of the scheduling related parameters.
5010         (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
5011         rs6000_constraints instead of rs6000_vector_reg_class.  Move
5012         -mdebug=reg code to rs6000_debug_reg_global.  Add support for
5013         -mvsx-align-128 debug switch.  Drop testing float_p if VSX or
5014         Altivec.  Add VSX support.  Setup for secondary reload support on
5015         Altivec/VSX registers.
5016         (rs6000_override_options): Make power7 set the scheduling groups
5017         like the power5.  Add support for new debug switches to override
5018         the scheduling defaults.  Temporarily disable -mcpu=power7 from
5019         setting -mvsx.  Add support for debug switches -malways-hint,
5020         -msched-groups, and -malign-branch-targets.
5021         (rs6000_buitlin_conversion): Add support for returning unsigned
5022         vector conversion functions to fix regressions due to stricter
5023         type checking.
5024         (rs6000_builtin_mul_widen_even): Ditto.
5025         (rs6000_builtin_mul_widen_odd): Ditto.
5026         (rs6000_builtin_vec_perm): Ditto.
5027         (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
5028         (rs6000_expand_vector_init): Initial VSX support for using xxlxor
5029         to zero a register.
5030         (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
5031         generated upstream.
5032         (bdesc_3arg): Add builtins for unsigned types.  Add builtins for
5033         VSX types for bit operations.  Changes to accomidate vector.md.
5034         (bdesc_2arg): Ditto.
5035         (bdesc_1arg): Ditto.
5036         (struct builtin_description_predicates): Rewrite predicate
5037         handling so that RTL describes the operation, instead of passing
5038         the instruction to be used as a string argument.
5039         (bdesc_altivec_preds): Ditto.
5040         (altivec_expand_predicate_builtin): Ditto.
5041         (altivec_expand_builtin): Ditto.
5042         (rs6000_expand_ternop_builtin): Use a switch instead of an if
5043         statement for vsldoi support.
5044         (altivec_expand_ld_builtin): Change to use new names from vector.md.
5045         (altivec_expand_st_builtin): Ditto.
5046         (paired_expand_builtin): Whitespace changes.
5047         (rs6000_init_builtins): Add V2DF/V2DI types.  Initialize the
5048         builtin_mode_to_type table for secondary reload.  Call
5049         builtin_function_type to build random builtin functions.
5050         (altivec_init_builtins): Change to use builtin_function_type to
5051         create builtin function types dynamically as we need them.
5052         (builtin_hash_function): New support for hashing the tree types
5053         for builtin function as we need it, rather than trying to build
5054         all of the trees that we need.  Add initial preliminary VSX support.
5055         (builtin_function_type): Ditto.
5056         (builtin_function_eq): Ditto.
5057         (builtin_hash_struct): Ditto.
5058         (rs6000_init_builtins): Ditto.
5059         (rs6000_common_init_builtins): Ditto.
5060         (altivec_init_builtins): Ditto.
5061         (rs6000_common_init_builtins): Ditto.
5062         (enum reload_reg_type): New enum for simplifing reg classes.
5063         (rs6000_reload_register_type): Simplify register classes into GPR,
5064         Vector, and other registers.  Altivec and VSX addresses in reload.
5065         (rs6000_secondary_reload_inner): Ditto.
5066         (rs6000_ira_cover_classes): New target hook, that returns the
5067         appropriate cover classes, based on -mvsx being used or not.
5068         (rs6000_secondary_reload_class): Add VSX support.
5069         (get_vec_cmp_insn): Delete, rewrite vector conditionals.
5070         (get_vsel_insn): Ditto.
5071         (rs6000_emit_vector_compare): Rewrite vector conditional support
5072         so that where we can, we use RTL operators, instead of blindly use
5073         UNSPEC.
5074         (rs6000_emit_vector_select): Ditto.
5075         (rs6000_emit_vector_cond_expr): Ditto.
5076         (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
5077         (create_TOC_reference): Add -mdebug=addr support.
5078         (emit_frame_save): VSX loads/stores need register indexed addressing.
5079
5080         * config/rs6000/rs6000.md: Include vector.md.
5081
5082         * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
5083
5084         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5085         support for V2DI, V2DF in logical, permute, select operations.
5086
5087         * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
5088         switch for vsx/power7.
5089         (-mvsx-scalar-memory): Ditto.
5090         (-mvsx-align-128): Ditto.
5091         (-mallow-movmisalign): Ditto.
5092         (-mallow-df-permute): Ditto.
5093         (-msched-groups): Ditto.
5094         (-malways-hint): Ditto.
5095         (-malign-branch-targets): Ditto.
5096
5097         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
5098         hook instead.
5099         (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
5100         (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
5101         (rs6000_vector_reg_class): Delete.
5102         (rs6000_vsx_reg_class): Ditto.
5103         (enum rs6000_reg_class_enum): New enum for the constraints that
5104         vary based on target switches.
5105         (rs6000_constraints): New array to hold the register class for all
5106         of the register constraints that vary based on the switches used.
5107         (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
5108         (enum rs6000_builtins): Add unsigned varients for the builtin
5109         declarations returned by target hooks for expanding multiplies,
5110         select, and permute operations.  Add VSX builtins.
5111         (enum rs6000_builtin_type_index): Add entries for VSX.
5112         (V2DI_type_node): Ditto.
5113         (V2DF_type_node): Ditto.
5114         (unsigned_V2DI_type_node): Ditto.
5115         (bool_long_type_node): Ditto.
5116         (intDI_type_internal_node): Ditto.
5117         (uintDI_type_internal_node): Ditto.
5118         (double_type_internal_node): Ditto.
5119
5120         * config/rs6000/altivec.md (whole file): Move all expanders to
5121         vector.md from altivec.md.  Rename insn matching functions to be
5122         altivec_foo.
5123         (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
5124         (altivec_vcmp*): Ditto.
5125         (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
5126         (VM): New iterator for moves that includes the VSX types.
5127         (altivec_vperm_<mode>): Add VSX types.  Add unsigned types.
5128         (altivec_vperm_<mode>_uns): New, for unsigned types.
5129         (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
5130         (altivec_eq<mode>): Ditto.
5131         (altivec_gt<mode>): Ditto.
5132         (altivec_gtu<mode>): Ditto.
5133         (altivec_eqv4sf): Ditto.
5134         (altivec_gev4sf): Ditto.
5135         (altivec_gtv4sf): Ditto.
5136         (altivec_vcmpbfp_p): Ditto.
5137
5138 2009-07-23  Richard Earnshaw  <rearnsha@arm.com>
5139
5140         * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
5141         unsigned HWI.
5142
5143 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
5144
5145         PR target/40832
5146         * config/i386/i386.c (output_387_ffreep): Rewrite to use
5147         ASM_SHORT instead of .word.
5148         * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
5149         instead of .word in asm template.
5150
5151 2009-07-22  Vladimir Makarov  <vmakarov@redhat.com>
5152
5153         PR target/37488
5154         * ira-lives.c (bb_has_abnormal_call_pred): New function.
5155         (process_bb_node_lives): Use it.
5156
5157         * ira.c (setup_cover_and_important_classes): Don't setup
5158         ira_important_class_nums.  Add cover classes to the end of
5159         important classes.
5160         (cover_class_order, comp_reg_classes_func, reorder_important_classes):
5161         New.
5162         (find_reg_class_closure): Use reorder_important_classes.
5163
5164         * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
5165
5166         * config/i386/i386.c (i386_ira_cover_classes): New function.
5167         (TARGET_IRA_COVER_CLASSES): Redefine.
5168
5169         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
5170         importance of order of cover classes in the array.
5171
5172 2009-07-22  Diego Novillo  <dnovillo@google.com>
5173
5174         * tree-pass.h (TDF_EH): Define.
5175         * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
5176         contains TDF_EH, print the EH region number holding GS.
5177         * tree-dump.c (dump_options): Add "eh".
5178         * doc/invoke.texi: Document it.
5179
5180 2009-07-22  Doug Kwan  <dougkwan@google.com>
5181
5182         * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
5183
5184 2009-07-22  Michael Matz  <matz@suse.de>
5185
5186         PR tree-optimization/35229
5187         PR tree-optimization/39300
5188
5189         * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
5190         (inhibit_phi_insertion): New function.
5191         (insert_into_preds_of_block): Call it for REFERENCEs.
5192         (init_pre): Initialize and finalize scalar evolutions.
5193         * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
5194
5195 2009-07-22  Uros Bizjak  <ubizjak@gmail.com>
5196
5197         * config/i386/predicates.md (zero_extended_scalar_load_operand):
5198         Use CONST_VECTOR_NUNITS to determine number of elements.
5199
5200 2009-07-22  Andreas Krebbel  <krebbel1@de.ibm.com>
5201
5202         * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
5203         (U, W): Constraints are now deprecated and will be removed if we
5204         run out of letters.
5205         * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
5206         the file.
5207         ("prefetch"): Add the stcmh instruction for prefetching.
5208         * config/s390/s390.c (s390_symref_operand_p): Function moved. No
5209         changes.
5210         (s390_short_displacement): Return always true if compiling for
5211         machines not providing the long displacement facility.
5212         (s390_mem_constraint): Support the new constraint letter Z.
5213         (s390_check_qrst_address): New function.
5214
5215 2009-07-21  DJ Delorie  <dj@redhat.com>
5216
5217         * config/mep/mep.c (mep_legitimize_arg): Leave control registers
5218         alone too.
5219
5220 2009-07-21  Jason Merrill  <jason@redhat.com>
5221
5222         * c-common.c (max_tinst_depth): Increase default to 1024.
5223
5224 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
5225
5226         * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
5227         (vec_unpacku_float_lo_v4si): Ditto.
5228
5229 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
5230
5231         PR target/40811
5232         * config/i386/sse.md (sse2_cvtudq2ps): New expander.
5233         (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
5234         (builtin_description): Add __builtin_ia32_cvtudq2ps.
5235         (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
5236
5237 2009-07-21  Jakub Jelinek  <jakub@redhat.com>
5238
5239         PR tree-optimization/40813
5240         * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
5241         it.
5242
5243 2009-07-21  Kaz Kojima  <kkojima@gcc.gnu.org>
5244
5245         * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
5246         with a NOP_EXPR if needed.
5247
5248 2009-07-21  Paul Brook <paul@codesourcery.com>
5249
5250         * tree-vectorizer.c (increase_alignment): Handle nested arrays.
5251         Terminate debug dump with newline.
5252
5253 2009-07-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5254
5255         * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
5256         Cast "1" to unsigned HOST_WIDE_INT.
5257         (compute_zdepdi_operands): Limit maximum length to 64 bits.  Limit
5258         deposit length to the maximum length - lsb.  Extend length if
5259         HOST_BITS_PER_WIDE_INT is 32.
5260
5261 2009-07-20  Olatunji Ruwase <tjruwase@google.com>
5262
5263         * cgraph.h (constant_pool_htab): New function.
5264         (constant_descriptor_tree): Move from varasm.c.
5265         * varasm.c (constant_pool_htab): New function.
5266         (constant_descriptor_tree): Move to cgraph.h.
5267
5268 2009-07-20  Olatunji Ruwase  <tjruwase@google.com>
5269
5270         * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
5271
5272 2009-07-20  Shujing Zhao  <pearly.zhao@oracle.com>
5273
5274         * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
5275         $(VARRAY_H).
5276
5277 2009-07-20  Xinliang David Li  <davidxl@google.com>
5278
5279         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
5280
5281 2009-07-20  Adam Nemet  <anemet@caviumnetworks.com>
5282
5283         * config/mips/mips.md (move_type): Add arith.
5284         (type): Handle arith.
5285         (zero_extendsidi2): Rename this into ...
5286         (*zero_extendsidi2): ... this.  Don't match if ISA_HAS_EXT_INS.
5287         (zero_extendsidi2): New expander.
5288         (*zero_extendsidi2_dext): New pattern.
5289
5290 2009-07-20  Nick Clifton  <nickc@redhat.com>
5291
5292         * config.gcc (mips64-*-*): Add definition of tm_defines in order
5293         to set MIPS_ABI_DEFAULT.
5294         * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
5295
5296 2009-07-20  Jakub Jelinek  <jakub@redhat.com>
5297
5298         * tree-object-size.c (addr_object_size): Handle unions with
5299         array in it as last field of structs in __bos (, 1) as __bos (, 0).
5300
5301         PR tree-optimization/40792
5302         * tree.c (build_function_type_skip_args): Remove bogus assert.
5303
5304 2009-07-20  Jan Hubicka  <jh@suse.cz>
5305             Martin Jambor  <mjambor@suse.cz>
5306
5307         * cgraph.h (combined_args_to_skip): New field.
5308         * cgraph.c (cgraph_create_virtual_clone): Properly handle
5309         combined_args_to_skip and args_to_skip.
5310         * tree-inline.c (update_clone_info): New function.
5311         (tree_function_versioning): Call update_clone_info.
5312         * cgraphunit.c: (cgraph_materialize_clone): Dump materialized
5313         functions.
5314         (cgraph_materialize_all_clones): More extensive dumping, working
5315         with combined_args_to_skip rather than args_to_skip.
5316
5317 2009-07-20  Ira Rosen  <irar@il.ibm.com>
5318
5319         * tree-vectorizer.h (vectorizable_condition): Add parameters.
5320         * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
5321         (get_initial_def_for_reduction): Likewise.
5322         (vectorizable_reduction): Skip the check of first operand in case
5323         of COND_EXPR. Add check that it is outer loop vectorization if
5324         nested cycle was detected. Call vectorizable_condition() for
5325         COND_EXPR. If reduction epilogue cannot be created do not fail for
5326         nested cycles (if it is not double reduction). Assert that there
5327         is only one type in the loop in case of COND_EXPR. Call
5328         vectorizable_condition() to vectorize COND_EXPR.
5329         * tree-vect-stmts.c (vectorizable_condition): Update comment.
5330         Add parameters. Allow nested cycles if called from
5331         vectorizable_reduction(). Use reduction vector variable if provided.
5332         (vect_analyze_stmt): Call vectorizable_reduction() before
5333         vectorizable_condition().
5334         (vect_transform_stmt): Update call to vectorizable_condition().
5335
5336 2009-07-20  Christian Bruel  <christian.bruel@st.com>
5337
5338         * config/sh/sh.opt (-mfmovd): Resurrect and document.
5339         * doc/invoke.texi (-mfmovd): Likewise.
5340         * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
5341
5342 2009-07-20  Jan Hubicka  <jh@suse.cz>
5343
5344         * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
5345         when handling SSA name.
5346
5347 2009-07-19  Jan Hubicka  <jh@suse.cz>
5348
5349         PR tree-optimization/40676
5350         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
5351         virtual PHIs in empty BBs.
5352
5353 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
5354
5355         * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
5356         re-expanded the compound use gen_lowpart instead to convert to the
5357         desired mode.
5358
5359 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
5360
5361         * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
5362         OUTER_CONST arguments.
5363         <LSHIFTRT>: Use them to allow widening if the bits shifted in from
5364         the new wider mode will be masked off.
5365         (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
5366
5367 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
5368
5369         * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
5370         high-order bits are zero.
5371
5372 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
5373
5374         * combine.c (simplify_shift_const_1): Split code to determine
5375         shift_mode into ...
5376         (try_widen_shift_mode): ... here.  Allow widening for ASHIFTRT if the
5377         new bits shifted in are identical to the old sign bit.
5378
5379 2009-07-18  Richard Guenther  <rguenther@suse.de>
5380
5381         PR c/40787
5382         * gimplify.c (gimplify_call_expr): Reject code using results from
5383         functions returning void.
5384
5385 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
5386
5387         * doc/md.texi: Document the new PowerPC "es" constraint.
5388         Document that "m" can include automodified addresses on this target,
5389         and explain how %U must be used.  Extend the "Q" and "Z" documentation
5390         to suggest "es" as well as "m".
5391         * config/rs6000/constraints.md (es): New memory constraint.
5392         (Q, Z): Update strings to match new documentation.
5393
5394 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
5395
5396         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
5397         offset from virtual_stack_vars_rtx and arg_pointer_rtx.
5398         * config/rs6000/predicates.md (volatile_mem_operand): Use
5399         offsettable_nonstrict_memref_p.
5400         * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
5401         (*floatunssidf2_internal): Likewise.
5402         (*fix_truncdfsi2_internal): Likewise.
5403         (*fix_trunctfsi2_internal): Likewise.
5404
5405 2009-07-17  Anatoly Sokolov  <aesok@post.ru>
5406
5407         * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
5408         atmega32u2 devices.
5409         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
5410
5411 2009-07-17  Richard Guenther  <rguenther@suse.de>
5412
5413         PR c/40401
5414         * tree-pass.h (pass_diagnose_omp_blocks): Declare.
5415         (pass_warn_unused_result): Likewise.
5416         (TODO_set_props): Remove.
5417         * omp-low.c (diagnose_omp_structured_block_errors): Change to
5418         run as a pass.
5419         (pass_diagnose_omp_blocks): Define.
5420         * c-decl.c (pop_file_scope): Do not finalize the CU here.
5421         (c_gimple_diagnostics_recursively): Remove.
5422         (finish_function): Do not call it.
5423         (c_write_global_declarations): Continue after errors.
5424         Finalize the CU here.
5425         * c-gimplify.c (c_genericize): Do not gimplify here.
5426         * c-common.c (c_warn_unused_result): Move ...
5427         * tree-cfg.c (do_warn_unused_result): ... here.
5428         (run_warn_unused_result): New function.
5429         (gate_warn_unused_result): New function.
5430         (pass_warn_unused_result): New pass.
5431         * c-common.h (c_warn_unused_result): Remove.
5432         * flags.h (flag_warn_unused_result): Declare.
5433         * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
5434         * opts.c (flag_warn_unused_result): Initialize to false.
5435         * toplev.c (compile_file): Add comment.
5436         * omp-low.c (create_omp_child_function): Do not register
5437         the function with the frontend.
5438         (diagnose_omp_structured_block_errors): Prepare to be
5439         called as optimization pass.
5440         (gate_diagnose_omp_blocks): New function.
5441         (pass_diagnose_omp_blocks): New pass.
5442         * cgraph.h (cgraph_optimize): Remove.
5443         (cgraph_analyze_function): Likewise.
5444         * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
5445         * cgraphunit.c (cgraph_lower_function): Lower nested functions
5446         before their parents here.
5447         (cgraph_finalize_function): Not here.
5448         (cgraph_analyze_function): Gimplify functions here.
5449         (cgraph_finalize_compilation_unit): Continue after errors.
5450         Optimize the callgraph from here.
5451         (cgraph_optimize): Make static.
5452         * langhooks.c (write_global_declarations): Finalize the CU.
5453         * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
5454         (gimplify_function_tree): Assert we gimplify only once.
5455         Set PROP_gimple_any property.
5456         * tree-nested.c (gimplify_all_functions): New function.
5457         (lower_nested_functions): Gimplify all nested functions.
5458         * gimple.h (diagnose_omp_structured_block_errors): Remove.
5459         * passes.c (init_optimization_passes): Add pass_warn_unused_result
5460         and pass_diagnose_omp_blocks after gimplification.  Do not
5461         set TODO_set_props on all_lowering_passes.
5462         (execute_one_pass): Do not handle TODO_set_props.
5463         * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
5464         (gimplify.o): Add tree-pass.h dependency.
5465         * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
5466         (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
5467         (unsave_r): Likewise.
5468         * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
5469         temporary variable.
5470
5471 2009-07-17  Sandra Loosemore  <sandra@codesourcery.com>
5472
5473         * doc/service.texi (Service): Restore previously removed link,
5474         which isn't broken after all.
5475
5476 2009-07-17  Richard Guenther  <rguenther@suse.de>
5477
5478         PR tree-optimization/40321
5479         * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
5480         PHI nodes to the maximal set.
5481         (make_values_for_phi): Add PHI arguments to the maximal set.
5482         (execute_pre): Dump PHI_GEN and the maximal set.
5483
5484 2009-07-17  Jakub Jelinek  <jakub@redhat.com>
5485
5486         PR c++/40780
5487         * gimplify.c (gimplify_conversion): Don't change non-conversions into
5488         VIEW_CONVERT_EXPR.
5489
5490 2009-07-16  Sandra Loosemore  <sandra@codesourcery.com>
5491
5492         * doc/extend.texi (Nested Functions): Replace broken link with
5493         textual reference.
5494         * doc/service.texi (Service): Remove broken link.
5495
5496 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
5497
5498         PR bootstrap/40781
5499         * builtins.c (expand_builtin_memcmp): Use loc instead of
5500         EXPR_LOCATION (exp).
5501         (expand_builtin_strncmp): Likewise.
5502
5503 2009-07-17  Aldy Hernandez  <aldyh@redhat.com>
5504             Manuel López-Ibáñez  <manu@gcc.gnu.org>
5505
5506         PR 40435
5507         * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
5508         builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
5509         tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
5510         c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
5511         calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
5512         tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
5513         tree-inline.c, c-common.c, c-common.h, gimple.c,
5514         tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
5515         convert.c: Add location argument to fold_{unary,binary,ternary},
5516         fold_build[123], build_call_expr, build_size_arg,
5517         build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
5518         fold_build1_initializer, fold_build2_initializer,
5519         fold_build3_initializer, fold_build_call_array,
5520         fold_build_call_array_initializer, fold_single_bit_test,
5521         omit_one_operand, omit_two_operands, invert_truthvalue,
5522         fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
5523         combine_comparisons, fold_builtin_*, fold_call_expr,
5524         build_range_check, maybe_fold_offset_to_address, round_up,
5525         round_down.
5526
5527 2009-07-16  Jason Merrill  <jason@redhat.com>
5528
5529         PR libstdc++/37907
5530         * c-common.c (c_common_reswords): Add __is_standard_layout
5531         and __is_trivial.
5532         * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
5533         * doc/implement-cxx.texi: New.
5534         * doc/gcc.texi: Include it.
5535
5536 2009-07-16  DJ Delorie  <dj@redhat.com>
5537
5538         * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
5539         compares that may be indirectly affected by previous instructions.
5540
5541 2009-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5542
5543         * builtins.c (do_mpc_arg2): New.
5544         (fold_builtin_2): Fold builtin cpow.
5545         * real.h (HAVE_mpc_pow): New.
5546
5547 2009-07-16  Bingfeng Mei  <bmei@broadcom.com>
5548
5549         * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
5550         comparison to skip unprofitable schedule
5551
5552 2009-07-16  Simon Baldwin  <simonb@google.com>
5553
5554         * gcc.c (option_map): New flag -no-canonical-prefixes.
5555         * (display_help): Print help text for new flag.
5556         * (process_command): Move options translation and language specifics
5557         and handle new flag early.  Use it to set a function pointer to a
5558         prefix builder.  Replace make_relative_prefix calls with calls to
5559         the function pointed to.  Ignore new flag in regular options handling.
5560         * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
5561
5562 2009-07-15  DJ Delorie  <dj@redhat.com>
5563
5564         * config/mep/mep.md (sibcall_internal): Change register to avoid
5565         argument registers.
5566         (sibcall_value_internal): Likewise.
5567
5568 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
5569
5570         PR rtl-optimization/40710
5571         * resource.c (mark_target_live_regs): Reset DF problem to LR.
5572
5573 2009-07-15  Adam Nemet  <anemet@caviumnetworks.com>
5574
5575         * config/mips/mips.md (*extenddi_truncate<mode>,
5576         *extendsi_truncate<mode>): Change type attribute to move_type
5577         with shift_shift.  Split out code handling exts from here ...
5578         (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
5579         pattern.
5580         (*extendhi_truncateqi): Change type attribute to move_type with
5581         shift_shift.  Split out code handling exts from here ...
5582         (*extendhi_truncateqi_exts): ... to this new pattern.
5583
5584 2009-07-15  Uros Bizjak  <ubizjak@gmail.com>
5585
5586         * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
5587         instead of "and" with inverted sign bit mask value.  Use
5588         "nonimmediate_operand" for operand 1 and operand 2 predicate.
5589         Allocate registers only for operand 4 and operand 5.
5590
5591 2009-07-15  Jakub Jelinek  <jakub@redhat.com>
5592
5593         PR middle-end/40747
5594         * fold-const.c (fold_cond_expr_with_comparison): When folding
5595         < and <= to MIN, make sure the MIN uses the same type as the
5596         comparison's operands.
5597
5598 2009-07-15  Richard Earnshaw  <rearnsha@arm.com>
5599
5600         * arm.md (ior_xor): New code iterator.
5601         (split for ior/xor with shift and zero-extend): New split pattern.
5602         * arm/predicates.md (subreg_lowpart_operator): New special predicate.
5603
5604 2009-07-15  Richard Guenther  <rguenther@suse.de>
5605
5606         * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
5607         offset member.
5608
5609 2009-07-15  Richard Guenther  <rguenther@suse.de>
5610
5611         PR middle-end/40753
5612         * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
5613
5614 2009-07-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
5615
5616         * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
5617         handle 2.6.30 kernel.
5618
5619 2009-07-15  DJ Delorie  <dj@redhat.com>
5620
5621         * config/mep/mep.md (sibcall_internal): Change register to allow
5622         for 24-bit addresses.
5623         (sibcall_value_internal): Likewise.
5624
5625 2009-07-14  Ghassan Shobaki  <ghassan.shobaki@amd.com>
5626
5627         * doc/invoke.texi: Added descriptions of the  scheduling heuristics
5628         that are enabled/disabled by the flags introduced by a previous patch.
5629
5630 2009-07-14  DJ Delorie  <dj@redhat.com>
5631
5632         * config/mep/mep.md (sibcall_internal): Include non-toggling
5633         non-jmp case.
5634         (sibcall_value_internal): Likewise.
5635
5636 2009-07-14  Taras Glek  <tglek@mozilla.com>
5637             Rafael Espindola  <espindola@google.com>
5638
5639         * doc/sourcebuild.texi: Document install-plugin target.
5640         * configure.ac: Added install-plugin target to language makefiles.
5641         * configure: Regenerate.
5642         * Makefile.in: (install-plugin): Install more headers,
5643         depend on lang.install-plugin.
5644
5645 2009-07-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5646
5647         * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
5648         translation.
5649
5650 2009-07-14  DJ Delorie  <dj@redhat.com>
5651
5652         * config/mep/mep.c (mep_vliw_jmp_match): New function.
5653         * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
5654         * config/mep/mep.md (sibcall_internal): Change test from
5655         mep_vliw_mode_match to mep_vliw_jmp_match.
5656         (sibcall_value_internal): Likewise.
5657
5658 2009-07-14  Uros Bizjak  <ubizjak@gmail.com>
5659
5660         * config/i386/sse.md (copysign<mode>3): New expander.
5661         * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
5662         * config/i386/i386.c (ix86_build_signbit_mask): Make public.
5663         Use ix86_build_const_vector.
5664         (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
5665         IX86_BUILTIN_CPYSGNPD.
5666         (builtin_description): Add __builtin_ia32_copysignps and
5667         __builtin_ia32_copysignpd.
5668         (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
5669         and BUILT_IN_COPYSIGNF.
5670
5671 2009-07-13  Jason Merrill  <jason@redhat.com>
5672
5673         * builtins.c (can_trust_pointer_alignment): New fn.
5674         (get_pointer_alignment): Factor it out from here.
5675         * tree.h: Declare it.
5676
5677 2009-07-14  David Edelsohn  <edelsohn@gnu.org>
5678
5679         * config/rs6000/predicates.md (offsettable_mem_operand): Test
5680         RTX_AUTOINC class.
5681
5682 2009-07-14  Dodji Seketeli  <dodji@redhat.com>
5683
5684         PR debug/40705
5685         PR c++/403057
5686         * dwarf2.out.c (gen_type_die_with_usage): Added comment.
5687
5688 2009-07-14  Richard Guenther  <rguenther@suse.de>
5689             Andrey Belevantsev <abel@ispras.ru>
5690
5691         PR middle-end/40745
5692         * cfgexpand.c (partition_stack_vars): Do not bother to update
5693         alias information when not optimizing.
5694
5695 2009-07-14  Richard Guenther  <rguenther@suse.de>
5696             Andrey Belevantsev <abel@ispras.ru>
5697
5698         * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
5699         (pt_solution_set): Likewise.
5700         * tree-ssa-alias.c (refs_may_alias_p_1): Export.
5701         * tree-ssa-structalias.c (pt_solution_set): New function.
5702         * final.c (rest_of_clean_state): Free SSA data structures.
5703         * print-rtl.c (print_decl_name): Remove.
5704         (print_mem_expr): Implement in terms of print_generic_expr.
5705         * alias.c (ao_ref_from_mem): New function.
5706         (rtx_refs_may_alias_p): Likewise.
5707         (true_dependence): Query alias-export info.
5708         (canon_true_dependence): Likewise.
5709         (write_dependence_p): Likewise.
5710         * tree-dfa.c (get_ref_base_and_extent): For void types leave
5711         size unknown.
5712         * emit-rtl.c (component_ref_for_mem_expr): Remove.
5713         (mem_expr_equal_p): Use operand_equal_p.
5714         (set_mem_attributes_minus_bitpos): Do not use
5715         component_ref_for_mem_expr.
5716         * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
5717         (update_alias_info_with_stack_vars): Likewise.
5718         (partition_stack_vars): Call update_alias_info_with_stack_vars.
5719         * tree-ssa.c (delete_tree_ssa): Do not release SSA names
5720         explicitly nor clear stmt operands.
5721         Free the decl-to-pointer map.
5722         * tree-optimize.c (execute_free_datastructures): Do not free
5723         SSA data structures here.
5724         * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
5725         * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
5726         (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
5727         dependencies.
5728         (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
5729
5730 2009-07-13  DJ Delorie  <dj@redhat.com>
5731
5732         * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
5733         unrolling at the right iteration count.
5734
5735         * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
5736         calculations.
5737
5738 2009-07-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
5739
5740         * haifa-sched.c (rank_for_schedule): Introduced flags to
5741         enable/disable individual scheduling heuristics.
5742         * common.opt: Introduced flags to enable/disable individual
5743         heuristics in the scheduler.
5744         * doc/invoke.texi: Introduced flags to enable/disable individual
5745         heuristics in the scheduler.
5746
5747 2009-07-13  Kai Tietz  <kai.tietz@onevision.com>
5748
5749         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
5750         config/i386/mingw-tls.c.
5751         * config/i386/mingw-tls.c: Removed.
5752
5753 2009-07-13  Ira Rosen  <irar@il.ibm.com>
5754
5755         * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
5756         checks access only relevant statements.
5757         (vectorizable_reduction): Likewise.
5758
5759 2009-07-12  Kai Tietz  <kai.tietz@onevision.com>
5760
5761         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
5762         just for 32-bit case.
5763
5764 2009-07-12  Jan Hubicka  <jh@suse.cz>
5765
5766         PR tree-optimization/40585
5767         * except.c (expand_resx_expr): When there already is resume
5768         instruction, produce linked list.
5769         (build_post_landing_pads): Assert that resume is empty.
5770         (connect_post_landing_pads): Handle resume lists.
5771         (dump_eh_tree): Dump resume list.
5772
5773 2009-07-12  Ira Rosen  <irar@il.ibm.com>
5774
5775         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
5776         with additional argument.
5777         * tree-vectorizer.h (enum vect_def_type): Add
5778         vect_double_reduction_def.
5779         (vect_is_simple_reduction): Add argument.
5780         * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
5781         indentation.
5782         (vect_analyze_scalar_cycles_1): Detect double reduction. Call
5783         vect_is_simple_reduction with additional argument.
5784         (vect_analyze_loop_operations): Handle exit phi nodes in case of
5785         double reduction.
5786         (reduction_code_for_scalar_code): Handle additional codes by
5787         returning ERROR_MARK for them. Fix comment and indentation.
5788         (vect_is_simple_reduction): Fix comment, add argument to specify
5789         double reduction. Detect double reduction.
5790         (get_initial_def_for_induction): Fix indentation.
5791         (get_initial_def_for_reduction): Fix comment and indentation.
5792         Handle double reduction. Create initial definitions that do not
5793         require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
5794         (vect_create_epilog_for_reduction): Fix comment, add argument to
5795         handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
5796         epilogue result extraction. Create double reduction phi node and
5797         replace relevant uses.
5798         (vectorizable_reduction): Call vect_is_simple_reduction with
5799         additional argument. Fix indentation. Update epilogue code treatment
5800         according to the changes in reduction_code_for_scalar_code. Check
5801         for double reduction. Call vect_create_epilog_for_reduction with
5802         additional argument.
5803         * tree-vect-stmts.c (process_use): Handle double reduction, update
5804         documentation.
5805         (vect_mark_stmts_to_be_vectorized): Handle double reduction.
5806         (vect_get_vec_def_for_operand): Likewise.
5807
5808 2009-07-12  Danny Smith  <dansmister@gmail.com>
5809
5810         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
5811         dllexport if !TREE_PUBLIC.
5812         (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
5813
5814 2009-07-11  Anatoly Sokolov  <aesok@post.ru>
5815
5816         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
5817         (avr_extra_arch_macro) Remove declatation.
5818         * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
5819         (avr_extra_arch_macro) Declare as static.
5820         * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
5821
5822 2009-07-11  Jan Hubicka  <jh@suse.cz>
5823
5824         PR middle-end/48388
5825         * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
5826
5827 2009-07-11  Jakub Jelinek  <jakub@redhat.com>
5828
5829         PR debug/40713
5830         * dwarf2out.c (dw_fde_struct): Add in_std_section and
5831         cold_in_std_section bits.
5832         (dwarf2out_begin_prologue): Initialize them.
5833         (dwarf2out_finish): Don't emit FDE range into .debug_ranges
5834         if already covered by text_section or cold_text_section range.
5835
5836         PR rtl-optimization/40667
5837         * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
5838         * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
5839         * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
5840         * config/i386/i386.c (ix86_minimum_alignment): New function.
5841         * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
5842         * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
5843         * emit-rtl.c (gen_reg_rtx): Likewise.
5844         * function.c (assign_parms): Likewise.  If nominal_type needs
5845         bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
5846         rather than passed_type's alignment.
5847
5848         PR target/40668
5849         * function.c (assign_parm_setup_stack): Adjust
5850         MEM_OFFSET (data->stack_parm) if promoted_mode is different
5851         from nominal_mode on big endian.
5852
5853 2009-07-11  Paolo Bonzini  <bonzini@gnu.org>
5854
5855         * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
5856
5857 2009-07-10  DJ Delorie  <dj@redhat.com>
5858
5859         * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
5860
5861 2009-07-10  Mark Mitchell  <mark@codesourcery.com>
5862
5863         * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
5864         attribute.
5865         (thumb2_cbnz): Likewise.
5866
5867 2009-07-10  David Daney  <ddaney@caviumnetworks.com>
5868
5869         PR target/39079
5870         * config.gcc (supported_defaults): Add synci.
5871         (with_synci): Add validation.
5872         (all_defaults): Add synci.
5873         * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
5874         ISA_HAS_SYNCI.
5875         (synci): Same.
5876         * config/mips/mips.opt (msynci): New option.
5877         * config/mips/mips.c (mips_override_options): Warn on use of
5878         -msynci for targets that do now support it.
5879         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
5880         msynci.
5881         * gcc/doc/invoke.texi (-msynci): Document the new option.
5882         * doc/install.texi (--with-synci): Document the new option.
5883
5884 2009-07-10  Richard Guenther  <rguenther@suse.de>
5885
5886         PR tree-optimization/40496
5887         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
5888         the PHI result with a compatible type.
5889
5890 2009-07-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5891
5892         PR 25509
5893         PR 40614
5894         * c.opt (Wunused-result): New.
5895         * doc/invoke.texi: Document it.
5896         * c-common.c (c_warn_unused_result): Use it.
5897
5898 2009-07-09  DJ Delorie  <dj@redhat.com>
5899
5900         * targhooks.c (default_target_can_inline_p): Rename from
5901         default_target_option_can_inline_p.
5902         * targhooks.h (default_target_can_inline_p): Likewise.
5903         * target-def.h (TARGET_CAN_INLINE_P): Rename from
5904         TARGET_OPTION_CAN_INLINE_P.
5905         * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
5906         * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
5907         (mep_target_can_inline_p): Rename from
5908         mep_target_option_can_inline_p.
5909
5910         PR target/40626
5911         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
5912         registers used to pass vectors.
5913
5914         * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
5915
5916 2009-07-09  Tom Tromey  <tromey@redhat.com>
5917
5918         * unwind-dw2-fde-darwin.c: Include dwarf2.h.
5919         * config/mmix/mmix.c: Include dwarf2.h.
5920         * config/rs6000/darwin-fallback.c: Include dwarf2.h.
5921         * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
5922         * config/sh/sh.c: Include dwarf2.h.
5923         * config/i386/i386.c: Include dwarf2.h.
5924         * Makefile.in (DWARF2_H): Remove 'elf'.
5925         * except.c: Include dwarf2.h.
5926         * unwind-dw2.c: Include dwarf2.h.
5927         * dwarf2out.c: Include dwarf2.h.
5928         * unwind-dw2-fde-glibc.c: Include dwarf2.h.
5929         * unwind-dw2-fde.c: Include dwarf2.h.
5930         * dwarf2asm.c: Include dwarf2.h.
5931
5932 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
5933
5934         * haifa-sched.c (insn_finishes_cycle_p): New static function.
5935         (max_issue): Use it.
5936         * sched-int.h (struct sched_info: insn_finishes_block_p): New
5937         scheduler hook.
5938         * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
5939         (region_sched_info): Update.
5940         * sched-ebb.c (ebb_sched_info): Update.
5941         * modulo-sched.c (sms_sched_info): Update.
5942         * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
5943
5944 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
5945
5946         * varasm.c (build_constant_desc): Don't share RTL in pool entries.
5947
5948 2009-07-09  Basile Starynkevitch  <basile@starynkevitch.net>
5949
5950         * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
5951
5952 2009-07-09  Jakub Jelinek  <jakub@redhat.com>
5953
5954         PR middle-end/40692
5955         * fold-const.c (fold_cond_expr_with_comparison): Don't replace
5956         arg1 with arg01 if arg1 is already INTEGER_CST.
5957
5958 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
5959
5960         * simplify-rtx.c (simplify_binary_operation_1) <AND>:
5961         Transform (and (truncate)) into (truncate (and)).
5962
5963 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
5964
5965         * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
5966         creating LHS paradoxical subregs.  Fix surrounding returns to
5967         use NULL_RTX rather than 0.
5968
5969 2009-07-08  DJ Delorie  <dj@redhat.com>
5970
5971         * config/mep/mep.c: (mep_option_can_inline_p): New.
5972         (TARGET_OPTION_CAN_INLINE_P): Define.
5973
5974 2009-07-08  Mark Wielaard  <mjw@redhat.com>
5975
5976         PR debug/40659
5977         * dwarf2out.c (add_data_member_location_attribute): When we have
5978         only a constant offset don't emit a new location description using
5979         DW_OP_plus_uconst, but just add the constant with add_AT_int, when
5980         dwarf_version > 2.
5981
5982 2009-07-08  Richard Henderson  <rth@redhat.com>
5983
5984         PR target/38900
5985         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
5986         (enum reg_class): Add CLOBBERED_REGS.
5987         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
5988         * config/i386/i386.c (ix86_conditional_register_usage): Moved
5989         from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
5990         (ix86_function_ok_for_sibcall): Tidy.  Disallow MS->SYSV sibcalls.
5991         (ix86_expand_call): Use sibcall_insn_operand when needed.  Don't
5992         force 64-bit sibcalls into R11.
5993         * config/i386/constraints.md (U): New constraint.
5994         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
5995         (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
5996         (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
5997
5998 2009-07-08  Shujing Zhao  <pearly.zhao@oracle.com>
5999
6000         * basic-block.h (dump_regset, debug_regset): Remove duplicate
6001         prototypes.
6002         * c-objc-common.h (c_initialize_diagnostics): Ditto.
6003         * ebitmap.h (dump_ebitmap): Ditto.
6004         * optabs.h (optab_libfunc): Ditto.
6005         * tree.h (tree_expr_nonzero_warnv_p): Ditto.
6006         * tree-flow.h (vect_can_force_dr_alignment_p,
6007         get_vectype_for_scalar_type): Ditto.
6008         (vectorize_loops): Move prototype to ...
6009         * tree-vectorizer.h: ... here. Also, adjust comment.
6010         (vect_set_verbosity_level): Remove duplicate prototype.
6011         * tree-ssa-loop.c: Include tree-vectorizer.h.
6012         * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
6013
6014 2009-07-08  Nick Clifton  <nickc@redhat.com>
6015
6016         * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
6017         forward slash.
6018
6019 2009-07-08  DJ Delorie  <dj@redhat.com>
6020
6021         * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
6022         cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
6023         cpmovtocc_P0S_P1): Mark volatile.  Note which registers are
6024         written to.
6025         * config/mep/intrinsics.md: Regenerated.
6026         * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
6027         registers when asm() or calls are detected.
6028
6029 2009-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6030
6031         PR c++/31246
6032         * gimplify.c (gimplify_expr): Propagate no_warning flag when
6033         gimplifying.
6034         * gimple (gimple_build_call_from_tree): Likewise.
6035         * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
6036         no_warning flag before warning.
6037
6038 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6039
6040         * tree.c (set_expr_locus): Remove.
6041         * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
6042         * c-typeck.c (c_finish_stmt_expr):  Replace EXPR_LOCUS by
6043         EXPR_LOCATION.
6044         * gimplify.c (internal_get_tmp_var): Likewise.
6045         (gimplify_call_expr): Likewise.
6046         (gimplify_one_sizepos): Likewise.
6047
6048 2009-07-07  Eric Botcazou  <ebotcazou@adacore.com>
6049
6050         PR debug/40666
6051         * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
6052         to variables for debugging purposes.
6053
6054 2009-06-23  Mark Loeser  <mark@halcy0n.com>
6055
6056         PR build/40010
6057         * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
6058
6059 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6060
6061         * pretty-print.c (pp_base_format): Remove %J.
6062         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
6063         gcc_cxxdiag_char_table): Likewise.
6064         (init_dynamic_diag_info): Likewise.
6065
6066 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6067
6068         * pretty-print.c (pp_base_format): Remove %H.
6069         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
6070         gcc_cxxdiag_char_table): Likewise.
6071         (init_dynamic_diag_info): Likewise.
6072         * config/mep/mep.c (mep_select_section): Likewise.
6073
6074 2009-07-07  Duncan Sands  <baldrick@free.fr>
6075
6076         * final.c (pass_clean_state): Give the pass a name.
6077         * passes.c (pass_rest_of_compilation): Likewise.
6078         * tree-optimize.c (pass_all_optimizations): Likewise.
6079
6080 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
6081
6082         * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
6083         an extra 'decl' for error_at.
6084
6085 2009-07-07  Jakub Jelinek  <jakub@redhat.com>
6086
6087         PR middle-end/40669
6088         * tree-tailcall.c (adjust_return_value_with_ops,
6089         create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
6090         if it has complex or vector type.
6091
6092 2009-07-07  Olivier Hainque  <hainque@adacore.com>
6093
6094         * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
6095         pthread symbols.
6096
6097 2009-07-07  Basile Starynkevitch  <basile@starynkevitch.net>
6098
6099         * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
6100
6101 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6102
6103         * cgraphunit.c: Replace %J by an explicit location.  Update all calls.
6104         * c-decl.c: Likewise.
6105         * function.c: Likewise.
6106         * varasm.c: Likewise.
6107         * tree-ssa.c: Likewise.
6108         * c-common.c: Likewise.
6109         * tree-cfg.c: Likewise.
6110         * config/spu/spu.c: Likewise.
6111         * config/ia64/ia64.c: Likewise.
6112         * config/v850/v850.c: Likewise.
6113
6114 2009-07-06  DJ Delorie  <dj@redhat.com>
6115
6116         * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
6117         * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
6118         unspecified accesses to control registers.
6119         * config/mep/intrinsics.md: Regenerate.
6120         * config/mep/intrinsics.h: Regenerate.
6121         * config/mep/mep-intrin.h: Regenerate.
6122
6123 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6124
6125         * c-lex.c: Replace %H by an explicit location. Update all calls.
6126         * c-common.c: Likewise.
6127         * c-decl.c: Likewise.
6128         * c-typeck.c: Likewise.
6129         * fold-const.c: Likewise.
6130         * gimplify.c: Likewise.
6131         * stmt.c: Likewise.
6132         * tree-cfg.c: Likewise.
6133         * tree-ssa-loop-niter.c: Likewise.
6134         * tree-vrp.c: Likewise.
6135         * value-prof.c: Likewise.
6136
6137 2009-07-06  Diego Novillo  <dnovillo@google.com>
6138
6139         * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
6140         if it has one.  Handle cases where VAR does not have an
6141         annotation or cfun is NULL.
6142
6143 2009-07-06  Diego Novillo  <dnovillo@google.com>
6144
6145         * tree.c: Include debug.h.
6146         (initialize_tree_contains_struct): New.
6147         (init_ttree): Call it.
6148         (tree_node_structure_for_code): Factor out of ...
6149         (tree_node_structure): ... here.
6150         * treestruct.def (TS_PHI_NODE): Remove.
6151         (TS_GIMPLE_STATEMENT): Remove.
6152
6153 2009-07-06  Diego Novillo  <dnovillo@google.com>
6154
6155         * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
6156         (debug_tree_chain): Handle cycles.
6157
6158 2009-07-06  Nick Clifton  <nickc@redhat.com>
6159             DJ Delorie  <dj@redhat.com>
6160
6161         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
6162         __FMOVD_ENABLED__ is defined.
6163         * config/sh/sh.h
6164         (TARGET_FMOVD): Provide a default definition.
6165         (MASK_FMOVD): Likewise.
6166         (TARGET_CPU_CPP_BUILTINS): Define
6167         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
6168         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
6169         two fmov instructions depending upon whether TARGET_FMOVD is enabled.
6170         (split for DF load from memory into register): Also handle
6171         MEMs which consist of REG+DISP addressing.
6172         (split for DF store from register to memory): Likewise.
6173         (movsf_ie): Always use single fp_mode.
6174         * config/sh/sh.c (sh_override_options): Do not automatically
6175         enable TARGET_MOVD for the SH2A when supporting doubles - leave
6176         that to the -mfmovd command line switch.
6177         (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
6178         (fldi_ok): Always allow.
6179         * config/sh/sh.opt (mfmovd): Remove this switch.
6180         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
6181
6182 2009-07-06  J"orn Rennecke  <joern.rennecke@arc.com>
6183             Kaz Kojima  <kkojima@gcc.gnu.org>
6184
6185         PR rtl-optimization/30807
6186         * postreload.c (reload_combine): For every new use of REG_SUM,
6187         record the use of BASE.
6188
6189 2009-07-06  Jan Hubicka  <jh@suse.cz>
6190
6191         * params.def: Revert my accidental commit at 2009-06-30.
6192
6193 2009-07-04  Ian Lance Taylor  <iant@google.com>
6194
6195         PR target/40636
6196         * config/i386/msformat-c.c (mingw_format_attributes): Declare as
6197         EXPORTED_CONST.
6198         (mingw_format_attribute_overrides): Likewise.
6199
6200 2009-07-04  Jakub Jelinek  <jakub@redhat.com>
6201
6202         PR debug/40596
6203         * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
6204         don't check cfa.reg.  Instead of cfa.indirect use
6205         fde && fde->drap_reg != INVALID_REGNUM test.
6206
6207 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
6208
6209         * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
6210
6211 2009-07-03  Vladimir Makarov  <vmakarov@redhat.com>
6212
6213         PR target/40587
6214         * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
6215
6216 2009-07-03  Richard Guenther  <rguenther@suse.de>
6217
6218         PR tree-optimization/40640
6219         * tree-switch-conversion.c (build_arrays): Perform arithmetic
6220         in original type.
6221
6222 2009-07-03  Jan Hubicka  <jh@suse.cz>
6223
6224         * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
6225         for size, reduce amount of inlining.
6226
6227 2009-07-03  Richard Guenther  <rguenther@suse.de>
6228
6229         PR middle-end/34163
6230         * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
6231         if t +- x is known to not overflow and the conversion widens the
6232         operation.
6233         * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
6234
6235 2009-07-03  Jan Hubicka  <jh@suse.cz>
6236
6237         * ipa-pure-const.c (analyze): Update loop optimizer init.
6238         * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
6239         try_remove_empty_loop, remove_empty_loops): Remove.
6240         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
6241         * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
6242         to mark regular loops as neccesary.
6243         (degenerate_phi_p): New function.
6244         (propagate_necessity, remove_dead_phis): Use it.
6245         (forward_edge_to_pdom): Likewise.
6246         (eliminate_unnecessary_stmts): Take care to remove uses of results of
6247         virtual PHI nodes that became unreachable.
6248         (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
6249         * tree-flow.h (remove_empty_loops): Remove.
6250         * passes.c (init_optimization_passes): Remove.
6251
6252 2009-07-03  Uros Bizjak  <ubizjak@gmail.com>
6253
6254         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
6255         can_create_pseudo_p.
6256         (*fix_trunc<mode>_i387_1): Ditto.
6257         (*floathi<mode>2_1): Ditto.
6258         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
6259         (*fistdi2_1): Ditto.
6260         (*fist<mode>2_1): Ditto.
6261         (frndintxf2_floor): Ditto.
6262         (*fist<mode>2_floor_1): Ditto.
6263         (frndintxf2_ceil): Ditto.
6264         (*fist<mode>2_ceil_1): Ditto.
6265         (frndintxf2_trunc): Ditto.
6266         (frndintxf2_mask_pm): Ditto.
6267         (fxam<mode>2_i387_with_temp): Ditto.
6268         * config/i386/sse.md (mulv16qi3): Ditto.
6269         (*sse2_mulv4si3): Ditto.
6270         (mulv2di3): Ditto.
6271         (sse4_2_pcmpestr): Ditto.
6272         (sse4_2_pcmpistr): Ditto.
6273
6274 2009-07-03  Jan Hubicka  <jh@suse.cz>
6275
6276         * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
6277         (mark_stmt_necessary): Set it.
6278         (mark_operand_necessary): Set it.
6279         (mark_control_dependent_edges_necessary): Set it.
6280         (mark_virtual_phi_result_for_renaming): New function.
6281         (get_live_post_dom): New function.
6282         (forward_edge_to_pdom): New function.
6283         (remove_dead_stmt): Fix handling of control dependences.
6284         (tree_dce_init): Init new bitmap.
6285         (tree_dce_done): Free it.
6286
6287 2009-07-02  Richard Guenther  <rguenther@suse.de>
6288
6289         PR bootstrap/40617
6290         * tree-ssa-structalias.c (new_var_info): Initialize
6291         is_restrict_var.
6292
6293 2009-07-02  Jan Hubicka  <jh@suse.cz>
6294
6295         * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
6296         local.
6297
6298 2009-07-02  Paolo Bonzini  <bonzini@gnu.org>
6299
6300         * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
6301         instead of recomputing it.  Adjust calls.
6302         (emit_store_flag): Adjust recursive calls.
6303
6304 2009-07-02  Richard Guenther  <rguenther@suse.de>
6305
6306         * tree-ssa-live.c (remove_unused_locals): Do not remove
6307         heap variables.
6308         * tree-ssa-structalias.c (handle_lhs_call): Delay setting
6309         of DECL_EXTERNAL for HEAP variables.
6310         (compute_points_to_sets): Set DECL_EXTERNAL for escaped
6311         HEAP variables.  Do not adjust RESTRICT vars.
6312         (find_what_var_points_to): Nobody cares if something
6313         points to READONLY.
6314
6315 2009-07-02  Ben Elliston  <bje@au.ibm.com>
6316
6317         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
6318         pc_low and pc_high declarations to the top of the function.
6319
6320 2009-07-01  DJ Delorie  <dj@redhat.com>
6321
6322         * config/mep/mep.c (mep_handle_option): Leave IVC2 control
6323         registers as fixed.
6324         (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
6325         * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
6326         unspecified accesses to control registers.
6327         * config/mep/intrinsics.md: Regenerate.
6328         * config/mep/intrinsics.h: Regenerate.
6329         * config/mep/mep-intrin.h: Regenerate.
6330
6331 2009-07-01  Anthony Green  <green@moxielogic.com>
6332
6333         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
6334         instruction when possible.
6335         (moxie_expand_prologue): Ditto.  Also, save an instruction and
6336         some complexity by popping off of $r12 instead of $sp.
6337         * config/moxie/moxie.md (movsi_pop): Don't assume $sp.  Take two
6338         operands.
6339
6340 2009-07-01  Richard Henderson  <rth@redhat.com>
6341
6342         PR bootstrap/40347
6343         * function.c (reposition_prologue_and_epilogue_notes): If epilogue
6344         contained no insns, reposition note before last insn.
6345
6346 2009-07-01  Richard Henderson  <rth@redhat.com>
6347
6348         PR debug/40431
6349         * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
6350         DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
6351
6352 2009-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
6353
6354         PR bootstrap/40558
6355         * config/rs6000/rs6000.c (print_operand): Undo change that breaks
6356         darwin9 for printing reg addresses with %y.
6357
6358 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
6359
6360         * combine.c (force_to_mode): Handle TRUNCATE.  Factor out
6361         truncation from operands in binary operations.
6362
6363 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
6364
6365         Revert:
6366         2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
6367         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
6368         subreg of op0 to the original op0.
6369
6370         * expmed.c (store_bit_field_1): Use a temporary as the destination
6371         instead of a paradoxical subreg when we need to truncate the result.
6372
6373 2009-07-01  DJ Delorie  <dj@redhat.com>
6374
6375         * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
6376         names to VLIW variants.
6377         (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
6378         * config/mep/intrinsics.md: Regenerate.
6379         * config/mep/intrinsics.h: Regenerate.
6380         * config/mep/mep-intrin.h: Regenerate.
6381
6382 2009-07-01  Jakub Jelinek  <jakub@redhat.com>
6383
6384         PR debug/40462
6385         * jump.c (returnjump_p): Revert last patch.
6386         * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
6387
6388 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6389
6390         PR target/40575
6391         * pa.md (casesi32p): Use jump table label to determine the offset
6392         of the jump table.
6393         (casesi64p): Likewise.
6394
6395         * pa.c (forward_branch_p): Return bool type.  Use instruction
6396         addresses when available.  Assert that INSN has a jump label.
6397         (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
6398         have a jump label.
6399
6400 2009-07-01  Richard Guenther  <rguenther@suse.de>
6401
6402         PR tree-optimization/19831
6403         * tree-ssa-dce.c (propagate_necessity): Calls to functions
6404         that only act as barriers do not make any previous stores necessary.
6405         * tree-ssa-structalias.c (handle_lhs_call): Delay making
6406         HEAP variables global, do not add a constraint from nonlocal.
6407         (find_func_aliases): Handle escapes through return statements.
6408         (compute_points_to_sets): Make escaped HEAP variables global.
6409
6410 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
6411
6412         PR bootstrap/40597
6413         * expmed.c (emit_store_flag): Perform a conversion if necessary,
6414         after reducing a DImode cstore to SImode.
6415
6416 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
6417
6418         * expr.c (expand_expr_real_1): Reinstate fallthrough to
6419         TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
6420
6421 2009-07-01  Maciej W. Rozycki  <macro@linux-mips.org>
6422
6423         * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro.  Set to 1.
6424         * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro.  Redefine the
6425         to 0.
6426         * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
6427         and umod_optab if TARGET_BSD_DIVMOD.
6428         * config/vax/lib1funcs.asm: New file.
6429         * config/vax/t-linux: New file.
6430         * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
6431
6432 2009-06-30  Jakub Jelinek  <jakub@redhat.com>
6433
6434         PR c++/40566
6435         * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
6436         to type arguments that have void type.
6437
6438         PR debug/40573
6439         * dwarf2out.c (gen_formal_parameter_die): Call
6440         equate_decl_number_to_die if node is different from origin.
6441
6442 2009-06-30  Anthony Green  <green@moxielogic.com>
6443
6444         Clean up moxie port for --enable-build-with-cxx.
6445         * config/moxie/moxie.c (moxie_function_value): First two
6446         parameters are const_tree, not tree.
6447         * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
6448         (REG_CLASS_NAMES): Ditto.
6449         (REGNO_REG_CLASS): Ditto.
6450         * config/moxie/moxie-protos.h (moxie_override_options): Declare.
6451         (moxie_function_value): Fix constyness of arguments.
6452
6453 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
6454
6455         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
6456         finalize_size_functions before further processing.
6457         * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
6458         (variable_size): Call self_referential_size on size expressions
6459         that contain a PLACEHOLDER_EXPR.
6460         (size_functions): New static variable.
6461         (copy_self_referential_tree_r): New static function.
6462         (self_referential_size): Likewise.
6463         (finalize_size_functions): New global function.
6464         * tree.c: Include tree-inline.h.
6465         (push_without_duplicates): New static function.
6466         (find_placeholder_in_expr): New global function.
6467         (substitute_in_expr) <tcc_declaration>: Return the replacement object
6468         on equality.
6469         <tcc_expression>: Likewise.
6470         <tcc_vl_exp>: If the replacement object is a constant, try to inline
6471         the call in the expression.
6472         * tree.h (finalize_size_functions): Declare.
6473         (find_placeholder_in_expr): Likewise.
6474         (FIND_PLACEHOLDER_IN_EXPR): New macro.
6475         (substitute_placeholder_in_expr): Update comment.
6476         * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
6477         is true.
6478         (copy_tree_body_r): Likewise.
6479         (copy_tree_body): New static function.
6480         (maybe_inline_call_in_expr): New global function.
6481         * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
6482         (maybe_inline_call_in_expr): Declare.
6483         * Makefile.in (tree.o): Depend on TREE_INLINE_H.
6484         (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
6485         GIMPLE_H.
6486
6487 2009-06-30  Richard Guenther  <rguenther@suse.de>
6488
6489         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
6490         continue walking.
6491         (propagate_necessity): Do not mark reaching defs of stores
6492         as necessary.
6493
6494 2009-06-30  Jan Hubicka  <jh@suse.cz>
6495
6496         * cfgloopanal.c (check_irred): Move into ...
6497         (mark_irreducible_loops): ... here; return true if ireducible
6498         loops was found.
6499         * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
6500         (analyze_function): Try to prove loop finiteness.
6501         * cfgloop.h (mark_irreducible_loops): Update prototype.
6502         * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
6503
6504 2009-06-30  Basile Starynkevitch  <basile@starynkevitch.net>
6505
6506         * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
6507
6508 2009-06-30  Ira Rosen  <irar@il.ibm.com>
6509
6510         PR tree-optimization/40542
6511         * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
6512         types.
6513
6514 2009-06-30  Martin Jambor  <mjambor@suse.cz>
6515
6516         PR tree-optimization/40582
6517         * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
6518         than useless_type_conversion_p.
6519         (generate_subtree_copies): Increment sra_stats.subtree_copies at a
6520         proper place.
6521
6522 2009-06-30  Martin Jambor  <mjambor@suse.cz>
6523
6524         PR middle-end/40554
6525         * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
6526
6527 2009-06-30  Richard Guenther  <rguenther@suse.de>
6528
6529         * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
6530         use ao_ref references.
6531         (walk_aliased_vdefs): Likewise.
6532         * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
6533         * tree-ssa-dce.c (struct ref_data): Remove.
6534         (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
6535         (mark_aliased_reaching_defs_necessary): Adjust.
6536         (mark_all_reaching_defs_necessary_1): Likewise.
6537
6538 2009-06-30  Paolo Bonzini  <bonzini@gnu.org>
6539
6540         PR boostrap/40597
6541         * expmed.c (emit_cstore): New name of emit_store_flag_1.
6542         (emit_store_flag_1): Extract from emit_store_flag, adjust
6543         calls to (what now is) emit_cstore.
6544         (emit_store_flag): Call emit_store_flag_1 and also use it
6545         for what used to be recursive calls.
6546
6547 2009-06-30  Wei Guozhi  <carrot@google.com>
6548
6549         PR/40416
6550         * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
6551         if the target bb post dominates from bb.
6552         * config/i386/i386.c (memory_address_length): Check existence of base
6553         register before using it.
6554
6555 2009-06-30  Nick Clifton  <nickc@redhat.com>
6556             DJ Delorie  <dj@redhat.com>
6557
6558         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
6559         __FMOVD_ENABLED__ is defined.
6560         * config/sh/sh.h
6561         (TARGET_FMOVD): Provide a default definition.
6562         (MASK_FMOVD): Likewise.
6563         (TARGET_CPU_CPP_BUILTINS): Define
6564         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
6565         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
6566         two fmov instructions depending upon whether TARGET_FMOVD is
6567         enabled.
6568         (split for DF load from memory into register): Also handle
6569         MEMs which consist of REG+DISP addressing.
6570         (split for DF store from register to memory): Likewise.
6571         * config/sh/sh.opt (mfmovd): Remove this switch.
6572         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
6573         * config/sh/sh.c (sh_override_options): Do not automatically
6574         enable TARGET_MOVD for the SH2A when supporting doubles - leave
6575         that to the -mfmovd command line switch.
6576
6577         * config/sh/sh.c (broken_move): Do not restrict fldi test to only
6578         the SH4 and SH4A.
6579         (fldi_ok): Always allow.
6580         * config/sh/sh.md (movsf_ie): Always use single fp_mode.
6581
6582 2009-06-29  DJ Delorie  <dj@redhat.com>
6583
6584         * doc/install.texi (mep-x-elf): Correct chip's full name.
6585
6586 2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>
6587
6588         * doc/extend.texi: Fix typo.
6589
6590 2009-06-29  Tom Tromey  <tromey@redhat.com>
6591
6592         * dwarf2.h: Remove.
6593         * Makefile.in (DWARF2_H): New variable.
6594         (except.o): Use it.
6595         (dwarf2out.o): Likewise.
6596         (dwarf2asm.o): Likewise.
6597         * config/i386/t-i386: Use DWARF2_H.
6598         * except.c: Include elf/dwarf2.h.
6599         * unwind-dw2.c: Include elf/dwarf2.h.
6600         * dwarf2out.c: Include elf/dwarf2.h.
6601         (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
6602         <dtprel>: New field.
6603         (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
6604         (size_of_loc_descr): Likewise.
6605         (output_loc_operands_raw): Likewise.
6606         (output_loc_operands): Handle new dtprel field.
6607         (loc_checksum): Update.
6608         (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
6609         * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
6610         * unwind-dw2-fde.c: Include elf/dwarf2.h.
6611         * dwarf2asm.c: Include elf/dwarf2.h.
6612         * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
6613         * config/mmix/mmix.c: Include elf/dwarf2.h.
6614         * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
6615         * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
6616         * config/sh/sh.c: Include elf/dwarf2.h.
6617         * config/i386/i386.c: Include elf/dwarf2.h.
6618
6619 2009-06-29  DJ Delorie  <dj@redhat.com>
6620
6621         * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
6622
6623         * doc/extend.texi: Add MeP attributes and pragmas.
6624         * doc/invoke.text: Add MeP Options.
6625         * doc/contrib.texi: Add MeP contribution.
6626         * doc/md.texi: Add MeP constraints.
6627         * doc/install.texi: Add MeP target.
6628
6629 2009-06-30  Anatoly Sokolov  <aesok@post.ru>
6630
6631         * target.h (struct gcc_target): Add frame_pointer_required field.
6632         * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
6633         (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
6634         * ira.c (setup_eliminable_regset): Use frame_pointer_required target
6635         hook.
6636         * reload1.c (update_eliminables): (Ditto.).
6637         * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
6638         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
6639         (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
6640
6641         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
6642
6643         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
6644         * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
6645         (arm_frame_pointer_required): New function.
6646
6647         * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
6648         * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
6649         (avr_frame_pointer_required_p): Declare as static.
6650         * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
6651
6652         * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
6653         * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
6654         (bfin_frame_pointer_required): Make as static, change return type
6655         to bool.
6656         * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
6657
6658         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
6659         * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
6660         (cris_frame_pointer_required): New function.
6661
6662         * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
6663
6664         * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
6665         * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
6666         (fr30_frame_pointer_required): New function.
6667
6668         * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
6669         * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
6670         (frv_frame_pointer_required): Make as static, change return type
6671         to bool.
6672         * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
6673
6674         * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
6675         * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
6676         (ix86_frame_pointer_required): Make as static, change return type to
6677         bool.
6678         * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
6679
6680         * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
6681         * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
6682
6683         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
6684
6685         * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
6686
6687         * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
6688
6689         * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
6690         * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
6691         (mips_frame_pointer_required): Make as static.
6692         * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
6693
6694         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
6695         * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
6696         (mmix_frame_pointer_required): Mew function.
6697
6698         * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
6699         * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
6700
6701         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
6702
6703         * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
6704
6705         * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
6706
6707         * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
6708         (CAN_ELIMINATE): Redefine.
6709         * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
6710         (sparc_frame_pointer_required): New function.
6711         (sparc_can_eliminate): New function.
6712         * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
6713
6714         * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
6715         * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
6716
6717         * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
6718         * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
6719         (xtensa_frame_pointer_required): Make as static, change return type
6720         to bool.
6721         * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
6722         Remove.
6723
6724 2009-06-29  Olatunji Ruwase  <tjruwase@google.com>
6725
6726         * doc/plugins.texi: Document PLUGIN_START_UNIT.
6727         * toplev.c (compile_file): Call PLUGIN_START_UNIT.
6728         * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
6729         * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
6730         (register_callback): Handle PLUGIN_START_UNIT.
6731         (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
6732
6733 2009-06-29  Eric Botcazou  <ebotcazou@adacore.com>
6734
6735         * tree.c (process_call_operands): Propagate TREE_READONLY from the
6736         operands.
6737         (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
6738         (build3_stat): Propagate TREE_READONLY for COND_EXPR.
6739
6740 2009-06-29  Daniel Jacobowitz  <dan@codesourcery.com>
6741
6742         * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
6743         move cost.
6744
6745 2009-06-29  Uros Bizjak  <ubizjak@gmail.com>
6746
6747         * doc/extend.texi (Additional Floating Types): __float128 is also
6748         supported on i386 targets.
6749
6750 2009-06-29  Richard Guenther  <rguenther@suse.de>
6751
6752         PR middle-end/14187
6753         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
6754         flag.
6755         (pt_solutions_same_restrict_base): Declare.
6756         * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
6757         flag.
6758         (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
6759         (make_constraint_from, make_copy_constraint): Move earlier.
6760         (make_constraint_from_heapvar): New function.
6761         (make_constraint_from_restrict): Likewise.
6762         (handle_lhs_call): Use it.
6763         (find_func_aliases): Use it to track conversions to restrict
6764         qualified pointers.
6765         (struct fieldoff): Add only_restrict_pointers flag.
6766         (push_fields_onto_fieldstack): Initialize it.
6767         (create_variable_info_for): Track global restrict qualified pointers.
6768         (intra_create_variable_infos): Use make_constraint_from_heapvar.
6769         Track restrict qualified pointer arguments.
6770         (set_uids_in_ptset): Use varinfo is_global_var flag.
6771         (find_what_var_points_to): Set the vars_contains_restrict flag.
6772         Always create the points-to solution for sets including restrict tags.
6773         (pt_solutions_same_restrict_base): New function.
6774         * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
6775         qualified pointers use pt_solutions_same_restrict_base as
6776         additional source for disambiguation.
6777
6778 2009-06-29  Richard Guenther  <rguenther@suse.de>
6779
6780         PR middle-end/38212
6781         * alias.c (find_base_decl): Remove.
6782         (get_deref_alias_set_1): Remove restrict handling.
6783         * c-common.c (c_apply_type_quals_to_decl): Do not set
6784         DECL_POINTER_ALIAS_SET.
6785         * gimplify.c (find_single_pointer_decl_1): Remove.
6786         (find_single_pointer_decl): Likewise.
6787         (internal_get_tmp_var): Remove restrict handling.
6788         (gimple_regimplify_operands): Likewise.
6789         * omp-low.c (expand_omp_atomic_pipeline): Do not set
6790         DECL_POINTER_ALIAS_SET. Use ref-all pointers.
6791         * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
6792         * tree.c (restrict_base_for_decl): Remove.
6793         (init_ttree): Do not allocate it.
6794         (make_node_stat): Do not set DECL_POINTER_ALIAS_SET.  Set
6795         LABEL_DECL_UID for label decls.
6796         (copy_node_stat): Do not copy restrict information.
6797         (decl_restrict_base_lookup): Remove.
6798         (decl_restrict_base_insert): Likewise.
6799         (print_restrict_base_statistics): Likewise.
6800         (dump_tree_statistics): Do not call print_restrict_base_statistics.
6801         * tree.h (DECL_POINTER_ALIAS_SET): Remove.
6802         (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
6803         (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
6804         (LABEL_DECL_UID): Adjust.
6805         (DECL_BASED_ON_RESTRICT_P): Remove.
6806         (DECL_GET_RESTRICT_BASE): Likewise.
6807         (SET_DECL_RESTRICT_BASE): Likewise.
6808         (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
6809
6810         * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
6811         instead of DECL_POINTER_ALIAS_SET.
6812         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
6813         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
6814         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
6815
6816 2009-06-29  Richard Guenther  <rguenther@suse.de>
6817
6818         PR tree-optimization/40579
6819         * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
6820         the IL to simplify has constants that overflowed.
6821
6822 2009-06-28  Uros Bizjak  <ubizjak@gmail.com>
6823
6824         PR tree-optimization/40550
6825         * tree-vect-generic.c (expand_vector_operations_1): Compute in
6826         vector_compute_type only when the size of vector_compute_type is
6827         less than the size of type.
6828
6829 2009-06-28  Eric Botcazou  <ebotcazou@adacore.com>
6830
6831         * fold-const.c (contains_label_1): Fix comments.
6832         (contains_label_p): Do not walk trees multiple time.
6833
6834 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
6835
6836         * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
6837         * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
6838         cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
6839         ix86_fp_comparison_operator.
6840         (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
6841         *fp_jcc_2_sse, *fp_jcc_2_387): Delete
6842         (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
6843         *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
6844         !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
6845         to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
6846         (related splits): Change predicate to ix86_fp_comparison_operator.
6847         * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
6848         instead of ix86_fp_comparison_codes.
6849         (ix86_trivial_fp_comparison_operator,
6850         ix86_fp_comparison_operator): New.
6851         * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
6852         (ix86_expand_compare): Eliminate last two parameters.
6853         (ix86_fp_jump_nontrivial_p): Kill.
6854         * config/i386/i386.c (put_condition_code): Eliminate call to
6855         ix86_fp_comparison_codes and subsequent assertion.
6856         (ix86_fp_comparison_codes): Eliminate.
6857         (ix86_fp_swap_condition): New.
6858         (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
6859         ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
6860         into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
6861         (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
6862         and ix86_fp_swap_condition.
6863         (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
6864         Use ix86_fp_comparison_strategy.
6865         (ix86_expand_compare): Likewise.  Eliminate last two arguments.
6866         (ix86_fp_jump_nontrivial_p): Eliminate.
6867         (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple.  Adjust
6868         call to ix86_expand_compare.
6869         (ix86_split_fp_branch, ix86_expand_setcc,
6870         ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
6871         ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
6872
6873 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
6874
6875         * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
6876         related to jump_clobbers.
6877         * config/arm/arm.md (conds): Remove jump_clob case.
6878         (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
6879         splits): Change comparison_operator to arm_comparison_operator.
6880         (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
6881         Eliminate.
6882
6883 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
6884
6885         * dojump.c (do_compare_rtx_and_jump): Try swapping the
6886         condition for floating point modes.
6887         * expmed.c (emit_store_flag_1): Move here a bigger part
6888         of emit_store_flag.
6889         (emit_store_flag): Try swapping the condition for floating point
6890         modes.
6891         * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
6892
6893 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
6894
6895         * expr.c (expand_expr_real_1): Just use do_store_flag.
6896         (do_store_flag): Drop support for TRUTH_NOT_EXPR.  Use
6897         emit_store_flag_force.
6898         * expmed.c (emit_store_flag_force): Copy here trick
6899         previously in expand_expr_real_1.  Try reversing the comparison.
6900         (emit_store_flag_1): Work if target is NULL.
6901         (emit_store_flag): Work if target is NULL, using the result mode
6902         from the comparison.  Use split_comparison, restructure final part
6903         to simplify conditionals.
6904
6905 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
6906
6907         * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
6908         * dojump.c (do_jump): Change handling of floating-point
6909         ops to use just do_compare_and_jump.
6910         (split_comparison): New.
6911         (do_compare_rtx_and_jump): Add here logic coming previously
6912         in do_jump, using split_comparison.
6913
6914 2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>
6915
6916         PR target/40489
6917         * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
6918
6919 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
6920
6921         * tree-ssa-alias.c: Fix unintentional commit.
6922
6923 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
6924
6925         * passes.c (execute_one_pass): Fix unintentional commit.
6926
6927 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
6928
6929         * df-problems.c (df_set_seen, df_unset_seen): Delete.
6930         (df_rd_local_compute, df_md_local_compute): Inline them.
6931
6932         (df_md_scratch): New.
6933         (df_md_alloc, df_md_free): Allocate/free it.
6934         (df_md_local_compute): Only include live registers in init.
6935         (df_md_transfer_function): Prune the in-set computed by
6936         the confluence function, and the gen-set too.
6937
6938 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
6939
6940         PR rtl-optimization/26854
6941         * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
6942         * df-problems.c (df_rd_add_problem): Fix comment.
6943         (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
6944         df_md_simulate_artificial_defs_at_top,
6945         df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
6946         df_md_bb_local_compute, df_md_local_compute, df_md_reset,
6947         df_md_transfer_function, df_md_init, df_md_confluence_0,
6948         df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
6949         problem_MD, df_md_add_problem): New.
6950         * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
6951         df_md_get_bb_info): New.
6952         (DF_LAST_PROBLEM_PLUS1): Adjust.
6953
6954         * Makefile.in (fwprop.o): Include domwalk.h.
6955         * fwprop.c: Include domwalk.h.
6956         (reg_defs, reg_defs_stack): New.
6957         (bitmap_only_bit_between): Remove.
6958         (process_defs): New.
6959         (process_uses): Use reg_defs and local_md instead of
6960         bitmap_only_bit_between and local_rd.
6961         (single_def_use_enter_block): New, from build_single_def_use_links.
6962         (single_def_use_leave_block): New.
6963         (build_single_def_use_links): Remove code moved to
6964         single_def_use_enter_block, invoke domwalk.
6965         (use_killed_between): Adjust comment.
6966
6967 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
6968
6969         * bitmap.h (bitmap_ior_and_into): New.
6970         * bitmap.c (bitmap_ior_and_into): New.
6971
6972 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
6973
6974         * domwalk.h (struct dom_walk_data): Remove all callbacks except
6975         before_dom_children_before_stmts and after_dom_children_after_stmts.
6976         Rename the two remaining callbacks to just before_dom_children and
6977         after_dom_children. Remove other GIMPLE statement walking bits.
6978         * domwalk.c (walk_dominator_tree): Remove now unsupported features.
6979         * graphite.c: Do not include domwalk.h.
6980         * tree-into-ssa.c (interesting_blocks): New global.
6981         (struct mark_def_sites_global_data): Remove it and names_to_rename.
6982         (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
6983         rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
6984         now that they're not domwalk callbacks.
6985         (rewrite_initialize_block): Rename to...
6986         (rewrite_enter_block): ... this, place after called functions.  Test
6987         interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
6988         (rewrite_finalize_block): Rename to...
6989         (rewrite_leave_block): ... this, place after called functions.
6990         (rewrite_update_init_block): Rename to...
6991         (rewrite_update_enter_block): ... this, place after called functions.
6992         Test interesting_blocks, call rewrite_update_stmt and
6993         rewrite_update_phi_arguments.
6994         (rewrite_update_fini_block): Rename to...
6995         (rewrite_leave_block): ... this, place after called functions.
6996         (rewrite_blocks): Remove last argument, simplify initialization of
6997         walk_data.
6998         (mark_def_sites_initialize_block): Rename to...
6999         (mark_def_sites_block): ... this, call mark_def_sites.
7000         (mark_def_sites_blocks): Remove argument, simplify initialization of
7001         walk_data.
7002         (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
7003         (update_ssa): Likewise.
7004         * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
7005         callback.
7006         (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
7007         (dom_opt_initialize_block): Rename to...
7008         (dom_opt_enter_block): ... this, place after called functions.  Walk
7009         statements here, inline propagate_to_outgoing_edges.
7010         (dom_opt_finalize_block): Rename to...
7011         (dom_opt_leave_block): ... this, place after called functions.
7012         * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
7013         domwalk callback.
7014         (dse_enter_block, dse_record_phi): New.
7015         (dse_record_phis): Delete.
7016         (dse_finalize_block): Rename to...
7017         (dse_leave_block): ... this.
7018         (tree_ssa_dse): Simplify initialization of walk_data.
7019         * tree-ssa-loop-im.c (determine_invariantness, move_computations):
7020         Adjust initialization of walk_data.
7021         * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
7022         * tree-ssa-loop-phiopt.c (get_non_trapping):
7023         Adjust initialization of walk_data.
7024         * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
7025         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
7026         it's not a domwalk callback.
7027         (uncprop_initialize_block): Rename to...
7028         (dse_enter_block): ... this, call uncprop_into_successor_phis.
7029         (dse_finalize_block): Rename to...
7030         (dse_leave_block): ... this.
7031         (tree_ssa_uncprop): Simplify initialization of walk_data.
7032         * Makefile.in: Adjust dependencies.
7033
7034 2009-06-27  Richard Earnshaw  <rearnsha@arm.com>
7035
7036         * arm.md (casesi): Fix test for Thumb1.
7037         (thumb1_casesi_internal_pic): Likewise.
7038         (thumb1_casesi_dispatch): Likewise.
7039
7040 2009-06-26  Daniel Gutson  <dgutson@codesourcery.com>
7041
7042         * config/arm/arm-cores.def: Added core cortex-m0.
7043         * config/arm/arm-tune.md: Regenerated.
7044         * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
7045
7046 2009-06-26  DJ Delorie  <dj@redhat.com>
7047
7048         * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
7049
7050         * config/mep/mep.c (mep_bundle_insns): Account for the fact that
7051         the scheduler doesn't tag jump insns.
7052
7053 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
7054
7055         * c-decl.c (merge_decls): Re-indent.
7056
7057 2009-06-26  Janis Johnson  <janis187@us.ibm.com>
7058
7059         PR c/39902
7060         * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
7061         Special-case decimal float constants.
7062
7063 2009-06-26  Richard Henderson  <rth@redhat.com>
7064
7065         * function.h (struct function): Add cannot_be_copied_reason,
7066         and cannot_be_copied_set.
7067         * tree-inline.c (has_label_address_in_static_1): Rename from
7068         inline_forbidden_p_2; don't set inline_forbidden_reason here.
7069         (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
7070         don't set inline_forbidden_reason.
7071         (copy_forbidden): New function, split out of inline_forbidden_p.
7072         (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
7073         (inline_forbidden_p): Use copy_forbidden.
7074         (tree_versionable_function_p): Likewise.
7075         (inlinable_function_p): Merge into tree_inlinable_function_p.
7076         (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
7077         * ipa-cp.c (ipcp_versionable_function_p): New function.
7078         (ipcp_cloning_candidate_p): Use it.
7079         (ipcp_node_modifiable_p): Likewise.
7080
7081 2009-06-26  Olatunji Ruwase  <tjruwase@google.com>
7082
7083         * builtins.c (expand_builtin_alloca): Handle builtin alloca
7084         that is marked not to be inlined. Remove flag_mudflap use.
7085         * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
7086         (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
7087
7088 2009-06-26  Steve Ellcey  <sje@cup.hp.com>
7089
7090         PR bootstrap/40338
7091         * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
7092         * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
7093
7094 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
7095
7096         * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
7097         shared libgcc.
7098         (__mingwthr_remove_key_dtor): Likewise.
7099
7100 2009-06-26  Richard Guenther  <rguenther@suse.de>
7101
7102         * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
7103
7104 2009-06-26  Steven Bosscher  <steven@gcc.gnu.org>
7105
7106         PR middle-end/40525
7107         * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
7108         try the non-cond_exec path also.
7109
7110 2009-06-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7111
7112         PR target/40468
7113         * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
7114         (output_cbranch): Use new functions.
7115         (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
7116         Likewise.
7117
7118 2009-06-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
7119             Pat Haugen  <pthaugen@us.ibm.com>
7120             Revital Eres <ERES@il.ibm.com>
7121
7122         * config/rs6000/rs6000.c (print_operand): Correct lossage message
7123         for %c error.  Add %x support to print VSX registers as a unified
7124         register set, instead of separate float and altivec registers.
7125         Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
7126         %y case, and add support for VSX pre-modify addresses.
7127         (output_toc): Add assert for CONST containing an integer constant
7128         in the PLUS case.
7129         (rs6000_adjust_cost): Add POWER7 support.
7130         (insn_must_be_first_in_group): Ditto.
7131         (insn_must_be_last_in_group): Ditto.
7132         (rs6000_emit_popcount): Ditto.
7133         (rs6000_vector_mode_supported_p): Ditto.
7134
7135         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
7136         Change some of the functions called by macros to being called
7137         through a pointer, so debug functions can be inserted if
7138         -mdebug=addr or -mdebug=cost.
7139         (rs6000_preferred_reload_class_ptr): Ditto.
7140         (rs6000_secondary_reload_class_ptr): Ditto.
7141         (rs6000_secondary_memory_needed_ptr): Ditto.
7142         (rs6000_cannot_change_mode_class_ptr): Ditto.
7143         (rs6000_secondary_reload_inner): Ditto.
7144         (rs6000_legitimize_reload_address): Ditto.
7145         (rs6000_legitimize_reload_address_ptr): Ditto.
7146         (rs6000_mode_dependent_address): Ditto.
7147         (rs6000_mode_dependent_address_ptr): Ditto.
7148
7149         * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
7150         function to return true if the mode allows reg + integer
7151         addresses.
7152         (virtual_stack_registers_memory_p): New function to return true if
7153         the address refers to a virtual stack register.
7154         (rs6000_legitimate_offset_address_p): Move code to say whether a
7155         mode supports reg+int addressing to reg_offset_addressing_ok_p and
7156         call it.
7157         (rs6000_legitimate_address_p): Add checks for modes that only can
7158         do reg+reg addressing.  Start adding VSX support.
7159         (rs6000_legitimize_reload_address): Ditto.
7160         (rs6000_legitimize_address): Ditto.
7161         (rs6000_debug_legitimate_address_p): New debug functions for
7162         -mdebug=addr and -mdebug=cost.
7163         (rs6000_debug_rtx_costs): Ditto.
7164         (rs6000_debug_address_costs): Ditto.
7165         (rs6000_debug_adjust_cost): Ditto.
7166         (rs6000_debug_legitimize_address): Ditto.
7167         (rs6000_legitimize_reload_address_ptr): Point to call normal
7168         function or debug function.  Make functions called via pointer
7169         static.
7170         (rs6000_mode_dependent_address_ptr): Ditto.
7171         (rs6000_secondary_reload_class_ptr): Ditto.
7172         (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
7173         (rs6000_emit_move): Add -mdebug=addr support.  Change an abort
7174         into a friendlier error.
7175         (rs6000_init_builtins): Add initial VSX support.
7176         (rs6000_adjust_cost): Fix some spacing issues.
7177
7178         * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
7179         (REG_CLASS_NAMES): Ditto.
7180         (REG_CLASS_CONTENTS): Ditto.
7181         (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
7182         pointer, to add -mdebug=addr support.
7183         (CANNOT_CHANGE_MODE_CLASS): Ditto.
7184         (SECONDARY_RELOAD_CLASS): Call through a pointer to add
7185         -mdebug=addr support.
7186         (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
7187         (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
7188         (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
7189
7190         * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
7191         16-bit values.
7192         (bswapsi*): Set attribute types for load/store.  Add combiner
7193         patterns to eliminate zero extend on 64-bit.
7194         (bswapdi*): Add support for swapping 64-bit values.  Use ldbrx and
7195         stdbrx if the hardware supports those instructions.
7196
7197 2009-06-25  Ian Lance Taylor  <iant@google.com>
7198
7199         * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
7200         (Link Options): Document -static-libstdc++.
7201
7202 2009-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7203
7204         PR target/38731
7205         * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
7206         DATA_ALIGNMENT instead.
7207
7208 2009-06-25  Richard Guenther  <rguenther@suse.de>
7209
7210         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
7211         indirect references against the callused/escaped solutions.
7212         (call_may_clobber_ref_p_1): Likewise.
7213
7214 2009-06-25  Martin Jambor  <mjambor@suse.cz>
7215
7216         PR tree-optimization/40493
7217         * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
7218         (enum unscalarized_data_handling): New type.
7219         (handle_unscalarized_data_in_subtree): Return what has been done.
7220         (load_assign_lhs_subreplacements): Handle left flushes differently.
7221         (sra_modify_assign): Use unscalarized_data_handling, simplified
7222         condition determining whether to remove the statement.
7223
7224 2009-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
7225
7226         * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
7227         excerpt - @ should be doubled for texinfo.
7228
7229 2009-06-24  Ian Lance Taylor  <iant@google.com>
7230
7231         * config/arc/arc.c: Include "df.h".
7232         (arc_attribute_table): Make static.  Move higher in file.
7233         (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
7234         (output_shift): Initialize n later to avoid warning.
7235         * config/arm/arm.c (arm_attribute_table): Make static.  Move
7236         higher in file.
7237         * config/avr/avr.c (avr_attribute_table): Make static.  Move
7238         higher in file.
7239         (reg_class_tab): Change array type from int to enum reg_class.
7240         (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
7241         LABEL_REF.
7242         (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
7243         (lshrhi3_out): Likewise.
7244         (class_likely_spilled_p): Change return type to bool.
7245         (avr_rtx_costs): Use local code variable with enum type.
7246         * config/avr/avr.md (movmemhi): Use add_reg_note.
7247         (andhi3, andsi3): Don't use AS2 with "and".
7248         (iorhi3, iorsi3): Don't use AS2 with "or".
7249         * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
7250         * config/crx/crx.c: Include "df.h".
7251         (crx_attribute_table): Make static.
7252         * config/m32r/m32r.c: Include "df.h".
7253         (m32r_attribute_table): Make static.  Move higher in file.
7254         (pop): Use add_reg_note.
7255         (block_move_call): Change 0 to LCT_NORMAL in function call.
7256         * config/m32r/m32r.md (movsi_insn): Remove unused local value.
7257         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
7258         * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
7259         declare, not just when TREE_CODE is defined.
7260         * config/m68hc11/m68hc11.c: Include "expr.h".
7261         (m68hc11_attribute_table): Make static.  Move higher in file.
7262         (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
7263         function call.
7264         (m68hc11_register_indirect_p): Likewise.
7265         (m68hc11_function_arg_padding): Change return type to enum
7266         direction.
7267         (emit_move_after_reload): Use add_reg_note.
7268         (m68hc11_emit_logical): Change code parameter to enum rtx_code.
7269         (m68hc11_split_logical): Likewise.
7270         (m68hc11_rtx_costs): Add local code_and outer_code variables with
7271         enum type.
7272         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
7273         to VOIDmode in function call.
7274         * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
7275         tree is defined.
7276         (m68hc11_split_logical): Update declaration.
7277         (m68hc11_function_arg_padding): Update declaration.
7278         * config/mcore/mcore.c (regno_reg_class): Change form array of int
7279         to array of enum reg_class.
7280         (mcore_attribute_table): Make static.  Move higher in file.
7281         (mcore_rtx_costs): Add cast to enum type.
7282         * config/mcore/mcore.h (regno_reg_class): Update declaration.
7283         (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
7284         * config/sh/sh.c (sh_attribute_table): Make static.  Move higher
7285         in file.
7286         * config/sh/predicates.md (trapping_target_operand): Rename and to
7287         and_expr.
7288         * config/sparc/sparc.c (sparc_attribute_table): Make static.  Move
7289         higher in file.
7290         * config/spu/spu.c (spu_attribute_table): Make static.  Move
7291         higher in file.
7292         * config/v850/v850.c (v850_attribute_table): Make static.  Move
7293         higher in file.
7294         (v850_rtx_costs): Use local code with enum type.
7295         (expand_epilogue): Add cast.
7296         * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
7297
7298 2009-06-23  Takashi YOSHII  <yoshii.takashi@renesas.com>
7299
7300         PR target/40515
7301         * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
7302         -m2a-single-only and -m2a-nofpu.
7303         * config/sh/sh.opt: Document m2a generates FPU code.
7304
7305 2009-06-24  Anatoly Sokolov  <aesok@post.ru>
7306
7307         * defaults.h (CAN_ELIMINATE): Provide default.
7308         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
7309         * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
7310         * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
7311         * config/spu/spu.h (CAN_ELIMINATE): Delete.
7312         * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
7313         * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
7314         * config/cris/cris.h (CAN_ELIMINATE): Delete.
7315         * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
7316         * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
7317         * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
7318
7319 2009-06-24  DJ Delorie  <dj@redhat.com>
7320
7321         * mep-ext-cop.cpu: Fix copyright notice.
7322         * mep-default: Fix copyright notice.
7323         * mep-core: Fix copyright notice.
7324         * mep: Fix copyright notice.
7325         * mep-ivc2: Fix copyright notice.
7326         * mep-c5: Fix copyright notice.
7327
7328 2009-06-24  Denis Chertykov  <chertykov@gmail.com>
7329
7330         * doc/contrib.texi (Contributors):
7331
7332 2009-06-24  Andreas Krebbel  <krebbel1@de.ibm.com>
7333
7334         PR middle-end/40501
7335         * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
7336         src and dst operands if necessary.
7337
7338 2009-06-23  DJ Delorie  <dj@redhat.com>
7339
7340         Add MeP port.
7341         * config.gcc: Add mep support.
7342         * recog.c: Resurrect validate_replace_rtx_subexp().
7343         * recog.h: Likewise.
7344         * config/mep/: Add new port:
7345         * config/mep/constraints.md: New file.
7346         * config/mep/default.h: New file.
7347         * config/mep/intrinsics.h: New file.
7348         * config/mep/intrinsics.md: New file.
7349         * config/mep/ivc2-template.h: New file.
7350         * config/mep/mep-c5.cpu: New file.
7351         * config/mep/mep-core.cpu: New file.
7352         * config/mep/mep-default.cpu: New file.
7353         * config/mep/mep-ext-cop.cpu: New file.
7354         * config/mep/mep-intrin.h: New file.
7355         * config/mep/mep-ivc2.cpu: New file.
7356         * config/mep/mep-lib1.asm: New file.
7357         * config/mep/mep-lib2.c: New file.
7358         * config/mep/mep-pragma.c: New file.
7359         * config/mep/mep-protos.h: New file.
7360         * config/mep/mep-tramp.c: New file.
7361         * config/mep/mep.c: New file.
7362         * config/mep/mep.cpu: New file.
7363         * config/mep/mep.h: New file.
7364         * config/mep/mep.md: New file.
7365         * config/mep/mep.opt: New file.
7366         * config/mep/predicates.md: New file.
7367         * config/mep/t-mep: New file.
7368
7369 2009-06-23  Ian Lance Taylor  <iant@google.com>
7370
7371         * configure.ac: Invoke AC_PROG_CXX.  Separate C specific warnings
7372         from loose_warn into c_loose_warn and from strict_warn into
7373         c_strict_warn.  Set and substitute warn_cxxflags.  Check for
7374         --enable-build-with-cxx.  Set and substitute
7375         ENABLE_BUILD_WITH_CXX.  Set and substitute HOST_LIBS.
7376         * Makefile.in (CXXFLAGS): New variable.
7377         (C_LOOSE_WARN, C_STRICT_WARN): New variables.
7378         (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN).  Add $(C_STRICT_WARN) if
7379         the default is the same as $(STRICT_WARN).
7380         (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
7381         (CXX): New variable.
7382         (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
7383         (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
7384         (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
7385         (HOST_LIBS): New variable.
7386         (GCC_CFLAGS): Add $(C_LOOSE_WARN).
7387         (ALL_CXXFLAGS): New variable.
7388         (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
7389         * doc/install.texi (Configuration): Document
7390         --enable-build-with-cxx, --with-stage1-ldflags,
7391         --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
7392         * configure: Rebuild.
7393
7394 2009-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7395
7396         * config/arm/arm.c (arm_override_options): Fix braces and formatting
7397         from previous commit.
7398
7399 2009-06-23  Ian Lance Taylor  <iant@google.com>
7400
7401         * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
7402
7403 2009-06-23  Ian Lance Taylor  <iant@google.com>
7404
7405         * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
7406         with ATTRIBUTE_UNUSED.
7407
7408 2009-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
7409             Pat Haugen  <pthaugen@us.ibm.com>
7410             Revital Eres  <eres@il.ibm.com>
7411
7412         * config.in (HAVE_AS_POPCNTD): Add default definition.
7413         (HAVE_AS_LWSYNC): Ditto.
7414
7415         * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
7416         release number.
7417         (gcc_cv_as_powerpc_cmpb): Ditto.
7418         (gcc_cv_as_powerpc_dfp): Ditto.
7419         (gcc_cv_as_powerpc_vsx): Ditto.
7420         (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
7421         supporting the popcntd/lwsync instructions.
7422         (gcc_cv_as_powerpc_lwsync): Ditto.
7423         * configure: Regenerate.
7424
7425         * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
7426         -mcpu=native and -mcpu=power7.
7427         * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
7428
7429         * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
7430         a variable instead of a mask to reduce the number of mask bits.
7431         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
7432         (-mbit-word): Ditto.
7433         (-mregnames): Ditto.
7434         * config/rs6000/rs6000.opt (-mupdate): Ditto.
7435         (-mfused-madd): Ditto.
7436
7437         * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
7438         2.06 instructions.
7439         (-mvsx): New switch for VSX instructions.
7440         (-misel): Move from a variable to a mask to allow it to be set by
7441         -mcpu=.
7442
7443         * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
7444         function declaration to an array declaration.
7445         (rs6000_hard_regno_nregs): New external array declaration.
7446
7447         * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
7448         files included by rs6000.md.
7449
7450         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
7451         SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
7452
7453         * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
7454         a target mask.
7455         (rs6000_debug_reg): New -mdebug= variables.
7456         (rs6000_debug_addr): Ditto.
7457         (rs6000_debug_cost): Ditto.
7458         (rs6000_pmode): New variable to hold Pmode.
7459         (rs6000_pointer_size): New variable to hold POINTER_SIZE.
7460         (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
7461         calculated at compiler start.
7462         (rs6000_hard_regno_nregs): Change function to an array which holds
7463         HARD_REGNO_NREGS calculated at compiler start.
7464         (rs6000_explicit_options): Delete isel field.
7465         (rs6000_vector_unit): New array to hold which vector unit
7466         supports arithmetic options for a given type.
7467         (rs6000_vector_mem): New array to hold which vector unit supports
7468         memory reference operations for a given type.
7469         (rs6000_vector_align): New array to given the alignment of each
7470         vector type.
7471         (power7_cost): New basic costs for power7.
7472         (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
7473         (rs6000_hard_regno_nregs_internal): New function, moved from
7474         HARD_REGNO_NREGS, to calculate the number of registers each hard
7475         register takes for each type.
7476         (rs6000_debug_reg_print): New function for -mdebug=reg support.
7477         (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
7478         (+rs6000_init_hard_regno_mode_ok): New function, move calculation
7479         of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
7480         unit information here so it is calculated once at compiler startup
7481         time.
7482         (rs6000_override_options): Make -misel a target mask.  Add more
7483         power7 target masks.  Setup Pmode and POINTER_SIZE.  Add initial
7484         VSX support.  Add support for -mdebug=reg, -mdebug=addr, and
7485         -mdebug=cost.
7486         (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
7487         (rs6000_handle_option): Move -misel from variable to target mask.
7488         (rs6000_builtin_mask_for_load): Add VSX support.
7489         (rs6000_conditional_register_usage): Ditto.
7490         (USE_ALTIVEC_FOR_ARG_P): Ditto.
7491         (function_arg_boundary): Ditto.
7492         (rs6000_expand_builtin): Ditto.
7493         (def_builtin): Make abort message a little friendlier.
7494         (rs6000_emit_int_cmove): Add support for 64-bit isel.
7495
7496         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
7497         assembler support the popcntd instruction instead of a vsx
7498         instruction to enable power7 support.
7499         (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
7500         (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
7501         option to the assembler if -mcpu=native.
7502         (ASM_CPU_NATIVE_SPEC): Ditto.
7503         (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
7504         ISA 2.06 features.
7505         (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
7506         the lwsync instruction.
7507         (enum processor_type): Add PROCESSOR_POWER7.
7508         (rs6000_debug_reg): New -mdebug= options.
7509         (rs6000_debug_addr): Ditto.
7510         (rs6000_debug_cost): Ditto.
7511         (rs6000_isel): Delete.
7512         (enum rs6000_vector): New enum to say what vector unit we have.
7513         (VECTOR_UNIT_*): New macros to say which vector unit has
7514         arithmetic operations for a given type.
7515         (VECTOR_MEM_*): New macros to say which vector unit has memory
7516         operations for a given type.
7517         (TARGET_LDBRX): Whether the machine supports the ldbrx
7518         instruction.
7519         (TARGET_ISEL): Delete, -misel moved to be a mask.
7520         (TARGET_ISEL64): New macro for 64-bit isel support.
7521         (UNITS_PER_VSX_WORD): New macro.
7522         (POINTER_SIZE): Move to be an external variable, rather than
7523         calculating whether we are generating 32 ot 64-bit code.
7524         (Pmode): Ditto.
7525         (STACK_BOUNDARY): Add VSX support.
7526         (LOCAL_ALIGNMENT): Ditto.
7527         (SLOW_UNALIGNED_ACCESS): Ditto.
7528         (VSX_REGNO_P): New macro for VSX support.
7529         (VFLOAT_REGNO_P): Ditto.
7530         (VINT_REGNO_P): Ditto.
7531         (VLOGICAL_REGNO_P): Ditto.
7532         (VSX_VECTOR_MODE): Ditto.
7533         (VSX_SCALAR_MODE): Ditto.
7534         (VSX_MODE): Ditto.
7535         (VSX_MOVE_MODE): Ditto.
7536         (VSX_REG_CLASS_P): Ditto.
7537         (HARD_REGNO_NREGS): Instead of calling a function, use an array
7538         lookup.
7539         (UNITS_PER_SIMD_WORD): Add VSX support.
7540         (MODES_TIEABLE_P): Ditto.
7541         (STARTING_FRAME_OFFSET): Ditto.
7542         (STACK_DYNAMIC_OFFSET): Ditto.
7543         (EPILOGUE_USES): Ditto.
7544         (REGNO_REG_CLASS): Move to array lookup.
7545         (CLASS_MAX_NREGS): Ditto.
7546         (rs6000_vector_reg_class): Add declaration.
7547         (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
7548         overlap with the floating point and Altivec registers.
7549
7550         * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
7551
7552         * config/rs6000/driver-rs6000.c (asm_names): New static array to
7553         give the appropriate asm switches if -mcpu=native.
7554         (host_detect_local_cpu): Add support for "asm".
7555         (host_detect_local_cpu): Follow GNU code guidelines for name.
7556
7557         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
7558         -mbit-word to a variable instead of being a target mask.
7559
7560         * config/rs6000/sync.md (lwsync): If the assembler supports it,
7561         emit the lwsync instruction instead of emitting the instruction as
7562         an integer constant.
7563
7564         * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
7565         fixuns_trundfsi2, move expander into rs6000.md.
7566
7567         * config/rs6000/rs6000.md (cpu): Add power7.
7568         (sel, *ptrsize): New mode attributes for 32/64-bit isel.
7569         (logical predicate patterns): Change the single instruction
7570         primitives that set CR0 to be fast_compare instead of compare.
7571         (norsi*): Ditto.
7572         (popcntwsi2): Add support for ISA 2.06 popcount instructions.
7573         (popcntddi2): Ditto.
7574         (popcount<mode>): Ditto.
7575         (floating multiply/add insns): Name the floating point
7576         multiply/add insns.
7577         (isel_signed_<mode>): Add support for -misel on 64-bit systems.
7578         (isel_unsigned_<mode>): Ditto.
7579         (fixuns_trundfsi2): Move expander here from spe.md.
7580         (smindi3): Define if we have -misel on 64-bit systems.
7581         (smaxdi3): Ditto.
7582         (umindi3): Ditto.
7583         (umaxdi3): Ditto.
7584
7585 2009-06-23  Anatoly Sokolov  <aesok@post.ru>
7586
7587         * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
7588         extra_objs.
7589         * config/avr/avr.c (avr_current_device): New variable.
7590         (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
7591         (avr_arch, mcu_type_s): Move to avr.h.
7592         * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
7593         default_data_section_start fields.
7594         (avr_arch): Moved from avr.c.
7595         (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
7596         library_name fields.
7597         (avr_current_device, avr_mcu_types, avr_arch_types,
7598         avr_device_to_arch, avr_device_to_data_start,
7599         avr_device_to_startfiles, avr_device_to_devicelib): Declare.
7600         (EXTRA_SPEC_FUNCTIONS): Define.
7601         (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
7602         options mapping. Use device_to_arch and device_to_data_start insted.
7603         (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
7604         (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
7605         * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
7606         * config/avr/driver-avr.c: New file.
7607         * config/avr/avr-devices.c: New file.
7608
7609 2009-06-23  Jakub Jelinek  <jakub@redhat.com>
7610
7611         * var-tracking.c (unshare_variable): Force initialized to
7612         be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
7613         (set_variable_part): Likewise.
7614         (struct variable_union_info): Remove pos_src field.
7615         (vui_vec, vui_allocated): New variables.
7616         (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
7617         unconditionally.  Avoid XCVECNEW/free for every sorting, for dst_l
7618         == 1 use a simpler sorting algorithm.  Compute pos field right
7619         away, don't fill in pos_src.  For dst_l == 2 avoid qsort.
7620         Avoid quadratic comparison if !flag_var_tracking_uninit.
7621         (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
7622         unshare_variable unconditionally.
7623         (dataflow_set_different_2): Removed.
7624         (dataflow_set_different): Don't traverse second hash table.
7625         (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
7626         unconditionally to var_reg_set or var_mem_set.
7627         (emit_notes_in_bb): Likewise.
7628         (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
7629         unshare_variable.
7630         (emit_note_insn_var_location): Don't set initialized to
7631         VAR_INIT_STATUS_INITIALIZED early.
7632         (vt_finalize): Free vui_vec if needed, clear vui_vec and
7633         vui_allocated.
7634         * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
7635
7636         * tree-object-size.c (addr_object_size): Instead of checking
7637         for non-NULL TREE_CHAIN of the FIELD_DECL check that there
7638         are no FIELD_DECLs following it.
7639
7640 2009-06-23  Andreas Krebbel  <krebbel1@de.ibm.com>
7641
7642         * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
7643         order to match bswaps with signed source operands.
7644
7645 2009-06-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7646
7647         * sdbout.c (sdbout_one_type): Fix braces in switch.
7648
7649 2009-06-23  Richard Guenther  <rguenther@suse.de>
7650
7651         * tree-ssa-structalias.c (struct variable_info): Add is_global_var
7652         member.
7653         (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
7654         readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
7655         var_callused, callused_tree, var_storedanything, storedanything_tree,
7656         var_integer, integer_tree): Remove global variables.
7657         (new_var_info): Do not pass new id, append the new var to the
7658         global variable vector.
7659         (do_ds_constraint): Use is_global_var member of the variable-info.
7660         (new_scalar_tmp_constraint_exp): Adjust.
7661         (create_function_info_for): Likewise.
7662         (create_variable_info_for): Likewise.
7663         (find_what_var_points_to): Remove dead code.
7664         (init_base_vars): Simplify.
7665         (compute_points_to_sets): Adjust.
7666
7667 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
7668
7669         * combine.c (try_combine): Dump information about the insns we're
7670         combining.
7671
7672 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
7673
7674         * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
7675         check when calling force_to_mode on TRUNCATE's operand.
7676
7677 2009-06-22  Ian Lance Taylor  <iant@google.com>
7678
7679         * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
7680
7681 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
7682
7683         * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
7684
7685 2009-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7686
7687         * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
7688         override library linkage flags such as -static-libgcc or
7689         -shared-libgcc.
7690
7691 2009-06-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
7692
7693         * config/m68k/m68k-devices.def: Add line for MCF5221x.
7694
7695 2009-06-22  Ian Lance Taylor  <iant@google.com>
7696
7697         * config/linux.opt: Put mglibc ahead of muclibc.
7698
7699         * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
7700         for duplicate decls.
7701
7702 2009-06-22  Matthias Klose  <doko@ubuntu.com>
7703
7704         * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
7705
7706 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
7707
7708         PR objc/28050
7709         * c-parser.c (c_parser_objc_message_args): Return error_mark_node
7710         instead of NULL if a parser error occurs.
7711
7712 2009-06-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7713
7714         * dwarf2out.c (dwarf2_debug_hooks): Initialize
7715         non-DWARF2_DEBUGGING_INFO version.
7716
7717 2009-06-22  Kai Tietz  <kai.tietz@onevision.com>
7718
7719         * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
7720         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
7721
7722         * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
7723         (LIBGCC2_TF_CEXT): Define.
7724         (TF_SIZE): Define.
7725
7726 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7727
7728         PR target/40463
7729         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
7730
7731 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7732
7733         * config/arm/arm.c (arm_override_options): Disable
7734         -mcaller-super-interworking and -mcallee-super-interworking.
7735         * doc/invoke.texi (ARM Options): Document this.
7736
7737 2009-06-22  Nathan Sidwell  <nathan@codesourcery.com>
7738
7739         * config/arm/arm.c (arm_print_operand): Deal with HIGH.
7740         * config/arm/constraints.md (j): New constraint for movw operands.
7741         (N): Remove thumb2 meaning.
7742         * config/arm/arm.md (*arm_movw): Delete.
7743         (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
7744         * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
7745         * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
7746
7747 2009-06-22  Martin Jambor  <mjambor@suse.cz>
7748
7749         PR tree-optimization/40492
7750         * tree-sra.c (sra_modify_assign): Pass zero offsets to
7751         build_ref_for_offset.
7752
7753 2009-06-22  Shujing Zhao  <pearly.zhao@oracle.com>
7754
7755         * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
7756         JUMP_TABLE_DATA_P predicates where applicable.
7757         * auto-inc-dec.c: Ditto.
7758         * builtins.c: Ditto.
7759         * caller-save.c: Ditto.
7760         * calls.c: Ditto.
7761         * cfgcleanup.c: Ditto.
7762         * cfglayout.c: Ditto.
7763         * cfgrtl.c: Ditto.
7764         * combine.c: Ditto.
7765         * combine-stack-adj.c: Ditto.
7766         * cse.c: Ditto.
7767         * cselib.c: Ditto.
7768         * dbxout.c: Ditto.
7769         * df-scan.c: Ditto.
7770         * dse.c: Ditto.
7771         * dwarf2asm.c: Ditto.
7772         * dwarf2out.c: Ditto.
7773         * emit-rtl.c: Ditto.
7774         * except.c: Ditto.
7775         * explow.c: Ditto.
7776         * expmed.c: Ditto.
7777         * expr.c: Ditto.
7778         * final.c: Ditto.
7779         * function.c: Ditto.
7780         * fwprop.c: Ditto.
7781         * gcse.c: Ditto.
7782         * genpreds.c: Ditto.
7783         * genrecog.c: Ditto.
7784         * ifcvt.c: Ditto.
7785         * ira-costs.c: Ditto.
7786         * ira-lives.c: Ditto.
7787         * jump.c: Ditto.
7788         * loop-iv.c: Ditto.
7789         * lower-subreg.c: Ditto.
7790         * modulo-sched.c: Ditto.
7791         * optabs.c: Ditto.
7792         * postreload.c: Ditto.
7793         * print-rtl.c: Ditto.
7794         * recog.c: Ditto.
7795         * reginfo.c: Ditto.
7796         * regmove.c: Ditto.
7797         * reload1.c: Ditto.
7798         * reload.c: Ditto.
7799         * reorg.c: Ditto.
7800         * rtlanal.c: Ditto.
7801         * rtl.c: Ditto.
7802         * sched-vis.c: Ditto.
7803         * sdbout.c: Ditto.
7804         * sel-sched-ir.c: Ditto.
7805         * simplify-rtx.c: Ditto.
7806         * targhooks.c: Ditto.
7807         * var-tracking.c: Ditto.
7808         * vmsdbgout.c: Ditto.
7809
7810 2009-06-22  Matthias Klose  <doko@ubuntu.com>
7811
7812         * Makefile.in (install-plugin): Always use DESTDIR.
7813
7814 2009-06-22  Olivier Hainque  <hainque@adacore.com>
7815
7816         * config/pa/pa.c (output_call): Don't optimize post call jumps
7817         into return address adjustments if the call may throw.
7818
7819 2009-06-21  Richard Earnshaw  <rearnsha@arm.com>
7820
7821         * arm.c (thumb1_output_casesi): New function.
7822         * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
7823         optimizing for size or PIC.
7824         (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
7825         * arm.md (UNSPEC_THUMB1_CASESI): New constant.
7826         (casesi): Handle Thumb-1 when optimizing for size or PIC.
7827         (thumb1_casesi_internal_pic): New expand rule.
7828         (thumb1_casesi_dispatch): New pattern.
7829         * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
7830         thumb-1 mode.
7831         * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
7832         in the text seciton when PIC or optimizing for size.
7833         * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
7834         * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
7835         preservation properties of code.
7836         (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
7837         (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
7838         (__gnu_thumb1_case_si): New function.
7839         * t-arm (LIB1ASMSRC): Define here.
7840         (LIB1ASMFUNCS): Add some common functions.
7841         * t-arm-elf (LIB1ASMSRC): Delete.
7842         (LIB1ASMFUNCS): Append to existing set.
7843         * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
7844         * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
7845         * t-symbian (LIB1ASMFUNCS): Likewise.
7846         * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
7847         * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
7848
7849 2009-06-21  Richard Guenther  <rguenther@suse.de>
7850
7851         PR tree-optimization/38729
7852         * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
7853         to loops with a single exit if -fno-expensive-optimizations.
7854
7855 2009-06-21  Jakub Jelinek  <jakub@redhat.com>
7856
7857         * var-tracking.c (struct shared_hash_def, shared_hash): New types.
7858         (dataflow_set): Change vars type from htab_t to shared_hash.
7859         (shared_hash_pool, empty_shared_hash): New variables.
7860         (vars_clear): Removed.
7861         (shared_hash_shared, shared_hash_htab, shared_hash_copy,
7862         shared_hash_find_slot_unshare, shared_hash_find_slot,
7863         shared_hash_find_slot_noinsert, shared_hash_find): New
7864         static inlines.
7865         (shared_hash_unshare, shared_hash_destroy): New functions.
7866         (unshare_variable): Unshare set->vars if shared, use
7867         shared_hash_htab.
7868         (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
7869         (get_init_value, find_src_set_src, dump_dataflow_set,
7870         clobber_variable_part, emit_notes_for_differences): Use
7871         shared_hash_htab.
7872         (dataflow_set_init): Remove second argument, set vars to
7873         empty_shared_hash instead of creating a new htab.
7874         (dataflow_set_clear): Call shared_hash_destroy and set vars
7875         to empty_shared_hash instead of calling vars_clear.
7876         (dataflow_set_copy): Don't call vars_copy, instead just share
7877         the src htab with dst.
7878         (variable_union): Use shared_hash_*, use initially NO_INSERT
7879         lookup if set->vars is shared.  Don't keep slot cleared before
7880         calling unshare_variable.  Unshare set->vars if needed.
7881         Even ->refcount == 1 vars must be unshared if set->vars is shared
7882         and var needs to be modified.
7883         (variable_canonicalize): New function.
7884         (dataflow_set_union): If dst->vars is empty, just share src->vars
7885         with dst->vars and traverse with variable_canonicalize to canonicalize
7886         and unshare what is needed.
7887         (dataflow_set_different): If old_set and new_set use the same shared
7888         htab, they aren't different.  If number of htab elements is different,
7889         htabs are different.  Use shared_hash_*.
7890         (dataflow_set_destroy): Call shared_hash_destroy instead of
7891         htab_delete.
7892         (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
7893         second argument to dataflow_set_init.
7894         (vt_initialize): Likewise.  Initialize shared_hash_pool and
7895         empty_shared_hash, move bb in/out initialization afterwards.
7896         Use variable_htab_free instead of NULL as changed_variables del hook.
7897         (variable_was_changed): Change type of second argument to pointer to
7898         dataflow_set.  When inserting var into changed_variables, bump
7899         refcount.  Unshare set->vars if set is shared htab and slot needs to
7900         be cleared.
7901         (set_variable_part): Use shared_hash_*, use initially NO_INSERT
7902         lookup if set->vars is shared.  Unshare set->vars if needed.
7903         Even ->refcount == 1 vars must be unshared if set->vars is shared
7904         and var needs to be modified.  Adjust variable_was_changed caller.
7905         (delete_variable_part): Use shared_hash_*.  Even ->refcount == 1
7906         vars must be unshared if set->vars is shared and var needs to be
7907         modified.  Adjust variable_was_changed caller.
7908         (emit_note_insn_var_location): Don't pool_free var.
7909         (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
7910         instead of 1.
7911         (vt_finalize): Call htab_delete on empty_shared_hash->htab and
7912         free_alloc_pool on shared_hash_pool.
7913
7914 2009-06-20  Anthony Green  <green@moxielogic.com>
7915
7916         * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
7917         * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
7918
7919 2009-06-20  Richard Guenther  <rguenther@suse.de>
7920
7921         * tree-ssa-structalias.c (find_func_aliases): For memset use
7922         a constraint from NULL if we memset to zero.
7923         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
7924         we explicitly handle that do not read from memory.
7925         (call_may_clobber_ref_p_1): Properly handle builtins that may
7926         set errno.
7927
7928 2009-06-20  Richard Guenther  <rguenther@suse.de>
7929
7930         PR tree-optimization/40495
7931         * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
7932         (new_scalar_tmp_constraint_exp): New function.
7933         (process_constraint): Do not create temporary decls.
7934         (process_all_all_constraints): Likewise.
7935         (handle_const_call): Likewise.
7936         (create_function_info_for): Do not set decl.
7937
7938 2009-06-19  Ian Lance Taylor  <iant@google.com>
7939
7940         * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
7941         (rs6000_attribute_table): Make static; move before use.
7942
7943 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
7944
7945         * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
7946         <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
7947         Propagate the TREE_READONLY flag without overwriting it.
7948         (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
7949         Propagate the TREE_READONLY flag onto the result.
7950         (process_call_operands): Move around.  Use correct constant value.
7951
7952 2009-06-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7953
7954         PR target/40482
7955         * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
7956         * config/arm/arm.md: Likewise.
7957
7958 2009-06-19  Ian Lance Taylor  <iant@google.com>
7959
7960         * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
7961         to GIMPLE_ERROR_MARK.
7962
7963         * c-typeck.c (build_conditional_expr): Add op1_original_type and
7964         op2_original_type parameters.  Warn about using different enum types.
7965         * c-parser.c (c_parser_conditional_expression): Pass original
7966         types to build_conditional_expr.
7967         * c-tree.h (build_conditional_expr): Update declaration.
7968
7969 2009-06-19  Ian Lance Taylor  <iant@google.com>
7970
7971         * config/i386/i386.c (ix86_function_specific_save): Test that
7972         fields match values, rather than testing the values are in a
7973         certain range.
7974
7975 2009-06-19  Richard Guenther  <rguenther@suse.de>
7976
7977         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
7978         ADDR_EXPR pointers.
7979         (ptr_derefs_may_alias_p): Likewise.
7980         (ptr_deref_may_alias_ref_p_1): New function.
7981         (ptr_deref_may_alias_ref_p): Likewise.
7982         (ref_maybe_used_by_call_p_1): Handle builtins that are not
7983         covered by looking at the ESCAPED solution.
7984         (call_may_clobber_ref_p_1): Likewise.
7985         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
7986         Handle NULL_TREE offset.  Do not produce redundant constraints.
7987         (process_all_all_constraints): New helper function.
7988         (do_structure_copy): Use it.
7989         (handle_lhs_call): Likewise.
7990         (find_func_aliases): Handle some builtins with pointer arguments
7991         and/or return values explicitly.
7992
7993 2009-06-19  Ian Lance Taylor  <iant@google.com>
7994
7995         * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
7996
7997 2009-06-19  Ian Lance Taylor  <iant@google.com>
7998
7999         * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
8000
8001 2009-06-19  Ian Lance Taylor  <iant@google.com>
8002
8003         * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
8004         * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
8005         version.
8006
8007         * c-decl.c (finish_decl): If -Wc++-compat, warn about
8008         uninitialized const.
8009
8010 2009-06-19  Ian Lance Taylor  <iant@google.com>
8011
8012         * dse.c (struct store_info): Rename bitmap field to bmap.  Change
8013         all uses.
8014
8015         * c-decl.c (in_struct, struct_types): Remove.
8016         (struct c_binding): Add in_struct field.
8017         (c_binding_ptr): Define type, along with VEC.
8018         (struct c_struct_parse_info): Define.
8019         (struct_parse_info): New static variable.
8020         (bind): Initialize in_struct field.
8021         (start_struct): Remove enclosing_in_struct and
8022         enclosing_struct_types parameters.  Add
8023         enclosing_struct_parse_info parameter.  Change all callers.  Set
8024         struct_parse_info rather than in_struct and struct_types.
8025         (grokfield): If -Wc++-compat and there is a symbol binding for the
8026         field name, set the in_struct flag and push it on the
8027         struct_parse_info->fields vector.
8028         (warn_cxx_compat_finish_struct): New static function.
8029         (finish_struct): Remove enclosing_in_struct and
8030         enclosing_struct_types parameters.  Add
8031         enclosing_struct_parse_info parameter.  Change all callers.  Don't
8032         set C_TYPE_DEFINED_IN_STRUCT here.  Call
8033         warn_cxx_compat_finish_struct.  Free struct_parse_info and set to
8034         parameter.  Only push on struct_types if warn_cxx_compat.
8035         (finish_enum): Only push on struct_types if warn_cxx_compat.
8036         (declspecs_add_type): Add loc parameter.  Change all callers.
8037         Change all error calls to error_at.  Pass loc, not input_location,
8038         to pedwarn calls.  Warn if -Wc++-compat and a typedef name is
8039         defined in a struct.  If -Wc++-compat and parsing a struct, record
8040         that a typedef name was used.
8041         * c-parser.c (c_parser_declspecs): Get location to pass to
8042         declspecs_add_type.
8043         (c_parser_struct_or_union_specifier): Update calls to start_struct
8044         and finish_struct.
8045         * c-tree.h (struct c_struct_parse_info): Declare.
8046         (finish_struct, start_struct): Update declarations.
8047         (declspecs_add_type): Update declaration.
8048
8049 2009-06-19  Ian Lance Taylor  <iant@google.com>
8050
8051         * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
8052         variable with an anonymous type.
8053
8054 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
8055
8056         * see.c: Remove for real.
8057
8058 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
8059
8060         * optabs.h (enum optab_index): Add new OTI_significand.
8061         (significand_optab): Define corresponding macro.
8062         * optabs.c (init_optabs): Initialize significand_optab.
8063         * genopinit.c (optabs): Implement significand_optab using
8064         significand?f2 patterns.
8065         * builtins.c (expand_builtin_mathfn): Handle
8066         BUILT_IN_SIGNIFICAND{,F,L}.
8067         (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
8068         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
8069
8070         * config/i386/i386.md (significandxf2, significand<mode>2): New
8071         expanders to implement significandf, significand and significandl
8072         built-ins as inline x87 intrinsics.
8073
8074 2009-06-18  Anatoly Sokolov  <aesok@post.ru>
8075
8076         * config/avr/avr.c (avr_override_options): Remove setting value of
8077         PARAM_INLINE_CALL_COST.
8078
8079 2009-06-18  Richard Henderson  <rth@redhat.com>
8080
8081         PR 40488
8082         * tree-pass.h (TDF_ASMNAME): New.
8083         * tree-dump.c (dump_options): Add asmname.
8084         * doc/invoke.texi: Document it.
8085
8086         * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
8087         (dump_decl_name): ...here.
8088         (dump_function_name): New flags arg; mind TDF_ASMNAME.
8089         (dump_generic_node): Update dump_function_name calls.
8090         (print_call_name): New flags arg; update all dump calls.
8091         * diagnostic.h (print_call_name): Update.
8092         * gimple-pretty-print.c (dump_gimple_call): Update.
8093
8094 2009-06-18  H.J. Lu  <hongjiu.lu@intel.com>
8095
8096         PR target/40470
8097         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
8098
8099 2009-06-18  Diego Novillo  <dnovillo@google.com>
8100
8101         * doc/plugins.texi: Document plugin_is_GPL_compatible.
8102         * plugin.c (str_license): Declare.
8103         (try_init_one_plugin): Assert that the symbol
8104         'plugin_is_GPL_compatible' exists.
8105
8106 2009-06-18  Sergei Dyshel  <sergeid@il.ibm.com>
8107
8108         * see.c: Remove.
8109         * Makefile.in (OBJS-common): Remove see.o.
8110         (see.o): Remove.
8111         * common.opt (fsee): Mark as preserved for backward compatibility.
8112         * opts.c (common_handle_option): Add OPT_fsee to the backward
8113         compatibility section.
8114         * passes.c (init_optimization_passes, pass_see): Remove pass.
8115         * timevar.def (TV_SEE): Remove.
8116         * tree-pass.h (pass_see): Remove declaration.
8117         * doc/invoke.texi (-fsee): Remove documentation.
8118
8119 2009-06-18  Martin Jambor  <mjambor@suse.cz>
8120
8121         * tree-sra.c: Include statistics.h
8122         (sra_stats): New variable.
8123         (sra_initialize): Clear sra_stats.
8124         (create_access_replacement): Increment sra_stats.replacements.
8125         (get_access_replacement): Do not return twice.
8126         (analyze_all_variable_accesses): Increment statistics counter by the
8127         number of scalarized aggregates.
8128         (generate_subtree_copies): Increment sra_stats.subtree_copies.
8129         (sra_modify_expr): Increment sra_stats.exprs.
8130         (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
8131         (sra_modify_assign): Increment sra_stats.exprs,
8132         sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
8133         (perform_intra_sra): Update statistics counters.
8134         * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
8135
8136 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
8137
8138         * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
8139         (arm_scalar_mode_supported_p): New function.
8140
8141 2009-06-18  Paul Brook  <paul@codesourcery.com>
8142             Sandra Loosemore  <sandra@codesourcery.com>
8143
8144         * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
8145         (__extendhfsf2, __truncsfhf2): Define.
8146         * config/arm/fp16.c: New file.
8147         * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
8148         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA):  Add fp16.c.
8149
8150 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
8151
8152         * doc/extend.texi (Half-Precision): New section.
8153         * doc/invoke.texi (Option Summary): List -mfp16-format.
8154         (ARM Options): List neon-fp16 as -mfpu value.  Document -mfp16-format.
8155         * config/arm/arm.opt (mfp16-format=): New.
8156         * config/arm/arm.c: Include intl.h.
8157         (TARGET_INVALID_PARAMETER_TYPE): Redefine.
8158         (TARGET_INVALID_RETURN_TYPE): Redefine.
8159         (TARGET_PROMOTED_TYPE): Redefine.
8160         (TARGET_CONVERT_TO_TYPE): Redefine.
8161         (arm_fp16_format): Define.
8162         (all_fpus): Add entry for neon-fp16.
8163         (fp_model_for_fpu): Likewise.
8164         (struct fp16_format): Declare.
8165         (all_fp16_formats): Define.
8166         (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
8167         functions.
8168         (arm_override_options): Set arm_fp16_format. Call sorry for fp16
8169         and no ldrh.
8170         (arm_legitimate_index_p): Treat HFmode like HImode.
8171         (thumb1_legitimate_address_p): Make it recognize HFmode constants.
8172         (coproc_secondary_reload_class): Special-case HFmode.
8173         (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
8174         (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
8175         (arm_init_fp16_builtins): New.
8176         (arm_init_builtins): Call it.
8177         (arm_invalid_parameter_type): New.
8178         (arm_invalid_return_type): New.
8179         (arm_promoted_type): New.
8180         (arm_convert_to_type).
8181         (arm_file_start): Deal with neon-fp16 as fpu_name.  Emit tag for fp16
8182         format.
8183         (arm_emit_fp16_const): New function.
8184         (arm_mangle_type): Mangle __fp16 as "Dh".
8185         * config/arm/arm.h (TARGET_VFPD32): Make it know about
8186         FPUTYPE_NEON_FP16.
8187         (TARGET_NEON_FP16): New.
8188         (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
8189         (enum fputype): Add FPUTYPE_NEON_FP16.
8190         (enum arm_fp16_format_type): Declare.
8191         (arm_fp16_format): Declare.
8192         (LARGEST_EXPONENT_IS_NORMAL): Define.
8193         * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
8194         * config/arm/arm-modes.def (HFmode): Define.
8195         * config/arm/vfp.md: (*movhf_vfp): New.
8196         (extendhfsf2): New.
8197         (truncsfhf2): New.
8198         * config/arm/arm.md: (fpu): Add neon_fp16.
8199         (floatsihf2, floatdihf2): New.
8200         (fix_trunchfsi2, fix_trunchfdi2): New.
8201         (truncdfhf2): New.
8202         (extendhfdf2): New.
8203         (movhf): New.
8204         (*arm32_movhf): New.
8205         (*thumb1_movhf): New.
8206         (consttable_2): Add check for HFmode constants.
8207         (consttable_4): Handle HFmode constants.
8208
8209 2009-06-18  Uros Bizjak  <ubizjak@gmail.com>
8210
8211         * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
8212
8213 2009-06-17  Olivier Hainque  <hainque@adacore.com>
8214
8215         * collect2.c (main): Use CONST_CAST2 to perform char ** to
8216         const char ** conversion in AIX specific section.
8217
8218 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
8219
8220         * config/i386/i386.c (ix86_special_builtin_type): Remove
8221         UINT64_FTYPE_PINT.  Add UINT64_FTYPE_PUNSIGNED.
8222         (bdesc_special_args): Updated.
8223         (ix86_init_mmx_sse_builtins): Likewise.
8224         (ix86_expand_special_args_builtin): Likewise.
8225
8226 2009-06-17  Richard Henderson  <rth@redhat.com>
8227
8228         * tree-pretty-print.c (maybe_dump_asm_name): New.
8229         (dump_decl_name): Use it.
8230         (PRINT_FUNCTION_NAME): Merge into...
8231         (dump_function_name): ... here.  Use maybe_dump_asm_name.
8232
8233 2009-06-17  Cary Coutant  <ccoutant@google.com>
8234
8235         * dbxout.c (dbxout_source_line): Add is_stmt parameter.
8236         Change caller.
8237         * debug.c (struct gcc_debug_hooks): Change placeholder for
8238         source_line hook.
8239         (debug_nothing_int_charstar_int): Replaced by...
8240         (debug_nothing_int_charstar_int_bool): ...this.
8241         * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
8242         source_line prototype.
8243         (debug_nothing_int_charstar_int): Replaced by...
8244         (debug_nothing_int_charstar_int_bool): ...this.
8245         * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
8246         * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
8247         Output is_stmt operand when necessary.
8248         * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
8249         (notice_source_line): Add is_stmt parameter.
8250         * sdbout.c (sdbout_source_line): Add is_stmt parameter.
8251         * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
8252         Change callers.
8253         * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
8254         * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
8255
8256 2009-06-17  Ian Lance Taylor  <iant@google.com>
8257
8258         * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
8259         Change all uses.
8260         (struct store_by_pieces_d): Rename from store_by_pieces.  Change
8261         call uses.
8262
8263 2009-06-17  Adam Nemet  <anemet@caviumnetworks.com>
8264
8265         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
8266         STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
8267         tree_strip_sign_nop_conversions and
8268         tree_ssa_strip_useless_type_conversions rather than stripping
8269         the operations here.
8270         (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
8271         Declare them.
8272         * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
8273         * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
8274         * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
8275         tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
8276         functions.
8277
8278 2009-06-17  Michael Eager  <eager@eagercon.com>
8279
8280         * config/rs6000/constraints.md (register_constraint "d"): New.
8281         * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
8282         truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
8283         *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
8284         *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
8285         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
8286         divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
8287         fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
8288         * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
8289         __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
8290         __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
8291         __fctiwz): Same.
8292         * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
8293         *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
8294         *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
8295         *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
8296         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
8297         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
8298         stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
8299         *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
8300         *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
8301         trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
8302         *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
8303         *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
8304         *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
8305         * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
8306
8307 2009-06-16  Ian Lance Taylor  <iant@google.com>
8308
8309         * profile.c (total_num_never_executed): Don't define.
8310         (compute_branch_probabilities): Don't count or print
8311         num_never_executed.
8312         (init_branch_prob): Don't set total_num_never_executed.
8313         (end_branch_prob): Don't print total_num_never_executed.
8314
8315 2009-06-17  David Daney  <ddaney@caviumnetworks.com>
8316
8317         * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
8318
8319 2009-06-17  David Edelsohn  <edelsohn@gnu.org>
8320
8321         * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
8322         (nabstd2_fpr): Same.
8323
8324 2009-06-17  Steve Ellcey  <sje@cup.hp.com>
8325
8326         * expr.c (expand_assignment): Change complex type check.
8327
8328 2009-06-17  Basile Starynkevitch  <basile@starynkevitch.net>
8329
8330         * doc/plugins.texi (Building GCC plugins): Added new section.
8331
8332 2009-06-17  Ian Lance Taylor  <iant@google.com>
8333
8334         * c-pch.c (get_ident): Don't set size of templ array.
8335         (pch_init): Don't set size of partial_pch array.
8336
8337         * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
8338         string constant to intialize an array whose size is the length of
8339         the string.
8340
8341 2009-06-17  Richard Guenther  <rguenther@suse.de>
8342
8343         PR tree-optimization/40389
8344         * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
8345         to addressable types.
8346         * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
8347
8348 2009-06-17  Richard Guenther  <rguenther@suse.de>
8349
8350         PR middle-end/40460
8351         * tree-chrec.h (build_polynomial_chrec): If we cannot determine
8352         if there is no evolution of left in the loop bail out.
8353         * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
8354         chrec_fold_multiply.
8355
8356 2009-06-16  J"orn Rennecke  <joern.rennecke@arc.com>
8357             Janis Johnson  <janis187@us.ibm.com>
8358
8359         PR target/39254
8360         * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
8361         for the symbol ref of a constant that is the source of a move
8362         - nor for any other not-obvious-label-ref constants.
8363
8364 2009-06-16  Olatunji Ruwase  <tjruwase@google.com>
8365
8366         * plugin.c (position_pass): Skip newly inserted pass during list
8367         traversal to avoid repeated insertion.
8368
8369 2009-06-16  Ian Lance Taylor  <iant@google.com>
8370
8371         * vec.h (VEC_stack_alloc): Define different version if
8372         GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
8373         (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
8374         (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
8375         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
8376
8377 2009-06-16  H.J. Lu  <hongjiu.lu@intel.com>
8378
8379         * config.gcc (extra_headers): Add ia32intrin.h for x86.
8380
8381         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
8382         IX86_BUILTIN_BSRDI.  IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
8383         IX86_BUILTIN_RDTSCP.  IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
8384         IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
8385         (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
8386         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
8387         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
8388         (bdesc_special_args): Add __builtin_ia32_rdtsc and
8389         __builtin_ia32_rdtscp.
8390         (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
8391         __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
8392         and __builtin_ia32_rorhi.
8393         (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
8394         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
8395         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
8396         (ix86_expand_args_builtin): Likewise.
8397         (ix86_expand_special_args_builtin): Likewise.
8398
8399         * config/i386/i386.md (UNSPECV_RDTSCP): New.
8400         (UNSPECV_RDTSC): Likewise.
8401         (UNSPECV_RDPMC): Likewise.
8402         (*bsr): Renamed to ...
8403         (bsr): This
8404         (*bsr_rex64): Renamed to ...
8405         (bsr_rex64): This.
8406         (rdpmc): New.
8407         (*rdpmc): Likewise.
8408         (*rdpmc_rex64): Likewise.
8409         (rdtsc): Likewise.
8410         (*rdtsc): Likewise.
8411         (*rdtsc_rex64): Likewise.
8412         (rdtscp): Likewise.
8413         (*rdtscp): Likewise.
8414         (*rdtscp_rex64): Likewise.
8415
8416         * config/i386/ia32intrin.h: New.
8417
8418         * config/i386/x86intrin.h: Include <ia32intrin.h>.
8419
8420 2009-06-16  Ian Lance Taylor  <iant@google.com>
8421
8422         * ira-build.c (copy_info_to_removed_store_destinations):
8423         Initialize parent_a.
8424
8425 2009-06-16  Ian Lance Taylor  <iant@google.com>
8426
8427         * c-decl.c (grokdeclarator): Change size_varies to bool.
8428
8429 2009-06-16  Ian Lance Taylor  <iant@google.com>
8430
8431         * sel-sched.c: Make forward declarations of move_op_hooks and
8432         fur_hooks explicitly extern.
8433
8434 2009-06-16  Ian Lance Taylor  <iant@google.com>
8435
8436         * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
8437         * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
8438
8439 2009-06-16  Ian Lance Taylor  <iant@google.com>
8440
8441         * resource.c (mark_referenced_resources): Change
8442         include_delayed_effects parameter to bool.  Change all callers.
8443         (mark_end_of_function_resources): Likewise.
8444         * reorg.c (insn_references_resource_p): Likewise.
8445         (insn_sets_resource_p): Likewise.
8446         * resource.h (mark_referenced_resources): Update declaration.
8447         (mark_end_of_function_resources): Update declaration.
8448
8449 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
8450
8451         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
8452
8453 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
8454
8455         * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
8456         GCC can bootstrap on AIX with GNU Binutils 2.20.
8457
8458 2009-06-16  Ian Lance Taylor  <iant@google.com>
8459
8460         * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
8461
8462 2009-06-16  Ian Lance Taylor  <iant@google.com>
8463
8464         * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
8465         inline, not extern inline.
8466         (exact_log2): Likewise.
8467         * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
8468         test CLZ_HWI.
8469         (exact_log2): Likewise, but don't test CTZ_HWI.
8470
8471 2009-06-16  Ian Lance Taylor  <iant@google.com>
8472
8473         * bitmap.c (bitmap_clear): Don't declare as inline.
8474         * gimple.c (gimplify_assign): Likewise.
8475         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
8476         * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
8477         (sched_scan_info): Remove duplicate definition.
8478
8479 2009-06-16  Ian Lance Taylor  <iant@google.com>
8480
8481         * c-common.c (skip_evaluation): Don't define.
8482         (c_inhibit_evaluation_warnings): Define global variable.
8483         (overflow_warning): Check c_inhibit_evaluation_warnings rather
8484         than skip_evaluation.
8485         (convert_and_check, warn_for_div_by_zero): Likewise.
8486         * c-common.h (skip_evaluation): Don't declare.
8487         (c_inhibit_evaluation_warnings): Declare.
8488         * c-parser.c (c_parser_typeof_specifier): Set
8489         c_inhibit_evaluation_warnings rather than skip_evaluation.
8490         (c_parser_conditional_expression): Likewise.
8491         (c_parser_binary_expression): Likewise.
8492         (c_parser_sizeof_expression): Likewise.
8493         (c_parser_alignof_expression): Likewise.
8494         * c-typeck.c (build_indirect_ref): Check
8495         c_inhibit_evaluation_warnings rather than skip_evaluation.
8496         (build_conditional_expr, build_binary_op): Likewise.
8497
8498 2009-06-16  Richard Guenther  <rguenther@suse.de>
8499
8500         * tree-ssa-alias.c (is_escape_site): Remove.
8501         * tree-ssa-alias.h (enum escape_type): Remove.
8502         (is_escape_site): Likewise.
8503         * tree-ssa-structalias.c (find_func_aliases): Handle escapes
8504         via casts and asms without deferring to is_escape_site.
8505
8506 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
8507
8508         PR middle-end/40446
8509         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
8510         use gen_lowpart if op0 has complex mode.
8511
8512 2009-06-16  Richard Guenther  <rguenther@suse.de>
8513
8514         * tree-ssa-structalias.c (do_ds_constraint): Stores in global
8515         variables add them to ESCAPED.
8516         (find_func_aliases): Do not make all indirectly stored values escaped.
8517
8518 2009-06-16  Rafael Avila de Espindola  <espindola@google.com>
8519
8520         * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
8521         make_decl_one_only.
8522
8523 2009-06-16  Martin Jambor  <mjambor@suse.cz>
8524
8525         PR tree-optimization/40432
8526         * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
8527         check whether we need to force gimple register operand.
8528
8529 2009-06-16  Martin Jambor  <mjambor@suse.cz>
8530
8531         PR tree-optimization/40413
8532         * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
8533         build_ref_for_offset.
8534         (propagate_subacesses_accross_link): Fix a typo in a comment.
8535
8536 2009-06-16  Ira Rosen  <irar@il.ibm.com>
8537
8538         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
8539         with additional parameter.
8540         * tree-vectorizer.h (enum vect_def_type): Add new value
8541         vect_nested_cycle.
8542         (enum vect_relevant): Add comments.
8543         (vect_is_simple_reduction): Add new argument.
8544         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
8545         Detect nested cycles.
8546         (vect_is_simple_reduction): Update documentation, add an argument to
8547         distinguish inner-loop reduction from nested cycle, detect nested
8548         cycles, fix printings and indentation, don't swap operands in case
8549         of nested cycle.
8550         (get_initial_def_for_reduction): Handle subtraction.
8551         (vect_create_epilog_for_reduction): Add new argument to specify
8552         reduction variable.
8553         (vect_finalize_reduction): Handle subtraction, fix comments.
8554         (vectorizable_reduction): Handle nested cycles. In case of nested
8555         cycle keep track of the reduction variable position. Call
8556         vect_is_simple_reduction with additional parameter. Use original
8557         statement code in reduction epilogue for nested cycle. Call
8558         vect_create_epilog_for_reduction with additional parameter.
8559         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
8560         inner-loop vectorization.
8561         (vect_recog_widen_sum_pattern): Likewise.
8562         * tree-vect-stmts.c (process_use): Distinguish between nested cycles
8563         and reductions.
8564         (vect_mark_stmts_to_be_vectorized): Likewise.
8565         (vect_get_vec_def_for_operand): Handle nested cycles.
8566
8567 2009-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8568
8569         * doc/invoke.texi (Debugging Options): Fix option index entries
8570         for -fdump-statistics, -frandom-seed add entries for
8571         -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
8572         (FRV Options): Fix entries for -mTLS, -mtls.
8573         (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
8574         (i386 and x86-64 Options): Fix entry for -mno-red-zone.
8575         (M68hc1x Options): Fix @itemx for -mnominmax.
8576         (MCore Options): Fix entry for -mno-lsim.
8577         (MMIX Options): Fix entry for -mabi=mmixware.
8578         (PDP-11 Options): Fix entry for -mbcopy-builtin.
8579
8580 2009-06-16  Basile Starynkevitch  <basile@starynkevitch.net>
8581
8582         * doc/plugins.texi (Interacting with the GCC Garbage Collector):
8583         Mention the plugin mode of gengtype.
8584         * doc/gty.texi (Source Files Containing Type Information): Likewise.
8585         * gengtype.c: Updated copyright.
8586         (plugin_files, nb_plugin_files) Added new static variables.
8587         (measure_input_list) Care about plugin_files.
8588         (write_rtx_next): Added early return in plugin mode.
8589         (create_file): Updated copyright year in generated file. Added
8590         asserts.
8591         (oprintf): Added early return if NULL outf.
8592         (get_output_file_with_visibility): Care of plugin_files.
8593         (get_output_file_name): May return null.
8594         (write_local): Added early return.
8595         (put_mangled_filename): Ditto.
8596         (finish_root_table): Added check for base_files.
8597         (write_roots): Care about null when plugins.
8598         (main): Added plugin mode.
8599
8600 2009-06-15  Ian Lance Taylor  <iant@google.com>
8601
8602         * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
8603         * gcov.c (read_count_file): Add braces around variables declared
8604         before label.
8605
8606         * c.opt (Wjump-misses-init): New warning.
8607         * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
8608         -Wall and -Wc++-compat if not already set.
8609         (c_common_post_options): Clear warn_jump_misses_init if it was not
8610         set.
8611         * c-decl.c (struct c_binding): Change type field to a union with
8612         new label field.  Make it the first field in the struct.  Update
8613         references to type to use u.type instead.
8614         (struct c_spot_bindings): Define.
8615         (struct c_goto_bindings): Define.
8616         (c_goto_bindings_p): Define, along with VECs.
8617         (struct c_label_vars): Define.
8618         (struct c_scope): Add has_label_bindings field.
8619         (bind_label, set_spot_bindings): New static functions.
8620         (decl_jump_unsafe, update_spot_bindings): New static functions.
8621         (update_label_decls): New static function.
8622         (pop_scope): Call update_label_decls.  Don't call c_end_vm_scope.
8623         Update binding u.label field to shadowed field.
8624         (c_binding_start_stmt_expr): New function.
8625         (c_binding_end_stmt_expr): New function.
8626         (pushdecl): Don't call c_begin_vm_scope.
8627         (make_label): Add defining and p_label_vars parameters.  Change
8628         all callers.
8629         (lookup_label): Correct test for whether a label has not yet been
8630         defined.  Call bind_label rather than bind.
8631         (warn_about_goto): New static function.
8632         (lookup_label_for_goto): New function.
8633         (declare_label): Call bind_label rather than bind.
8634         (check_earlier_gotos): New static function.
8635         (define_label): Don't give errors about jumping into statement
8636         expressions or scopes of variably modified types.  Call
8637         set_spot_bindings and check_earlier_gotos.  Call bind_label
8638         instead of bind.  Don't set label_context_stack_se or
8639         label_context_stack_vm.
8640         (c_get_switch_bindings): New function.
8641         (c_release_switch_bindings): New function.
8642         (c_check_switch_jump_warnings): New function.
8643         (start_function): Don't set label_context_stack_se or
8644         label_context_stack_vm.
8645         (finish_function): Likewise.
8646         * c-typeck.c (label_context_stack_se): Don't define.
8647         (label_context_stack_vm): Don't define.
8648         (c_finish_goto_label): Call lookup_label_for_goto rather than
8649         lookup_label.  Don't give errors about jumping into a statement
8650         expression or the scope of a variably modified type.  Don't set
8651         label_context_stack_se or label_context_stack_vm.
8652         (struct c_switch): Remove blocked_stmt_expr and blocked_vm
8653         fields.  Add bindings field.
8654         (c_start_case): Don't set deleted fields.  Set bindings field.
8655         (do_case): Rework order of tests.  Don't check blocked_stmt_expr
8656         or blocked_vm.  Call c_check_switch_jump_warnings.
8657         (c_finish_case): Don't test blocked_stmt_expr field.  Call
8658         c_release_switch_bindings.
8659         (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
8660         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
8661         set label_context_stack_se.  Call c_bindings_start_stmt_expr.
8662         (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
8663         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
8664         set label_context_stack_se.  Call c_bindings_end_stmt_expr.
8665         (c_begin_vm_scope, c_end_vm_scope): Don't define.
8666         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
8667         (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
8668         (C_DECL_UNJUMPABLE_VM): Don't define.
8669         (C_DECL_UNDEFINABLE_VM): Don't define.
8670         (struct c_label_list): Don't define.
8671         (struct c_label_context_se): Don't define.
8672         (struct c_label_context_vm): Don't define.
8673         (struct c_spot_bindings): Declare.
8674         (c_bindings_start_stmt_expr): Declare.
8675         (c_bindings_end_stmt_expr): Declare.
8676         (lookup_label_for_goto): Declare.
8677         (c_get_switch_bindings, c_release_switch_bindings): Declare.
8678         (c_check_switch_jump_warnings): Declare.
8679         (label_context_stack_se, label_context_stack_vm): Don't declare.
8680         (c_finish_goto_label): Update declaration.
8681         (c_begin_vm_scope, c_end_vm_scope): Don't declare.
8682         * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
8683         (Warning Options): Document -Wjump-misses-init.
8684
8685 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
8686
8687         * tree-object-size.c (addr_object_size): Fix a pasto in the last
8688         change.
8689
8690 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
8691
8692         * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
8693
8694 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
8695
8696         * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
8697
8698 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
8699
8700         * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
8701
8702 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
8703
8704         * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
8705         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
8706         * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
8707         * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
8708         * dwarf2asm.c (dw2_force_const_mem): Update call to
8709         make_decl_one_only.
8710         * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
8711         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
8712         * langhooks.c (lhd_comdat_group): Remove.
8713         * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
8714         * tree.h (DECL_COMDAT_GROUP): New.
8715         (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
8716         (tree_decl_with_vis): Add comdat_group. Remove one_only.
8717         (make_decl_one_only): Change signature.
8718         * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
8719         make_decl_one_only.
8720         (make_decl_one_only): Change signature.
8721         (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
8722
8723 2009-06-15  Richard Guenther  <rguenther@suse.de>
8724
8725         PR middle-end/40439
8726         * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
8727
8728 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8729
8730         * tree-ssa-math-opts.c: Remove extra divide.
8731
8732 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8733
8734         * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
8735
8736 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8737
8738         * passes.c: Add bswap pass.
8739         * tree-pass.h: Add pass_optimize_bswap declaration.
8740         * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
8741         Include rtl.h, expr.h and optabs.h for optab_handler check.
8742         (struct symbolic_number, pass_optimize_bswap): New definition.
8743         (do_shift_rotate, verify_symbolic_number_p): New functions.
8744         (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
8745         (gate_optimize_bswap): New function.
8746         * tree.c (widest_int_cst_value): New function.
8747         * tree.h (widest_int_cst_value): Prototype added.
8748
8749 2009-06-14  Steven Bosscher  <steven@gcc.gnu.org>
8750
8751         * cfgcleanup.c (old_insns_match_p): Remove code to substitute
8752         REG_EQUAL/REG_EQUIV notes.
8753
8754 2009-06-14  Richard Guenther  <rguenther@suse.de>
8755
8756         PR middle-end/40389
8757         * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
8758         has its address taken if NRV was applied and it is addressable.
8759         * tree-ssa-structalias.c (get_constraint_for_address_of): New
8760         function split out from ...
8761         (get_constraint_for_1): ... here.
8762         (handle_rhs_call): Use it to mark the return slot escaped if
8763         it is addressable and NRV was applied.
8764
8765 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
8766
8767         * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
8768         Change first argument type to location_t.
8769         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
8770         Do not set input_location.
8771         Use loc instead of input_location throughout.
8772
8773 2009-06-13  Richard Guenther  <rguenther@suse.de>
8774
8775         PR tree-optimization/40421
8776         * tree-predcom.c (should_unroll_loop_p): Remove.
8777         (tree_predictive_commoning_loop): Use can_unroll_loop_p.
8778
8779 2009-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
8780
8781         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8782         Add location argument.
8783
8784 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
8785
8786         * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
8787         build_decl.
8788         * config/s390/s390.c (s390_build_builtin_va_list): Same.
8789         (s390_gimplify_va_arg): Pass location to create_artificial_label.
8790         * config/spu/spu-protos.h: Add location to
8791         spu_resolve_overloaded_builtin.
8792         * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
8793         spu_build_builtin_va_list.
8794         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
8795         argument.  Pass location to build_function_call_vec.
8796         * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
8797         build_decl.
8798         (emit_fpu_switch): Same.
8799         (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
8800         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
8801         to build_decl and create_artificial_label.
8802         (xtensa_gimplify_va_arg_expr): Same.
8803         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
8804         (xstormy16_gimplify_va_arg_expr): Same.
8805         * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
8806         * config/arm/arm.c (arm_build_builtin_va_list): Same.
8807         * config/mips/mips.c (mips_build_builtin_va_list): Same.
8808         (mips16_build_function_stub): Same.
8809         (mips16_build_call_stub): Same.
8810
8811 2009-06-13  Richard Earnshaw  <rearnsha@arm.com>
8812
8813         PR target/40327
8814         * arm/constraints.md (Pa, Pb): New constraints.
8815         * arm/arm.md (thumb1_addsi3): Support more complex additions.  Add a
8816         split pattern to deal with them.
8817
8818 2009-06-13  Joerg Sonnenberger  <joerg@britannica.bec.de>
8819
8820         * doc/invoke.texi: Add missing option -Wp,OPTION in list,
8821         fix index entry for -Xpreprocessor.
8822
8823 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
8824
8825         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8826         Add location argument to build_decl call.
8827         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
8828         (rs6000_init_builtins): Same.
8829         (spe_init_builtins): Same.
8830         (rs6000_gimplify_va_arg): Add location argument to
8831         create_artificial_label call.
8832
8833 2009-06-12  Steven Bosscher  <steven@gcc.gnu.org>
8834
8835         * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
8836         * combine-stack-adj.c (pass_stack_adjustments): Use it.
8837         * Makefile.in: Fix GGC dependency for gcse.o.
8838
8839 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
8840
8841         * tree-pretty-print.c (dump_generic_node): Dump column numbers.
8842         * gimple-pretty-print.c (dump_gimple_stmt): Same.
8843         * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
8844         created.
8845         * c-parser.c (c_parser_binary_expression): Use current column while
8846         building binary operations.
8847         * common.opt (fshow-column): Enable by default.
8848         * tree-vrp.c (check_array_ref): Use warning_at.
8849         (check_array_bounds): Use location from call back if expr has no
8850         location.
8851         * tree.h: Add location argument to maybe_fold_*.
8852         * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
8853         (maybe_fold_offset_to_array_ref): Add location argument and use it.
8854         (maybe_fold_offset_to_component_ref): Same.
8855         (maybe_fold_offset_to_reference): Same.
8856         (maybe_fold_offset_to_address): Same.
8857         (maybe_fold_stmt_indirect): Same.
8858         (maybe_fold_stmt_addition): Same.
8859         (fold_stmt_r): Pass location to maybe_fold_*.
8860         (fold_gimple_assign): Same.
8861         * c-tree.h: Add location argument to finish_decl,
8862         default_function_array_conversion, store_init_value.
8863         * c-decl.c (define_label): Use error_at.
8864         (c_make_fname_decl): Pass location to finish_decl.
8865         (finish_decl): New location argument.
8866         (build_compound_literal): Pass location to store_init_value.
8867         (grokdeclarator): Pass location to finish_decl.
8868         (grokfield): Same.
8869         * c-typeck.c (array_to_pointer_conversion): New location argument.
8870         (function_to_pointer_conversion): Same.
8871         (default_function_array_conversion): Same.
8872         (parser_build_unary_op): Pass location to overflow_warning.
8873         (parser_build_binary_op): Same.  Use warning_at.
8874         (build_unary_op): Pass location to array_to_pointer_conversion.
8875         (build_c_cast): Pass location to digest_init.
8876         (build_modify_expr): New location argument.
8877         (convert_for_assignment): Same.
8878         (store_init_value): Same.
8879         (digest_init): Same.
8880         (output_init_element): Pass location to digest_init and
8881         array_to_pointer_conversion.
8882         (c_finish_return): Pass location to convert_for_assignment.
8883         * gimplify.c (gimplify_conversion): Pass location to
8884         maybe_fold_offset_to_address.
8885         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
8886         to maybe_fold_stmt_addition.
8887         * c-omp.c (c_finish_omp_atomic): Pass new location to
8888         build_modify_expr.
8889         (c_finish_omp_for): Same.
8890         * c-common.c (overflow_warning): New argument.
8891         * c-common.h: New argument to build_modify_expr, overflow_warning.
8892         * c-parser.c (c_parser_declaration_or_fndef): Pass location to
8893         finish_decl.
8894         (c_parser_initializer): Pass location to
8895         default_function_array_conversion.
8896         (c_parser_initelt): Same.
8897         (c_parser_initval): Same.
8898         (c_parser_asm_operands): Same.
8899         (c_parser_expr_no_commas): Same.  Pass location to build_modify_expr.
8900         (c_parser_conditional_expression): Same.
8901         (c_parser_binary_expression): Add location info to stack.  Use it.
8902         (c_parser_unary_expression): Pass location to
8903         default_function_array_conversion, parser_build_unary_op,
8904         build_indirect_ref, c_parser_postfix_expression_after_primary.
8905         (c_parser_postfix_expression_after_primary): New location argument.
8906         Use it.
8907         (c_parser_expression_conv): Pass location to
8908         default_function_array_conversion.
8909         (c_parser_expr_list): Same.
8910         (c_parser_omp_atomic): Same.
8911         (c_parser_omp_for_loop): Same.
8912         * c-tree.h: (struct c_declarator): Add comment to id_loc.
8913         (build_array_declarator): New argument.
8914         * c-decl.c (build_array_declarator): Add location argument.
8915         (grokdeclarator): Set id_loc for cdk_array.
8916         * c-parser.c (c_parser_direct_declarator_inner): Pass location to
8917         build_array_declarator.
8918         * tree.c (build_omp_clause): Add location argument.
8919         * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
8920         (OMP_CLAUSE_LOCATION): New macro.
8921         (struct tree_omp_clause): Add location field.
8922         (build_omp_clause): Add argument.
8923         * testsuite/gcc.dg/gomp/for-1.c: Fix column.
8924         * cp/pt.c (tsubst_omp_for_iterator): Pass location to
8925         build_omp_clause.
8926         * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
8927         (cp_parser_omp_clause_collapse): Same.
8928         (cp_parser_omp_clause_default): Same.
8929         (cp_parser_omp_clause_if): Same.
8930         (cp_parser_omp_clause_nowait): Same.
8931         (cp_parser_omp_clause_num_threads): Same.
8932         (cp_parser_omp_clause_ordered): Same.
8933         (cp_parser_omp_clause_schedule): Same.
8934         (cp_parser_omp_clause_untied): Same.
8935         (cp_parser_omp_for_loop): Same.
8936         (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
8937         * c-tree.h (c_start_case): Add location argument.
8938         (c_process_expr_stmt): Same.
8939         (c_finish_goto_*): Same.
8940         * tree-parloops.c (initialize_reductions): Pass location to
8941         build_omp_clause.
8942         (create_parallel_loop): Same.
8943         * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
8944         (gfc_trans_omp_reduction_list): Same.
8945         (gfc_trans_omp_clauses): Same.
8946         (gfc_trans_omp_do): Same.
8947         * c-typeck.c (c_finish_goto_label): Same.
8948         (c_finish_goto_ptr): New location argument.
8949         (c_start_case): Same.
8950         (emit_side_effect_warnings): Same.
8951         (c_process_expr_stmt): Same.
8952         (c_finish_stmt_expr): Same.
8953         (c_finish_omp_clauses): Use error_at instead of error.
8954         * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
8955         build_omp_clause.
8956         * c-omp.c (c_split_parallel_clauses): New location argument.
8957         * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
8958         to build_omp_clause.
8959         (convert_local_reference_stmt): Same.
8960         (convert_gimple_call): Same.
8961         * c-common.h (c_split_parallel_clauses): New argument.
8962         * c-parser.c (c_parser_statement_after_labels): Pass location to
8963         c_finish_goto_label.
8964         (c_parser_switch_statement): Pass location to c_start_case.
8965         (c_parser_for_statement): Pass location to c_finish_expr_stmt,
8966         and c_process_expr_stmt.
8967         (c_parser_omp_variable_list): Add location argument.
8968         (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
8969         (c_parser_omp_clause_default): Same.
8970         (c_parser_omp_clause_if): Same.
8971         (c_parser_omp_clause_num_threads): Same.
8972         (-c_parser_omp_clause_ordered): Same.
8973         (c_parser_omp_clause_reduction): Pass location to
8974         c_parser_omp_variable_list.
8975         (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
8976         (c_parser_omp_clause_untied): Same.
8977         (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
8978         (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
8979
8980         * c-tree.h (check_for_loop_decls, undeclared_variable,
8981         build_component_ref, build_array_ref, build_external_ref,
8982         c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
8983         build_conditional_expr, build_compound_expr, c_cast_expr,
8984         build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
8985         c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
8986         argument.
8987         * c-semantics.c (build_stmt): Same.
8988         (build_case_label): Same.
8989         * c-decl.c (c_finish_incomplete_decl): Pass location on down.
8990         (undeclared_variable): New argument.
8991         (make_label): Same.
8992         (lookup_label): Pass location on down.
8993         (define_label): Same.
8994         (finish_decl): Same.
8995         (build_compound_literal): Same.
8996         (finish_struct): Same.
8997         (finish_function): Do not set location here.
8998         (check_for_loop_decls): New argument.
8999         * tree.c (save_expr): Set location.
9000         (build_empty_stmt): New argument.
9001         * tree.h (build_empty_stmt): New argument to build_empty_stmt.
9002         (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
9003         * builtins.c (gimplify_va_arg_expr): Use locations.
9004         (expand_builtin_sync_operation): Same.
9005         * c-typeck.c (build_component_ref): New argument.
9006         (build_array_ref): Same.
9007         (build_external_ref): Same.
9008         (c_expr_sizeof_expr): Same.
9009         (c_expr_sizeof_type): Same.
9010         (parser_build_unary_op): Same.
9011         (build_conditional_expr): Same.
9012         (build_compound_expr): Pass location on down.
9013         (build_compound_expr): New argument.
9014         (build_c_cast): Same.
9015         (c_cast_expr): Same.
9016         (build_asm_expr): Same.
9017         (c_finish_return): Same.
9018         (c_process_expr_stmt): Pass location on down.
9019         (c_finish_stmt_expr): New argument.
9020         (push_clenaup): Same.
9021         (c_finish_omp_parallel): Same.
9022         (c_finish_omp_task): Same.
9023         * gimplify.c (gimplify_call_expr): Pass location on down.
9024         * c-omp.c (c_finish_omp_master): New argument.
9025         (c_finish_omp_critical): Same.
9026         (c_finish_omp_ordered): Same.
9027         (c_finish_omp_barrier): Same.
9028         (-c_finish_omp_taskwait): Same.
9029         (c_finish_omp_atomic): Same.
9030         (c_finish_omp_flush): Same.
9031         * tree-inline.c (copy_tree_body_r): Pass location on down.
9032         (inline_forbidden_p): Remove use of input_location.
9033         * c-gimplify.c (c_build_bind_expr): New argument.
9034         * c-common.c (c_common_truthvalue_conversion): Pass location on down.
9035         (c_sizeof_or_alignof_type): New argument.
9036         (c_alignof_expr): Same.
9037         (build_va_arg): Same.
9038         (c_add_case_label): Same.
9039         * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
9040         c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
9041         c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
9042         c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
9043         c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
9044         c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
9045         New argument.
9046         * stub-objc.c (objc_build_selector_expr): Same.
9047         (objc_build_throw_stmt): Same.
9048         * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
9049         (c_parser_initelt): Same.
9050         (c_parser_compound_statement): Same.
9051         (c_parser_compound_statement_nostart): Same.
9052         (c_parser_label): Same.
9053         (c_parser_statement_after_labels): Same.
9054         (c_parser_if_body): Same.
9055         (c_parser_else_body): Same.
9056         (c_parser_if_statement): Same.
9057         (c_parser_switch_statement): Same.
9058         (c_parser_while_statement): Same.
9059         (c_parser_do_statement): Same.
9060         (c_parser_for_statement): Same.
9061         (c_parser_asm_statement): Same.
9062         (c_parser_conditional_expression): Same.
9063         (c_parser_binary_expression): Same.
9064         (c_parser_cast_expression): Same.
9065         (c_parser_unary_expression): Same.
9066         (c_parser_sizeof_expression): Same.
9067         (c_parser_alignof_expression): Same.
9068         (c_parser_postfix_expression): Same.
9069         (c_parser_expression): Same.
9070         (c_parser_objc_receiver): Same.
9071         (c_parser_omp_variable_list): Same.
9072         (c_parser_omp_structured_block): Same.
9073         (c_parser_omp_atomic): New argument.
9074         (c_parser_omp_barrier): Same.
9075         (c_parser_omp_critical): Same.
9076         (c_parser_omp_flush): Pass location on down.
9077         (c_parser_omp_for_loop): New argument.
9078         (c_parser_omp_for): Same.
9079         (c_parser_omp_master): Same.
9080         (c_parser_omp_ordered): Same.
9081         (c_parser_omp_sections_scope): Same.
9082         (c_parser_omp_sections): Same.
9083         (c_parser_omp_parallel): Same.
9084         (c_parser_omp_single): Same.
9085         (c_parser_omp_task): Same.
9086         (c_parser_omp_taskwait): Pass location on down.
9087         (c_parser_omp_construct): Same.
9088         (c_parser_omp_threadprivate): Same.
9089         * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
9090         builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
9091         tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
9092         c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
9093         c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
9094         emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
9095         rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
9096         tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
9097         config/i386/i386.c, stmt.c:
9098         Add location argument to the following function definitions and/or
9099         function calls: build_decl, objcp_start_struct, objcp_finish_struct,
9100         start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
9101         cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
9102         build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
9103         do_case, c_finish_bc_stmt, build_compound_literal,
9104         build_function_call.
9105         * c-decl.c (build_compound_literal): Add location argument.
9106         Make all diagnostic calls use location.
9107         (start_struct): Same.
9108         (finish_struct): Same.
9109         (start_enum): Same.
9110         (build_enumerator): Same.
9111         (start_function): Same.
9112         (grokdeclarator): Make all diagnostic calls use location.
9113         (store_parm_decls_oldstyle): Same.
9114         * c-typeck.c (build_function_call): Add location argument.
9115         Make all diagnostic calls use location.
9116         (do_case): Same.
9117         (c_finish_bc_stmt): Same.
9118         * tree-nested.c (get_trampoline_type): Add argument.
9119         Pass location to build_decl.
9120         (lookup_tramp_for_decl): Pass location to get_trampoline_type.
9121         * rtl.h (RTL_LOCATION): New.
9122         * c-common.c (c_add_case_label): Add location argument.
9123         Make all diagnostic calls use location.
9124         * c-common.h: Add location argument to make_fname_decl, do_case,
9125         c_add_case_label, build_function_call, resolve_overloaded_builtin.
9126         * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
9127         Set it appropriately for every case.  Pass enum_loc to start_enum
9128         call.  Pass value_loc first to build_enumerator.  Pass enum_loc to
9129         parser_xref_tag.
9130         (c_parser_struct_or_union_specifier): Save location.  Use it for
9131         start_struct, finish_struct, and parser_xref_tag.
9132
9133 2009-06-12  Ian Lance Taylor  <iant@google.com>
9134
9135         * fold-const.c (fold_unary): Rename local variable and to and_expr.
9136
9137         * c-opts.c (c_common_handle_option): For -Wc++-compat set
9138         cpp_opts->warn_cxx_operator_names.
9139
9140 2009-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9141
9142         PR tree-opt/38865
9143         * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
9144         is returns NULL and OP is a VCE, look through the VCE.
9145
9146 2009-06-12  Ian Lance Taylor  <iant@google.com>
9147
9148         PR bootstrap/40430
9149         * collect2.c (main): Use CONST_CAST2 in code inside #if
9150         LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
9151
9152 2009-06-12  Joey Ye  <joey.ye@intel.com>
9153
9154         PR middle-end/39146
9155         * cfgexpand.c (get_decl_align_unit): Update
9156         max_used_stack_slot_alignment with align instead of
9157         stack_alignment_needed.
9158
9159         * function.c (assign_stack_local_1): Update
9160         max_used_stack_slot_alignment with alignment_in_bits instead
9161         of stack_alignment_needed.
9162         (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
9163         here.
9164
9165 2009-06-12  Jakub Jelinek  <jakub@redhat.com>
9166
9167         * dwarf2out.c (last_var_location_insn): New variable.
9168         (dwarf2out_end_epilogue): Clear last_var_location_insn.
9169         (dwarf2out_var_location): Don't record anything after last real
9170         insn.  Only change labels if there were any real instructions
9171         in between last note and this one, or if changed sections.
9172
9173 2009-06-11  Richard Henderson  <rth@redhat.com>
9174
9175         * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
9176         note when storing the frame pointer in a register.
9177         (FRP): Don't redefine to nothing for epilogue.
9178         (alpha_expand_epilogue): Mark register and sp restores.
9179         (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
9180
9181         * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
9182         when gen_lowpart is needed.
9183
9184 2009-06-11  Richard Henderson  <rth@redhat.com>
9185
9186         * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
9187
9188         * dwarf2out.c (need_data_align_sf_opcode): New.
9189         (div_data_align): Move earlier.
9190         (def_cfa_1, reg_save): Use it.
9191
9192 2009-06-11  H.J. Lu  <hongjiu.lu@intel.com>
9193
9194         * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
9195         (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
9196         (ix86_handle_option): Handle OPT_mcrc32.
9197         (ix86_target_string): Add -mcrc32.
9198         (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
9199
9200         * config/i386/i386.h (TARGET_CRC32): New.
9201
9202         * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
9203         (sse4_2_crc32di): Likewise.
9204
9205         * config/i386/i386.opt (mcrc32): New.
9206
9207         * doc/invoke.texi: Document -mcrc32.
9208
9209 2009-06-11  Richard Henderson  <rth@redhat.com>
9210
9211         * common.opt (gdwarf-): Accept a version number.
9212         * doc/invoke.texi (gdwarf-): Update docs.
9213         * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
9214         * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
9215         version level, and record it.
9216
9217         * dwarf2.h (DW_CIE_VERSION): Remove.
9218         * dwarf2out.c (DWARF_VERSION): Remove.
9219         (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
9220         (output_call_frame_info): Use CIE version 3 for dwarf3,
9221         or if the return register column is out of range for version 1.
9222         (dwarf_stack_op_name): Add all dwarf3 values.
9223         (DEBUG_PUBTYPES_SECTION): New.
9224         (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
9225         encoding change for dwarf3.
9226         (output_die) [dw_val_class_die_ref]: Likewise.
9227         (output_compilation_unit_header): Emit correct version for dwarf3.
9228         (output_line_info): Likewise.
9229         (output_pubnames): Update for DWARF_VERSION removal.
9230         (output_aranges): Likewise.
9231         (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
9232         (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
9233         (dwarf2out_finish): Likewise.
9234
9235 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
9236
9237         * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
9238         in r148403.
9239
9240 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
9241
9242         PR c/39252
9243         * doc/extend.texi ( __builtin_unreachable): Document new builtin.
9244         * builtins.c (expand_builtin_unreachable): New function.
9245         (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
9246         * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
9247         * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
9248         successors.
9249         * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
9250         searching for missing barriers.
9251
9252 2009-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9253
9254         * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
9255         when -fprofile-generate* was passed.
9256         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
9257
9258 2009-06-11  Anthony Green  <green@moxielogic.com>
9259
9260         * config/moxie/moxie.md: Define length attribute for all instructions.
9261         (rCC): Define.
9262         (*b<cond:code>): Support limited branch ranges for new PC-relative
9263         branch instructions.
9264         * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
9265
9266 2009-06-11  Jakub Jelinek  <jakub@redhat.com>
9267
9268         * config/i386/i386.c (min_insn_size): Use get_attr_length
9269         for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
9270         For __asm return 0.
9271
9272         * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
9273         instead of emit_insn_before.
9274
9275 2009-06-10  Ian Lance Taylor  <iant@google.com>
9276
9277         PR bootstrap/40408
9278         * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
9279         GIMPLE_SWITCH.
9280
9281 2009-06-10  Revital Eres  <eres@il.ibm.com>
9282
9283         * passes.c (init_optimization_passes): Reschedule
9284         predictive-commoning pass before complete unroll pass.
9285
9286 2009-06-10  Martin Jambor  <mjambor@suse.cz>
9287
9288         * cgraph.c (cgraph_node_can_be_local_p): New function.
9289         (cgraph_make_node_local): New function.
9290         * cgraph.h (cgraph_node_can_be_local_p): Declare.
9291         (cgraph_make_node_local): Declare.
9292
9293 2009-06-10  Nathan Froyd  <froydnj@codesourcery.com>
9294
9295         * tree.h (tree_base): Add packed_flag and user_align fields.
9296         Decrease size of spare field.
9297         (TYPE_USER_ALIGN): Use user_align from tree_base.
9298         (DECL_USER_ALIGN): Likewise.
9299         (TYPE_PACKED): Use packed_flag from tree_base.
9300         (DECL_PACKED): Likewise.
9301         (tree_type): Delete packed_flag and user_align fields.  Widen
9302         precision field.  Widen mode field and shuffle fields to align
9303         mode on an 8-bit boundary.
9304         (tree_decl_common): Delete decl_flag_1 and user_align fields.
9305         Renumber decl_flag_* fields.  Fix comments.  Widen
9306         decl_common_unused field.
9307         (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
9308         (DECL_EXTERNAL): Likewise.
9309         (DECL_BIT_FIELD): Likewise.
9310         (DECL_NONADDRESSABLE_P): Likewise.
9311         (TYPE_DECL_SUPRESS_DEBUG): Likewise.
9312         * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
9313
9314 2009-06-10  Ian Lance Taylor  <iant@google.com>
9315
9316         * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
9317         (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
9318         (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
9319         (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
9320         (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
9321         DEF_VEC_ALLOC_FUNC_P.
9322         (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
9323         (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
9324         DEF_VEC_ALLOC_FUNC_O.
9325         (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
9326         (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
9327         DEF_VEC_ALLOC_FUNC_I.
9328         (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
9329         (vec_stack_p_reserve_exact_1): Declare.
9330         (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
9331         (vec_stack_free): Declare.
9332         (VEC_stack_alloc): Define.
9333         (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
9334         (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
9335         (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
9336         * vec.c (void_p): New type.  Call DEF_VEC_P and DEF_VEC_ALLOC_P
9337         for void_p.
9338         (stack_vecs): New static variable.
9339         (vec_stack_p_reserve_exact_1): New function.
9340         (vec_stack_o_reserve_1): New static function.
9341         (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
9342         (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
9343         (vec_stack_free): New function.
9344         * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
9345         (VEC_df_ref_stack_alloc): Define.
9346         (df_mw_hardreg_ptr): New type.  Use DEF_VEC_P and
9347         DEF_VEC_ALLOC_P_STACK.
9348         (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
9349         (struct df_collection_rec): Change _vec fields to VEC.  Remove
9350         _use fields.
9351         (df_free_collection_rec): Adjust for new fields.
9352         (df_insn_rescan): Use new df_collection_rec fields.
9353         (df_notes_rescan, df_canonize_collection_rec): Likewise.
9354         (df_ref_create_structure, df_ref_record): Likewise.
9355         (df_get_conditional_uses, df_get_call_refs): Likewise.
9356         (df_insn_refs_collect, df_bb_refs_collect): Likewise.
9357         (df_bb_refs_record, df_record_entry_block_defs): Likewise.
9358         (df_record_exit_block_uses, df_bb_verify): Likewise.
9359         (df_swap_refs): Change ref_vec parameter to VEC.  Change all callers.
9360         (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
9361         Remove count parameter.  Change return type to void.  Change all
9362         callers.
9363         (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
9364         Remove count parameter.  Change return type to void.  Change all
9365         callers.
9366         (df_install_refs): Change old_vec parameter to VEC.  Remove count
9367         parameter.  Change all callers.
9368         (df_install_mws): Change old_vec parameter to VEC.  Remove count
9369         parameter.  Change all callers.
9370         (df_refs_verify): Change new_rec parameter to VEC.  Change call
9371         callers.
9372         (df_mws_verify): Likewise.
9373
9374 2009-06-10  Alexandre Oliva  <aoliva@redhat.com>
9375
9376         * gcc.c (compare_files): Cast munmap argumento to caddr_t.
9377
9378 2009-06-10  H.J. Lu  <hongjiu.lu@intel.com>
9379
9380         * doc/extend.texi: Add description for __builtin_ia32_crc32di.
9381
9382 2009-06-10  Anthony Green  <green@moxielogic.com>
9383
9384         * config/moxie/crti.asm: New file.
9385         * config/moxie/crtn.asm: New file.
9386         * config/moxie/moxie.c: New file.
9387         * config/moxie/moxie.h: New file.
9388         * config/moxie/sfp-machine.h: New file.
9389         * config/moxie/moxie-protos.h: New file.
9390         * config/moxie/t-moxie: Created.
9391         * config/moxie/t-moxie-softfp: Created.
9392         * config/moxie/moxie.md: Created.
9393         * config/moxie/constraints.md: Created.
9394         * config.gcc: Add moxie support.
9395         * doc/md.texi (Machine Constraints): Add moxie constraints.
9396         * doc/contrib.texi (Contributors): Mention moxie port.
9397         * doc/install.texi (Specific): Mention the moxie port.
9398
9399 2009-06-09  Ian Lance Taylor  <iant@google.com>
9400
9401         * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
9402         compiling with C++.
9403         * optabs.c (optab_table): Only use designated initializers if
9404         HAVE_DESIGNATED_INITIALIZERS is defined.
9405         (convert_optab_table): Likewise.
9406         (init_optabs): Always call init_insn_codes if
9407         HAVE_DESIGNATED_INITIALIZERS is not defined.
9408
9409 2009-06-09  Ian Lance Taylor  <iant@google.com>
9410
9411         * targhooks.c (default_builtin_vectorized_function): Change fn
9412         parameter to unsigned int.
9413         (default_builtin_vectorized_conversion): Change code parameter to
9414         unsigned int.
9415         (default_builtin_reciprocal): Change fn parameter to unsigned int.
9416         * targhooks.h: Update declarations.
9417         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
9418         parameter to unsigned int.
9419
9420         * c-typeck.c (comptypes_check_enum_int): New static function.
9421         (comptypes_internal): Add enum_and_int_p parameter.  Change all
9422         callers.
9423         (comp_target_types): Add location parameter.  Change all callers.
9424         (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
9425         Change all callers.
9426         (function_types_compatible_p, type_lists_compatible_p): Likewise.
9427         (build_conditional_expr): Add colon_loc parameter.  Change all
9428         callers.
9429         (convert_for_assignment): Add location parameter.  Change all callers.
9430         * c-parser.c (c_parser_conditional_expression): Pass location of
9431         colon to build_conditional_expr.
9432         * c-tree.h (build_conditional_expr): Update declaration.
9433
9434 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
9435
9436         * graphite.c: Revert previous patch.
9437
9438 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
9439
9440         PR bootstrap/40103
9441         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
9442
9443 2009-06-09  Ghassan Shobaki  <ghassan.shobaki@amd.com>
9444
9445         * tree-ssa-loop-prefetch.c
9446         (loop_prefetch_arrays): Fixed a portability problem in printf format
9447         string.
9448
9449 2009-06-09  Martin Jambor  <mjambor@suse.cz>
9450
9451         PR tree-optimization/40351
9452         * tree-sra.c (propagate_subacesses_accross_link): Check that a
9453         refrence to a potential artifical subaccess can be constructed.
9454
9455 2009-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
9456
9457         * config/sh/sh-protos.h (sh_optimization_options): Declare.
9458         (sh_override_options): Likewise.
9459         * config/sh/sh.c: Include params.h.
9460         (sh_optimization_options): New.
9461         (sh_override_options): Likewise.
9462         * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
9463         (OVERRIDE_OPTIONS): Use sh_override_options.
9464
9465 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
9466
9467         * dwarf2out.c (emit_cfa_remember): New variable.
9468         (add_fde_cfi): If emit_cfa_remember, recurse to add
9469         DW_CFA_remember_state first.
9470         (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
9471         instead just set emit_cfa_remember.
9472
9473 2009-06-08  Jan Hubicka  <jh@suse.cz>
9474
9475         PR debug/40126
9476         * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
9477
9478 2009-06-08  Jan Hubicka  <jh@suse.cz>
9479
9480         PR middle-end/39834
9481         * cgraphunit.c (save_inline_function_body): Do not copy transform
9482         hooks for saved inline bodies.
9483         * ipa-passes.c (do_per_function): Do not add the hoks multiple times
9484         for given function.
9485
9486 2009-06-08  Adam Nemet  <anemet@caviumnetworks.com>
9487
9488         * jump.c (returnjump_p): Handle delayed branches.  Add missing
9489         function comment.
9490
9491 2009-06-08  Jan Hubicka  <jh@suse.cz>
9492
9493         PR middle-end/40102
9494         * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
9495         original node might've been modified.
9496         * tree-inline.c (copy_bb): Do not assume that all clones are the same.
9497
9498 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
9499
9500         * tree-object-size.c (addr_object_size): Add OSI argument.
9501         Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
9502         (compute_builtin_object_size, expr_object_size): Adjust callers.
9503         (plus_stmt_object_size): Call addr_object_size instead of
9504         compute_builtin_object_size.
9505
9506 2009-06-08  Ghassan Shobaki  <ghassan.shobaki@amd.com>
9507             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
9508
9509         * tree-ssa-loop-prefetch.c
9510         (gather_memory_references): Introduced a counter for the number of
9511         memory references.
9512         (anything_to_prefetch_p): Introduced a counter for the number of
9513         prefetches.
9514         (is_loop_prefetching_profitable): New function with a cost model
9515         for prefetching.
9516         (loop_prefetch_arrays): Use the new cost model to determine if
9517         prefetching is profitable.
9518         * params.def (MIN_INSN_TO_PREFETCH_RATIO,
9519         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
9520         * params.h (MIN_INSN_TO_PREFETCH_RATIO,
9521         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
9522         * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
9523         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
9524
9525 2009-06-08  Michael Matz  <matz@suse.de>
9526
9527         PR debug/40012
9528         * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
9529         partitions use the same.
9530         (expand_one_var): Deal with DECL_RTL sometimes begin set also
9531         for basevars of SSA_NAMEs.
9532         (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
9533         to not expand them twice.
9534         (gimple_expand_cfg): Clear DECL_RTL for those decls that have
9535         multiple places.
9536
9537 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
9538
9539         * common.opt (fcompare-debug=, fcompare-debug-second): New.
9540         (fdump-final-insns=, gtoggle): New.
9541         * doc/invoke.texi: Document them.
9542         * final.c (rest_of_clean_state): Dump final insn stream.
9543         * gcc.c (invoke_as): Hook in -fcompare-debug.
9544         (static_spec_functions): Add compare-debug-dump-opt,
9545         compare-debug-self-opt and compare-debug-auxbase-opt.
9546         (compare_debug, compare_debug_second, compare_debug_opt): New.
9547         (switches_debug_check, n_switches_debug_check): New.
9548         (debug_auxbase_opt, debug_check_temp_file): New.
9549         (process_command): Handle -fno-compare-debug, -fcompare-debug and
9550         -fcompare-debug=*.
9551         (do_self_spec): Handle arguments after switches.
9552         (do_spec_1): Add .gk extension to temp file basenames for compare.
9553         (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
9554         (cc1_options): Use it instead of normal auxbase computation for
9555         the second compare-debug compilation.
9556         (compare_files): New.
9557         (main): Set up and implement compare debug mode.
9558         (compare_debug_dump_opt_spec_function): New.
9559         (compare_debug_self_opt_spec_function): New.
9560         (compare_debug_auxbase_opt_spec_function): New.
9561         * toplev.c (process_options): Handle flag_gtoggle,
9562         flag_dump_final_insns.
9563         * coverage.c (coverage_begin_output): Don't overwrite .gcno file
9564         during -fcompare-debug-second compilation.
9565
9566 2009-06-07  Ian Lance Taylor  <iant@google.com>
9567
9568         * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
9569         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
9570
9571         * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
9572         with no default node.  Change warning with %H to warning_at.
9573         Don't clear warn_switch around case checking.
9574         * doc/invoke.texi (Warning Options): Clarify distinction between
9575         -Wswitch and -Wswitch-enum.
9576
9577 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9578
9579         * tree-pass.h (TODO_update_ssa_any): Document internal use only.
9580
9581 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9582
9583         * gbl-ctors.h: Add header guard.
9584
9585 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9586
9587         * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
9588         sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
9589         vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
9590         vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
9591         prototypes for removed functions.
9592         (expressions_equal_p): Move to ...
9593         * tree-ssa-sccvn.h: ... here and ...
9594         * matrix-reorg.c: ... adjust includes.
9595
9596 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9597
9598         * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
9599
9600 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9601
9602         * c-decl.c (finish_decl): Use bool for variable was_incomplete.
9603         (finish_function): Remove erroneous whitespace.
9604
9605 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9606
9607         * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
9608         (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
9609
9610 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9611
9612         * errors.c (internal_error): Commentary typo fix.
9613         * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
9614         * tree-ssa-pre.c: Ditto.
9615
9616 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9617
9618         * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
9619         them is supposed to hold actual statements.
9620
9621 2009-06-06  Ian Lance Taylor  <iant@google.com>
9622
9623         * doc/extend.texi (Attribute Syntax): Document that C++ labels on
9624         empty statements can now have attributes.
9625
9626 2009-06-05  Shujing Zhao  <pearly.zhao@oracle.com>
9627
9628         * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
9629         * config/mips/mips.md: Ditto.
9630
9631 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
9632
9633         * config/rs6000/eabi.asm (__eabi_convert): Don't define if
9634         _RELOCATABLE.
9635         (__eabi_uconvert): Likewise.
9636
9637 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
9638
9639         * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
9640         CFI_* definitions with IN_GCC.
9641
9642 2009-06-05  David Edelsohn  <edelsohn@gnu.org>
9643
9644         * xcoffout.h (xcoffout_source_line): Update prototype.
9645
9646 2009-06-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9647
9648         * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
9649         mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
9650
9651 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
9652
9653         PR middle-end/40340
9654         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
9655         inlined_function_outer_scope_p blocks for artificial inlines
9656         even at -g0/-g1.
9657         * tree.c (tree_nonartificial_location): Rewrite using
9658         block_nonartificial_location.
9659
9660 2009-06-05  Revital Eres  <eres@il.ibm.com>
9661             Leehod Baruch  <leehod@il.ibm.com>
9662
9663         * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
9664         (expand_expr_real_1): Remove comment.
9665         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9666         Vectorize misaligned access when the target supports it.
9667         (vect_supportable_dr_alignment): Check for unaligned access support.
9668         * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
9669         and remove asset.
9670
9671 2009-06-05  Julian Brown  <julian@codesourcery.com>
9672
9673         * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
9674         * config/arm/ieee754-sf.S (cmpsf2): Likewise.
9675
9676 2009-06-05  Richard Guenther  <rguenther@suse.de>
9677
9678         PR bootstrap/40350
9679         * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
9680         as possibly unused.
9681
9682 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
9683
9684         * config/s390/s390.c (global_not_special_regno_p): New static inline.
9685         (save_gprs): Don't tell unwinder when a global register is saved.
9686         (s390_emit_epilogue): Emit needed epilogue unwind info.
9687
9688 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
9689
9690         * dwarf2out.c (deferred_asm_name): New.
9691         (add_name_and_src_coords_attributes): Defer creation of
9692         DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
9693         computed yet.
9694         (move_linkage_attr): New.
9695         (dwarf2out_finish): Revisit deferrals and emit attributes at the
9696         right place.
9697
9698 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
9699
9700         * tree-nested.c (finalize_nesting_tree_1): Declare the
9701         frame_decl in the binding tree.
9702
9703 2009-06-04  Cary Coutant  <ccoutant@google.com>
9704
9705         * basic-block.h (struct basic_block_def): Add discriminator field.
9706         * dbxout.c (dbxout_source_line): Add new parameter.  Change all
9707         callers.
9708         * debug.c (do_nothing_debug_hooks): Add additional entry.
9709         (debug_nothing_int_charstar_int): New function.
9710         * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
9711         (debug_nothing_int_charstar_int): New declaration.
9712         * dwarf2out.c (dwarf2out_source_line): Add new parameter.  Write
9713         discriminator value in .loc directive.
9714         * final.c (last_discriminator): New variable.
9715         (discriminator): New variable.
9716         (final_start_function): Initialize above variables, pass current
9717         discriminator to debug hook.
9718         (notice_source_line): Check for discriminator change.
9719         * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
9720         * sdbout.c (sdbout_source_line): New parameter.
9721         * tree-cfg.c (struct locus_discrim_map): New structure type.
9722         (discriminator_per_locus): New hash table.
9723         (build_gimple_cfg): Allocate and free discriminator hash table.
9724         (make_edges): Call assign_discriminator.
9725         (locus_map_hash): New function.
9726         (locus_map_eq): New function.
9727         (next_discriminator_for_locus): New function.
9728         (same_line_p): New function.
9729         (assign_discriminator): New function.
9730         (make_cond_expr_edges): Call assign_discriminator.
9731         (make_gimple_switch_edges): Likewise.
9732         (first_non_label_stmt): New function.
9733         * vmsdbgout.c (vmsdbgout_source_line): Add new parameter.  Change
9734         all callers.
9735         * xcoffout.c (xcoffout_source_line): Add new parameter.
9736
9737         * configure.ac (gcc_cv_as_discriminator): New configury check for
9738         gas support for discriminator.
9739         * configure: Regenerate.
9740         * config.in: Regenerate.
9741
9742 2009-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9743
9744         * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
9745         val after checking for integers.
9746
9747 2009-06-04  Uros Bizjak  <ubizjak@gmail.com>
9748
9749         * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
9750         X64_REGPARM_MAX.
9751         (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
9752         (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
9753         (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
9754         * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
9755         X64_REGPARM_MAX.  Use X86_64_MS_SSE_REGPARM_MAX instead of
9756         X64_SSE_REGPARM_MAX.
9757         * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
9758         X64_SSE_REGPARM_MAX.
9759
9760 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
9761
9762         * gcc.c (report_times_to_file): New.
9763         (execute): Implement it.
9764         (process_command): Support -time=.
9765         * doc/invoke.texi: Document it.
9766
9767 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
9768
9769         * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
9770         that have value exprs.
9771
9772 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
9773
9774         * dwarf2asm.c (dw2_force_const_mem): Defer creation of
9775         declarations for constants until...
9776         (dw2_output_indirect_constant_1): ... this point.
9777
9778 2009-06-04  Richard Earnshaw  <rearnsha@arm.com>
9779
9780         PR target/10242
9781         * arm.md (arm_addsi3): Don't try to split an add with an
9782         eliminable register until after reload has completed.
9783
9784 2009-06-03  Ian Lance Taylor  <iant@google.com>
9785
9786         * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
9787         * genattrtab.c (write_length_unit_log): Likewise.
9788         * genchecksum.c (dosum): Likewise.
9789         * gengtype.c (write_rtx_next): Likewise.
9790         (finish_root_table, write_roots): Likewise.
9791         * gimple.c (gimple_ops_offset_): Likewise.
9792         * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
9793         * config/arc/arc.c (arc_attribute_table): Likewise.
9794         * config/arm/arm.c (arm_attribute_table): Likewise.
9795         * config/avr/avr.c (avr_attribute_table): Likewise.
9796         * config/crx/crx.c (crx_attribute_table): Likewise.
9797         * config/m32r/m32r.c (m32r_attribute_table): Likewise.
9798         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
9799         * config/mcore/mcore.c (mcore_attribute_table): Likewise.
9800         * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
9801         * config/sh/sh.c (sh_attribute_table): Likewise.
9802         * config/sparc/sparc.c (sparc_attribute_table): Likewise.
9803         * config/spu/spu.c (spu_attribute_table): Likewise.
9804         * config/v850/v850.c (v850_attribute_table): Likewise.
9805
9806         * config/alpha/alpha.c (vms_attribute_table): Make static.
9807         * config/bfin/bfin.c (bfin_attribute_table): Likewise.
9808         * config/h8300/h8300.c (h8300_attribute_table): Likewise.
9809         * config/mips/mips.c (mips_attribute_table): Likewise.
9810
9811         * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
9812         $(SYSTEM_H).
9813         (cc1-checksum.o): Likewise.
9814
9815 2009-06-03  Steve Ellcey  <sje@cup.hp.com>
9816
9817         * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
9818
9819 2009-06-03  Jakub Jelinek  <jakub@redhat.com>
9820
9821         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
9822         insn if it is changing sp.  Use gen_add3_insn instead of
9823         conditionally gen_addsi3 and gen_adddi3.
9824         (offset_below_red_zone_p): New static inline function.
9825         (rs6000_emit_epilogue): Emit needed epilogue unwind info.
9826         Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
9827         * config/rs6000/ppc-asm.h: Include auto-host.h.
9828         (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
9829         CFI_RESTORE): Define.
9830         * config/rs6000/crtresxgpr.asm: Add unwind info.
9831         * config/rs6000/crtresxfpr.asm: Likewise.
9832         * config/rs6000/crtresgpr.asm: Likewise.
9833         * config/rs6000/crtresfpr.asm: Likewise.
9834         * config/rs6000/crtsavgpr.asm: Likewise.
9835         * config/rs6000/crtsavfpr.asm: Likewise.
9836
9837         * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
9838         argument of DWARF2_FRAME_REG_OUT macros.
9839
9840 2009-06-03  Julian Brown  <julian@codesourcery.com>
9841
9842         * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
9843         words or less (including TImode) in core registers.
9844
9845 2009-06-03  Richard Guenther  <rguenther@suse.de>
9846
9847         PR middle-end/40328
9848         * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
9849
9850 2009-06-03  Andrey Belevantsev  <abel@ispras.ru>
9851
9852         * statistics.c (statistics_counter_event): Do not record event
9853         in pass dump if its number == -1.
9854         (curr_statistics_hash): Add assert that we never get passes
9855         with static number == -1.
9856
9857 2009-06-03  Richard Guenther  <rguenther@suse.de>
9858             Andrey Belevantsev  <abel@ispras.ru>
9859
9860         * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
9861         non-BLKmode arrays addressable.
9862
9863 2009-06-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
9864
9865         * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
9866         * config/m68k/m68k.h: ... here.
9867         * testsuite/gcc.dg/falign-labels.c (dg-options): Don't restrict for
9868         m68k and fido.
9869
9870 2009-06-03  Martin Jambor  <mjambor@suse.cz>
9871
9872         PR tree-optimization/40323
9873         * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
9874         assignment.
9875
9876 2009-06-03  Richard Guenther  <rguenther@suse.de>
9877
9878         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
9879         consistently.
9880
9881 2009-06-03  Shujing Zhao  <pearly.zhao@oracle.com>
9882
9883         * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
9884         JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
9885         JUMP_TABLE_DATA_P where applicable.
9886         * config/sh/sh.c: Ditto.
9887         * config/sh/sh.h: Ditto.
9888         * config/sh/sh.md: Ditto.
9889         * config/sh/symbian.c: Ditto.
9890
9891 2009-06-03  Uros Bizjak  <ubizjak@gmail.com>
9892
9893         * config/i386/driver-i386.c (describe_cache): Optimize
9894         concatenation of strings.  Use snprintf instead of sprintf.
9895         (host_detect_local_cpu): Ditto.  Ignore -march and -mtune for native
9896         target when not compiling with GCC.
9897
9898 2009-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
9899
9900         * config/sh/sh.c: Revert last change.
9901         (sh_expand_epilogue): Emit a blockage insn before the frame
9902         pointer adjustment unconditionally.
9903
9904 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
9905
9906         * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
9907         * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
9908         * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
9909         * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
9910         to COLLECT_GCC_OPTIONS.
9911
9912 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
9913
9914         * collect2.c (target_system_root): New variable.
9915         (main): Handle --sysroot=.
9916         (ignore_library): Strip the sysroot from the library path.
9917
9918 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
9919
9920         * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
9921         (collect2.o): Depend on collect2-aix.h.
9922         (collect2-aix.o): New rule.
9923         * collect2-aix.h: New file.
9924         * collect2-aix.c: Likewise.
9925         * collect2.c: Include collect2-aix.h.  Don't undefine
9926         OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
9927         Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
9928         Use TARGET_AIX_VERSION instead of _AIX51.
9929         * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
9930         * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
9931         * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
9932         * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
9933         * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
9934
9935 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
9936
9937         * collect2.c (ignore_library): Avoid premature post-increment
9938         and null deference.
9939
9940 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
9941
9942         * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
9943         * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
9944         !CROSS_DIRECTORY_STRUCTURE alternative and use it for
9945         CROSS_DIRECTORY_STRUCTURE too.
9946         (LINK_LIBG_SPEC): Likewise.
9947         (LIB_SPEC): Add %R to sysroot paths.
9948         * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
9949         (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
9950         * config/rs6000/aix51.h: As for aix43.h.
9951         * config/rs6000/aix52.h: Likewise.
9952         * config/rs6000/aix53.h: Likewise.
9953         * config/rs6000/aix61.h: Likewise.
9954         * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
9955         to the beginning of sysroot paths.
9956
9957 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
9958
9959         * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
9960         INSN_LISTs that are out of the REG_NOTE range.
9961
9962 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
9963
9964         * loop-unroll.c (struct iv_to_split): Add pointer to next.
9965         (struct var_to_expand): Likewise.
9966         (struct opt_info): Add head and tail for linked lists of the above.
9967         (analyze_insn_to_expand_var): Initialize next.
9968         (analyze_iv_to_split_insn): Likewise.
9969         (analyze_insns_in_loop): Create linked lists.
9970         (allocate_basic_variable): Simplify for use without hash table.
9971         (insert_var_expansion_initialization): Likewise, make it type-safer.
9972         (combine_var_copies_in_loop_exit): Likewise.
9973         (apply_opt_in_copies): Walk lists rather than hash tables.
9974         (release_var_copies): Simplified and inlined by hand into...
9975         (free_opt_info): ... this function.
9976
9977 2009-06-02  Richard Guenther  <rguenther@suse.de>
9978
9979         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
9980         for field decls.
9981
9982 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
9983
9984         * cfgexpand.c (gimple_expand_cfg): Discard the source location
9985         only for builtins that are not overridden.
9986
9987 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
9988
9989         * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
9990         label string.
9991
9992 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
9993
9994         * df-core.c (df_ref_debug): Honor -fdump-noaddr.
9995
9996 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
9997
9998         * combine.c (move_deaths): Compare LUIDs within the same BB only.
9999
10000 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
10001
10002         * common.opt (fdump-unnumbered-links): New.
10003         * doc/invoke.texi (-fdump-unnumbered-links): Document it.
10004         * print-rtl.c (flag_dump_unnumbered_links): New.
10005         (print_rtx): Test it.
10006
10007 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
10008
10009         * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
10010         push/pop multiple to 8-byte alignment.
10011
10012 2009-06-01  Jakub Jelinek  <jakub@redhat.com>
10013
10014         * config/i386/i386.c (queued_cfa_restores): New static variable.
10015         (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
10016         functions.
10017         (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
10018         (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
10019         Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
10020         Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
10021         note unconditionally.
10022         (ix86_emit_restore_regs_using_mov): Likewise.
10023         (ix86_emit_restore_sse_regs_using_mov): Likewise.
10024         (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
10025         it through to ix86_emit_restore_reg_using_pop.
10026         (ix86_emit_leave): Add RED_OFFSET argument.  Call
10027         ix86_add_queued_cfa_restore_notes.  Call ix86_add_cfa_restore_note
10028         instead of adding REG_CFA_OFFSET note unconditionally.
10029         (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
10030         the above functions.  Call ix86_add_queued_cfa_restore_notes when
10031         needed.
10032
10033         * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
10034         force output of the label even for dwarf2out_do_cfi_asm.
10035         (add_fde_cfi): If -g2 and above and cfi might change CFA,
10036         force creation of CFI label and chain DW_CFA_set_loc jumping to it
10037         for convert_cfa_to_fb_loc_list.  Adjust other dwarf2out_cfi_label
10038         caller.
10039         (dwarf2out_stack_adjust, dwarf2out_frame_debug,
10040         dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
10041         dwarf2out_cfi_label callers.
10042         * tree.h (dwarf2out_cfi_label): Adjust prototype.
10043         * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
10044         Adjust dwarf2out_cfi_label callers.
10045         * config/vax/vax.c (vax_output_function_prologue): Likewise.
10046
10047         * config/i386/i386.h (struct machine_cfa_state,
10048         struct machine_function): Guard with ifndef USED_FOR_TARGET
10049         instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
10050
10051         PR other/40024
10052         * emutls.c (__emutls_get_address): Change arr->size to mean number
10053         of allocated arr->data entries instead of # of slots + 1.
10054
10055         PR middle-end/40316
10056         * recog.c (peep2_reinit_state): New function.
10057         (peephole2_init_state): Use it at the end of a basic block and also
10058         when seeing a RTX_FRAME_RELATED_P insn.
10059
10060 2009-06-01  Steve Ellcey  <sje@cup.hp.com>
10061
10062         * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
10063         fixuns_truncrfdi2): New.
10064         (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
10065         *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
10066         *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
10067         *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
10068         *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
10069         *recip_approx): Remove.
10070         (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
10071         moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
10072         divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
10073         move to div.md.
10074         * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
10075         setf_exp_rf): New.
10076
10077 2009-06-01  Ian Lance Taylor  <iant@google.com>
10078
10079         * attribs.c (register_attribute): Use CONST_CAST.
10080         * collect2.c (main): Use CONST_CAST2.
10081         (scan_prog_file): Likewise.
10082         * gcc.c (process_command, main): Likewise.
10083         * toplev.c (toplev_main): Likewise.
10084
10085         * c-typeck.c (handle_warn_cast_qual): New static function,
10086         partially broken out of build_c_cast.
10087         (build_c_cast): Call handle_warn_cast_qual.
10088         * doc/invoke.texi (Warning Options): Document new effect of
10089         -Wcast-qual.
10090
10091 2009-06-01  Aldy Hernandez  <aldyh@redhat.com>
10092
10093         * diagnostic.c (diagnostic_build_prefix): Always print columns.
10094         (diagnostic_report_current_module): Print columns.
10095         * common.opt (flag_show_column): Enable by default.
10096
10097 2009-06-01  Luis Machado  <luisgpm@br.ibm.com>
10098
10099         * alias.c (find_base_term): Check for NULL term before returning.
10100
10101 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
10102
10103         Revert due to PR40320:
10104         2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
10105         * calls.c (emit_library_call_value_1): Don't force_operand for move
10106         and push insns.
10107
10108 2009-06-01  Olivier Hainque  <hainque@adacore.com>
10109             Eric Botcazou  <ebotcazou@adacore.com>
10110
10111         * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
10112         to be processed as a bitfield for constructor output purposes.
10113         * output.h (initializer_constant_valid_for_bitfield_p): Declare
10114         new function.
10115         * varasm.c (oc_local_state): New type, output_constructor
10116         local state to support communication with helpers.
10117         (oc_outer_state): New type, output_constructor outer state of
10118         relevance in recursive calls.
10119         (output_constructor_array_range): New output_constructor helper,
10120         extracted code for an array range element.
10121         (output_constructor_regular_field): New output_constructor helper,
10122         extracted code for an element that is not a bitfield.
10123         (output_constructor_bitfield): New output_constructor helper,
10124         extracted code for a bitfield element.  Accept an OUTER state
10125         argument for recursive processing.  Recurse on record or array
10126         CONSTRUCTOR values, possibly past noop conversions.
10127         (initializer_constant_valid_for_bitfield_p): New predicate.  Whether
10128         VALUE is a valid constant-valued expression for use in a static
10129         bit-field initializer.
10130         (output_constructor): Rework to use helpers.  Accept and honor an
10131         OUTER state argument for recursive calls.  Return total size.  Be
10132         prepared for nested constructors initializing bitfields.
10133         (output_constant): Feed OUTER in calls to output_constructor.
10134
10135 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
10136
10137         * calls.c (emit_library_call_value_1): Don't force_operand for move
10138         and push insns.
10139
10140 2009-06-01  Nick Clifton  <nickc@redhat.com>
10141
10142         * doc/invoke.texi (IA-64 Options): Fix typo.
10143
10144 2009-06-01  Ira Rosen  <irar@il.ibm.com>
10145
10146         PR tree-optimization/39129
10147         * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
10148         printed message.
10149         (vect_do_peeling_for_loop_bound): Use
10150         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
10151         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
10152         (vect_loop_versioning): Likewise.
10153         (vect_create_cond_for_alias_checks): Fix indentation.
10154         * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
10155         macros.
10156         (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
10157         (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
10158         * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
10159         "control flow in loop".
10160         (vect_estimate_min_profitable_iters): Use
10161         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
10162         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
10163         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
10164         (vect_create_data_ref_ptr): Don't mention array dimension in printing.
10165         * tree-vect-stmts.c (vectorizable_store): Replace the check that the
10166         statement belongs to a group of strided accesses with the exact code
10167         check.
10168         (vectorizable_load): Likewise.
10169         * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
10170         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
10171
10172 2009-06-01  Gerald Pfeifer  <gerald@pfeifer.com>
10173
10174         * config/freebsd-stdint.h: New file.
10175         * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
10176         Add freebsd-stdint.h to tm_file.
10177
10178 2009-06-01  Richard Earnshaw  <rearnsha@arm.com>
10179
10180         * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
10181         (thumb2_extendhidi2): Likewise.
10182
10183 2009-05-31  Ian Lance Taylor  <iant@google.com>
10184
10185         * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
10186
10187 2009-05-31  Ian Lance Taylor  <iant@google.com>
10188
10189         * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
10190         (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
10191         (ipa-reference.o): Depend upon gt-ipa-reference.h.
10192
10193 2009-05-31  Jason Merrill  <jason@redhat.com>
10194
10195         * tree-pretty-print.c (print_call_name): Take the callee, not the
10196         call itself.  Make non-static.  Use dump_function_name for functions.
10197         (dump_generic_node): Adjust.
10198         * diagnostic.h: Declare print_call_name.
10199         * gimple-pretty-print.c (dump_gimple_call): Use it.
10200
10201 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
10202
10203         * config/sh/sh.md (ashldi3_std): New define_expand.
10204         (ashldi3): Use it.
10205
10206 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
10207
10208         PR target/40313
10209         * config/sh/sh.c: Include debug.h.
10210         (sh_expand_epilogue): Emit a blockage insn before the frame
10211         pointer adjustment also when dwarf2out_do_frame returns true.
10212
10213 2009-05-31  Richard Earnshaw  <rearnsha@arm.com>
10214
10215         * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
10216         (thumb2_extendqidi2): New pattern.
10217
10218 2009-05-31  Ira Rosen  <irar@il.ibm.com>
10219
10220         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
10221         mark phis for renaming.
10222         * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
10223         (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
10224         Call mark_sym_for_renaming.
10225         * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
10226         * tree-vect-loop.c (vect_transform_loop): Remove
10227         vect_memsyms_to_rename initialization and a call to
10228         mark_set_for_renaming.
10229
10230 2009-05-31  Jakub Jelinek  <jakub@redhat.com>
10231
10232         PR middle-end/40304
10233         * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
10234         frame related even if !set_cfa && style < 0.
10235
10236 2009-05-30  Kai Tietz  <kai.tietz@onevision.com>
10237
10238         * config/i386/mingw-tls.c: New file.
10239         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
10240         * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
10241         defining _WIN32 but not __CYGWIN__.
10242
10243 2009-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10244
10245         * configure.ac: Add MPC support.
10246
10247         * config.in, configure: Regenerate.
10248
10249 2009-05-29  Richard Henderson  <rth@redhat.com>
10250
10251         * cfgcleanup.c (try_crossjump_to_edge): Only skip past
10252         NOTE_INSN_BASIC_BLOCK.
10253         * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
10254         Duplicate NOTE_INSN_EPILOGUE_BEG notes.
10255         * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
10256         to be deleted.
10257         * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
10258         add in_use field.
10259         (add_cfi): Disable check redefining cfa away from drap.
10260         (lookup_cfa_1): Add remember argument; handle remember/restore.
10261         (lookup_cfa): Pass remember argument.
10262         (cfa_remember): New.
10263         (compute_barrier_args_size_1): Remove sibcall check.
10264         (dwarf2out_frame_debug_def_cfa): New.
10265         (dwarf2out_frame_debug_adjust_cfa): New.
10266         (dwarf2out_frame_debug_cfa_offset): New.
10267         (dwarf2out_frame_debug_cfa_register): New.
10268         (dwarf2out_frame_debug_cfa_restore): New.
10269         (dwarf2out_frame_debug): Handle REG_CFA_* notes.
10270         (dwarf2out_begin_epilogue): New.
10271         (dwarf2out_frame_debug_restore_state): New.
10272         (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
10273         DW_CFA_restore_state.
10274         (output_cfi_directive): Likewise.
10275         (convert_cfa_to_fb_loc_list): Likewise.
10276         (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
10277         * dwarf2out.h: Update.
10278         * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
10279         (copy_insn_1): Early out for null.
10280         * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
10281         and dwarf2out_frame_debug_restore_state.
10282         * function.c (prologue, epilogue, sibcall_epilogue): Remove.
10283         (prologue_insn_hash, epilogue_insn_hash): New.
10284         (free_after_compilation): Adjust freeing accordingly.
10285         (record_insns): Create hash table if needed; push insns into
10286         hash instead of array.
10287         (maybe_copy_epilogue_insn): New.
10288         (contains): Search hash table instead of array.
10289         (sibcall_epilogue_contains): Remove.
10290         (thread_prologue_and_epilogue_insns): Split eh_return insns
10291         and mark them as epilogues.
10292         (reposition_prologue_and_epilogue_notes): Rewrite epilogue
10293         scanning in terms of basic blocks.
10294         * insn-notes.def (CFA_RESTORE_STATE): New.
10295         * jump.c (returnjump_p_1): Accept EH_RETURN.
10296         (eh_returnjump_p_1, eh_returnjump_p): New.
10297         * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
10298         CFA_REGISTER, CFA_RESTORE): New.
10299         * rtl.def (EH_RETURN): New.
10300         * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
10301
10302         * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
10303         (eh_return_internal): Use eh_return rtx; split w/ epilogue.
10304
10305         * config/i386/i386.c (gen_push): Update cfa state.
10306         (pro_epilogue_adjust_stack): Add set_cfa argument.  When true,
10307         add a CFA_ADJUST_CFA note.
10308         (ix86_dwarf_handle_frame_unspec): Remove.
10309         (ix86_expand_prologue): Update cfa state.
10310         (ix86_emit_restore_reg_using_pop): New.
10311         (ix86_emit_restore_regs_using_pop): New.
10312         (ix86_emit_leave): New.
10313         (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
10314         (ix86_expand_epilogue): Add notes for unwinding the epilogue.
10315         * config/i386/i386.h (struct machine_cfa_state): New.
10316         (ix86_cfa_state): New.
10317         * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
10318         (eh_return_internal): Merge from eh_return_<mode>,
10319         use eh_return rtx, split w/ epilogue.
10320
10321 2009-05-29  Ian Lance Taylor  <iant@google.com>
10322
10323         * builtins.c (validate_gimple_arglist): Don't use va_arg with
10324         enum type.
10325         * calls.c (emit_library_call_value_1): Likewise.
10326
10327         * c-typeck.c (c_build_va_arg): New function.
10328         * c-tree.h (c_build_va_arg): Declare.
10329         * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
10330         instead of build_va_arg.
10331
10332 2009-05-29  Eric Botcazou  <ebotcazou@adacore.com>
10333
10334         * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
10335         (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
10336         (ptr_difference_cost): Use affine combinations to compute it.
10337         (difference_cost): Likewise.
10338         (get_computation_cost_at): Compute more accurate cost for addresses
10339         if the ratio is a multiplier allowed in addresses.
10340         For non-addresses, consider that an additional offset or symbol is
10341         added only once.
10342
10343 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
10344
10345         * config/i386/i386.c (ix86_decompose_address): Avoid useless
10346         0 displacement.  Add 0 displacement if base is %[er]bp or %r13.
10347
10348         * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
10349         TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
10350         (prefix_rex): For UNIT_MMX don't imply the prefix by default
10351         if MODE_DI.
10352         (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
10353         to 1 for TYPE_SSE{IADD1,CVT1}.
10354         (prefix_vex_imm8): Removed.
10355         (length_vex): Only pass 1 as second argument to
10356         ix86_attr_length_vex_default if prefix_extra is 0.
10357         (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
10358         (length): For prefix vex computation use length_immediate
10359         attribute instead of prefix_vex_imm8.
10360         (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
10361         addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
10362         *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
10363         *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
10364         (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
10365         *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
10366         a space in between the operands.
10367         (*anddi_1_rex64, *andsi_1): Likewise.  Override prefix_rex to 1
10368         if one operand is 0xff and the other one si, di, bp or sp.
10369         (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
10370         other one si, di, bp or sp.
10371         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
10372         (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
10373         type and mode attributes.
10374         (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
10375         (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
10376         prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
10377         (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
10378         prefix_data16 attribute iff MODE_DF.
10379         (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
10380         (fix_trunc<mode>di_sse): Set prefix_rex attribute.
10381         (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
10382         constm128_operand in length_immediate computation.
10383         (*addhi_4): Likewise.  Fix mode attribute to MODE_HI.
10384         (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
10385         (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
10386         length_immediate attribute to 1.
10387         (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
10388         (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
10389         for certain alternatives.
10390         (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
10391         prefix_data16 attribute if MODE_V1DF.
10392         (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
10393         length_immediate to 1.
10394         (set_got_rex64, set_rip_rex64): Remove length attribute, set
10395         length_address to 4, set mode attribute to MODE_DI.
10396         (set_got_offset_rex64): Likewise.  Set length_immediate to 0.
10397         (fxam<mode>2_i387): Set length attribute to 4.
10398         (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
10399         *prefetch_3dnow_rex): Override length_address attribute.
10400         (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
10401         attributes.
10402         * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
10403         (constm128_operand): Removed.
10404         * config/i386/i386.c (memory_address_length): For
10405         disp && !index && !base in 64-bit mode account for SIB byte if
10406         print_operand_address can't optimize disp32 into disp32(%rip)
10407         and UNSPEC doesn't imply (%rip) addressing.  Add 1 to length
10408         for fs: or gs: segment.
10409         (ix86_attr_length_immediate_default): When checking if shortform
10410         is possible, truncate immediate to the length of the non-shortened
10411         immediate.
10412         (ix86_attr_length_address_default): Ignore MEM_P operands
10413         with X constraint.
10414         (ix86_attr_length_vex_default): Only check for DImode on
10415         GENERAL_REG_P operands.
10416         * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
10417         prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
10418         (sse_cvttps2pi): Clear prefix_rep attribute.
10419         (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
10420         attribute.
10421         (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
10422         (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
10423         *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
10424         iff operand 2 is const_int_operand.
10425         (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
10426         sse2_shufpd_<mode>): Set length_immediate attribute to 1.
10427         (sse2_pshufd_1): Likewise.  Set prefix attribute to maybe_vex
10428         instead of vex.
10429         (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
10430         prefix_data16.
10431         (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
10432         prefix_data16 attribute for movlpd and movhpd instructions.
10433         (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise.  Override
10434         length_immediate for shufpd instruction.
10435         (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
10436         (avx_cmpp<avxmodesuffixf2c><mode>3,
10437         avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
10438         <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
10439         avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
10440         *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
10441         (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
10442         (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
10443         (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
10444         prefix_data16 attribute for the first alternative to 1.
10445         (*avx_loadlps): Override length_immediate for the first alternative.
10446         (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
10447         attributes for second alternative.
10448         (*vec_concatv2sf_sse4_1): Override length_immediate and
10449         prefix_data16 attributes for second alternative.
10450         (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
10451         vec_extract_hi_<mode>, vec_extract_lo_v16hi,
10452         vec_extract_hi_v16hi, vec_extract_lo_v32qi,
10453         vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
10454         (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
10455         prefix_data16 and length_immediate to 1.
10456         (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
10457         to 1.
10458         (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
10459         prefix_extra attribute for variants that don't have 0f prefix alone.
10460         (*avx_pinsr<ssevecsize>): Likewise.  Set length_immediate to 1.
10461         (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
10462         *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
10463         *sse4_1_pextrd): Set length_immediate to 1.
10464         (*sse4_1_pinsrd): Likewise.  Set prefix_extra to 1.
10465         (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
10466         to 1.
10467         (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
10468         *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
10469         length_immediate to 1 for second alternative.
10470         (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
10471         prefix_extra and length_immediate attributes for the first
10472         alternative.
10473         (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
10474         first alternative.
10475         (*vec_concatv2di_rex64_sse4_1): Likewise.  Override prefix_rex
10476         to 1 for the first and third alternative.
10477         (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
10478         alternative.
10479         (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
10480         attribute.
10481         (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
10482         attribute to 0.
10483         (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
10484         *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
10485         *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
10486         *avx_psign<mode>3): Set prefix_extra attribute to 1.
10487         (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
10488         ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
10489         ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
10490         ssse3_psign<mode>3): Override prefix_rex attribute.
10491         (*avx_palignrti): Override prefix_extra and length_immediate to 1.
10492         (ssse3_palignrti): Override length_immediate to 1.
10493         (ssse3_palignrdi): Override length_immediate to 1, override
10494         prefix_rex attribute.
10495         (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
10496         (sse4a_extrqi): Override length_immediate to 2.
10497         (sse4a_insertqi): Likewise.  Override prefix_data16 to 0.
10498         (sse4a_insertq): Override prefix_data16 to 0.
10499         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
10500         avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
10501         avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
10502         *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
10503         avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
10504         and length_immediate to 1.
10505         (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
10506         sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
10507         sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
10508         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
10509         and length_immediate to 1.
10510         (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
10511         (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
10512         (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
10513         avx_ptest256): Override prefix_extra to 1.
10514         (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
10515         Override prefix_data16 and length_immediate to 1.
10516         (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
10517         sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
10518         sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
10519         sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
10520         prefix_data16 to 0 and prefix_extra to 2.
10521         (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
10522         (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
10523         attribute.
10524         (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
10525         sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
10526         Override prefix_data16 and prefix_rep to 0, length_immediate to 1
10527         and prefix_extra to 2.
10528         (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
10529         prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
10530         (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
10531         avx_vpermilvar<mode>3,
10532         avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
10533         avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
10534         avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
10535         avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
10536         Override prefix_extra to 1.
10537         (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
10538         (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
10539         vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
10540         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
10541         prefix_extra and length_immediate to 1.
10542         (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
10543         modrm to 0.
10544         (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
10545         to 1 for the first alternative.
10546         * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
10547         prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
10548         cases.
10549         (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
10550         *movv2sf_internal_avx, *movv2sf_internal): Override
10551         prefix_rep attribute for certain alternatives.
10552         (*mov<mode>_internal): Override prefix_rep or prefix_data16
10553         attributes for certain alternatives.
10554         (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
10555         attributes for certain alternatives.
10556         (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
10557         *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
10558         mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
10559         mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
10560         *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
10561         mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
10562         mmx_pswapdv2si2): Set prefix_extra attribute to 1.
10563         (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
10564         length_immediate to 1 if operand 2 is const_int_operand.
10565         (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
10566         *vec_extractv2si_1): Set length_immediate attribute to 1.
10567         (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
10568         using old 3DNOW insn rather than SSE/3DNOW_A.
10569         (mmx_emms, mmx_femms): Clear modrm attribute.
10570
10571 2009-05-29  Martin Jambor  <mjambor@suse.cz>
10572
10573         * tree-sra.c:  New implementation of SRA.
10574
10575         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
10576         (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
10577         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
10578         * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
10579         (SRA_MAX_STRUCTURE_COUNT): Removed.
10580         (SRA_FIELD_STRUCTURE_RATIO): Removed.
10581         * doc/invoke.texi (sra-max-structure-size): Removed.
10582         (sra-field-structure-ratio): Removed.
10583
10584 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
10585
10586         PR middle-end/40291
10587         * builtins.c (expand_builtin_memcmp): Convert len to sizetype
10588         before expansion.
10589
10590 2009-05-29  Andrey Belevantsev  <abel@ispras.ru>
10591
10592         PR rtl-optimization/40101
10593         * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
10594         seqno.  Adjust comment.
10595         * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
10596         inserting bookkeeping before a jump, the jump is not scheduled.
10597         When no positive seqno found, provide a value.  Add comment.
10598
10599 2009-05-29  Richard Guenther  <rguenther@suse.de>
10600
10601         * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
10602         short-cutting on the first component.
10603
10604 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
10605
10606         PR middle-end/39958
10607         * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
10608         for trees other than decls/types.
10609
10610 2009-05-29  Richard Guenther  <rguenther@suse.de>
10611
10612         * tree-ssa-operands.c (get_expr_operands): Do not handle
10613         INDIRECT_REFs in the handled-component case.  Remove
10614         unused get_ref_base_and_extent case.
10615         * tree-dfa.c (get_ref_base_and_extent): Avoid calling
10616         tree_low_cst and host_integerp where possible.
10617         * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
10618         codes for equivalence.
10619         * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
10620
10621 2009-05-29  David Billinghurst <billingd@gcc.gnu.org>
10622
10623         * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
10624         to tmake_file for i[34567]86-*-cygwin*.
10625
10626 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
10627
10628         PR target/40017
10629         * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
10630         (altivec_categorize_keyword, init_vector_keywords,
10631         rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
10632         similar to bool.
10633
10634 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
10635
10636         * tree.c (handle_dll_attribute): Check if node is
10637         of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
10638
10639 2009-05-29  Richard Earnshaw  <rearnsha@arm.com>
10640
10641         * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
10642         component.
10643         (thumb2_zero_extendqidi2): Likewise.
10644
10645 2009-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
10646
10647         * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
10648         instead of gen_movrt.
10649         * config/sh/sh.md (movrt): Remove.
10650
10651 2009-05-28  Steve Ellcey  <sje@cup.hp.com>
10652
10653         * doc/invoke.texi (IA-64 Options):
10654         Add -msdata, -mfused-madd, -mno-inline-float-divide,
10655         -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
10656         -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
10657         -msched-prefer-non-control-spec-insns,
10658         -msched-stop-bits-after-every-cycle,
10659         -msched-count-spec-in-critical-path,
10660         -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
10661         -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
10662         Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
10663         and -msched-spec-verbose.
10664
10665 2009-05-28  Joseph Myers  <joseph@codesourcery.com>
10666
10667         * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
10668         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
10669         error if used.
10670         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
10671
10672 2009-05-28  Richard Guenther  <rguenther@suse.de>
10673
10674         * tree-ssa-alias.c (ao_ref_init): New function.
10675         (ao_ref_base): Likewise.
10676         (ao_ref_base_alias_set): Likewise.
10677         (ao_ref_alias_set): Likewise.
10678         (refs_may_alias_p_1): Change signature.
10679         (refs_may_alias_p): Adjust.
10680         (refs_anti_dependent_p): Likewise.
10681         (refs_output_dependent_p): Likewise.
10682         (call_may_clobber_ref_p_1): Change signature.
10683         (call_may_clobber_ref_p): Adjust.
10684         (stmt_may_clobber_ref_p_1): New function split out from ...
10685         (stmt_may_clobber_ref_p): ... here.
10686         (maybe_skip_until): Adjust signature.
10687         (get_continuation_for_phi): Likewise.
10688         (walk_non_aliased_vuses): Likewise.
10689         * tree-ssa-alias.h (struct ao_ref_s): New structure type.
10690         (ao_ref_init): Declare.
10691         (ao_ref_base): Likewise.
10692         (ao_ref_alias_set): Likewise.
10693         (stmt_may_clobber_ref_p_1): Likewise.
10694         (walk_non_aliased_vuses): Adjust.
10695         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
10696         (get_ref_from_reference_ops): remove.
10697         (vn_reference_lookup_2): Adjust signature.
10698         (vn_reference_lookup_3): Do not re-build trees.  Handle unions.
10699         (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
10700         (vn_reference_lookup): Adjust.
10701         (vn_reference_insert): Likewise.
10702         (vn_reference_insert_pieces): Adjust signature.
10703         (visit_reference_op_call): Adjust.
10704         * tree-ssa-pre.c (get_expr_type): Simplify.
10705         (phi_translate_1): Adjust.
10706         (compute_avail): Likewise.
10707         (translate_vuse_through_block): Do not re-build trees.
10708         (value_dies_in_block_x): Likewise.
10709         * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
10710         fields.
10711         (vn_reference_lookup_pieces): Adjust declaration.
10712         (vn_reference_insert_pieces): Likewise.
10713
10714 2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
10715
10716         * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
10717         with checking disabled.
10718
10719 2009-05-28  Dave Korn  <dave.korn.cygwin@gmail.com>
10720
10721         PR target/37216
10722
10723         * configure.ac (HAVE_GAS_ALIGNED_COMM):  Add autoconf test and
10724         macro definition for support of three-operand format aligned
10725         .comm directive in assembler on cygwin/pe/mingw target OS.
10726         * configure:  Regenerate.
10727         * config.h:  Regenerate.
10728
10729         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common):  Use
10730         aligned form of .comm directive if -mpe-aligned-commons is in effect.
10731         * config/i386/cygming.opt (-mpe-aligned-commons):  Add new option.
10732
10733         * doc/invoke.texi (-mpe-aligned-commons):  Document new target option.
10734         * doc/tm.texi (ASM_OUTPUT_COMMON):  Document zero size commons.
10735
10736 2009-05-28  Ira Rosen  <irar@il.ibm.com>
10737
10738         PR tree-optimization/40254
10739         * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
10740         in analysis of basic blocks.
10741
10742 2009-05-28  Adam Nemet  <anemet@caviumnetworks.com>
10743
10744         PR middle-end/33699
10745         * target.h (struct gcc_target): Fix indentation.  Add const_anchor.
10746         * target-def.h (TARGET_CONST_ANCHOR): New macro.
10747         (TARGET_INITIALIZER): Use it.
10748         * cse.c (CHEAPER): Move it up to the other macros.
10749         (insert): Rename this ...
10750         (insert_with_costs): ... to this.  Add cost parameters.  Update
10751         function comment.
10752         (insert): New function.  Call insert_with_costs.
10753         (compute_const_anchors, insert_const_anchor, insert_const_anchors,
10754         find_reg_offset_for_const, try_const_anchors): New functions.
10755         (cse_insn): Call try_const_anchors.  Adjust cost of src_related
10756         when using a const-anchor.  Call insert_const_anchors.
10757         * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
10758         * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
10759
10760 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
10761
10762         * tree-inline.c (remap_decls): Enable nonlocalized variables
10763         when not optimizing.
10764
10765 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
10766
10767         * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
10768         Simplify other tests involving optimize.
10769
10770 2009-05-27  Tom Tromey  <tromey@redhat.com>
10771
10772         * unwind-dw2.c (_Unwind_DebugHook): New function.
10773         (uw_install_context): Call _Unwind_DebugHook.
10774
10775 2009-05-27  Tom Tromey  <tromey@redhat.com>
10776
10777         * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
10778
10779 2009-05-27  Ian Lance Taylor  <iant@google.com>
10780
10781         * Makefile.in (LINKER, LINKER_FLAGS): Define.
10782         (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
10783         (ALL_LINKERFLAGS): Define.
10784         (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
10785         (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
10786         (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
10787         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
10788         (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
10789         $(LINKER_FOR_BUILD).
10790         (build/gcov-iov$(build_exeext)): Likewise.
10791
10792 2009-05-27  Julian Brown  <julian@codesourcery.com>
10793
10794         * gcse.c (target.h): Include.
10795         (can_assign_to_reg_without_clobbers_p): Check that the target allows
10796         copy of argument to a pseudo register.
10797
10798 2009-05-27  Diego Novillo  <dnovillo@google.com>
10799
10800         * tree-ssa-live.c (dump_scope_block): Document arguments.
10801         (dump_scope_blocks): Document.
10802         (debug_scope_blocks): New.
10803         * tree-flow.h (debug_scope_blocks): Declare.
10804
10805 2009-05-21  Denis Chertykov  <denisc@overta.ru>
10806
10807         * doc/contrib.texi (Contributors): Add myself to the list.
10808
10809 2009-05-27  Olivier Hainque  <hainque@adacore.com>
10810
10811         * expr.c (target_align): New function.  Alignment the TARGET of an
10812         assignment may be assume to have.
10813         (highest_pow2_factor_for_target): Use it instead of relying on
10814         immediate tree attributes of TARGET, not necessarily honored when
10815         intermediate bitfields are involved.
10816
10817 2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>
10818
10819         PR target/40266
10820         * config/i386/driver-i386.c (host_detect_local_cpu): Support
10821         AVX, SSE4, AES, PCLMUL and POPCNT.
10822
10823 2009-05-27  Diego Novillo  <dnovillo@google.com>
10824
10825         * tree-pretty-print.c (dump_location): New.
10826         (dump_generic_node): Call it.
10827         Factor code to handle BLOCK nodes ...
10828         (dump_block_node): ... here.
10829
10830 2009-05-27  Rafael Avila de Espindola  <espindola@google.com>
10831
10832         * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
10833         with it.
10834         * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
10835         included.
10836         * gcc-plugin.h: Include config.h and system.h.
10837         (IN_GCC): Define if not defined.
10838
10839 2009-05-27  Hans-Peter Nilsson  <hp@axis.com>
10840
10841         PR middle-end/40249
10842         * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
10843         with -fno-inline.
10844
10845 2009-05-27  Shujing Zhao  <pearly.zhao@oracle.com>
10846
10847         * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
10848         applicable.
10849         * config/m32r/m32r.h: Ditto.
10850         * config/m32r/m32r.md: Ditto.
10851         * config/m32r/predicates.md: Ditto.
10852
10853 2009-05-27  Alexandre Oliva  <aoliva@redhat.com>
10854
10855         * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
10856
10857 2009-05-26  Basile Starynkevitch  <basile@starynkevitch.net>
10858
10859         * doc/plugins.texi
10860         (Loading plugins): typo.
10861         (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
10862         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
10863         (Interacting with the GCC Garbage Collector): Added new section.
10864         (Giving information about a plugin): Added new section for
10865         PLUGIN_INFO.
10866         * ggc.h (ggc_register_root_tab): Added declaration.
10867         * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
10868         (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
10869         (register_callback): Improved comment in declaration.
10870         * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
10871         (extra_root_vec) Added static variable for dynamic roots registration.
10872         (ggc_register_root_tab) Added new routine.
10873         (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
10874         PLUGIN_GGC_MARKING event.
10875         * ggc-zone.c: Include plugin.h.
10876         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
10877         * ggc-page.c: Include plugin.h.
10878         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
10879         * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
10880         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
10881         (register_callback): check lack of callbacks for
10882         pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
10883         PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
10884         (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
10885         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
10886         * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
10887         dependency on plugin.h.
10888         (plugin.o): Added dependency on ggc.h...
10889
10890 2009-05-26  Richard Guenther  <rguenther@suse.de>
10891
10892         PR middle-end/40248
10893         Revert
10894         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
10895         with mismatched comparison modes.
10896
10897         * expr.c (expand_expr_real_1): Expand the operand of a
10898         VIEW_CONVERT_EXPR in its natural mode.
10899
10900 2009-05-26  Ian Lance Taylor  <iant@google.com>
10901
10902         * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
10903         (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
10904         (ALL_COMPILERFLAGS): Define.
10905         (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
10906         (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
10907         (collect2$(exeext), collect2.o): Likewise.
10908         (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
10909         (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
10910         ($(out_object_file), mips-tfile, mips-tdump): Likewise.
10911         (libbackend.o, intl.o, cppdefault.o): Likewise.
10912         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
10913         (build/%.o): Use $(COMPILER_FOR_BUILD).
10914         (build/gen%$(build_exeext)): Likewise.
10915         (build/gcov-iov$(build_exeext)): LIkewise.
10916         * config/t-darwin (darwin.o): Use $(COMPILER).
10917         (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
10918         * config/t-sol2 (sol2-c.o): Likewise.
10919         (sol2.o): Likewise.
10920         * config/t-vxworks (vxworks.o): Likewise.
10921         * config/x-darwin (host-darwin.o): Likewise.
10922         * config/x-hpux (host-hpux.o): Likewise.
10923         * config/x-linux (host-linux.o): Likewise.
10924         * config/x-solaris (host-solaris.o): Likewise.
10925         * config/alpha/x-alpha (driver-alpha.o): Likewise.
10926         * config/arm/t-arm (arm-c.o): Likewise.
10927         * config/arm/t-pe (pe.o): Likewise.
10928         * config/arm/t-wince-pe (pe.o): Likewise.
10929         * config/i386/t-cygming (winnt.o): Likewise.
10930         (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
10931         * config/i386/t-cygwin (cygwin1.o): Likewise.
10932         (cygwin2.o): Likewise.
10933         * config/i386/t-i386 (i386-c.o): Likewise.
10934         * config/i386/t-interix (winnt.o): Likewise.
10935         * config/i386/t-netware (netware.o): Likewise.
10936         * config/i386/t-nwld (nwld.o): Likewise.
10937         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
10938         * config/i386/x-i386 (driver-i386.o): Likewise.
10939         * config/i386/x-cygwin (host-cygwin.o): Likewise.
10940         * config/i386/x-mingw32 (host-mingw32.o): Likewise.
10941         * config/ia64/t-ia64 (ia64-c.o): Likewise.
10942         * config/m32c/t-m32c (m32c-pragma.o): Likewise.
10943         * config/mips/x-native (driver-native.o): Likewise.
10944         * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
10945         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
10946         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
10947         * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
10948         * config/score/t-score-elf (score7.o): Likewise.
10949         (score3.o): Likewise.
10950         * config/sh/t-sh (sh-c.o): Likewise.
10951         * config/sh/t-symbian (sh-c.o): Likewise.
10952         (symbian.o): Likewise.
10953         * config/spu/t-spu-elf (spu-c.o): Likewise.
10954         * config/v850/t-v850 (v850-c.o): Likewise.
10955         * config/v850/t-v850e (v850-c.o): Likewise.
10956
10957 2009-05-26  Richard Guenther  <rguenther@suse.de>
10958
10959         PR tree-optimization/40122
10960         * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
10961         VECTOR_CSTs if possible.
10962         (fold_gimple_assign): Likewise.
10963
10964 2009-05-26  Richard Guenther  <rguenther@suse.de>
10965
10966         PR middle-end/40252
10967         * fold-const.c (fold_binary): Use the correct types for building
10968         rotates.
10969
10970 2009-05-26  Richard Guenther  <rguenther@suse.de>
10971
10972         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
10973         redundant calls to merge_alias_info.
10974         (bump_vector_ptr): Likewise.
10975         * tree-ssa-copy.c (merge_alias_info): Remove.
10976         (replace_exp_1): Remove call to merge_alias_info.
10977         (propagate_tree_value): Likewise.
10978         (fini_copy_prop): Propagate points-to info.
10979         * tree-flow.h (merge_alias_info): Remove.
10980
10981 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
10982
10983         * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
10984
10985 2009-05-25  Jan Hubicka  <jh@suse.cz>
10986
10987         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
10988         * cgraph.h (struct inline_summary): New filed self_wize,
10989         size_inlining_benefit, self_time and time_inlining_benefit.
10990         (struct cgraph_global_info): Replace insns by time ans size fields.
10991         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
10992         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
10993         (ipcp_update_callgraph): Do not touch function bodies.
10994         * ipa-inline.c: Include except.h
10995         (MAX_TIME): New constant.
10996         (overall_insns): Remove.
10997         (leaf_node_p): New.
10998         (overall_size, max_benefit): New static variables.
10999         (cgraph_estimate_time_after_inlining): New function.
11000         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
11001         (cgraph_clone_inlined_nodes): Update size.
11002         (cgraph_mark_inline_edge): Update size.
11003         (cgraph_estimate_growth): Use size info.
11004         (cgraph_check_inline_limits): Check size.
11005         (cgraph_default_inline_p): Likewise.
11006         (cgraph_edge_badness): Compute badness based on benefit and size cost.
11007         (cgraph_decide_recursive_inlining): Check size.
11008         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
11009         and times.
11010         (cgraph_decide_inlining): Likewise.
11011         (cgraph_decide_inlining_incrementally): Likewise; honor
11012         PARAM_EARLY_INLINING_INSNS.
11013         (likely_eliminated_by_inlining_p): New predicate.
11014         (estimate_function_body_sizes): New function.
11015         (compute_inline_parameters): Use it.
11016         * except.c (must_not_throw_labels): New function.
11017         * except.h (must_not_throw_labels): Declare.
11018         * tree-inline.c (init_inline_once): Kill inlining_weigths
11019         * tree-ssa-structalias.c: Avoid uninitialized warning.
11020         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
11021         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
11022         (PARAM_INLINE_CALL_COST): Remove.
11023         (PARAM_EARLY_INLINING_INSNS): New.
11024
11025 2009-05-25  Richard Guenther  <rguenther@suse.de>
11026
11027         PR tree-optimization/36327
11028         * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
11029         callback for reference translation or lookup at the point of may-defs.
11030         * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
11031         * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
11032         for union COMPONENT_REFs.
11033         (vn_reference_lookup_3): New callback.  Lookup from memset
11034         and CONSTRUCTOR assignment, translate through struct copies.
11035         (vn_reference_lookup_pieces): Make sure to not free the
11036         passed operands array.  Adjust walk_non_aliased_vuses call.
11037         (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
11038         make sure we do not leak memory.
11039
11040 2009-05-25  Richard Guenther  <rguenther@suse.de>
11041
11042         * tree-ssa-alias.h (dump_points_to_solution): Declare.
11043         * tree-inline.c (expand_call_inline): Reset the escaped and
11044         callused solutions.
11045         * tree-ssa-structalias.c (pass_build_ealias): New.
11046         * tree-pass.h (pass_build_ealias): Declare.
11047         * passes.c (init_optimization_passes): Add PTA during
11048         early optimizations.
11049         * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
11050         and CALLUSED solutions.
11051         (dump_points_to_solution): New function, split out from ...
11052         (dump_points_to_info_for): ... here.
11053         * tree-parloops.c (parallelize_loops): Reset the escaped and
11054         callused solutions.
11055
11056 2009-05-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11057
11058         PR bootstrap/40027
11059         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
11060         * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
11061
11062 2009-05-25  Ira Rosen  <irar@il.ibm.com>
11063
11064         PR tree-optimization/40238
11065         * tree-vect-stmts.c (vect_init_vector): Insert initialization
11066         statements after basic block's labels.
11067         * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
11068         to free the allocated memory.
11069
11070 2009-05-24  Kaz Kojima  <kkojima@gcc.gnu.org>
11071
11072         * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
11073         return address with a USE.
11074
11075 2009-05-24  Richard Guenther  <rguenther@suse.de>
11076
11077         PR middle-end/40233
11078         * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
11079         array type from the main variant of the inner type.
11080
11081 2009-05-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
11082
11083         * config/vax/vax-protos.h (legitimate_constant_address_p): Change
11084         definition to bool (from int) to un-break build.
11085         (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
11086
11087 2009-05-24  Paolo Bonzini  <bonzini@gnu.org>
11088
11089         * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
11090         discard_stmt_changes): Delete.
11091         * tree-ssa-operands.c (scb_stack): Delete.
11092         (init_ssa_operands): Do not initialize it.
11093         (fini_ssa_operands): Do not free it.
11094         (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
11095
11096         * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
11097         update_stmt, remove the others.  Fix comments.
11098         * tree-dfa.c (optimize_stack_restore): Likewise.
11099         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
11100         * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
11101         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
11102         * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
11103         Likewise.
11104         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
11105         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
11106         (dom_opt_finalize_block): Likewise, adjusting access to
11107         stmts_to_rescan.
11108         (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
11109         (stmts_to_rescan): Change item type to gimple.
11110         (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
11111
11112 2009-05-24  Ira Rosen  <irar@il.ibm.com>
11113
11114         * doc/passes.texi (Tree-SSA passes): Document SLP pass.
11115         * tree-pass.h (pass_slp_vectorize): New pass.
11116         * params.h (SLP_MAX_INSNS_IN_BB): Define.
11117         * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
11118         * tree-vectorizer.c (timevar.h): Include.
11119         (user_vect_verbosity_level): Declare.
11120         (vect_location): Fix comment.
11121         (vect_set_verbosity_level): Update user_vect_verbosity_level
11122         instead of vect_verbosity_level.
11123         (vect_set_dump_settings): Add an argument. Ignore user defined
11124         verbosity if dump flags require higher level of verbosity. Print to
11125         stderr only for loop vectorization.
11126         (vectorize_loops): Update call to vect_set_dump_settings.
11127         (execute_vect_slp): New function.
11128         (gate_vect_slp): Likewise.
11129         (struct gimple_opt_pass pass_slp_vectorize): New.
11130         * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
11131         access its members.
11132         (vec_info_for_bb): New function.
11133         (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
11134         (VECTORIZATION_ENABLED): New macro.
11135         (SLP_ENABLED, SLP_DISABLED): Likewise.
11136         (vect_is_simple_use): Add bb_vec_info argument.
11137         (new_stmt_vec_info, vect_analyze_data_ref_dependences,
11138         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
11139         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
11140         vect_schedule_slp, vect_analyze_slp): Likewise.
11141         (vect_analyze_stmt): Add slp_tree argument.
11142         (find_bb_location): Declare.
11143         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
11144         * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
11145         (vect_analyze_loop_operations, vect_analyze_loop,
11146         get_initial_def_for_induction, vect_create_epilog_for_reduction,
11147         vect_finalize_reduction, vectorizable_reduction,
11148         vectorizable_live_operation, vect_transform_loop): Likewise.
11149         * tree-data-ref.c (dr_analyze_innermost): Update comment,
11150         skip evolution analysis if analyzing a basic block.
11151         (dr_analyze_indices): Likewise.
11152         (initialize_data_dependence_relation): Skip the test whether the
11153         object is invariant for basic blocks.
11154         (compute_all_dependences): Skip dependence analysis for data
11155         references in basic blocks.
11156         (find_data_references_in_stmt): Don't fail in case of invariant
11157         access in basic block.
11158         (find_data_references_in_bb): New function.
11159         (find_data_references_in_loop): Move code to
11160         find_data_references_in_bb and add a call to it.
11161         (compute_data_dependences_for_bb): New function.
11162         * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
11163         * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
11164         that STEP is 0.
11165         (vect_analyze_data_ref_dependence): Check for interleaving in case of
11166         unknown dependence in basic block and fail in case of dependence in
11167         basic block.
11168         (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
11169         dependence instances from either loop or basic block vectorization
11170         info.
11171         (vect_compute_data_ref_alignment): Check if it is loop vectorization
11172         before calling nested_in_vect_loop_p.
11173         (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
11174         dependence instances from either loop or basic block vectorization
11175         info.
11176         (vect_verify_datarefs_alignment): Likewise.
11177         (vect_enhance_data_refs_alignment): Adjust function calls.
11178         (vect_analyze_data_refs_alignment): Likewise.
11179         (vect_analyze_group_access): Fix printing. Skip different checks if
11180         DR_STEP is 0. Keep strided stores either in loop or basic block
11181         vectorization data structure. Fix indentation.
11182         (vect_analyze_data_ref_access): Fix comments, allow zero step in
11183         basic blocks.
11184         (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
11185         dependence instances from either loop or basic block vectorization
11186         info.
11187         (vect_analyze_data_refs): Update comment. Call
11188         compute_data_dependences_for_bb to analyze basic blocks.
11189         (vect_create_addr_base_for_vector_ref): Check for outer loop only in
11190         case of loop vectorization. In case of basic block vectorization use
11191         data-ref itself as a base.
11192         (vect_create_data_ref_ptr): In case of basic block vectorization:
11193         don't advance the pointer, add new statements before the current
11194         statement.  Adjust function calls.
11195         (vect_supportable_dr_alignment): Support only aligned accesses in
11196         basic block vectorization.
11197         * common.opt (ftree-slp-vectorize): New flag.
11198         * tree-vect-patterns.c (widened_name_p): Adjust function calls.
11199         (vect_pattern_recog_1): Likewise.
11200         * tree-vect-stmts.c (process_use): Likewise.
11201         (vect_init_vector): Add new statements in the beginning of the basic
11202         block in case of basic block SLP.
11203         (vect_get_vec_def_for_operand): Adjust function calls.
11204         (vect_finish_stmt_generation): Likewise.
11205         (vectorizable_call): Add assert that it is loop vectorization, adjust
11206         function calls.
11207         (vectorizable_conversion, vectorizable_assignment): Likewise.
11208         (vectorizable_operation): In case of basic block SLP, take
11209         vectorization factor from statement's type and skip the relevance
11210         check. Adjust function calls.
11211         (vectorizable_type_demotion): Add assert that it is loop
11212         vectorization, adjust function calls.
11213         (vectorizable_type_promotion): Likewise.
11214         (vectorizable_store): Check for outer loop only in case of loop
11215         vectorization. Adjust function calls. For basic blocks, skip the
11216         relevance check and don't advance pointers.
11217         (vectorizable_load): Likewise.
11218         (vectorizable_condition): Add assert that it is loop vectorization,
11219         adjust function calls.
11220         (vect_analyze_stmt): Add argument. In case of basic block SLP, check
11221         that it is not reduction, get vector type, call only supported
11222         functions, skip loop specific parts.
11223         (vect_transform_stmt): Check for outer loop only in case of loop
11224         vectorization.
11225         (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
11226         (vect_is_simple_use): Fix comment, add new argument, fix conditions
11227         for external definition.
11228         * passes.c (pass_slp_vectorize): New pass.
11229         * tree-vect-slp.c (find_bb_location): New function.
11230         (vect_get_and_check_slp_defs): Add argument, adjust function calls,
11231         check for patterns only in loops.
11232         (vect_build_slp_tree): Add argument, adjust function calls, fail in
11233         case of multiple types in basic block SLP.
11234         (vect_mark_slp_stmts_relevant): New function.
11235         (vect_supported_load_permutation_p): Fix comment.
11236         (vect_analyze_slp_instance): Add argument. In case of basic block
11237         SLP, take vectorization factor from statement's type, check that
11238         unrolling factor is 1. Adjust function call. Save SLP instance in
11239         either loop or basic block vectorization structure. Return FALSE,
11240         if SLP failed.
11241         (vect_analyze_slp): Add argument. Get strided stores groups from
11242         either loop or basic block vectorization structure. Return FALSE
11243         if basic block SLP failed.
11244         (new_bb_vec_info): New function.
11245         (destroy_bb_vec_info, vect_slp_analyze_node_operations,
11246         vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
11247         (vect_schedule_slp): Add argument. Get SLP instances from either
11248         loop or basic block vectorization structure. Set vectorization factor
11249         to be 1 for basic block SLP.
11250         (vect_slp_transform_bb): New function.
11251         * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
11252
11253 2009-05-23  Mark Mitchell  <mark@codesourcery.com>
11254
11255         * final.c (shorten_branches): Do not align labels for jump tables.
11256         (final_scan_insn): Use JUMP_TABLE_DATA_P.
11257
11258 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
11259
11260         * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
11261         Remove outdated reference to flow.c and fix nits.
11262         * doc/gccint.texi: Tweak RTL description.
11263         * doc/rtl.texi: Likewise.
11264
11265 2009-05-23  Denis Chertykov  <chertykov@gmail.com>
11266
11267         * config/avr/avr.c: Change my email address.
11268         * config/avr/avr.h: Likewise.
11269         * config/avr/avr.md: Likewise.
11270         * config/avr/avr-protos.h: Likewise.
11271         * config/avr/libgcc.S: Likewise.
11272
11273 2009-05-22  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
11274
11275         * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
11276         (spu_split_load, spu_split_store): Change return type to int.
11277         (spu_split_convert): Declare.
11278         * config/spu/predicates.md (spu_mem_operand): Remove.
11279         (spu_mov_operand): Update.
11280         (spu_dest_operand, shiftrt_operator, extend_operator): Define.
11281         * config/spu/spu.c (regno_aligned_for_load): Remove.
11282         (reg_aligned_for_addr, spu_expand_load): Define.
11283         (spu_expand_extv): Reimplement and handle MEM.
11284         (spu_expand_insv): Handle MEM.
11285         (spu_sched_reorder): Handle insn's with length 0.
11286         (spu_legitimate_address_p): Reimplement.
11287         (store_with_one_insn_p): Return TRUE for any mode with size
11288         larger than 16 bytes.
11289         (address_needs_split): Define.
11290         (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
11291         operands.
11292         (spu_convert_move): Define.
11293         (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
11294         (spu_split_store): Change all MEM's to TImode.
11295         (spu_init_expanders): Preallocate registers that correspond to
11296         LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
11297         mark_reg_pointer.
11298         (spu_split_convert): Define.
11299         * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
11300         (_move<mode>, _movdi, _movti): Update predicate and condition.
11301         (load, store): Change to define_split.
11302         (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
11303         extend<mode>ti2.
11304         (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
11305         (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
11306         define_insn_and_split of lshr<mode>3.
11307         (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
11308         (<v>ashr<mode>3_imm): Define.
11309         (extv, extzv, insv): Allow MEM operands.
11310         (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
11311         shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
11312         sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
11313         (_spu_convert2): Change to define_insn_and_split and remove the
11314         corresponding define_peephole2.
11315         (stack_protect_set, stack_protect_test, stack_protect_test_si):
11316         Change predicates to memory_operand.
11317
11318 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
11319
11320         * config/arm/thumb2.md: Add 16-bit multiply instructions.
11321
11322 2009-05-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
11323
11324         PR tree-optimization/40219
11325         * tree.c (iterative_hash_expr): Make sure the builtin function is
11326         a normal builtin function and not a front end or back end builtin
11327         before indexing into the built_in_decls array.
11328
11329 2009-05-22  Richard Guenther  <rguenther@suse.de>
11330
11331         PR middle-end/38964
11332         * alias.c (write_dependence_p): Do not use TBAA for answering
11333         anti-dependence or output-dependence.
11334         * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
11335         (emit_pointer_definition): Remove.
11336         (emit_alias_warning): Likewise.
11337         (find_what_var_points_to): Remove TBAA pruning code.
11338         (find_what_p_points_to): Likewise.  Do not warn about strict-aliasing
11339         violations.
11340         (compute_points_to_sets): Remove code computing the set of
11341         dereferenced pointers.
11342         * tree-data-ref.c (dr_may_alias_p): Properly use the split
11343         oracle for querying anti and output dependencies.
11344         * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
11345         if TBAA may be applied.
11346         (refs_anti_dependent_p): New function.
11347         (refs_output_dependent_p): Likewise.
11348         * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
11349         (refs_output_dependent_p): Likewise.
11350         * doc/tree-ssa.texi (Memory model): New section.
11351         * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
11352         * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
11353         * cfgexpand.c (expand_gimple_basic_block): Do not handle
11354         GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
11355         * expr.c (expand_expr_real_1): Likewise.
11356         * gimple-low.c (lower_stmt): Likewise.
11357         * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
11358         (dump_gimple_cdt): Remove.
11359         * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
11360         (gimple_size): Likewise.
11361         (walk_gimple_op): Likewise.
11362         (is_gimple_stmt): Likewise.
11363         (walk_stmt_load_store_addr_ops): Likewise.
11364         (gimple_build_cdt): Remove.
11365         * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
11366         * gimple.h (gimple_cdt_new_type): Remove.
11367         (gimple_cdt_new_type_ptr): Likewise.
11368         (gimple_cdt_set_new_type): Likewise.
11369         (gimple_cdt_location): Likewise.
11370         (gimple_cdt_location_ptr): Likewise.
11371         (gimple_cdt_set_location): Likewise.
11372         * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
11373         * tree-cfg.c (remove_useless_stmts_1): Do not handle
11374         GIMPLE_CHANGE_DYNAMIC_TYPE.
11375         (verify_types_in_gimple_stmt): Likewise.
11376         * tree-inline.c (estimate_num_insns): Likewise.
11377         (expand_call_inline): Do not copy DECL_NO_TBAA_P.
11378         (copy_decl_to_var): Likewise.
11379         (copy_result_decl_to_var): Likewise.
11380         * tree-pretty-print.c (dump_generic_node): Do not handle
11381         CHANGE_DYNAMIC_TYPE_EXPR.
11382         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
11383         * tree-ssa-operands.c (get_expr_operands): Likewise.
11384         * tree-ssa-structalias.c (struct variable_info): Remove
11385         no_tbaa_pruning member.
11386         (new_var_info): Do not set it based on DECL_NO_TBAA_P.
11387         (unify_nodes): Do not copy it.
11388         (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
11389         (dump_solution_for_var): Do not dump no_tbaa_pruning state.
11390         (set_uids_in_ptset): Do not check it.
11391         (find_what_var_points_to): Likewise.
11392         (compute_tbaa_pruning): Remove.
11393         (compute_points_to_sets): Do not call it.
11394         * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
11395         * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
11396         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
11397         (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
11398         (DECL_NO_TBAA_P): Likewise.
11399         (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
11400         * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
11401         (expand_omp_atomic_pipeline): Do not set it.
11402         * print-tree.c (print_node): Do not dump it.
11403         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
11404         redundant check.
11405
11406 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
11407
11408         PR target/39856
11409         * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
11410         for clobber.
11411
11412 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
11413
11414         * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
11415         non-external.
11416
11417 2009-05-22  Ben Elliston  <bje@au.ibm.com>
11418
11419         * Makefile.in (bversion.h, s-bversion): New targets.
11420         (TOPLEV_H): Add bversion.h.
11421         * toplev.h: Include "bversion.h".
11422         (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
11423         the __format__ attribute only if compiling with the same version
11424         of GCC as the sources (the "build version").
11425
11426 2009-05-22  Ben Elliston  <bje@au.ibm.com>
11427
11428         * c-format.c (handle_format_attribute): Fix comment typo.
11429
11430 2009-05-21  Steve Ellcey  <sje@cup.hp.com>
11431
11432         PR target/37846
11433         * config/ia64/ia64.opt (mfused-madd): New.
11434         * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
11435         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
11436         * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
11437         madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
11438         nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
11439         msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
11440         nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
11441         * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
11442         instruction if !TARGET_FUSED_MADD.
11443         (fpma, fpms): Remove colon from name.
11444
11445 2009-05-22  Richard Guenther  <rguenther@suse.de>
11446
11447         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
11448         TMR_ORIGINAL.  Always either record TMR_SYMBOL or TMR_BASE.
11449         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
11450         TARGET_MEM_REF.
11451         (create_expression_by_pieces): Only convert if necessary.
11452         * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
11453         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
11454
11455 2009-05-21  Adam Nemet  <anemet@caviumnetworks.com>
11456
11457         * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
11458         regular pattern from a template and rename it ...
11459         (*extzv_truncsi_exts): ... to this.
11460
11461 2009-05-21  Richard Guenther  <rguenther@suse.de>
11462
11463         * cgraph.h (struct cgraph_node): Remove inline_decl member.
11464         * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
11465         (cgraph_default_inline_p): Likewise.
11466         (cgraph_decide_inlining_incrementally): Likewise.
11467
11468 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
11469             Uros Bizjak  <ubizjak@gmail.com>
11470
11471         * config/i386/cpuid.h (bit_MOVBE): New.
11472
11473         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
11474
11475         * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
11476         (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
11477         (ix86_handle_option): Handle OPT_mmovbe.
11478         (ix86_target_string): Add -mmovbe.
11479         (pta_flags): Add PTA_MOVBE.
11480         (processor_alias_table): Add PTA_MOVBE to "atom".
11481         (override_options): Handle PTA_MOVBE.
11482
11483         * config/i386/i386.h (TARGET_MOVBE): New.
11484
11485         * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
11486         (*bswapsi_movbe): New.
11487         (*bswapdi_movbe): Likewise.
11488         (bswapdi2): Renamed to ...
11489         (*bswapdi_1): This.
11490         (bswapdi2): New expander.
11491
11492         * config/i386/i386.opt (mmovbe): New.
11493
11494         * doc/invoke.texi: Document -mmovbe.
11495
11496 2009-05-21  Taras Glek  <tglek@mozilla.com>
11497
11498         * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
11499         * gcc-plugin.h (plugin_init): Updated signature.
11500         * gcc-plugin.h (plugin_name_args): Moved to this header.
11501         * doc/plugins.texi (plugin_init): Updated documention to reflect
11502         API change.
11503         * doc/plugins.texi (plugin_name_args): Added to documention.
11504
11505 2009-05-21  Mark Mitchell  <mark@codesourcery.com>
11506
11507         * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
11508         (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
11509
11510 2009-05-21  Shujing Zhao  <pearly.zhao@oracle.com>
11511
11512         * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
11513         JUMP_TABLE_DATA_P predicates where applicable.
11514         * config/i386/predicates.md: Ditto.
11515         * config/i386/sse.md: Ditto.
11516
11517 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
11518
11519         * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
11520         operand2 -128 override length_immediate attribute to 1.
11521         * config/i386/predicates.md (constm128_operand): New predicate.
11522
11523         * config/i386/i386.c (memory_address_length): Handle %r12
11524         the same as %rsp and %r13 the same as %rbp.  For %rsp and %rbp
11525         also check REGNO.
11526         (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
11527         mode look through optional ZERO_EXTEND and SUBREG.
11528         * config/i386/i386.md (R12_REG): New define_constant.
11529         (prefix_data16): For sse unit set also for MODE_TI insns.
11530         (prefix_rex): For -m32 always return 0.  For TYPE_IMOVX
11531         insns set if operand 1 is ext_QIreg_operand.
11532         (modrm): For TYPE_IMOV clear only if not MODE_DI.  For
11533         TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
11534         immediate.
11535         (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
11536         mode from MODE_DI to MODE_SI.
11537         (movdi_1_rex64): Override modrm and length_immediate attributes
11538         only for movabs (TYPE_IMOV, alternative 2).
11539         (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
11540         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
11541         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
11542         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
11543         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
11544         prefix_rex attribute if DImode.
11545         (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
11546         *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
11547         *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
11548         *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
11549         attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
11550         (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
11551         Likewise.  For TYPE_IMOV clear length_immediate attribute.
11552         (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
11553         *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
11554         *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
11555         *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
11556         *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
11557         or one operand TYPE_ISHIFT.
11558         (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
11559         *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
11560         *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
11561         *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
11562         *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
11563         *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
11564         *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
11565         *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
11566         *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
11567         *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
11568         *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
11569         *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
11570         *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
11571         *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
11572         *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
11573         *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
11574         *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
11575         set mode attribute, don't override length attribute.
11576         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
11577         to 1.
11578         (return_internal_long): Set length attribute to 2 instead of 1.
11579         (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
11580         *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
11581         prefix_rex attribute.
11582         * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
11583         New predicates.
11584         (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
11585
11586 2009-05-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11587
11588         * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
11589
11590 2009-05-20  Ian Lance Taylor  <iant@google.com>
11591
11592         * tree.c (build_tree_list_vec_stat): New function.
11593         (ctor_to_vec): New function.
11594         (build_nt_call_vec): New function.
11595         (build_call_array): Change args to be a const pointer.
11596         (build_call_vec): New function.
11597         * tree.h (build_nt_call_vec): Declare.
11598         (build_tree_list_vec_stat): Declare.
11599         (build_tree_list_vec): Define.
11600         (build_call_array): Update declaration.
11601         (build_call_vec): Declare.
11602         (ctor_to_vec): Declare.
11603         * c-common.c (tree_vector_cache): New static variable.
11604         (make_tree_vector): New function.
11605         (release_tree_vector): New function.
11606         (make_tree_vector_single): New function.
11607         (make_tree_vector_copy): New function.
11608         * c-common.h (tree_vector_cache, make_tree_vector): Declare.
11609         (make_tree_vector_single, make_tree_vector_copy): Declare.
11610         * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
11611         (c_parser_expr_list): Don't manage cache here, instead call
11612         make_tree_vector.
11613         (c_parser_release_expr_list): Remove static function.
11614         (c_parser_vec_to_tree_list): Remove static function.
11615         (c_parser_attributes): Call build_tree_list_vec instead of
11616         c_parser_vec_to_tree_list.  Call release_tree_vector instead of
11617         c_parser_release_expr_list.
11618         (c_parser_postfix_expression_after_primary): Likewise.
11619         (c_parser_objc_keywordexpr): Likewise.
11620
11621 2009-05-20  Sandra Loosemore  <sandra@codesourcery.com>
11622
11623         * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
11624         TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
11625         TARGET_CONVERT_TO_TYPE.
11626         * hooks.c (hook_tree_const_tree_null): Define.
11627         * hooks.h (hook_tree_const_tree_null): Declare.
11628         * target.h (struct gcc_target):  Add invalid_parameter_type,
11629         invalid_return_type, promoted_type, and convert_to_type fields.
11630         * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
11631         (TARGET_INVALID_RETURN_TYPE): Define.
11632         (TARGET_PROMOTED_TYPE): Define.
11633         (TARGET_CONVERT_TO_TYPE): Define.
11634         (TARGET_INITIALIZER): Update for new fields.
11635         * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
11636         (grokparms): Check targetm.invalid_parameter_type.
11637         * c-typeck.c (default_conversion): Check targetm.promoted_type.
11638         * c-convert.c (convert): Check targetm.convert_to_type.
11639
11640 2009-05-20  Adam Nemet  <anemet@caviumnetworks.com>
11641
11642         * config/mips/mips.md (*extenddi_truncate<mode>,
11643         *extendsi_truncate<mode>): Emit exts if supported.  Add attribute
11644         defintions.
11645         (*extendhi_truncateqi): New define_insn_and_sptit.
11646
11647 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
11648
11649         PR middle-end/40204
11650         * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
11651         recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
11652
11653 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
11654
11655         * fold-const.c (build_fold_addr_expr_with_type): Take the address of
11656         the operand of VIEW_CONVERT_EXPR.
11657
11658 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
11659
11660         * config/i386/driver-i386.c (host_detect_local_cpu): Check
11661         extended family and model for Intel processors.  Support Intel Atom.
11662
11663 2009-05-20  Olivier Hainque  <hainque@adacore.com>
11664
11665         * gstab.h (stab_code_type): Define, to be used instead of the
11666         __stab_debug_code enum, made anonymous.  Add 2009 to the copyright
11667         notice.
11668         * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
11669         occurrences by stab_code_type.
11670         * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
11671
11672 2009-05-20  Martin Jambor  <mjambor@suse.cz>
11673
11674         * tree-flow.h (insert_edge_copies_seq): Undeclare.
11675         (sra_insert_before): Likewise.
11676         (sra_insert_after): Likewise.
11677         (sra_init_cache): Likewise.
11678         (sra_type_can_be_decomposed_p): Likewise.
11679         * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
11680         * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
11681         (sra_insert_before): Likewise.
11682         (sra_insert_after): Likewise.
11683         (sra_init_cache): Likewise.
11684         (insert_edge_copies_seq): Made static and moved upwards.
11685
11686         * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
11687         case.
11688
11689         * tree-flow-inline.h (contains_view_convert_expr_p): New function.
11690
11691         * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
11692         (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
11693         simple copies.
11694
11695 2009-05-20  Richard Guenther  <rguenther@suse.de>
11696
11697         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
11698         with mismatched comparison modes.
11699
11700 2009-05-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11701
11702         * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
11703         (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
11704         * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
11705         with shifts for Thumb2.
11706         (orsi_notsi): New for orn.
11707         (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
11708         (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
11709         * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
11710         (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
11711         Don't invert remainder for IOR.
11712
11713 2009-05-19  Zdenek Dvorak  <ook@ucw.cz>
11714
11715         PR tree-optimization/40087
11716         * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
11717         number_of_iterations_ne): Rename never_infinite argument.
11718         (number_of_iterations_lt_to_ne, number_of_iterations_lt,
11719         number_of_iterations_le): Handle pointer-type ivs when
11720         exit_must_be_taken is false.
11721         (number_of_iterations_cond):  Do not always assume that
11722         exit_must_be_taken if the control variable is a pointer.
11723
11724 2009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11725
11726         * c-typeck.c (build_binary_op): Allow % on integal vectors.
11727         * doc/extend.texi (Vector Extension): Document that % is allowed too.
11728
11729 2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
11730
11731         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
11732         ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
11733
11734 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11735
11736         PR c/40172
11737         * c.opt (Wlogical-op): Disabled by default.
11738         * c-opt (c_common_post_options): Do not enable Wlogical-op with
11739         Wextra.
11740         * doc/invoke.texi (Wlogical-op): Likewise.
11741
11742 2009-05-19  Eric Botcazou  <ebotcazou@adacore.com>
11743
11744         * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
11745         into CASE_CONVERT.
11746         <PLUS_EXPR>: Strip useless type conversions instead of type nops.
11747         Propagate the type of the first operand.
11748         <ASSERT_EXPR>: Simplify.
11749         (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
11750         Rewrite using the RHS code as discriminant.
11751         <NOP_EXPR>: Turn into CASE_CONVERT.
11752         <PLUS_EXPR>: Propagate the type of the first operand.
11753
11754 2009-05-19  Steve Ellcey  <sje@cup.hp.com>
11755
11756         * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
11757         (ia64_dconst_0_375): New.
11758         * config/ia64/ia64.c (ia64_override_options): Remove
11759         -minline-sqrt-min-latency warning.
11760         (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
11761         (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
11762         * config/ia64/ia64.md (*sqrt_approx): Remove.
11763         (sqrtsf2): Remove #if 0.
11764         (sqrtsf2_internal_thr): Rewrite and move to div.md.
11765         (sqrtdf): Remove assert.
11766         (sqrtdf2_internal_thr): Rewrite and move to div.md.
11767         (sqrtxf2): Remove #if 0.
11768         (sqrtxf2_internal_thr): Rewrite and move to div.md.
11769         * div.md (sqrt_approx_rf): New.
11770         (sqrtsf2_internal_thr): New implementation.
11771         (sqrtsf2_internal_lat): New.
11772         (sqrtdf2_internal_thr: New implementation.
11773         (sqrtxf2_internal): New implementation.
11774
11775 2009-05-19  Francois-Xavier Coudert  <fxcoudert@gmail.com>
11776             Hans-Peter Nilsson  <hp@axis.com>
11777
11778         * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
11779         (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
11780         (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
11781         (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
11782         (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
11783         (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
11784         (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
11785         (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
11786         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
11787         (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
11788         * c-common.c: ...from here.
11789
11790 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11791
11792         * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
11793
11794 2009-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11795
11796         * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
11797
11798 2009-05-19  Ben Elliston  <bje@au.ibm.com>
11799
11800         * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
11801         assignments with memcpy calls.
11802         (add_fdes): Likewise.
11803         (binary_search_unencoded_fdes): Likewise.
11804         (linear_search_fdes): Eliminate type puns.
11805
11806 2009-05-19  Richard Guenther  <rguenther@suse.de>
11807
11808         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
11809         not falsely claim to have propagated into all uses.
11810
11811 2009-05-19  Ben Elliston  <bje@au.ibm.com>
11812
11813         * doc/invoke.texi (C Dialect Options): Update OpenMP specification
11814         version to v3.0.
11815
11816 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
11817
11818         * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
11819         * config/sh/sh.c (sh_legitimate_address_p): Make static.
11820         (TARGET_LEGITIMATE_ADDRESS_P): New.
11821         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
11822         * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
11823
11824 2009-05-18  Dodji Seketeli  <dodji@redhat.com>
11825
11826         PR debug/40109
11827         * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
11828         child of the containing namespace's DIE.
11829
11830 2009-05-18  Adam Nemet  <anemet@caviumnetworks.com>
11831
11832         * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
11833         *zero_extendhi_truncqi):  Move after the zero_extend patterns.
11834         (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
11835         extend patterns.
11836
11837 2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>
11838
11839         PR target/39942
11840         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
11841         gen_align with gen_pad.
11842         (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
11843         #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
11844
11845         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
11846         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
11847
11848         * config/i386/i386.md (align): Renamed to ...
11849         (pad): This.  Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
11850         ASM_OUTPUT_MAX_SKIP_PAD.
11851
11852 2009-05-18  Andreas Schwab  <schwab@linux-m68k.org>
11853
11854         * config.gcc: Fix variable syntax.
11855
11856         PR target/39531
11857         * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
11858         before calling exact_log2.
11859         (output_iorsi3): Likewise.
11860         (output_xorsi3): Likewise.
11861
11862 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
11863
11864         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
11865         for the none zero constant operand except for EQ and NE
11866         comprisons even when the first operand is R0.
11867
11868 2009-05-18  Andreas Krebbel  <krebbel1@de.ibm.com>
11869
11870         * config/s390/2064.md: Remove trailing whitespaces.
11871         * config/s390/2084.md: Likewise.
11872         * config/s390/constraints.md: Likewise.
11873         * config/s390/fixdfdi.h: Likewise.
11874         * config/s390/libgcc-glibc.ver: Likewise.
11875         * config/s390/s390-modes.def: Likewise.
11876         * config/s390/s390-protos.h: Likewise.
11877         * config/s390/s390.c: Likewise.
11878         * config/s390/s390.h: Likewise.
11879         * config/s390/s390.md: Likewise.
11880         * config/s390/tpf-unwind.h: Likewise.
11881
11882 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
11883
11884         * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
11885
11886 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
11887
11888         M68K TLS support.
11889         * configure.ac (m68k-*-*): Check if binutils support TLS.
11890         * configure: Regenerate.
11891         * config/m68k/predicates.md (symbolic_operand): Extend comment.
11892         * config/m68k/constraints.md (Cu): New constraint.
11893         * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
11894         (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
11895         (movsi): Handle TLS symbols.
11896         (addsi3_5200): Handle XTLS symbols, indent.
11897         * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
11898         (m68k_tls_reference_p): Declare.
11899         (m68k_legitimize_address): Declare.
11900         (m68k_unwrap_symbol): Declare.
11901         * config/m68k/m68k.opt (mxtls): New option.
11902         * config/m68k/m68k.c (ggc.h): Include.
11903         (m68k_output_dwarf_dtprel): Implement hook.
11904         (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
11905         (m68k_expand_prologue): Load GOT pointer when function needs it.
11906         (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
11907         (m68k_legitimate_constant_address_p): Same.
11908         (m68k_decompose_address): Handle TLS references.
11909         (m68k_get_gp): New static function.
11910         (enum m68k_reloc): New contants.
11911         (TLS_RELOC_P): New macro.
11912         (m68k_wrap_symbol): New static function.
11913         (m68k_unwrap_symbol): New function.
11914         (m68k_final_prescan_insn_1): New static function.
11915         (m68k_final_prescan_insn): New function.
11916         (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
11917         functions.
11918         (legitimize_pic_address): Handle TLS references..
11919         (m68k_tls_get_addr, m68k_get_tls_get_addr)
11920         (m68k_libcall_value_in_a0_p)
11921         (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
11922         (m68k_call_m68k_read_tp): Helper variables and functions for ...
11923         (m68k_legitimize_tls_address): Handle TLS references.
11924         (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
11925         New functions.
11926         (m68k_legitimize_address): Handle TLS symbols.
11927         (m68k_get_reloc_decoration): New static function.
11928         (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
11929         UNSPEC_RELOC32.
11930         (m68k_output_dwarf_dtprel): Implement hook.
11931         (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
11932         (m68k_libcall_value): Return result in A0 instead of D0 when asked by
11933         m68k_call_* routines.
11934         (sched_attr_op_type): Handle TLS symbols.
11935         (gt-m68k.h): Include.
11936         * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
11937         (LEGITIMATE_PIC_OPERAND_P): Support TLS.
11938
11939 2009-05-18  Martin Jambor  <mjambor@suse.cz>
11940
11941         * ipa-prop.c (ipa_check_stmt_modifications): Removed.
11942         (visit_store_addr_for_mod_analysis): New function.
11943         (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
11944         (determine_cst_member_ptr): Use gimple_assign_single_p.
11945         (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
11946         (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
11947         operands.  Don't check number of operands of a NOP_EXPR.
11948
11949 2009-05-18  Eric Fisher  <joefoxreal@gmail.com>
11950
11951         * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
11952
11953 2009-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11954
11955         PR c/40172
11956         * c-common.c (warn_logical_operator): Don't warn if one of
11957         expression isn't always true or false.
11958
11959 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
11960
11961         * config/i386/biarch32.h: New file.
11962         * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
11963
11964 2009-05-17  Adam Nemet  <anemet@caviumnetworks.com>
11965
11966         * config/mips/mips.md (*zero_extend<mode>_trunchi,
11967         *zero_extend<mode>_truncqi): Merge these into ...
11968         (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
11969         Name the pattern following this as *zero_extendhi_truncqi.
11970
11971 2009-05-16  Brad Lucier  <lucier@math.purdue.edu>
11972
11973         PR middle-end/39301
11974         * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
11975         * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
11976         (output_info): Make field HOST_WIDEST_INT.
11977         (print_statistics): Use HOST_WIDEST_INT_PRINT.
11978         (dump_bitmat_statistics): Same.
11979
11980 2009-05-16  Francois-Xavier Coudert  <fxcoudert@gmail.com>
11981
11982         * config.gcc (use_gcc_stdint):  Set to wrap.
11983         * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
11984         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
11985         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
11986         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
11987         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
11988         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
11989         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
11990         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
11991
11992 2009-05-16  Joseph Myers  <joseph@codesourcery.com>
11993
11994         * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
11995         tune_64.
11996         * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
11997         Move definitions earlier.
11998         (OPT_ARCH64, OPT_ARCH32): Define.
11999         (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
12000         and tune_64.
12001
12002 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
12003
12004         PR target/40153
12005         * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
12006         implies.
12007
12008 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
12009
12010         * arm.md (movdi2): Copy non-reg values to DImode registers.
12011
12012 2009-05-16  Jakub Jelinek  <jakub@redhat.com>
12013
12014         PR target/39942
12015         * final.c (label_to_max_skip): New function.
12016         (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
12017         CODE_LABEL_NUMBER <= max_labelno.
12018         * output.h (label_to_max_skip): New prototype.
12019         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
12020         (ix86_avoid_jump_mispredicts): ... this.  Don't define if
12021         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.  Update comment.
12022         Handle CODE_LABELs with >= 16 byte alignment or with
12023         max_skip == (1 << align) - 1.
12024         (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
12025         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
12026
12027         PR target/39942
12028         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
12029         .p2align 3 if MAX_SKIP is smaller than 7.
12030         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
12031
12032 2009-05-15  Ian Lance Taylor  <iant@google.com>
12033
12034         * alias.c (struct alias_set_entry_d): Rename from struct
12035         alias_set_entry.  Change all uses.
12036         * except.c (struct call_site_record_d): Rename from struct
12037         call_site_record.  Change all uses.
12038         * except.h (struct eh_region_d): Rename from struct eh_region.
12039         Change all uses.
12040         * gcse.c (struct hash_table_d): Rename from struct hash_table.
12041         Change all uses.
12042         * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
12043         ivtype_map_elt.  Change all uses.
12044         (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
12045         Change all uses.
12046         (struct ifsese_d): Rename fromstruct ifsese.  Change all uses.
12047         * graphite.h (struct name_tree_d): Rename from struct name_tree.
12048         Change all uses.
12049         (struct sese_d): Rename from struct sese.  Change all uses.
12050         * omega.h (struct eqn_d): Rename from struct eqn.  Change all uses.
12051         (struct omega_pb_d): Rename from struct omega_pb.  Change all uses.
12052         * optabs.h (struct optab_d): Rename from struct optab.  Change all
12053         uses.
12054         (struct convert_optab_d): Rename from struct convert_optab.
12055         Change all uses.
12056         * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
12057         ipa_opt_pass.  Change all uses.
12058         * tree-predcom.c (struct dref_d): Rename from struct dref.  Change
12059         all uses.
12060
12061         * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
12062         defined as a typedef.
12063         (grokdeclarator): If -Wc++-compat, warn if a typedef is already
12064         defined as a tag.
12065
12066 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12067
12068         PR 16302
12069         * fold-const.c (make_range,build_range_check,merge_ranges): Move
12070         declaration to...
12071         (merge_ranges): Returns bool.
12072         * tree.h (make_range): .. to here.
12073         (build_range_check): Likewise.
12074         (merge_ranges): Likewise. Renamed from merge_ranges.
12075         * c-typeck.c (parser_build_binary_op): Update calls to
12076         warn_logical_operator.
12077         * c-common.c (warn_logical_operator): Add new warning.
12078         * c-common.h (warn_logical_operator): Update declaration.
12079
12080 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12081
12082         * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
12083
12084 2009-05-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12085
12086         * doc/install.texi: Document MPC requirements, flags etc.
12087
12088         * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
12089         (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
12090         Evaluate constant arguments.
12091         (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
12092         (fold_builtin_1): Likewise, also evaluate constant arguments.
12093         Remove superfluous break.
12094         (do_mpc_ckconv): New.
12095         * real.h: Include mpc.h.
12096         * toplev.c (print_version): Output MPC version info if available.
12097
12098 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
12099
12100         * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
12101
12102 2009-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12103
12104         * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
12105         only once.
12106
12107 2009-05-15  Jan Hubicka  <jh@suse.cz>
12108
12109         * doc/invoke.texi (max-early-inliner-iterations): New flag.
12110         * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
12111         (try_inline): Fix return value.
12112         (cgraph_decide_inlining_incrementally): Honor new value.
12113         (cgraph_early_inlining): Handle indirect inlining.
12114         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
12115
12116 2009-05-15  Jan Hubicka  <jh@suse.cz>
12117
12118         * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
12119         * cgraphunit.c (cgraph_finalize_function): Set it.
12120         (cgraph_expand_function): Use it.
12121
12122 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
12123
12124         * real.c (encode_ieee_half): Define.
12125         (decode_ieee_half): Define.
12126         (ieee_half_format): Define.
12127         (arm_half_format): Define.
12128         * real.h (ieee_half_format): Declare.
12129         (arm_half_format): Declare.
12130
12131 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
12132
12133         * optabs.c (prepare_float_lib_cmp):  Test that the comparison,
12134         swapped, and reversed optabs exist before trying to use them.
12135
12136 2009-05-15  Paul Brook  <paul@codesourcery.com>
12137             Sandra Loosemore  <sandra@codesourcery.com>
12138
12139         * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
12140         loads.  Allow PRE_DEC.
12141         (output_move_neon): Handle PRE_DEC.
12142         (arm_print_operand): Add 'A' for neon structure loads.
12143         * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
12144         * config/arm/neon.md (neon_mov): Update comment.
12145         * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
12146         calls.
12147         (Um): New constraint.
12148
12149 2009-05-15  Jan Hubicka  <jh@suse.cz>
12150
12151         Revert the following patch until testsuite fallout is fixed:
12152         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
12153         * cgraph.h (struct inline_summary): New filed self_wize,
12154         size_inlining_benefit, self_time and time_inlining_benefit.
12155         (struct cgraph_global_info): Replace insns by time ans size fields.
12156         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
12157         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
12158         (ipcp_update_callgraph): Do not touch function bodies.
12159         * ipa-inline.c: Include except.h
12160         (MAX_TIME): New constant.
12161         (overall_insns): Remove
12162         (overall_size, max_benefit): New static variables.
12163         (cgraph_estimate_time_after_inlining): New function.
12164         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
12165         (cgraph_clone_inlined_nodes): Update size.
12166         (cgraph_mark_inline_edge): Update size.
12167         (cgraph_estimate_growth): Use size info.
12168         (cgraph_check_inline_limits): Check size.
12169         (cgraph_default_inline_p): Likewise.
12170         (cgraph_edge_badness): Compute badness based on benefit and size cost.
12171         (cgraph_decide_recursive_inlining): Check size.
12172         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
12173         and times.
12174         (cgraph_decide_inlining): Likewise.
12175         (cgraph_decide_inlining_incrementally): Likewise; honor
12176         PARAM_EARLY_INLINING_INSNS.
12177         (likely_eliminated_by_inlining_p): New predicate.
12178         (estimate_function_body_sizes): New function.
12179         (compute_inline_parameters): Use it.
12180         * except.c (must_not_throw_labels): New function.
12181         * except.h (must_not_throw_labels): Declare.
12182         * tree-inline.c (init_inline_once): Kill inlining_weigths
12183         * tree-ssa-structalias.c: Avoid uninitialized warning.
12184         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
12185         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
12186         (PARAM_INLINE_CALL_COST): Remove.
12187         (PARAM_EARLY_INLINING_INSNS): New.
12188
12189 2009-05-15  Richard Guenther  <rguenther@suse.de>
12190
12191         * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
12192         not TODO_update_ssa.
12193
12194 2009-05-15  Richard Guenther  <rguenther@suse.de>
12195
12196         PR tree-optimization/39999
12197         * gimple.h (gimple_expr_type): Use the expression type looking
12198         through useless conversions.
12199         * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
12200         (vn_nary_op_insert_stmt): Likewise.
12201         (simplify_binary_expression): Likewise.
12202
12203 2009-05-15  Richard Guenther  <rguenther@suse.de>
12204
12205         * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
12206         New options, enabled by default.
12207         * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
12208         Document.
12209         * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
12210         * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
12211         * tree-ssa-structalias.c (gate_tree_pta): New function.
12212         (pass_build_alias): Use it.
12213
12214 2009-05-15  Joseph Myers  <joseph@codesourcery.com>
12215
12216         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
12217         recurse on an invariant address if a conversion from a pointer
12218         type to a wider integer type is involved.
12219
12220 2009-05-15  Jan Hubicka  <jh@suse.cz>
12221
12222         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
12223         * cgraph.h (struct inline_summary): New filed self_wize,
12224         size_inlining_benefit, self_time and time_inlining_benefit.
12225         (struct cgraph_global_info): Replace insns by time ans size fields.
12226         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
12227         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
12228         (ipcp_update_callgraph): Do not touch function bodies.
12229         * ipa-inline.c: Include except.h
12230         (MAX_TIME): New constant.
12231         (overall_insns): Remove
12232         (overall_size, max_benefit): New static variables.
12233         (cgraph_estimate_time_after_inlining): New function.
12234         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
12235         (cgraph_clone_inlined_nodes): Update size.
12236         (cgraph_mark_inline_edge): Update size.
12237         (cgraph_estimate_growth): Use size info.
12238         (cgraph_check_inline_limits): Check size.
12239         (cgraph_default_inline_p): Likewise.
12240         (cgraph_edge_badness): Compute badness based on benefit and size cost.
12241         (cgraph_decide_recursive_inlining): Check size.
12242         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
12243         and times.
12244         (cgraph_decide_inlining): Likewise.
12245         (cgraph_decide_inlining_incrementally): Likewise; honor
12246         PARAM_EARLY_INLINING_INSNS.
12247         (likely_eliminated_by_inlining_p): New predicate.
12248         (estimate_function_body_sizes): New function.
12249         (compute_inline_parameters): Use it.
12250         * except.c (must_not_throw_labels): New function.
12251         * except.h (must_not_throw_labels): Declare.
12252         * tree-inline.c (init_inline_once): Kill inlining_weigths
12253         * tree-ssa-structalias.c: Avoid uninitialized warning.
12254         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
12255         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
12256         (PARAM_INLINE_CALL_COST): Remove.
12257         (PARAM_EARLY_INLINING_INSNS): New.
12258         doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
12259         (inline-call-cost): Remove.
12260         (early-inlining-insns): New.
12261
12262 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
12263
12264         * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters.  Use them
12265         for bounds.
12266         (print_int_cst_bounds_in_octal_p): Likewise.
12267         (dbxout_type): Adjust calls to above functions.  Be prepared to deal
12268         with subtypes.
12269         * dwarf2out.c (base_type_die): Likewise.
12270         (is_subrange_type): Delete.
12271         (subrange_type_die): Add LOW and HIGH parameters.  Use them for bounds.
12272         (modified_type_die): Call subrange_type_for_debug_p on subtypes.
12273         * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
12274         if the destination type is boolean.
12275         (build_range_check): Do not special-case subtypes.
12276         (fold_sign_changed_comparison): Likewise.
12277         (fold_unary): Likewise.
12278         * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
12279         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
12280         * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
12281         * tree.c (subrange_type_for_debug_p): New predicate based on the
12282         former is_subrange_type.
12283         * tree.h (subrange_type_for_debug_p): Declare.
12284         * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
12285         (convert_affine_scev): Remove call to above function.
12286         (chrec_convert_aggressive): Likewise.
12287         * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
12288         false for conversions involving subtypes.
12289         * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
12290         (vrp_val_min): Likewise.
12291         (needs_overflow_infinity): Likewise.
12292         (extract_range_from_unary_expr): Likewise.
12293
12294 2009-05-15  Paolo Bonzini  <bonzini@gnu.org>
12295
12296         * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
12297         * config/frv/frv.c: Likewise.
12298         * config/s390/s390.c: Likewise.
12299         * config/sparc/sparc.h: Likewise.
12300         * config/i386/i386.h: Likewise.
12301         * config/i386/i386.c: Likewise.
12302         * config/crx/crx.c: Likewise.
12303         * config/m68hc11/m68hc11.h: Likewise.
12304         * config/iq2000/iq2000.c: Likewise.
12305         * config/mn10300/mn10300.h: Likewise.
12306         * config/mn10300/mn10300.c: Likewise.
12307         * config/m68k/m68k.c: Likewise.
12308         * config/rs6000/rs6000.c: Likewise.
12309         * config/rs6000/xcoff.h: Likewise.
12310         * config/rs6000/linux64.h: Likewise.
12311         * config/rs6000/sysv4.h: Likewise.
12312         * config/score/score3.c: Likewise.
12313         * config/score/score7.c: Likewise.
12314         * config/score/score.c: Likewise.
12315         * config/arm/arm.md: Likewise.
12316         * config/mips/mips.c: Likewise.
12317         * config/mips/mips.md: Likewise.
12318         * config/bfin/bfin.h: Likewise.
12319         * config/pa/pa.c: Likewise.
12320         * config/pa/constraints.md: Likewise.
12321
12322         * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
12323         * config/pdp11/pdp11.c (legitimate_address_p): Delete.
12324         * config/pdp11/pdp11.h: Use memory_address_p instead.
12325
12326 2009-05-14  Ian Lance Taylor  <iant@google.com>
12327
12328         * passes.c (finish_optimization_passes): Change i to int.
12329         * plugin.c (plugins_active_p): Change event to int.
12330         (dump_active_plugins): Likewise.
12331         * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
12332         Add cast.
12333         * tree.c (tree_range_check_failed): Change c to unsigned int.
12334         (omp_clause_range_check_failed): Likewise.
12335         (build_common_builtin_nodes): Change mode to int.  Add cast.
12336         * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
12337         (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
12338
12339         * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
12340         ++ or -- with a variable of enum type.
12341
12342 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
12343
12344         PR driver/40144
12345         * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
12346
12347 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
12348
12349         * store-motion.c: Do not include params.h
12350         * Makefile.in: Fix dependencies for various files.
12351
12352 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
12353
12354         * auto-inc-dec.c: Fix pass description, remove apparent
12355         accidental duplication.
12356
12357 2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12358
12359         PR middle-end/40147
12360         * ipa-utils.h (memory_identifier_string): Moved to ...
12361         * tree.h (memory_identifier_string): Here.  Add GTY(()).
12362
12363 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
12364
12365         * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
12366         in the former documentation of...
12367         (GO_IF_LEGITIMATE_ADDRESS): ... this.
12368         * ira-conflicts.c (get_dup_num): Use address_operand.
12369         * targhooks.c (default_legitimate_address_p): New.
12370         * targhooks.h (default_legitimate_address_p): New.
12371         * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
12372         Call hook.
12373         * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
12374         * target.h (struct target): Add legitimate_address_p.
12375         * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
12376         (TARGET_INITIALIZER): Include it.
12377
12378         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12379         * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
12380         * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
12381         (TARGET_LEGITIMATE_ADDRESS_P): New.
12382
12383         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12384         (REG_OK_STRICT_P): Delete.
12385         * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
12386         (frv_legitimate_address_p_1): ... this.
12387         * config/frv/frv.c (frv_legitimate_address_p): Forward to...
12388         (frv_legitimate_address_p_1): ... the renamed old
12389         frv_legitimate_address_p.
12390         * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
12391         (TARGET_LEGITIMATE_ADDRESS_P): New.
12392
12393         * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12394         * config/s390/s390-protos.h (legitimate_address_p): Remove.
12395         * config/s390/s390.c (legitimate_address_p): Rename to...
12396         (s390_legitimate_address_p): ... this, make static.
12397         (legitimize_address): Adjust call.
12398         (TARGET_LEGITIMATE_ADDRESS_P): New.
12399         * config/s390/constraints.md ("e"): Call strict_memory_address_p.
12400
12401         * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12402         * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
12403         * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
12404         (TARGET_LEGITIMATE_ADDRESS_P): New.
12405
12406         * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12407         * config/spu/spu-protos.h (spu_legitimate_address): Remove.
12408         * config/spu/spu.c (spu_legitimate_address): Rename to...
12409         (spu_legitimate_address_p): ... this, make static.
12410         (TARGET_LEGITIMATE_ADDRESS_P): New.
12411
12412         * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12413         * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
12414         * config/sparc/sparc.c (legitimate_address_p): Rename to...
12415         (sparc_legitimate_address_p): ... this, make static and return bool.
12416         (legitimize_address): Adjust call.
12417         (TARGET_LEGITIMATE_ADDRESS_P): New.
12418
12419         * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12420         * config/i386/i386-protos.h (legitimate_address_p): Remove.
12421         * config/i386/i386.c (legitimate_address_p): Rename to...
12422         (ix86_legitimate_address_p): ... this, make static.
12423         (constant_address_p): Move after it, adjust call.
12424         (TARGET_LEGITIMATE_ADDRESS_P): New.
12425
12426         * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12427         * config/avr/avr-protos.h (legitimate_address_p): Remove.
12428         * config/avr/avr.c (legitimate_address_p): Rename to...
12429         (avr_legitimate_address_p): ... this, make static.
12430         (legitimize_address): Adjust call.
12431         (TARGET_LEGITIMATE_ADDRESS_P): New.
12432
12433         * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12434         * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
12435         * config/crx/crx.c (crx_legitimate_address_p): Make static.
12436         (TARGET_LEGITIMATE_ADDRESS_P): New.
12437
12438         * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12439         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
12440         * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
12441         (TARGET_LEGITIMATE_ADDRESS_P): New.
12442
12443         * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12444         * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
12445         Remove.
12446         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
12447         Make static.
12448         (TARGET_LEGITIMATE_ADDRESS_P): New.
12449
12450         * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12451         * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
12452         Remove.
12453         * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
12454         Rename to...
12455         (m68hc11_legitimate_address_p): ... this, make static.
12456         (go_if_legitimate_address_internal): Rename to...
12457         (m68hc11_legitimate_address_p_1): ... this.
12458         (legitimize_address): Adjust call.
12459         (TARGET_LEGITIMATE_ADDRESS_P): New.
12460
12461         * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12462         * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
12463         * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
12464         (TARGET_LEGITIMATE_ADDRESS_P): New.
12465
12466         * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12467         * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
12468         * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
12469         (mn10300_legitimate_address_p): ... this, make static.
12470         (TARGET_LEGITIMATE_ADDRESS_P): New.
12471
12472         * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12473         * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
12474         * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
12475         (TARGET_LEGITIMATE_ADDRESS_P): New.
12476
12477         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12478         (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
12479         (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
12480         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12481         * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
12482         * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
12483         (rs6000_legitimate_address_p): ... this, make static.
12484         (TARGET_LEGITIMATE_ADDRESS_P): New.
12485         (REG_MODE_OK_FOR_BASE_P): Delete.
12486         (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
12487
12488         * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12489         * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
12490         Delete.
12491         * config/picochip/picochip.c (picochip_legitimate_address_p): Make
12492         static, adjust types.
12493         (TARGET_LEGITIMATE_ADDRESS_P): New.
12494
12495         * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12496         * config/score/score.c (score_address_p): Rename to...
12497         (score_legitimate_address_p): ... this.
12498         (TARGET_LEGITIMATE_ADDRESS_P): New.
12499         * config/score/score3.c (score3_address_p): Rename to...
12500         (score3_legitimate_address_p): ... this.
12501         * config/score/score7.c (score7_address_p): Rename to...
12502         (score7_legitimate_address_p): ... this.
12503
12504         * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
12505         THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
12506         GO_IF_LEGITIMATE_ADDRESS): Delete.
12507         * config/arm/arm-protos.h (thumb1_legitimate_address_p,
12508         thumb2_legitimate_address_p): Delete.
12509         (arm_legitimate_address_p): Rename to...
12510         (arm_legitimate_address_outer_p): ... this.
12511         * config/arm/constraints.md ("Uq"): Adjust call.
12512         * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
12513         * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
12514         to...
12515         (arm_legitimate_address_outer_p): ... this.
12516         (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
12517         static.
12518         (TARGET_LEGITIMATE_ADDRESS_P): New.
12519
12520         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12521         * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
12522         * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
12523         (TARGET_LEGITIMATE_ADDRESS_P): New.
12524
12525         * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12526         * config/vax/vax-protos.h (legitimate_address_p): Remove.
12527         * config/vax/vax.c (legitimate_address_p): Rename to...
12528         (vax_legitimate_address_p): ... this, make static.
12529         (TARGET_LEGITIMATE_ADDRESS_P): New.
12530
12531         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12532         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
12533         * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
12534         (TARGET_LEGITIMATE_ADDRESS_P): New.
12535
12536         * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12537         * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
12538         * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
12539         (mmix_legitimate_address_p): ... this, make static.
12540         (TARGET_LEGITIMATE_ADDRESS_P): New.
12541
12542         * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
12543         * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
12544         * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
12545         (TARGET_LEGITIMATE_ADDRESS_P): New.
12546
12547 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
12548
12549         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
12550         of MODE_COMPLEX_INT.
12551
12552 2009-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12553
12554         * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
12555         LCT_NORMAL in function call.
12556         * mips-tdump.c (print_file_desc): Add cast to enum type.
12557         * mips-tfile.c (add_ext_symbol): Add casts to enum types.
12558         (mark_stabs): Add casts to enum types.
12559         (parse_stabs_common): Add casts to enum types.
12560
12561 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
12562
12563         * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
12564         Check for invalid values of LETTER.
12565
12566 2009-05-13  Taras Glek  <tglek@mozilla.com>
12567
12568         * attribs.c (register_attribute): moved out attribute registration
12569         into register_attribute.
12570         * doc/plugins.texi: Documented register_attribute and
12571         PLUGIN_ATTRIBUTES.
12572         * gcc-plugin.h: Added forward decl for register_attribute.
12573         * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
12574         * plugin.c (register_callback, invoke_plugin_callbacks): Added
12575         PLUGIN_ATTRIBUTES boilerplate.
12576
12577 2009-05-14  Dave Korn  <dave.korn.cygwin@gmail.com>
12578
12579         * config/i386/msformat-c.c (ms_printf_length_specs):  Use enumeration
12580         values even in sentinel and empty entries.
12581         (ms_printf_flag_specs):  Likewise.
12582         (ms_scanf_flag_specs):  Likewise.
12583         (ms_strftime_flag_specs):  Likewise.
12584         (ms_print_char_table):  Likewise.
12585         (ms_scan_char_table):  Likewise.
12586         (ms_time_char_table):  Likewise.
12587
12588 2009-05-13  Doug Kwan  <dougkwan@google.com>
12589
12590         * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
12591
12592 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
12593
12594         * config/mips/mips.md (store): Add attributes for QI and HI.
12595         Update comment.
12596         (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
12597         (truncdi<mode>2): ... this new pattern.
12598
12599 2009-05-13  Brad Hards  <bradh@kde.org>
12600
12601         * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
12602
12603 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
12604             Ben Elliston <bje@au.ibm.com>
12605
12606         PR middle-end/40035
12607         * dse.c (check_mem_read_rtx): Guard against width == -1.
12608
12609 2009-05-13  Michael Matz  <matz@suse.de>
12610
12611         PR middle-end/39976
12612         * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
12613         (trivially_conflicts_p): New function.
12614         (insert_backedge_copies): Use it.
12615
12616 2009-05-13  Janis Johnson  <janis187@us.ibm.com>
12617
12618         * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
12619         (handle_stdc_pragma): Use new enum constant names.
12620         (handle_pragma_float_const_decimal64): Ditto.
12621
12622 2009-05-13  Ian Lance Taylor  <iant@google.com>
12623
12624         * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
12625         tree.def.
12626
12627 2009-05-13  Nathan Sidwell  <nathan@codesourcery.com>
12628
12629         * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
12630         * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
12631         multilibs.
12632         * config/m68k/m68k.h (FL_UCLINUX): Define.
12633
12634 2009-05-13  Jan Hubicka  <jh@suse.cz>
12635
12636         * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
12637
12638 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
12639
12640         * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
12641         unless -fschedule-insns is specified.
12642
12643 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
12644
12645         PR target/39561
12646         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
12647         TARGET_EXPAND_CBRANCHDI4.
12648         * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
12649         * config/sh/sh.opt (mexpand-cbranchdi): Remove.
12650         (cmpeqdi): Fix comment.
12651
12652 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
12653
12654         * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
12655         (sh_legitimate_address_p): Likewise.
12656         * config/sh/sh.c (sh_legitimate_index_p): New.
12657         (sh_legitimate_address_p): Likewise.
12658         * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
12659         (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
12660         (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
12661         (MAYBE_BASE_REGISTER_RTX_P): New macro.
12662         (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
12663         (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
12664         (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
12665         (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
12666         (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
12667
12668 2009-05-12  Jan Hubicka  <jh@suse.cz>
12669
12670         * tree-inline.c (estimate_operator_cost): Add operands;
12671         when division happens by constant, it is cheap.
12672         (estimate_num_insns): Loads and stores are not having cost of 0;
12673         EH magic stuff is cheap; when computing runtime cost of switch,
12674         use log2 base of amount of its cases; builtin_expect has cost of 0;
12675         compute cost for moving return value of call.
12676         (init_inline_once): Initialize time_based flags.
12677         * tree-inline.h (eni_weights_d): Add time_based flag.
12678
12679 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
12680
12681         * df-core.c: Update head documentation.
12682
12683 2009-05-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
12684
12685         PR bootstrap/40118
12686         * rs6000.c (rs6000_generate_compare): Use op1b instead of
12687         shadowing exisiting variable op1.
12688
12689 2009-05-12  Uros Bizjak  <ubizjak@gmail.com>
12690
12691         PR target/37179
12692         * config/i386/driver-i386.c (processor_signatures): New enum.
12693         (SIG_GEODE): Move from vendor_signatures to processor_signatures.
12694         (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
12695         processor signature to detect geode processor.
12696
12697 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
12698
12699         Revert:
12700
12701         2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
12702
12703         * optabs.c (prepare_cmp_insn): Temporarily disable test that
12704         causes spurious differences between trunk and cond-optab branch.
12705
12706 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
12707
12708         * dojump.c (compare_from_rtx): Delete.
12709         * expmed.c (emit_store_flag): Only try cstore_optab.  Canonicalize
12710         any MODE_CC mode to the cstorecc4 pattern.  Use prepare_operand, fail
12711         if the comparison does not satisfy the predicate; test predicates for
12712         operands 2 and 3 of a cstore pattern.  Don't try cstore optab
12713         further if one existing pattern fails.
12714         * expr.h (compare_from_rtx): Delete.
12715         (prepare_operand): Declare it.
12716         * optabs.c: Change "lib call" to "libcall" throughout.
12717         (bcc_gen_fctn, setcc_gen_code, trap_rtx,
12718         HAVE_conditional_trap, emit_cmp_insn): Delete.
12719         (can_compare_p): Delete cmp_optab case.
12720         (prepare_float_lib_cmp): Return an rtx and a machine mode.
12721         Accept other parameters by value.
12722         (prepare_operand): Make non-static.
12723         (prepare_cmp_insn): Return an rtx and a machine mode.  Accept
12724         other parameters by value.  Try to widen operands here based on
12725         an optab_methods argument and looking at cbranch_optab.
12726         (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
12727         loop.  Use cbranch_optab directly.
12728         (emit_cmp_and_jump_insns): Fix comment.  Adjust call to
12729         prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
12730         assertion.
12731         (emit_conditional_move, emit_conditional_add): Inline what's needed
12732         of compare_from_rtx, using new prepare_cmp_insn for the rest.
12733         (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
12734         with COMPARE.  Move cmov_optab and cstore_optab above
12735         with cbranch_optab, move cmp_optab down with ucmp_optab,
12736         remove tst_otpab.  Do not initialize trap_rtx.
12737         (gen_cond_trap): Do it here.  Use ctrap_optab.  Test predicate
12738         for trap code.  Do not check HAVE_conditional_trap.  Use
12739         prepare_cmp_insn.  Accept no predicate for operand 3.
12740         * optabs.h (OTI_cmp): Mark as used only for libcalls.
12741         (OTI_ctrap, ctrap_optab): New.
12742         (tst_optab): Delete.
12743         (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
12744         * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
12745         with lookup of ctrap_optab.
12746         * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
12747         Delete.
12748         (ctrap_optab): New.
12749
12750         * combine.c (combine_simplify_rtx, simplify_set): Do not
12751         special case comparing against zero for cc0 machines.
12752         * simplify-rtx.c (simplify_binary_operation_1): Never remove
12753         COMPARE on cc0 machines.
12754         (simplify_relational_operation): Return a new expression when
12755         a COMPARE could be removed.
12756         * final.c (final_scan_insn): Compare cc_status values
12757         against LHS of a (compare FOO (const_int 0)) cc0 source.
12758         Also check if cc_status.value is the full compare.
12759
12760         * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
12761         (cstoreMM4): Document.
12762         (conditional_trap): Document ctrapMM4 instead.
12763         (sync_compare_and_swapMM): Refer to cbranchcc4.
12764         (Dependent Patterns): Eliminate obsolete information referring to
12765         the old jump optimization phase.
12766         (Canonicalization): Include cbranchcc4 case, omit canonicalization
12767         of compares with 0 on cc0 machines.
12768         (Jump Patterns): Refer to MODE_CC jump patterns preferably,
12769         avoiding references to cc0.  Remove text about storing operands
12770         in cmpMM.
12771         * doc/tm.texi (Condition Codes): Include blurb on different
12772         condition code representations, separate into subsections for
12773         CC0, MODE_CC and conditional execution.
12774
12775         * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
12776         alpha_emit_setcc): Accept operands and a machine mode.
12777         * config/alpha/alpha.c (alpha_emit_conditional_branch):
12778         Get code/op0/op1 from operands, use machine mode argument
12779         instead of alpha_compare.fp_p.  Emit the branch here.
12780         (alpha_emit_setcc): Likewise, and return boolean.
12781         (alpha_emit_conditional_move): Likewise.  Assert that
12782         cmp_op_mode == cmp_mode, and simplify accordingly.
12783         * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
12784         * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
12785         (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
12786         Delete.
12787         (stack probe test): Use cbranchdi4.
12788         * config/alpha/predicates.md (alpha_cbranch_operator): New.
12789
12790         * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
12791         * config/arc/arc.h (movsicc, movsfcc): Use it.
12792         (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
12793         (cbranchsi4, cstoresi4): New.
12794         (cmpsi, bCC and sCC expanders): Remove.
12795
12796         * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
12797         * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
12798         * config/arm/predicates.md (arm_comparison_operator): Only include
12799         floating-point operators if there is a hardware floating-point unit.
12800         * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
12801         deferring to cbranch_cc and cstore_cc respectively.
12802         (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
12803         cbranch_cc, cstore_cc): New.
12804         (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
12805         arm_compare_op1.
12806         (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
12807
12808         * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
12809         * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
12810         as an argument.
12811         (adjust_insn_length): Adjust calls.
12812         (avr_reorg): Handle (compare (foo) (const_int 0)).
12813         * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
12814         (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
12815         (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
12816         (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
12817         (bCC): Remove.
12818         (cbranchqi4, cbranchhi4, cbranchsi4): New.
12819         (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
12820
12821         * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
12822         (cbranchsi4, cstorebi4, cstoresi4): New.
12823         (movbisi): This insn is duplicate, split it to zero_extend.
12824         * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
12825         (bfin_gen_compare): Do not use them.  Emit VOIDmode SET, not BImode.
12826         (bfin_optimize_loop): Use cbranch expander.
12827         * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
12828         * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
12829         (bfin_bimode_comparison_operator): ... this.
12830         (bfin_direct_comparison_operator): New.
12831
12832         * config/cris/cris.c (cris_normal_notice_update_cc): Look
12833         inside (compare FOO (const_int 0)).
12834         (cris_rtx_costs): Handle ZERO_EXTRACT.
12835         * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
12836         (*tstdi_non_v32): Fold in *cmpdi_non_v32.
12837         (*tstdi_v32): Delete.
12838         (*cmpdi_non_v32): Add M alternative for operand 1.
12839         (cmpsi, cmp<mode>): Make private.
12840         (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
12841         with COMPARE.
12842         (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
12843
12844         * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
12845         (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
12846         (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
12847         (cc_reg_operand): New.
12848         (any_cond): Delete.
12849         * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
12850         crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
12851         * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
12852         * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
12853         crx_expand_scond): Delete.
12854
12855         * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
12856         (cbranchsi4): New.
12857         * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
12858         * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
12859
12860         * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
12861         cstoresi4, cstoresf4, cstoredf4): New.
12862         (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
12863         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
12864         Receive the entire operands array.
12865         * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
12866         * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
12867         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
12868         Get test/op0/op1 from the operands array.
12869         (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
12870
12871         * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
12872         (h8300_expand_store): New.
12873         * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
12874         (const_int 0)).
12875         (h8300_expand_branch): Emit compare here.  Adjust for new arguments.
12876         (h8300_expand_store): New.
12877         * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
12878         or do not try to produce (set (cc0) REG).
12879         (peepholes): Wrap arguments with COMPARE.  Add a peephole to
12880         change a compare into a move to a scratch register.  Disable some
12881         peepholes when comparing with zero.
12882         (tstsi, tsthi, tstsi, cmpqi): Make private.
12883         (cmphi): Delete.
12884         (bCC, sCC): Delete.
12885         (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
12886         cstoresi4): New.
12887
12888         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
12889         ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
12890         (ix86_emit_i387_log1p): Use gen_cbranchxf4.
12891         (ix86_emit_i387_log1p): Use cbranchxf2.
12892         (ix86_expand_setcc): Return void.
12893         * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
12894         * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
12895         cmp<MODEF>, cmpcc): Remove.
12896         (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
12897         cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
12898         cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
12899         (sCC and bCC expanders): Remove.
12900         (stack_protect_test): Use cbranchcc4.
12901
12902         * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
12903         Delete.
12904         (ia64_expand_compare): Accept three rtx by reference and return void.
12905         * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
12906         (ia64_expand_compare): Replace op0/op1 with *op0/*op1.  Get code
12907         from *expr.  Update *expr with the BImode comparison to do.
12908         * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
12909         cmptf, bCC, sCC, conditional_trap): Delete.
12910         (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
12911         cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
12912         cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
12913         ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
12914         * config/ia64/predicates.md (ia64_cbranch_operator): New.
12915
12916         * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
12917         type of last argument.
12918         * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
12919         (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
12920         use machine mode argument instead of branch_type.  Remove dead
12921         code for floating-point comparisons.
12922         * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
12923         * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
12924         Remove.
12925         (cbranchsi4, cstoresi4): New.
12926         * config/iq2000/predicates.md (reg_or_const_operand): New.
12927
12928         * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
12929         * config/m32c/m32c.md (any_cond, gl_cond): Delete.
12930         (b<code>_op): Rewrite to...
12931         (bcc_op): ... this, using match_operator.
12932         (s<code>_op): Rewrite to...
12933         (scc_op): ... this, using match_operator.
12934         (s<code>_24_op): Rewrite to...
12935         (scc_op_24): ... this, using match_operator.
12936         (s<code>_<mode>): Rewrite to...
12937         (cstore<mode>4): ... this, using match_operator.
12938         (s<code>_<mode>_24): Rewrite to...
12939         (cstore<mode>4_24): ... this, using match_operator.
12940         * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
12941         m32c_unpend_compare, m32c_expand_scc): Delete.
12942         * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
12943         m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
12944         (m32c_expand_movcc): Change NE to EQ if necessary.
12945         (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
12946
12947         * config/m32r/m32r-protos.h (gen_cond_store): New.
12948         * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
12949         (gen_cond_store): New, from sCC patterns.
12950         (m32r_expand_block_move): Use cbranchsi4.
12951         * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
12952         * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
12953         (cbranchsi4, cstoresi4): New.
12954
12955         * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
12956         Delete.
12957         (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
12958         (m68hc11_notice_update_cc): Look into a compare with 0.
12959         * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
12960         Delete.
12961         * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
12962         cmphi, cmpqi, bCC): Delete.
12963         (cbranchsi4, cbranchhi4, cbranchqi4): New.
12964         (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
12965         bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
12966         sets with COMPARE.
12967
12968         * config/m68k/predicates.md (m68k_cstore_comparison_operator,
12969         const0_operand, const1_operand, m68k_subword_comparison_operand): New.
12970         * config/m68k/constraints.md (H): New.
12971         * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
12972         the define_insn below.
12973         (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
12974         (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
12975         *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
12976         patterns): Wrap RHS with COMPARE.
12977         (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
12978         (*cmpdi_internal): Name this pattern.
12979         (cmpdi): Change to define_insn.
12980         (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
12981         cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
12982         (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
12983         predicate.
12984         (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
12985         sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
12986         (conditional_trap): Change to...
12987         (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
12988         (*conditional_trap): Use the ordered_comparison_operator and
12989         const1_operand predicates.
12990         * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
12991         (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
12992         (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
12993         * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
12994
12995         * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
12996         mcore_modify_comparison, mcore_gen_compare_reg): Remove.
12997         (mcore_gen_compare): New.
12998         * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
12999         (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
13000         (mcore_gen_compare): ... this.
13001         * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
13002         (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
13003         (stack probe pattern): Use cbranchsi4.
13004
13005         * config/mips/predicates.md (mips_cstore_operator): New.
13006         * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
13007         * config/mips/mips.md (any_cond): Delete.
13008         (conditional_trap): Rename to ctrap<GPR:mode>4.  Adjust predicates,
13009         always succeed.
13010         (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
13011         fixuns_truncsfdi2): Use cbranch patterns.
13012         (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
13013         (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
13014         Adjust call to mips_expand_conditional_branch.
13015         (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
13016         cstore<GPR:mode>4.
13017         * config/mips/mips-protos.h (mips_expand_conditional_branch,
13018         mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
13019         * config/mips/mips.c (cmp_operands): Delete.
13020         (mips_emit_compare): Get comparison operands from *op0/*op1.
13021         (mips_expand_scc): Get code/op0/op1/target from operands.  Assert
13022         that it succeeds.  Use op0/op1 instead of cmp_operands.
13023         (mips_expand_conditional_branch, mips_expand_conditional_move,
13024         mips_expand_conditional_trap): Likewise.
13025         (mips_block_move_loop): Use cbranch patterns.
13026         * config/mips/mips.h (cmp_operands): Delete.
13027
13028         * config/mmix/mmix.c (mmix_valid_comparison): Delete.
13029         (mmix_gen_compare_reg): Just return a register in the right CC mode.
13030         * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
13031         * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
13032         (*cmpcc_folded): Rename to...
13033         (*cmpdi_folded): this.
13034         (*cmpcc): Rename to...
13035         (*cmps): ... this.
13036         (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
13037         (bCC): Remove.
13038         (cbranchdi4): New.
13039         (cbranchdf4): New.  Handle invalid comparisons here.
13040         * config/mmix/predicates.md (float_comparison_operator): New.
13041
13042         * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
13043         zero_extract to be cheap in (compare (zero_extract) (const_int 0).
13044         * config/mn10300/mn10300.md (tst): Delete.
13045         (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
13046         Name these patterns and wrap RHS in a compare.
13047         (*cmpsi): Make this pattern private.  Include tst.
13048         (*cmpsf): Make this pattern private.
13049         (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
13050         (compare with zero peepholes): Likewise.
13051         (bCC): Remove.
13052         (cbranchsi4, cbranchsf4): New.
13053         (casesi): Use cbranchsi4.
13054
13055         * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
13056         hppa_branch_type): Delete.
13057         (return_addr_rtx): Use cbranchsi4.
13058         (emit_bcond_fp): Accept all operands.  Replace CODE with NE.
13059         Emit CCFPmode comparison here.
13060         (gen_cmp_fp): Delete, now part of emit_bcond_fp.
13061         * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
13062         hppa_branch_type): Delete.
13063         * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
13064         (movsicc, movdicc): Remove references to hppa_compare_op0,
13065         hppa_compare_op1 and compare_from_rtx.
13066         (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
13067         (casesi): Use cbranchsi4.
13068
13069         * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
13070         * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
13071         * config/pdp11/pdp11.md (register_or_const0_operand): New.
13072         (cmpdf, cmphi, cmpqi): Make private.  Add tst alternatives.
13073         (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
13074         (bCC): Delete.
13075         (cbranchdf4, cbranchhi4, cbranchqi4): New.
13076         (*branch, *branch_inverted): New.
13077
13078         * config/picochip/picochip.md (cbranchhi4): Use
13079         ordered_comparison_operator.
13080         (cmphi, bCC): Remove.
13081
13082         * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
13083         (trap_comparison_operator): Delete.
13084         * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
13085         rs6000_emit_cbranch): Accept mode and operands.
13086         * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
13087         rs6000_compare_fp_p): Delete.
13088         (rs6000_generate_compare): Accept mode and comparison.  Extract code
13089         and op0/op1 from there.  Replace references to rs6000_compare_op0
13090         and rs6000_compare_op1.
13091         (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
13092         extract result from passed operands.
13093         (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
13094         extract loc from passed operands.
13095         (rs6000_emit_cmove): Likewise.
13096         * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
13097         rs6000_compare_fp_p): Delete.
13098         * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
13099         (cbranch<GPR>4, cbranch<FP>4): New.
13100         (cstore<mode>4): New.  Consolidate here all choices about when to use
13101         portable or specialized sCC sequences.
13102         (stack_protect_test): Use cbranchsi4.
13103         (conditional_trap): Replace with ctrap<GPR>4.
13104         (conditional trap insn): Replace trap_comparison_operator with
13105         ordered_comparison_operator.
13106
13107         * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
13108         (s390_emit_prologue): Use ctrap.
13109         * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
13110         * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
13111         New predicates replacing...
13112         * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
13113         (cmp<GPR>, cmp<FP>, cmpcc): Delete.
13114         (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
13115         (add<mode>cc): Do not use s390_compare_op0/op1.
13116         (s<code>): Change to...
13117         (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
13118         (seq): Change to...
13119         (cstorecc4): ... this.  Handle EQ or NE equally.
13120         (*sne): Un-privatize for use in cstorecc4.
13121         (b<code>): Change to...
13122         (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
13123         (conditional_trap): Replace with...
13124         (ctrap<GPR>4, ctrap<FP>4): ... these.
13125         (stack_protect): Use cbranchcc4.
13126
13127         * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
13128         * config/score/score-protos.h (score_gen_cmp): Delete.
13129         * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
13130         (score_block_move-loop): Use cbranchsi4.
13131         * config/score/score.md (cbranchsi4): New.
13132         (cmpsi, bCC): Delete.
13133         * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
13134         (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
13135         * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
13136         (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
13137         * config/score/score3.h (score3_gen_cmp): Delete.
13138         * config/score/score7.h (score7_gen_cmp): Delete.
13139
13140         * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
13141         (sh_emit_scc_to_t): ... this.  Return void.
13142         (from_compare): Rename to...
13143         (sh_emit_compare_and_branch): ... this.
13144         (sh_emit_compare_and_set): New.
13145         (sh_expand_t_scc): Accept operands.
13146         * config/sh/predicates.md (sh_float_comparison_operator): New.
13147         * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
13148         (prepare_scc_operands): Rename to...
13149         (sh_emit_scc_to_t): ... this.  Return void.  Get op0/op1 from
13150         arguments.
13151         (sh_emit_cheap_store_flag): New.
13152         (sh_emit_set_t_insn): New.
13153         (from_compare): Rename to...
13154         (sh_emit_compare_and_branch): ... this.  Accept mode.  Rewrite
13155         handling of TARGET_SH2E floating point to avoid recursive call.
13156         Generate branch here.
13157         (sh_emit_compare_and_set): New.
13158         (sh_expand_t_scc): Get op0/op1 from arguments.
13159         (sh_emit_cheap_store_flag): New.
13160         * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
13161         cases.
13162         (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
13163         (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
13164         (movsicc, movdicc): Do nothing when it recreated operands from
13165         sh_compare_*. Use sh_emit_cheap_store_flag.  Adjust call to
13166         prepare_scc_operands (now sh_emit_scc_to_t).
13167         (udivdi3): Use cstoresi4.
13168         (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
13169         bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
13170         (cbranchint4_media, cbranchfp4_media): New.
13171         (casesi): Use cbranchdi4.
13172         (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
13173         Delete.
13174         (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
13175         (movnegt): Remove second operand.
13176         (cbranchsf4, cbranchdf4): New.
13177         (stack_protect): Use cbranchdi4/cbranchsi4.
13178
13179         * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
13180         (gen_compare_reg): Accept comparison, extract part of it to...
13181         (gen_compare_reg_1): ... this.
13182         (gen_compare_operator): Delete.
13183         (gen_v9_scc): Accept separate destination, comparison code and arms.
13184         Do not use sparc_compare_op0/sparc_compare_op1.
13185         (emit_scc_insn, emit_conditional_branch_insn): New.
13186         (emit_v9_brxx): Make static.  Remove useless assertion.
13187         (sparc_emit_float_lib_cmp): Return RTL instead of calling
13188         emit_cmp_insn.
13189         (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
13190         * config/sparc/sparc-protos.h (gen_compare_reg,
13191         sparc_emit_float_lib_cmp): Adjust prototype.
13192         (emit_scc_insn, emit_conditional_branch_insn): New.
13193         (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
13194         * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
13195         * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
13196         iterators to the top.
13197         (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
13198         snesi_special_extend, sCC, bCC, seqdi_special_trunc,
13199         snedi_special_trunc): Delete.
13200         (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
13201         and snedi_special_trunc.
13202         (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
13203         cbranchdi4, cbranch<F:mode>4): New.
13204         (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
13205         here.  Use gen_compare_reg instead of gen_compare_operator.
13206         (conditional_trap): Replace with...
13207         (ctrapsi4, ctrapdi4): ... this.
13208         (stack_protect_test): Use cbranchcc4.
13209
13210         * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
13211         argument to rtx.
13212         * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
13213         (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
13214         Change spu_compare_op0/op1 to op0/op1 throughout.  Get target
13215         from operands[0] or operands[3] depending on is_set.
13216         * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
13217         * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
13218         cmpdf, bCC), sCC: Remove.
13219         (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
13220         cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
13221         cstoredf4): New.
13222         (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
13223         spu_emit_branch_or_set.
13224
13225         * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
13226         Add two arguments.
13227         * config/stormy16/stormy16.h (xstormy16_compare_op0,
13228         xstormy16_compare_op1): Delete.
13229         * config/stormy16/stormy16.c (xstormy16_compare_op0,
13230         xstormy16_compare_op1): Delete.
13231         (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
13232         Adjust calls.
13233         * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
13234         (cmphi, cmpsi, bCC): Remove.
13235
13236         * config/v850/v850.md (tstsi, cmpsi): Fold into...
13237         (*cmpsi): ... this one.
13238         (cbranchsi4, cstoresi4): New.
13239         (bCC expanders): Delete.
13240         (sCC insns): Fold into...
13241         (*setcc): ... this one.
13242         (casesi): Do not use gen_cmpsi and gen_bgtu.
13243         (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
13244         (movsicc): Simplify.
13245         * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
13246
13247         * config/vax/vax-protos.h (cond_name): New.
13248         (vax_output_conditional_branch): Remove.
13249         * config/vax/vax.c (cond_name): New.
13250         (vax_output_conditional_branch): Remove.
13251         * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
13252         * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
13253         (cmp<VAXint>, cmp<VAXfp>): Privatize.  Add constraints for tst.
13254         (bit<VAXint>): Wrap source with (compare).
13255         (b<code> and following unnamed pattern): Rename to *branch and
13256         *branch_reversed.  Change macroization to match_operator.
13257         (cbranch<VAXint>4, cbranch<VAXfp>4): New.
13258
13259         * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
13260         * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
13261         Change last argument to machine_mode.
13262         (xtensa_expand_scc): Add machine_mode argument.
13263         * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
13264         (gen_conditional_move, xtensa_expand_conditional_branch,
13265         xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
13266         instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
13267         Adjust operand numbers.
13268         * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
13269         Delete.
13270         * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
13271         (cmpsi, cmpsf, b<code>, s<code>): Delete.
13272         (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
13273
13274 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
13275
13276         * optabs.c (prepare_cmp_insn): Temporarily disable test that
13277         causes spurious differences between trunk and cond-optab branch.
13278
13279 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
13280
13281         PR target/37137
13282         * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
13283
13284 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
13285
13286         * tree.c (iterative_hash_pointer): Delete.
13287         (iterative_hash_expr): Short-circuit handling of NULL pointer.
13288         Hash UIDs and versions of SSA names.  Don't special-case built-in
13289         function declarations.
13290
13291 2009-05-11  Ian Lance Taylor  <iant@google.com>
13292
13293         PR bootstrap/40103
13294         * graphite.c: Force -Wc++-compat to only be a warning before
13295         #including "cloog/cloog.h".
13296
13297 2009-05-11  Martin Jambor  <mjambor@suse.cz>
13298
13299         * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
13300
13301 2009-05-11  Jan Hubicka  <jh@suse.cz>
13302
13303         * tree-ssa-loop-ivcanon.c: Include target.h
13304         (struct loop_size): new structure.
13305         (constant_after_peeling): New predicate.
13306         (tree_estimate_loop_size): New function.
13307         (estimated_unrolled_size): Rewrite for new estimates.
13308         (try_unroll_loop_completely): Use new estimates.
13309         * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
13310
13311 2009-05-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13312
13313         * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
13314         libcpp interface change.
13315         (spu_macro_to_expand): Likewise.
13316
13317 2009-05-11  Paolo Bonzini  <bonzini@gnu.org>
13318
13319         PR tree-optimization/40026
13320         * gimplify.c (gimplify_init_constructor): Change initial conditional
13321         to assertion.  Rewrite TREE_OPERAND (*expr_p, 1) after
13322         optimize_compound_literals_in_ctor.
13323
13324 2009-05-11  Nathan Sidwell  <nathan@codesourcery.com>
13325
13326         * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
13327         New devices.
13328         * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
13329
13330 2009-05-11  H.J. Lu  <hongjiu.lu@intel.com>
13331
13332         * tree-vect-data-refs.c (vect_analyze_group_access): Use
13333         HOST_WIDE_INT for gap.
13334
13335 2009-05-11  Ira Rosen  <irar@il.ibm.com>
13336
13337         PR tree-optimization/40074
13338         * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
13339         account in group size and step comparison.
13340
13341 2009-05-11  Richard Guenther  <rguenther@suse.de>
13342
13343         * passes.c (init_optimization_passes): Strip now incorrect comment.
13344         (execute_function_todo): Do not set PROP_alias.
13345         * tree-pass.h (PROP_alias): Remove.
13346         * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
13347         * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
13348         * tree-nrv.c (pass_return_slot): Likewise.
13349         * tree-object-size.c (pass_object_sizes): Likewise.
13350         * tree-ssa-dom.c (pass_dominator): Likewise.
13351         (pass_phi_only_cprop): Likewise.
13352         * tree-ssa-dse.c (pass_dse): Likewise.
13353         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
13354         (pass_cselim): Likewise.
13355         * tree-ssa-pre.c (pass_pre): Likewise.
13356         (pass_fre): Likewise.
13357         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
13358         * tree-ssa-sink.c (pass_sink_code): Likewise.
13359         * tree-stdarg.c (pass_stdarg): Likewise.
13360         * tree-tailcall.c (pass_tail_calls): Likewise.
13361         * tree-vrp.c (pass_vrp): Likewise.
13362
13363 2009-05-10  Ian Lance Taylor  <iant@google.com>
13364
13365         * basic-block.h (enum profile_status): Break out of struct
13366         control_flow_graph.
13367         * cgraph.h (struct inline_summary): Break out of struct
13368         cgraph_local_info.
13369         * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
13370         of struct cgraph_order_sort.
13371         * combine.c (enum undo_kind): New enum, broken out of struct undo.
13372         * cse.c (struct branch_path): Break out of struct
13373         cse_basic_block_data.
13374         * except.h (enum eh_region_type): Break out of struct eh_region.
13375         * gcc.c (enum add_del): Break out of struct modify_target.
13376         * genrecog.c (enum decision_type): Break out of struct decision_test.
13377         * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
13378         ggc_pch_data.
13379         * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
13380         * regmove.c (enum match_use): New enum, broken out of struct match.
13381         * sched-int.h (enum post_call_group): New enum, broken out of
13382         struct deps.
13383         (struct deps_reg): Break out of struct deps.
13384         * target.h (struct asm_int_op): Break out of struct gcc_target.
13385         * tree-eh.c (struct goto_queue_node): Break out of struct
13386         leh_tf_state.
13387         * tree-inline.h (enum copy_body_cge_which): Break out of
13388         copy_body_data.
13389         * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
13390
13391         * c-decl.c (in_struct, struct_types): New static variables.
13392         (pushtag): Add loc parameter.  Change all callers.
13393         (lookup_tag): Add ploc parameter.  Change all callers.
13394         (check_compound_literal_type): New function.
13395         (parser_xref_tag): Add loc parameter.  Change all callers.  If
13396         -Wc++-compat, warn about struct/union/enum types defined within a
13397         struct or union.
13398         (start_struct): Add enclosing_in_struct, enclosing_struct_types,
13399         and loc parameters.  Change all callers.  Change error calls to
13400         error_at, using loc.  For a redefinition, if the location of the
13401         original definition is known, report it.  Set in_struct and
13402         struct_types.  If -Wc++-compat warn if in sizeof, typeof, or alignof.
13403         (finish_struct): Add new parameters enclosing_in_struct and
13404         enclosing_struct_types.  Change all callers.  Set
13405         C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
13406         in the struct.  If in a struct, add this struct to struct_types.
13407         (start_enum): Add loc parameter.  Change all callers.  Use
13408         error_at for errors, using loc.  For a redefinition, if the
13409         location of the original definition is known, report it.  If in a
13410         struct, add this enum type to struct_types.  If -Wc++-compat warn
13411         if in sizeof, typeof, or alignof.
13412         * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
13413         (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
13414         (c_parser_enum_specifier): Get enum location for start_enum.
13415         (c_parser_struct_or_union_specifier): Get struct location for
13416         start_struct.  Save in_struct and struct_types status between
13417         start_struct and finish_struct.
13418         (c_parser_cast_expression): Get location of cast.
13419         (c_parser_alignof_expression): Get location of type.
13420         (c_parser_postfix_expression): Likewise.
13421         (c_parser_postfix_expression_after_paren_type): Add type_loc
13422         parameter.  Change all callers.  Call check_compound_literal_type.
13423         Use type_loc for error about variable size type.
13424         * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
13425         of an enum constant from an enum type defined in a struct or union.
13426         (c_cast_expr): Add loc parameter.  Change all callers.  If
13427         -Wc++-compat, warn about defining a type in a cast.
13428         * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
13429         (start_enum, start_struct, finish_struct): Update declarations.
13430         (parser_xref_tag, c_cast_expr): Update declarations.
13431         (check_compound_literal_type): Declare.
13432
13433 2009-05-11  Ben Elliston  <bje@au.ibm.com>
13434
13435         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
13436         for recent libcpp interface change.
13437         (rs6000_macro_to_expand): Likewise.
13438
13439 2009-05-10  Michael Matz  <matz@suse.de>
13440
13441         PR target/40031
13442         * config/arm/arm.c (require_pic_register): Emit on entry edge,
13443         not at entry of function.
13444
13445 2009-05-10  Richard Guenther  <rguenther@suse.de>
13446
13447         PR tree-optimization/40081
13448         Revert
13449         * tree-sra.c (instantiate_element): Instantiate scalar replacements
13450         using the main variant of the element type.  Do not fiddle with
13451         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
13452
13453         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
13454         structs with volatile fields.
13455
13456 2009-05-10  Jan Hubicka  <jh@suse.cz>
13457
13458         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
13459         (estimate_move_cost): Assert that it does not get called for
13460         VOID_TYPE_P.
13461         (estimate_num_insns): Skip VOID types in argument handling.
13462         (optimize_inline_calls): Delete unreachable blocks and verify that
13463         callgraph is valid.
13464
13465 2009-05-10  Jan Hubicka  <jh@suse.cz>
13466
13467         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
13468         * cgraph.c (cgraph_mark_address_taken_node): New function.
13469         (dump_cgraph_node): Dump new flag.
13470         * cgraph.h (struct cgraph_node): Add address_taken.
13471         (cgraph_mark_address_taken_node): New function.
13472         * ipa.c (cgraph_postorder): Prioritize functions with address taken
13473         since new direct calls can be born.
13474
13475 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
13476
13477         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
13478         tok->val.node.node.
13479
13480 2009-05-10  Jan Hubicka  <jh@suse.cz>
13481
13482         PR middle-end/40084
13483         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
13484         argument; rewrite.
13485         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
13486         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
13487         * tree-inline.c (copy_bb): Set frequency correctly.
13488         (fold_marked_statements): Update call to
13489         cgraph_update_edges_for_call_stmt.
13490
13491 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
13492
13493         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
13494         identifiers in diagnostics.
13495         * config/arm/arm.c (arm_handle_fndecl_attribute,
13496         arm_handle_isr_attribute): Likewise.
13497         * config/avr/avr.c (avr_handle_progmem_attribute,
13498         avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
13499         * config/bfin/bfin.c (handle_int_attribute,
13500         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
13501         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
13502         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
13503         Likewise.
13504         * config/darwin.c (darwin_handle_kext_attribute,
13505         darwin_handle_weak_import_attribute): Likewise.
13506         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
13507         h8300_handle_eightbit_data_attribute,
13508         h8300_handle_tiny_data_attribute): Likewise.
13509         * config/i386/i386.c (ix86_handle_cconv_attribute,
13510         ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
13511         * config/i386/winnt.c (ix86_handle_shared_attribute,
13512         ix86_handle_selectany_attribute): Likewise.
13513         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
13514         * config/m32c/m32c.c (function_vector_handler): Likewise.
13515         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
13516         m68hc11_handle_fntype_attribute): Likewise.
13517         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
13518         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
13519         * config/mips/mips.c (mips_insert_attributes,
13520         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
13521         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
13522         rs6000_handle_struct_attribute): Likewise.
13523         * config/sh/sh.c (sh_insert_attributes,
13524         sh_handle_resbank_handler_attribute,
13525         sh_handle_interrupt_handler_attribute,
13526         sh2a_handle_function_vector_handler_attribute,
13527         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
13528         Likewise.
13529         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
13530         * config/spu/spu.c (spu_handle_fndecl_attribute,
13531         spu_handle_vector_attribute): Likewise.
13532         * config/stormy16/stormy16.c
13533         (xstormy16_handle_interrupt_attribute): Likewise.
13534         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
13535         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
13536
13537 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
13538
13539         * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
13540         (pp_translate_identifiers): New.
13541         (pp_identifier): Only conditionally translate identifier to locale
13542         character set.
13543         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
13544         (pp_base_tree_identifier): Only conditionally translate identifier
13545         to locale character set.
13546         * c-pretty-print.c (M_): Define.
13547         (pp_c_type_specifier, pp_c_primary_expression): Mark English
13548         fragments for conditional translation with M_.
13549         * tree-pretty-print.c (maybe_init_pretty_print): Disable
13550         identifier translation.
13551
13552 2009-05-10  Richard Guenther  <rguenther@suse.de>
13553
13554         PR tree-optimization/40081
13555         * tree-sra.c (instantiate_element): Instantiate scalar replacements
13556         using the main variant of the element type.  Do not fiddle with
13557         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
13558
13559 2009-05-09  Jan Hubicka  <jh@suse.cz>
13560
13561         PR middle-end/40080
13562         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
13563         indirect calls; verify cgraph afterwards.
13564
13565 2009-05-09  Jan Hubicka  <jh@suse.cz>
13566
13567         PR bootstrap/40082
13568         * ipa.c (update_inlined_to_pointer): New function.
13569         (cgraph_remove_unreachable_nodes): Use it.
13570
13571 2009-05-09  Jan Hubicka  <jh@suse.cz>
13572
13573         * tree-eh.c (struct leh_state): Remove prev_try.
13574         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
13575         not track prev_try.
13576         * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
13577         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
13578         remove_eh_handler_and_replace, foreach_reachable_handler,
13579         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
13580         * except.h (struct eh_region): Remove eh_region_u_cleanup.
13581         (gen_eh_region_cleanup): Update prototype.
13582
13583 2009-05-09  Jan Hubicka  <jh@suse.cz>
13584
13585         PR middle-end/40043
13586         * except.c (copy_eh_region): Always set prev_try.
13587         (redirect_eh_edge_to_label): Find outer try.
13588         (foreach_reachable_handler): When looking for prev try
13589         handle case where previous try is not going to be taken.
13590
13591 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
13592
13593         PR tree-optimization/40049
13594         * tree-vect-stmts.c (vectorizable_operation): If the machine has
13595         only vector/vector shifts, convert the type of the constant to the
13596         appropriate type to avoid building incorrect trees, which
13597         eventually have problems with garbage collection.
13598
13599 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
13600
13601         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
13602         -1 for complex floating-point types if honoring signed zeros.
13603
13604 2009-05-08  Jan Hubicka  <jh@suse.cz>
13605
13606         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
13607         argument; handle correctly when profile is absent.
13608         (build_cgraph_edges): Update.
13609         (rebuild_cgraph_edges): Update.
13610         * cgraph.c: Do not include varray.h.
13611         (cgraph_set_call_stmt_including_clones): New function.
13612         (cgraph_create_edge_including_clones): Likewise
13613         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
13614         (cgraph_update_edges_for_call_stmt): Handle clones.
13615         (cgraph_remove_node): Handle clone tree.
13616         (cgraph_remove_node_and_inline_clones): New function.
13617         (dump_cgraph_node): Dump clone tree.
13618         (cgraph_clone_node): Handle clone tree.
13619         (clone_function_name): Bring here from tree-inline.c.
13620         (cgraph_create_virtual_clone): New function.
13621         * cgraph.h (ipa_replace_map): Move here from ipa.h.
13622         (cgraph_clone_info): New function.
13623         (strut cgraph_node): Add clone_info and new clone tree pointers.
13624         (cgraph_remove_node_and_inline_clones,
13625         cgraph_set_call_stmt_including_clones,
13626         cgraph_create_edge_including_clones,
13627         cgraph_create_virtual_clone): Declare.
13628         (cgraph_function_versioning): Use VEC argument.
13629         (compute_call_stmt_bb_frequency): Update prototype.
13630         (cgraph_materialize_all_clones): New function.
13631         * ipa-cp.c (ipcp_update_cloned_node): Remove.
13632         (ipcp_create_replace_map): Update to VECtors.
13633         (ipcp_update_callgraph): Use virtual clones.
13634         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
13635         (ipcp_update_profiling): Do not update local profiling.
13636         (ipcp_insert_stage): Use VECtors and virtual clones.
13637         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
13638         (clone_of_p): New function.
13639         (cgraph_preserve_function_body_p): Use clone tree.
13640         (cgraph_optimize): Materialize clones.
13641         (cgraph_function_versioning): Update for VECtors.
13642         (save_inline_function_body): Use clone tree.
13643         (cgraph_materialize_clone): New function.
13644         (cgraph_materialize_all_clones): Likewise.
13645         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
13646         * ipa.c: Include gimple.h.
13647         (cgraph_remove_unreachable_nodes): Use clone tree.
13648         * ipa-prop.c (ipa_note_param_call): Update call to
13649         compute_call_stmt_bb_frequencycall.
13650         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
13651         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
13652         (copy_bb): Handle updating of clone tree; add new edge when new call
13653         appears.
13654         (expand_call_inline): Be strict about every call having edge.
13655         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
13656         (delete_unreachable_blocks_update_callgraph): New function.
13657         (tree_function_versioning): Use VECtors; always remove unreachable
13658         blocks and fold conditionals.
13659         * tree-inline.h: Do not include varray.h.
13660         (tree_function_versioning): Remove.
13661         * Makefile.in (GTFILES): Remove tree-inline.c
13662         * passes.c (do_per_function): Do only functions having body.
13663         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
13664         tree.
13665
13666 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
13667             Andrew Morrow  <acm@google.com>
13668
13669         PR c/36892
13670         * c-common.c (c_common_attribute_table): Permit deprecated
13671         attribute to take an optional argument.
13672         (handle_deprecated_attribute): If the optional argument to
13673         __attribute__((deprecated)) is not a string ignore the attribute
13674         and emit a warning.
13675
13676         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
13677         * c-typeck.c (build_component_ref): Likewise.
13678         (build_external_ref): Likewise.
13679
13680         * toplev.c (warn_deprecated_use): Add an attribute argument.
13681         Emit the message associated with __attribute__((deprecated)).
13682
13683         * toplev.h (warn_deprecated_use): Updated.
13684
13685         * doc/extend.texi: Document new optional parameter to
13686         __attribute__((deprecated))
13687
13688 2009-05-08  Michael Eager <eager@eagercon.com>
13689
13690         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
13691         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
13692
13693 2009-05-08  Richard Guenther  <rguenther@suse.de>
13694
13695         PR tree-optimization/40062
13696         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
13697         Avoid exponential behavior.
13698
13699 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
13700
13701         PR rtl-optimization/33928
13702         PR 26854
13703         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
13704         process_uses, build_single_def_use_links): New.
13705         (update_df): Update use_def_ref.
13706         (forward_propagate_into): Use get_def_for_use instead of use-def
13707         chains.
13708         (fwprop_init): Call build_single_def_use_links and let it initialize
13709         dataflow.
13710         (fwprop_done): Free use_def_ref.
13711         (fwprop_addr): Eliminate duplicate call to df_set_flags.
13712         * df-problems.c (df_rd_simulate_artificial_defs_at_top,
13713         df_rd_simulate_one_insn): New.
13714         (df_rd_bb_local_compute_process_def): Update head comment.
13715         (df_chain_create_bb): Use the new RD simulation functions.
13716         * df.h (df_rd_simulate_artificial_defs_at_top,
13717         df_rd_simulate_one_insn): New.
13718         * opts.c (decode_options): Enable fwprop at -O1.
13719         * doc/invoke.texi (-fforward-propagate): Document this.
13720
13721 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
13722
13723         PR c/24581
13724         * c-typeck.c (build_binary_op): Handle arithmetic between one real
13725         and one complex operand specially.
13726         * tree-complex.c (some_nonzerop): Do not identify a real value as
13727         zero if flag_signed_zeros.
13728
13729 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
13730
13731         PR rtl-optimization/33928
13732         * loop-invariant.c (record_use): Fix && vs. || mishap.
13733
13734 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
13735
13736         PR rtl-optimization/33928
13737         * loop-invariant.c (struct use): Add addr_use_p.
13738         (struct def): Add n_addr_uses.
13739         (struct invariant): Add cheap_address.
13740         (create_new_invariant): Set cheap_address.
13741         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
13742         (record_uses): Pass df_ref to record_use.
13743         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
13744         used only as such.
13745
13746 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
13747
13748         * config/sh/sh.c: Do not include c-pragma.h.
13749
13750 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13751
13752         * config/spu/spu.c: Remove include of c-common.h.
13753
13754 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
13755
13756         PR c/39037
13757         * c-common.h (mark_valid_location_for_stdc_pragma,
13758         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
13759         clear_float_const_decimal64, float_const_decimal64_p): New.
13760         * c.opt (Wunsuffixed-float-constants): New.
13761         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
13762         unsuffixed float constant, handle new warning.
13763         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
13764         * c-decl.c (c_scope): New flag float_const_decimal64.
13765         (set_float_const_decimal64, clear_float_const_decimal64,
13766         float_const_decimal64_p): New.
13767         (push_scope): Set new flag.
13768         * c-parser.c (c_parser_translation_unit): Mark when it's valid
13769         to use STDC pragmas.
13770         (c_parser_external_declaration): Ditto.
13771         (c_parser_compound_statement_nostart): Ditto.
13772         * c-pragma.c (valid_location_for_stdc_pragma,
13773         mark_valid_location_for_stdc_pragma,
13774         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
13775         handle_pragma_float_const_decimal64): New.
13776         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
13777         * cp/semantics.c (valid_location_for_stdc_pragma_p,
13778         set_float_const_decimal64, clear_float_const_decimal64,
13779         float_const_decimal64_p): New dummy functions.
13780         * doc/extend.texi (Decimal Float): Remove statement that the
13781         pragma, and suffix for double constants, are not supported.
13782         * doc/invoke.texi (Warning Options): List new option.
13783         (-Wunsuffixed-float-constants): New.
13784
13785 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
13786
13787         * config/i386/i386.c: Do not include c-common.h.
13788
13789 2009-05-07  Mark Heffernan  <meheff@google.com>
13790
13791         * doc/invoke.texi (Debugging Options): Document change of debugging
13792         dump location.
13793         * opts.c (decode_options): Make dump_base_name relative to
13794         aux_base_name directory.
13795
13796 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
13797
13798         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
13799         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
13800
13801 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
13802
13803         * Makefile.in (install-plugin): Simplify a bit.
13804
13805 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
13806
13807         * Makefile.in (OBJS-common): Add regcprop.o.
13808         (regcprop.o): New.
13809         * timevar.def (TV_CPROP_REGISTERS): New.
13810         * regrename.c (regrename_optimize): Return 0.
13811         (rest_of_handle_regrename): Delete.
13812         (pass_rename_registers): Point to regrename_optimize.
13813         (struct value_data_entry, struct value_data,
13814         kill_value_one_regno, kill_value_regno, kill_value,
13815         set_value_regno, init_value_data, kill_clobbered_value,
13816         kill_set_value, kill_autoinc_value, copy_value,
13817         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
13818         replace_oldest_value_reg, replace_oldest_value_addr,
13819         replace_oldest_value_mem, copyprop_hardreg_forward_1,
13820         debug_value_data, validate_value_data): Move...
13821         * regcprop.c: ... here.
13822         (rest_of_handle_cprop): Delete.
13823         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
13824
13825 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
13826
13827         PR middle-end/40057
13828         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
13829         GEN_INT for 1 << bitnum.
13830         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
13831         build_int_cst_type.
13832
13833 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
13834
13835         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
13836         Remove wrong description of "nand" operation.
13837
13838 2009-05-06  Richard Guenther  <rguenther@suse.de>
13839             Adam Nemet  <anemet@caviumnetworks.com>
13840
13841         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
13842         comment.  Add that if LHS is not a gimple register, then RHS1 has
13843         to be a single object (GIMPLE_SINGLE_RHS).
13844
13845 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
13846
13847         * expr.c (get_def_for_expr): Move it up in the file.
13848         (store_field): When expanding a bit-field store, look at the
13849         defining gimple stmt for the masking conversion.
13850
13851 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
13852
13853         PR middle-end/39986
13854         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
13855         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
13856         32-bit memcpy into long.
13857
13858 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
13859
13860         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
13861         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
13862         new_reg_loc_descr.
13863         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
13864         instead of appending DW_OP_deref*.
13865
13866 2009-05-06  Michael Matz  <matz@suse.de>
13867
13868         PR middle-end/40021
13869         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
13870         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
13871
13872 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
13873
13874         * Makefile.in (install-plugin): Fix srcdir handling.
13875
13876 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
13877
13878         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
13879         when processing for not_regs_needed bitmap.
13880         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
13881         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while
13882         handling it for rhs.
13883
13884 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
13885
13886         * config/i386/i386.md (unnamed inc/dec peephole): Use
13887         optimize_insn_for_size_p instead of optimize_size.
13888         * config/i386/predicates.md (incdec_operand): Likewise.
13889         (aligned_operand): Likewise.
13890         * config/i386/sse.md (divv8sf3): Likewise.
13891         (sqrtv8sf2): Likewise.
13892
13893 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
13894
13895         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
13896
13897         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
13898
13899 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
13900
13901         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
13902         ssemodesuffixf2c with avxmodesuffixf2c.
13903
13904 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
13905
13906         PR c/40032
13907         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
13908
13909 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
13910
13911         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
13912         (struct tree_base): Adjust spacing for 8 bit boundaries.
13913         (struct tree_decl_common): Add decl_by_reference_flag bit.
13914         (DECL_BY_REFERENCE): Adjust.
13915         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
13916         print DECL_BY_REFERENCE bit.
13917         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
13918         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
13919         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
13920         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
13921         unconditionally.
13922
13923         PR middle-end/39666
13924         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
13925         range of the type, but default label is missing, add it with one
13926         of the existing labels instead of adding a new label for it.
13927
13928 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
13929
13930         * dwarf.h: Remove.
13931
13932 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
13933
13934         * Makefile.in (enable_plugin, plugin_includedir): New.
13935         (install): Depend on install-plugin.
13936         (PLUGIN_HEADERS): New.
13937         (install-plugin): New.
13938         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
13939
13940 2009-05-05  Richard Guenther  <rguenther@suse.de>
13941
13942         PR tree-optimization/40022
13943         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
13944         the only vuse.
13945         (phivn_valid_p): Fix tuplification error, simplify.
13946         (phiprop_insert_phi): Add dumps.
13947         (propagate_with_phi): Simplify.
13948
13949 2009-05-05  Richard Guenther  <rguenther@suse.de>
13950
13951         PR middle-end/40023
13952         * builtins.c (gimplify_va_arg_expr): Properly build the address.
13953
13954 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
13955
13956         * tree.h (strip_float_extensions): Remove duplicate declaration.
13957         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
13958         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
13959         block_ultimate_origin): Rearrange the declarations line to match the
13960         comment that indicates the .c file which the functions are defined.
13961         (dwarf2out_*, set_decl_rtl): Add comment.
13962         (get_base_address): Adjust comment.
13963         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
13964         declarations line and add comment.
13965         (is_builtin_name): Add blank after function name, for clarity.
13966
13967 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
13968
13969         * attribs.c (decl_attributes): Use %qE for identifiers in
13970         diagnostics.
13971         * cgraphunit.c (verify_cgraph_node): Translate function names to
13972         locale character set in diagnostics.
13973         * coverage.c (get_coverage_counts): Use %qE for identifiers in
13974         diagnostics.
13975         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
13976         Document that functions are named in UTF-8.
13977         * expr.c (expand_expr_real_1): Translate function names to locale
13978         character set in diagnostics.
13979         * gimplify.c (omp_notice_variable, omp_is_private,
13980         gimplify_scan_omp_clauses): Use %qE for identifiers in
13981         diagnostics.
13982         * langhooks.c (lhd_print_error_function): Translate function names
13983         to locale character set.
13984         * langhooks.h (decl_printable_name): Document that return value is
13985         in internal character set.
13986         * stmt.c: Include pretty-print.h
13987         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
13988         diagnostics.
13989         (resolve_operand_name_1): Translate named operand name to locale
13990         character set.
13991         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
13992         diagnostics.
13993         * toplev.c (announce_function): Translate function names to locale
13994         character set.
13995         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
13996         (default_tree_printer): Use pp_identifier or translate identifiers
13997         to locale character set.  Mark "<anonymous>" for translation.
13998         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
13999         for identifiers in diagnostics.
14000         * tree.c (handle_dll_attribute): Use %qE for identifiers in
14001         diagnostics.
14002         * varasm.c (output_constructor): Use %qE for identifiers in
14003         diagnostics.
14004
14005 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
14006
14007         * configure.ac: use ` ` instead of $()
14008         * configure: Regenerate.
14009
14010 2009-05-05  Ben Elliston  <bje@au.ibm.com>
14011
14012         * config/pa/linux-atomic.c: Eliminate conditional include of
14013         errno.h on non-LP64 systems to simplify build requirements.
14014
14015 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
14016
14017         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
14018         diagnostics.
14019         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
14020         and pass value to identifier_to_locale.
14021         (warn_variable_length_array): Make name a tree.
14022         (grokdeclarator): Separate diagnostic texts for named and unnamed
14023         declarators.  Use %qE for named declarators.
14024         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
14025         diagnostics.
14026         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
14027         identifiers in diagnostics.
14028         * c-typeck.c (push_member_name, start_init): Pass identifiers to
14029         identifier_to_locale.  Mark "anonymous" strings for translation.
14030
14031 2009-05-04  Michael Eager <eager@eagercon.com>
14032
14033         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
14034         address for DImode/DFmode only if double-precision FP regs.
14035
14036 2009-05-04  Michael Eager <eager@eagercon.com>
14037
14038         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
14039         TARGET_SINGLE_FLOAT check.
14040
14041 2009-05-04  Michael Eager <eager@eagercon.com>
14042
14043         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
14044
14045 2009-05-04  Michael Eager <eager@eagercon.com>
14046
14047         * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
14048         * config/rs6000/t-xilinx: New
14049
14050 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
14051
14052         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
14053         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
14054         * gcc/explow.c (memory_address): Use target hook.
14055         * gcc/targhooks.c (default_legitimize_address): New.
14056         * gcc/targhooks.h (default_legitimize_address): New.
14057         * gcc/target.h (legitimize_address): New.
14058         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
14059         (TARGET_INITIALIZER): Include it.
14060         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
14061
14062         * config/bfin/bfin-protos.h (legitimize_address): Remove.
14063         * config/bfin/bfin.c (legitimize_address): Remove.
14064         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
14065         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
14066         Remove.
14067         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
14068         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
14069
14070         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
14071         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
14072         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
14073         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
14074         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
14075         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
14076         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
14077         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
14078         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
14079         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
14080         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
14081         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
14082         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
14083         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
14084         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
14085         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
14086         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
14087         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
14088         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
14089         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
14090         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
14091         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
14092         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
14093
14094         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
14095         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
14096         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
14097         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
14098         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
14099         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
14100         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
14101         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
14102         (thumb_legitimize_address): Delete.
14103         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
14104         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
14105         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
14106         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
14107         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
14108         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
14109         Delete.
14110         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
14111         Delete.
14112
14113         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
14114         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
14115         * config/m32r/m32r.c (m32r_legitimize_address): New.
14116         * config/m68k/m68k.c (m68k_legitimize_address): New.
14117         * config/score/score.c (score_legitimize_address): Standardize.
14118         * config/score/score3.c (score3_legitimize_address): Standardize.
14119         * config/score/score3.h (score3_legitimize_address): Adjust.
14120         * config/score/score7.c (score7_legitimize_address): Standardize.
14121         * config/score/score7.h (score7_legitimize_address): Adjust.
14122         * config/sh/sh.c (sh_legitimize_address): New.
14123         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
14124
14125         * gcc/config/s390/s390.c (legitimize_address): Rename to...
14126         (s390_legitimize_address): ... this.
14127         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
14128         (sparc_legitimize_address): ... this.
14129         * gcc/config/i386/i386.c (legitimize_address): Rename to...
14130         (ix86_legitimize_address): ... this.
14131         * gcc/config/avr/avr.c (legitimize_address): Rename to...
14132         (avr_legitimize_address): ... this.
14133         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
14134         (mn10300_legitimize_address): ... this.
14135         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
14136         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
14137         (alpha_expand_mov): Adjust call.
14138
14139         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
14140         * config/spu/spu.c (spu_legitimize_address): Likewise.
14141         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
14142         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
14143
14144 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
14145
14146         * intl.c (locale_encoding, locale_utf8): New.
14147         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
14148         * intl.h (locale_encoding, locale_utf8): Declare.
14149         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
14150         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
14151         New.
14152         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
14153         argument.
14154         (pp_tree_identifier): Define to call pp_base_tree_identifier.
14155         (pp_base_tree_identifier): Declare as function.
14156         (identifier_to_locale): Declare.
14157         * Makefile.in (pretty-print.o): Update dependencies.
14158         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
14159
14160 2009-05-04  Richard Guenther  <rguenther@suse.de>
14161
14162         PR middle-end/40015
14163         * builtins.c (fold_builtin_memory_op): Do not decay to element
14164         type if the size matches the whole array.
14165
14166 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
14167
14168         * expmed.c (synth_mult): When trying out a shift, pass the result
14169         of a signed shift.
14170
14171 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
14172
14173         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
14174         (shiftsub1_cost): New.
14175         (init_expmed): Compute shiftsub1_cost.
14176         (synth_mult): Optimize multiplications by constants of the form
14177         -(2^^m-1) for some constant positive integer m.
14178
14179 2009-05-03  Richard Guenther  <rguenther@suse.de>
14180
14181         PR c/39983
14182         * c-typeck.c (array_to_pointer_conversion): Do not built
14183         ADDR_EXPRs of arrays of pointer-to-element type.
14184         * c-gimplify.c (c_gimplify_expr): Revert change fixing
14185         up wrong ADDR_EXPRs after-the-fact.
14186         * c-common.c (strict_aliasing_warning): Strip pointer
14187         conversions for obtaining the original type.
14188         * builtins.c (fold_builtin_memset): Handle array types.
14189         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
14190         and array types
14191
14192 2009-05-03  Richard Guenther  <rguenther@suse.de>
14193
14194         PR middle-end/23329
14195         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
14196         Do not lose casts from array types with unknown extent to array
14197         types with known extent.
14198         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
14199         alias set compatibility.
14200
14201 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14202
14203         * flags.h (extra_warnings): Delete.
14204         * toplev.c (process_options): Handle Wuninitialized here.
14205         * opts.c (extra_warnings): Delete.
14206         (set_Wextra): Delete.
14207         (common_handle_option): -Wextra can be handled automatically.
14208         * c-opts.c (c_common_handle_option): Delete obsolete code.
14209         (c_common_post_options): Simplify comment.
14210         * common.opt (W): Add Var.
14211         (Wextra): Add Var.
14212         (Wuninitialized): Initialize to -1.
14213
14214 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
14215             Richard Guenther  <rguenther@suse.de>
14216
14217         * expr.c (get_def_for_expr): New function.
14218         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
14219         SSA rather than trees.
14220         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
14221         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
14222
14223 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
14224
14225         * c-common.c (reswords): Add _Imaginary.
14226         * c-common.c (enum rid): Add RID_IMAGINARY.
14227
14228 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
14229
14230         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
14231         Patch by Richard Guenther.
14232
14233 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
14234
14235         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
14236         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
14237         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
14238         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
14239         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
14240         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
14241         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
14242         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
14243         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
14244         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
14245         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
14246         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
14247         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
14248         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
14249         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
14250         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
14251         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
14252         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
14253
14254 2009-05-02  Richard Guenther  <rguenther@suse.de>
14255
14256         PR tree-optimization/39940
14257         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
14258         doing so.
14259
14260 2009-05-02  Richard Guenther  <rguenther@suse.de>
14261
14262         PR middle-end/40001
14263         * tree-ssa.c (execute_update_addresses_taken): Properly check
14264         if we can mark a variable DECL_GIMPLE_REG_P.
14265         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
14266         back to the end of the function.
14267         (is_gimple_reg_type): Remove complex type special casing.
14268         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
14269         if not optimizing.
14270
14271 2009-05-02  Ben Elliston  <bje@au.ibm.com>
14272
14273         * doc/collect2.texi (Collect2): Document search path behaviour
14274         when configured with --with-ld.
14275
14276 2009-05-02  Jan Hubicka  <jh@suse.cz>
14277
14278         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
14279         parameter; update callers.
14280         (coalesce_cost_edge): EH edges are costier because they needs
14281         splitting even if not critical and even more costier when there are
14282         multiple EH predecestors.
14283
14284 2009-05-02  Jan Hubicka  <jh@suse.cz>
14285
14286         * except.c (remove_eh_handler_and_replace): Handle updating after
14287         removing TRY blocks.
14288
14289 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
14290
14291         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
14292
14293 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
14294
14295         * varasm.c: Do not include c-pragma.h.
14296         * attribs.c: Do not incude c-common.h.
14297
14298 2009-05-01  Michael Matz  <matz@suse.de>
14299
14300         * calls.c (initialize_argument_information): Handle SSA names like
14301         decls with a non MEM_P DECL_RTL.
14302
14303 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
14304
14305         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
14306         * ipa-utils.c: Likewise.
14307         * ipa-type-escape.c: Likewise.
14308         * cgraphunit.c Do not include c-common.h.
14309         * ipa-pure-const.c: Likewise.
14310         * tree-if-conv.c: Likewise.
14311         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
14312         * ipa-struct-reorg.c: Likewise.
14313         * tree-nomudflap.c: Likewise.
14314         * tree-ssa-structalias.c: Likewise.
14315
14316 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
14317
14318         * store-motion.c: Many cleanups to make this pass a first-class
14319         citizen instead of an appendix to gcse load motion.  Add TODO list
14320         to make this pass faster/cleaner/better.
14321
14322         (struct ls_expr): Post gcse.c-split cleanups.
14323         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
14324         "stores" field to "avail_stores".
14325         (pre_ldst_mems): Rename to store_motion_mems.
14326         (pre_ldst_table): Rename to store_motion_mems_table.
14327         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
14328         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
14329         (ldst_entry): Rename to st_expr_entry, update users.
14330         (free_ldst_entry): Rename to free_st_expr_entry, update users.
14331         (free_ldst_mems): Rename to free_store_motion_mems, update users.
14332         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
14333         update caller.
14334         (first_ls_expr): Rename to first_st_expr, update users.
14335         (next_ls_expr): Rename to next_st_expr, update users.
14336         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
14337         fields properly for store motion instead of names inherited from load
14338         motion in gcse.c.
14339         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
14340         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
14341         are done with it.
14342
14343         (ae_kill): Rename to st_kill, update users.
14344         (ae_gen): Rename to st_avloc, update users.
14345         (transp): Rename to st_transp, update users.
14346         (pre_insert_map): Rename to st_insert_map, update users.
14347         (pre_delete_map): Rename to st_delete_map, update users.
14348         (insert_store, build_store_vectors, free_store_memory,
14349         one_store_motion_pass): Update for abovementioned changes.
14350
14351         (gcse_subst_count, gcse_create_count): Remove.
14352         (one_store_motion_pass): New statistics counters "n_stores_deleted"
14353         and "n_stores_created", local variables.
14354
14355         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
14356         use for_each_rtx.
14357
14358         (regvec, compute_store_table_current_insn): Remove.
14359         (reg_set_info, reg_clear_last_set): Remove.
14360         (compute_store_table): Use DF caches instead of local dataflow
14361         solvers.
14362
14363 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
14364
14365         * c-objc-common.c (c_tree_printer): Print identifiers with
14366         pp_identifier, not pp_string.  Mark "({anonymous})" for
14367         translation.
14368         * c-pretty-print.c (pp_c_ws_string): New.
14369         (pp_c_cv_qualifier, pp_c_type_specifier,
14370         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
14371         pp_c_storage_class_specifier, pp_c_function_specifier,
14372         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
14373         pp_c_primary_expression, pp_c_postfix_expression,
14374         pp_c_unary_expression, pp_c_shift_expression,
14375         pp_c_relational_expression, pp_c_equality_expression,
14376         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
14377         use pp_string and pp_c_ws_string in place of pp_identifier and
14378         pp_c_identifier for non-identifiers.  Mark English strings for
14379         translation.
14380         * c-pretty-print.h (pp_c_ws_string): Declare.
14381
14382 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
14383             Roland McGrath <roland@redhat.com>
14384
14385         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
14386         (ENABLE_LD_BUILDID): New configuration option.
14387         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
14388         (LINK_BUILDID_SPEC): New macro.
14389         (init_spec): If defined, prepend it between LINK_EH_SPEC and
14390         link_spec.
14391         * doc/install.texi: Document --enable-linker-build-id option.
14392         * configure: Rebuild.
14393         * config.in: Rebuild.
14394
14395 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
14396
14397         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
14398         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
14399         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
14400         MIPS_GP_SAVE_AREA_SIZE.
14401         * config/mips/mips.c (struct mips_frame_info): Update comment
14402         before arg_pointer_offset and hard_frame_pointer_offset.
14403         (mips_compute_frame_info): Update diagram before function: to
14404         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
14405         indicate the position of frame_pointer_rtx with -fstack-protector and
14406         to show args_size.  Don't allocate cprestore area for leaf functions
14407         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
14408         cprestore_size.
14409         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
14410
14411 2009-04-30  Michael Matz  <matz@suse.de>
14412
14413         PR tree-optimization/39955
14414         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
14415
14416 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
14417
14418         * ira.c (setup_cover_and_important_classes):  Use safe macro
14419         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
14420         directly.
14421         * genpreds.c (write_tm_preds_h):  Output suitable definition of
14422         REG_CLASS_FOR_CONSTRAINT.
14423
14424 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
14425
14426         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
14427         instead of an int.
14428         * bitmap.c (bitmap_descriptor): Likewise.
14429         * ggc-common.c (loc_descriptor): Likewise.
14430         * varray.c (varray_descriptor): Likewise.
14431         * vec.c (vec_descriptor): Likewise.
14432
14433 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
14434
14435         * Makefile.in (dce.o): Add $(EXCEPT_H).
14436         * dce.c: Include except.h and delete redundant vector definitions.
14437         (deletable_insn_p): Return false for non-call insns that can throw
14438         if DF is running.
14439
14440 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
14441
14442         * gcse.c (ae_gen): Remove.
14443         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
14444         and make non-static function to make it available in store-motion.c.
14445         Update call sites with search-and-replace.
14446         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
14447         extract_mentioned_regs, extract_mentioned_regs_helper,
14448         find_moveable_store, compute_store_table, load_kills_store, find_loads,
14449         store_killed_in_insn, store_killed_after, store_killed_before,
14450         build_store_vectors, insert_insn_start_basic_block, insert-store,
14451         remove_reachable_equiv_notes, replace_store_insn, delete_store,
14452         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
14453         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
14454         * store-motion.c: ...new file.  Also copy data structures from gcse.c
14455         and clean up to remove parts not used by store motion.
14456         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
14457         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
14458
14459 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14460
14461         PR target/38571
14462         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
14463         when optimizing for size.
14464
14465 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
14466
14467         * gcse.c (gcse_constant_p): Fix typo in last change.
14468
14469 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
14470
14471         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
14472
14473 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
14474
14475         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
14476
14477 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
14478
14479         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
14480         CONST_HIGH_PART result.
14481
14482 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
14483
14484         * config/avr/avr.c (initial_elimination_offset): Rename to
14485         avr_initial_elimination_offset.
14486         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
14487         change return type to bool.
14488         (avr_can_eliminate): New function.
14489         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
14490         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
14491         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
14492         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
14493         avr_initial_elimination_offset.
14494         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
14495         (avr_initial_elimination_offset): Define.
14496
14497 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
14498             Steven Bosscher  <steven@gcc.gnu.org>
14499
14500         PR rtl-optimization/39938
14501         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
14502         * cfgrtl.c: Include insn-attr.h.
14503         (rest_of_pass_free_cfg): New function.
14504         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
14505         * resource.c (init_resource_info): Remove call to df_analyze.
14506
14507 2009-04-29  Richard Guenther  <rguenther@suse.de>
14508
14509         PR target/39943
14510         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
14511         allow conversion to signed integers.
14512
14513 2009-04-29  Richard Guenther  <rguenther@suse.de>
14514
14515         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
14516         shifts of floating point vectors if the shift amount is
14517         a constant multiple of the element size.
14518
14519 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
14520             Michael Matz  <matz@suse.de>
14521
14522         PR middle-end/39927
14523         PR bootstrap/39929
14524         * tree-outof-ssa.c (emit_partition_copy): New function.
14525         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
14526         insert_part_to_rtx_on_edge): Perform the partition base var
14527         copy using emit_partition_copy.
14528         (insert_value_copy_on_edge): Convert constants to the right mode.
14529         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
14530         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
14531
14532 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
14533
14534         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
14535         scan backwards to try to find a constant to initialize it.
14536
14537         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
14538         insn before the loop_end instruction, don't look past labels.
14539
14540 2009-04-29  Richard Guenther  <rguenther@suse.de>
14541
14542         PR middle-end/39937
14543         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
14544         loose type conversions.
14545         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
14546         stmts only if there are no uses of its definition.
14547
14548 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
14549
14550         * config/bfin/bfin.h (splitting_loops): Declare.
14551         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
14552         Reorder bit definitions to be ascending.
14553         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
14554         * config/bfin/bfin.c (splitting_loops): New variable.
14555         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
14556         (struct loop_info): Remove members INIT and LOOP_INIT.
14557         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
14558         the LSETUP sequence.  Allow LC to be loaded from any register, but
14559         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
14560         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
14561         set to 1.
14562         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
14563         of reload_completed.
14564
14565         From Jie Zhang:
14566         * config/bfin/bfin.md (movsi_insn): Refine constraints.
14567
14568 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
14569
14570         * Makefile.in (PLUGIN_VERSION_H): New.
14571         (OBJS-common): Remove plugin-version.o.
14572         (plugin.o): Depend on (PLUGIN_VERSION_H).
14573         (plugin-version.o): Remove.
14574         * configure: Regenerate
14575         * configure.ac: Create plugin-version.h.
14576         * gcc-plugin.h (plugin_gcc_version): Remove.
14577         (plugin_default_version_check): Change signature.
14578         * plugin-version.c: Remove.
14579         * plugin.c: Include plugin-version.h.
14580         (str_plugin_gcc_version_name): Remove.
14581         (try_init_one_plugin): Pass gcc version to plugin_init.
14582         (plugin_default_version_check): Both gcc and plugin versions are now
14583         arguments.
14584
14585 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
14586
14587         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
14588         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
14589         Remove special case testing for last insn of inner loops. Don't fail
14590         if the loop ends with a jump, emit an extra nop instead.
14591
14592         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
14593         DREGS rather than comparing directly.  Remove code that tries to
14594         account for latencies.
14595
14596 2009-04-29  Richard Guenther  <rguenther@suse.de>
14597
14598         PR tree-optimization/39941
14599         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
14600         eliminating an indirect call.
14601
14602 2009-04-29  Richard Guenther  <rguenther@suse.de>
14603
14604         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
14605         parameter.  Allow invariants as base if !require_lvalue.
14606         (verify_gimple_assign_single): Adjust.
14607
14608 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
14609
14610         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
14611         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
14612         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
14613         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
14614         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
14615         a VEC_SELECT.
14616         * config/bfin/bfin.c (bfin_expand_builtin,
14617         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
14618
14619 2009-04-28  Richard Guenther  <rguenther@suse.de>
14620
14621         * tree-vect-loop.c (get_initial_def_for_induction): Use
14622         correct types for pointer increment.
14623
14624 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14625
14626         * toplev.c (print_version): Update GMP version string calculation.
14627
14628 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
14629
14630         PR rtl-optimization/39938
14631         * resource.c (init_resource_info): Add call to df_analyze.
14632
14633 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
14634
14635         * config/alpha/alpha.md (usegp): Cast the result of
14636         alpha_find_lo_sum_using_gp to enum attr_usegp.
14637         * config/alpha/alpha.c (override_options): Remove end-of-structure
14638         marker element from cpu_table.  Use array size of cpu_table to handle
14639         -mcpu and -mtune options.
14640         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
14641
14642 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
14643
14644         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
14645         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
14646         tune_32 and tune_64.
14647         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
14648         support on PowerPC.
14649         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
14650         * config/rs6000/option-defaults.h: ... here.  New file.
14651         (OPT_64, OPT_32): Define.
14652         (MASK_64BIT): Define to 0 if not already defined.
14653         (OPT_ARCH64, OPT_ARCH32): Define.
14654         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
14655         and tune_64.
14656
14657 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14658
14659         * config/arm/arm.c (arm_override_options): Emit error on using
14660         fpa with AAPCS.
14661
14662 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
14663
14664         PR rtl-optimization/39914
14665         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
14666         registers for allocnos created from user-defined variables only
14667         when not optimizing.
14668
14669 2009-04-28  Richard Guenther  <rguenther@suse.de>
14670
14671         PR middle-end/39937
14672         * fold-const.c (fold_binary): Use distribute_real_division only
14673         on float types.
14674
14675 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
14676
14677         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
14678         add hpux-stdint.h to tm_file.
14679         (hppa[12]*-*-hpux11*): Ditto.
14680         (ia64*-*-hpux*): Ditto.
14681         * config/hpux-stdint.h: New.
14682         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
14683         __STDC_EXT__ for all compiles.
14684         * config/pa/pa-hpux.h: Ditto.
14685         * config/pa/pa-hpux10.h: Ditto.
14686         * config/pa/pa-hpux11.h: Ditto.
14687
14688 2009-04-28  Catherine Moore  <clm@codesourcery.com>
14689
14690         * debug.h (set_name): Add comment.
14691
14692 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
14693
14694         PR target/39929
14695         * config/darwin.c (machopic_gen_offset): Check
14696         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
14697         * config/arm/arm.c (require_pic_register): Likewise.
14698
14699 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
14700
14701         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
14702         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
14703         m32c_promote_prototypes): Delete.
14704
14705 2009-04-28  Michael Matz  <matz@suse.de>
14706
14707         PR middle-end/39922
14708         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
14709         constants.
14710
14711 2009-04-28  Richard Guenther  <rguenther@suse.de>
14712
14713         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
14714
14715 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14716
14717         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
14718         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
14719         * config/arm/arm-tune.md: Regenerate.
14720
14721 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
14722
14723         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
14724         block if there are complex incoming edges.
14725         (sel_merge_blocks): Remove useless assert.
14726         (sel_redirect_edge_and_branch): Check that edge was redirected.
14727         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
14728         (sel_find_rgns): Delete declaration.
14729         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
14730         the region when it is not a preheader.
14731
14732 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
14733
14734         PR c/39323
14735         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
14736
14737 2009-04-28  Richard Guenther  <rguenther@suse.de>
14738
14739         * tree.h (SSA_NAME_VALUE): Remove.
14740         (struct tree_ssa_name): Remove value_handle member.
14741         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
14742         array for jump threading.
14743         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
14744         SSA_NAME_VALUEs.
14745         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
14746         * tree-flow.h (threadedge_initialize_values): Declare.
14747         (threadedge_finalize_values): Likewise.
14748         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
14749         (SSA_NAME_VALUE): Define.
14750         (threadedge_initialize_values): New function.
14751         (threadedge_finalize_values): Likewise.
14752         * tree-ssa-dom.c (ssa_name_values): New global variable.
14753         (SSA_NAME_VALUE): Define.
14754         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
14755
14756 2009-04-28  Ira Rosen  <irar@il.ibm.com>
14757
14758         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
14759         Use REPORT_VECTORIZED_LOCATIONS instead
14760         REPORT_VECTORIZED_LOOPS.
14761         * tree-vectorizer.c (vect_verbosity_level): Make static.
14762         (vect_loop_location): Rename to vect_location.
14763         (vect_set_verbosity_level): Update comment.
14764         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
14765         and vect_location.
14766         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
14767         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
14768         instead REPORT_UNVECTORIZED_LOOPS.
14769         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
14770         and vect_loop_def to vect_external_def and vect_internal_def.
14771         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
14772         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
14773         REPORT_UNVECTORIZED_LOCATIONS.
14774         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
14775         and vect_used_in_loop and to vect_unused_in_scope and
14776         vect_used_in_scope.
14777         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
14778         (vect_verbosity_level): Remove declaration.
14779         (vect_analyze_operations): Likewise.
14780         (vect_analyze_stmt): Declare.
14781         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
14782         REPORT_UNVECTORIZED_LOCATIONS.
14783         (vect_get_loop_niters): Fix indentation.
14784         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
14785         (vect_analyze_loop_operations): New function.
14786         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
14787         vect_analyze_operations.
14788         (vect_is_simple_reduction): Use new names.
14789         (vectorizable_live_operation, vect_transform_loop): Likewise.
14790         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
14791         to specify whether the data references can be a part of interleaving
14792         chain.
14793         (vect_analyze_data_ref_dependence): Use new names.
14794         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
14795         (vect_create_addr_base_for_vector_ref): Remove redundant code.
14796         * tree-vect-patterns.c (widened_name_p): Use new names.
14797         (vect_recog_dot_prod_pattern): Likewise.
14798         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
14799         (process_use, vect_mark_stmts_to_be_vectorized,
14800         vect_model_simple_cost, vect_model_store_cost,
14801         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
14802         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
14803         vectorizable_operation, vectorizable_type_demotion,
14804         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
14805         vectorizable_condition): Likewise.
14806         (vect_analyze_operations): Split into vect_analyze_loop_operations
14807         and ...
14808         (vect_analyze_stmt): ... new function.
14809         (new_stmt_vec_info): Use new names.
14810         (vect_is_simple_use): Use new names and fix comment.
14811         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
14812         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
14813
14814 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
14815
14816         PR target/39911
14817         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
14818         and integer modes for x87 operands.  Do not ICE for unsupported size,
14819         generate error instead.  Generate error for unsupported operand types.
14820         ['z']: Do not handle HImode memory operands specially.  Warning
14821         for floating-point operands.  Fallthru to 'Z' for unsupported operand
14822         types.  Do not ICE for unsupported size, generate error instead.
14823         (output_387_binary_op): Use %Z to output operands.
14824         (output_fp_compare): Ditto.
14825         (output_387_reg_move): Ditto.
14826
14827 2009-04-28  Ben Elliston  <bje@au.ibm.com>
14828
14829         PR c++/35652
14830         Revert:
14831
14832         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14833
14834         * builtins.c (c_strlen): Do not warn here.
14835         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
14836         * c-common.c (pointer_int_sum): Take an explicit location.
14837         Warn about offsets out of bounds.
14838         * c-common.h (pointer_int_sum): Adjust declaration.
14839
14840 2009-04-27  Ian Lance Taylor  <iant@google.com>
14841
14842         * collect2.c (is_ctor_dtor): Change type of ret field in struct
14843         names to symkind.
14844         * dce.c (run_fast_df_dce): Change type of old_flags to int.
14845         * df-core.c (df_set_flags): Change return type to int.  Change
14846         type of old_flags to int.
14847         (df_clear_flags): Likewise.
14848         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
14849         (df_get_conditional_uses): Likewise.
14850         * df.h (df_set_flags, df_clear_flags): Update declarations.
14851         * dwarf2out.c (struct indirect_string_node): Change type of form
14852         field to enum dwarf_form.
14853         (AT_string_form): Change return type to enum dwarf_form.
14854         * fixed-value.c (fixed_compare): Add cast to enum type.
14855         * fwprop.c (update_df): Change 0 to VOIDmode.
14856         * gensupport.c: Change 0 to UNKNOWN.
14857         * gimple.h (gimple_cond_code): Add cast to enum type.
14858         * haifa-sched.c (reemit_notes): Add cast to enum type.
14859         * hooks.c (hook_int_void_no_regs): Remove function.
14860         * hooks.h (hook_int_void_no_regs): Remove declaration.
14861         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
14862         * predict.c (combine_predictions_for_insn): Add casts to enum type.
14863         * real.c (real_arithmetic): Add cast to enum type.
14864         (real_compare): Likewise.
14865         * target.h (struct gcc_target): Change return type of
14866         branch_target_register_class to enum reg_class.
14867         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
14868         default_branch_target_register_class.
14869         * targhooks.c (default_branch_target_register_class): New function.
14870         * targhooks.h (default_branch_target_register_class): Declare.
14871         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
14872         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
14873         cast to int.
14874         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
14875         ERROR_MARK.
14876         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
14877         vect_uninitialized_def.  Change 0 to ERROR_MARK.
14878         * tree-vect-stmts.c (supportable_widening_operation): Don't
14879         initialize icode1 and icode2.
14880         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
14881         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
14882         and to STD_C89.
14883         (cmn_err_flag_specs): Change 0 to STD_C89.
14884         (cmn_err_char_table): Likewise.
14885         * config/arm/arm.c (get_arm_condition_code): Change type of code
14886         to enum arm_cond_code.
14887         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
14888         (IWMMXT_BUILTIN2): Likewise.
14889         (neon_builtin_type_bits): Don't define typedef.
14890         (neon_builtin_datum): Change type of bits field to int.
14891         (arm_expand_neon_args): Add cast to enum type.
14892         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
14893         TLS_MODEL_NONE.
14894         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
14895         casts to enum type.
14896         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
14897         MIPS_FP_COND_f.
14898         * config/mips/mips.md (jal_macro): Return enum constant.
14899         (single_insn): Likewise.
14900         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
14901         CODE_FOR_nothing.
14902         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14903         casts to enum type.
14904         * config/s390/s390.c (s390_tune_flags): Change type to int.
14905         (s390_arch_flags): Likewise.
14906         (s390_handle_arch_option): Change flags field of struct pta to int.
14907         * config/s390/s390.h (s390_tune_flags): Update declaration.
14908         (s390_arch_flags): Likewise.
14909         * config/sh/sh.c (prepare_move_operands): Compare
14910         tls_symbolic_operand result with enum constant.
14911         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
14912         (sh_expand_prologue): Add cast to enum type.
14913         (sh_expand_epilogue): Likewise.
14914         (tls_symbolic_operand): Change return type to enum tls_model.
14915         (fpscr_set_from_mem): Add cast to enum type.
14916         (legitimize_pic_address): Compare tls_symbolic_operand result with
14917         enum constant.
14918         (sh_target_reg_class): Change return type to enum reg_class.
14919         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
14920         PROCESSOR_xxx.
14921         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
14922         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
14923         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
14924         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
14925         (delayed_branch, tls_call_delay): Likewise.
14926         (eligible_for_sibcall_delay): Likewise.
14927         (eligible_for_return_delay): Likewise.
14928         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
14929         (spu_expand_builtin_1): Likewise.
14930
14931         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
14932         for all types of conversions.
14933         (output_init_element): Issue -Wc++-compat warning if needed when
14934         initializing a bitfield with enum type.
14935         * c-parser.c (c_parser_expression): Set original_type to
14936         original_type of right hand operand of comma operator.
14937
14938 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14939
14940         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
14941         grammar nits.
14942         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
14943         * doc/cpp.texi (Standard Predefined Macros)
14944         (Implementation-defined behavior): Likewise.
14945         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
14946         * doc/gimple.texi (GIMPLE Exception Handling)
14947         (@code{GIMPLE_ASSIGN}): Likewise.
14948         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
14949         * doc/invoke.texi (Warning Options, Optimize Options)
14950         (AVR Options, Darwin Options): Likewise.
14951         (Optimize Options): Reformulate -fwhole-program description.
14952         * doc/loop.texi (Lambda): Likewise.
14953         * doc/md.texi (Output Template, Define Constraints)
14954         (Standard Names, Insn Splitting): Likewise.
14955         * doc/options.texi (Option properties): Likewise.
14956         * doc/passes.texi (Tree-SSA passes): Likewise.
14957         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
14958         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
14959         (File Names and DBX): Likewise.
14960         * doc/trouble.texi (Incompatibilities): Likewise.
14961
14962 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
14963
14964         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
14965         instruction is correct.
14966
14967 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
14968
14969         Allow non-constant arguments to conversion intrinsics.
14970         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
14971         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
14972         * spu.c (print_operand): Handle 'v' and 'w'.
14973         (exp2_immediate_p, spu_gen_exp2): Define.
14974         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
14975         spu_convtf_1): Update parameter descriptions.
14976         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
14977         * constraints.md ('v', 'w'): New.
14978         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
14979         Remove.
14980         (i2f, I2F): New define_mode_attr.
14981         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
14982         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
14983         fixuns_truncv4sfv4si2):  Update to use mode attribute.
14984         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
14985         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
14986         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
14987         patterns for combine.
14988
14989 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
14990
14991         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
14992         (cprop, hoist, pre, store_motion): New debug counters.
14993         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
14994         is not an RTL pass anymore.
14995         (pass_profiling): Remove extern decl for pass removed in 2005.
14996         (pass_gcse, pass_jump_bypass): Remove.
14997         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
14998         to 0 for clean state.
14999         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
15000         * cse.c (gate_handle_cse_after_global_opts,
15001         rest_of_handle_cse_after_global_opts): New functions.
15002         (pass_cse_after_global_opts): New pass, does local CSE.
15003         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
15004         (TV_CPROP): New timevar.
15005         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
15006         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
15007         (gcse_main, recompute_all_luids): Remove.
15008         (compute_hash_table_work): Call max_reg_num instead of reading
15009         max_gcse_regno.
15010         (cprop_jump): Don't set run_jump_opt_after_gcse.
15011         (constprop_register): Always allow to alter jumps.
15012         (cprop_insn): Likewise.
15013         (do_local_cprop): Likewise.
15014         (local_cprop_pass): Likewise.  Return non-zero if something changed.
15015         (cprop): Remove function, fold interesting bits into one_cprop_pass.
15016         (find_implicit_sets): Add note about missed optimization opportunity.
15017         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
15018         pass_rtl_cprop execute function.
15019         Don't bother tracking the pass number, each pass gets its own dumpfile
15020         now anyway.
15021         Always allow to alter jumpsand bypass jumps.
15022         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
15023         will just find no suitable set.
15024         (pre_edge_insert): Fix dumping, this function is for PRE only.
15025         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
15026         pass_rtl_pre execute function.
15027         (hoist_code): Return non-zero if something changed.  Keep track of
15028         substitutions and insertions for statistics gathering similar to PRE.
15029         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
15030         called from the pass_rtl_hoist execute function.  Show pass statistics.
15031         (compute_store_table): Use max_reg_num directly instead of using the
15032         formerly global max_gcse_regno.
15033         (build_store_vectors): Likewise.
15034         (replace_store_insn): Fix dumping.
15035         (store_motion): Rename to ...
15036         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
15037         pass, called from the pass_rtl_store_motion execute function.  Keep
15038         track of substitutions and insertions for statistics gathering similar
15039         to PRE.
15040         (bypass_jumps): Remove, fold interesting bits into ...
15041         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
15042         from the pass_rtl_cprop execute function.
15043         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
15044         pass_jump_bypass): Remove.
15045         (gate_handle_gcse, rest_of_handle_gcse): Remove.
15046         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
15047         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
15048         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
15049         (gate_rtl_store_motion, execute_rtl_store_motion,
15050         pass_rtl_store_motion): New.
15051         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
15052         make it clear that -fcse-skip-blocks is a no-op for backward compat.
15053         * passes.c (init_optimization_passes): Remove pass_gcse and
15054         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
15055         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
15056         instead of pass_jump_bypass.
15057
15058 2009-04-27  Richard Guenther  <rguenther@suse.de>
15059
15060         PR middle-end/39928
15061         * gimplify.c (gimplify_expr): If we are required to create
15062         a temporary make sure it ends up as register.
15063
15064 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
15065
15066         PR target/39903
15067         * config/i386/i386.c (construct_container): Don't call
15068         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
15069         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
15070
15071 2009-04-27  Michael Matz  <matz@suse.de>
15072
15073         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
15074         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
15075         * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
15076         (dump_replaceable_exprs): Take a bitmap.
15077         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
15078         array.
15079         (expand_gimple_basic_block): Likewise.
15080         * tree-ssa-ter.c (struct temp_expr_table_d): Make
15081         replaceable_expressions member a bitmap.
15082         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
15083         (mark_replaceable): Likewise.
15084         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
15085         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
15086
15087 2009-04-27  Richard Guenther  <rguenther@suse.de>
15088
15089         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
15090         (verify_stmts): Dispatch to gimple/type verification code.
15091         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
15092         issue with call argument types.
15093
15094 2009-04-27  Michael Matz  <matz@suse.de>
15095
15096         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
15097         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
15098         to above.
15099
15100 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
15101             Eric Botcazou  <ebotcazou@adacore.com>
15102
15103         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
15104         a label's basic block.
15105         (mark_target_live_regs): Tidy and rework obsolete comments.
15106         Change back DF problem to LIVE.  If a label starts a basic block,
15107         assume that all registers that used to be live then still are.
15108         (init_resource_info): If a label starts a basic block, set its
15109         BLOCK_FOR_INSN accordingly.
15110         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
15111
15112 2009-04-27  Richard Guenther  <rguenther@suse.de>
15113
15114         * tree-flow-inline.h (function_ann): Remove.
15115         (get_function_ann): Likewise.
15116         * tree-dfa.c (create_function_ann): Remove.
15117         * tree-flow.h (struct static_var_ann_d): Remove.
15118         (struct function_ann_d): Likewise.
15119         (union tree_ann_d): Remove fdecl member.
15120         (function_ann_t): Remove.
15121         (function_ann, get_function_ann, create_function_ann): Remove
15122         declarations.
15123
15124 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
15125
15126         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
15127
15128 2009-04-27  Jan Hubicka  <jh@suse.cz>
15129
15130         * ipa-pure-const.c (struct funct_state_d): New fields
15131         state_previously_known, looping_previously_known; remove
15132         state_set_in_source.
15133         (analyze_function): Use new fields.
15134         (propagate): Avoid assumption that state_set_in_source imply
15135         nonlooping.
15136
15137         * tree-ssa-loop-niter.c (finite_loop_p): New function.
15138         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
15139         * cfgloop.h (finite_loop_p): Declare.
15140
15141 2009-04-26  Michael Matz  <matz@suse.de>
15142
15143         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
15144
15145 2009-04-26  Michael Matz  <matz@suse.de>
15146
15147         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
15148         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
15149         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
15150         pass_mark_used_blocks): Remove.
15151         * tree-optimize.c (pass_free_datastructures,
15152         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
15153         * passes.c (init_optimization_passes): Don't call
15154         pass_mark_used_blocks, remove dead code.
15155
15156 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
15157
15158         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
15159         * tree-ssa-live.h (register_ssa_partition): Likewise.
15160
15161 2009-04-26  Michael Matz  <matz@suse.de>
15162
15163         Expand from SSA.
15164         * builtins.c (fold_builtin_next_arg): Handle SSA names.
15165         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
15166         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
15167         SSA names.
15168         (compare_pairs): Swap cost comparison.
15169         (coalesce_ssa_name): Don't use change_partition_var.
15170         * tree-nrv.c (struct nrv_data): Add modified member.
15171         (finalize_nrv_r): Set it.
15172         (tree_nrv): Use it to update statements.
15173         (pass_nrv): Require PROP_ssa.
15174         * tree-mudflap.c (mf_decl_cache_locals,
15175         mf_build_check_statement_for): Use make_rename_temp.
15176         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
15177         * alias.c (find_base_decl): Handle SSA names.
15178         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
15179         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
15180         * rtl.h (set_reg_attrs_for_parm): Declare.
15181         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
15182         to "optimized", remove unused locals at finish.
15183         (execute_free_datastructures): Make global, call
15184         delete_tree_cfg_annotations.
15185         (execute_free_cfg_annotations): Don't call
15186         delete_tree_cfg_annotations.
15187
15188         * ssaexpand.h: New file.
15189         * expr.c (toplevel): Include ssaexpand.h.
15190         (expand_assignment): Handle SSA names the same as register variables.
15191         (expand_expr_real_1): Expand SSA names.
15192         * cfgexpand.c (toplevel): Include ssaexpand.h.
15193         (SA): New global variable.
15194         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
15195         (SSAVAR): New macro.
15196         (set_rtl): New helper function.
15197         (add_stack_var): Deal with SSA names, use set_rtl.
15198         (expand_one_stack_var_at): Likewise.
15199         (expand_one_stack_var): Deal with SSA names.
15200         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
15201         before unique numbers.
15202         (expand_stack_vars): Use set_rtl.
15203         (expand_one_var): Accept SSA names, add asserts for them, feed them
15204         to above subroutines.
15205         (expand_used_vars): Expand all partitions (without default defs),
15206         then only the local decls (ignoring those expanded already).
15207         (expand_gimple_cond): Remove edges when jumpif() expands an
15208         unconditional jump.
15209         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
15210         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
15211         SSA name.
15212         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
15213         members of SA; deal with PARM_DECL partitions here; expand
15214         all PHI nodes, free tree datastructures and SA.  Commit instructions
15215         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
15216         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
15217         info and statements at start, collect garbage at finish.
15218         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
15219         (VAR_ANN_PARTITION) Remove.
15220         (change_partition_var): Don't declare.
15221         (partition_to_var): Always return SSA names.
15222         (var_to_partition): Only accept SSA names.
15223         (register_ssa_partition): Only check argument.
15224         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
15225         member.
15226         (delete_var_map): Don't free it.
15227         (var_union): Only accept SSA names, simplify.
15228         (partition_view_init): Mark only useful SSA names as used.
15229         (partition_view_fini): Only deal with SSA names.
15230         (change_partition_var): Remove.
15231         (dump_var_map): Use ssa_name instead of partition_to_var member.
15232         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
15233         basic blocks.
15234         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
15235         (struct _elim_graph): New member const_dests; nodes member vector of
15236         ints.
15237         (set_location_for_edge): New static helper.
15238         (create_temp): Remove.
15239         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
15240         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
15241         (new_elim_graph): Allocate const_dests member.
15242         (clean_elim_graph): Truncate const_dests member.
15243         (delete_elim_graph): Free const_dests member.
15244         (elim_graph_size): Adapt to new type of nodes member.
15245         (elim_graph_add_node): Likewise.
15246         (eliminate_name): Likewise.
15247         (eliminate_build): Don't take basic block argument, deal only with
15248         partition numbers, not variables.
15249         (get_temp_reg): New static helper.
15250         (elim_create): Use it, deal with RTL temporaries instead of trees.
15251         (eliminate_phi): Adjust all calls to new signature.
15252         (assign_vars, replace_use_variable, replace_def_variable): Remove.
15253         (rewrite_trees): Only do checking.
15254         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
15255         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
15256         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
15257         contains_tree_r, MAX_STMTS_IN_LATCH,
15258         process_single_block_loop_latch, analyze_edges_for_bb,
15259         perform_edge_inserts): Remove.
15260         (expand_phi_nodes): New global function.
15261         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
15262         functions, initialize new parameter, remember partitions having a
15263         default def.
15264         (finish_out_of_ssa): New global function.
15265         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
15266         don't reset in_ssa_p here, don't disable TER when mudflap.
15267         (pass_del_ssa): Remove.
15268         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
15269         partition members.
15270         (execute_free_datastructures): Declare.
15271         * Makefile.in (SSAEXPAND_H): New variable.
15272         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
15273         * basic-block.h (commit_one_edge_insertion): Declare.
15274         * passes.c (init_optimization_passes): Move pass_nrv and
15275         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
15276         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
15277         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
15278         (redirect_branch_edge): Deal with super block when expanding, split
15279         out jump patching itself into ...
15280         (patch_jump_insn): ... here, new static helper.
15281
15282 2009-04-26  Michael Matz  <matz@suse.de>
15283
15284         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
15285         beyond num_ssa_names.
15286         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
15287         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
15288
15289 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
15290
15291         PR inline-asm/39543
15292         * fwprop.c (forward_propagate_asm): New function.
15293         (forward_propagate_and_simplify): Propagate also into __asm, if it
15294         doesn't increase the number of referenced registers.
15295
15296         PR c/39889
15297         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
15298
15299 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
15300
15301         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
15302         note_nonlocal_vla_type for nonlocal VLAs.
15303         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
15304         contains_remapped_vars, remap_vla_decls): New functions.
15305         (convert_nonlocal_reference_stmt): If not optimizing, call
15306         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
15307         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
15308         if it wasn't found in var_map.
15309         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
15310         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
15311         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
15312         declare_vars.
15313         * gimplify.c (nonlocal_vlas): New variable.
15314         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
15315         referenced VLAs.
15316         (gimplify_body): Create and destroy nonlocal_vlas.
15317
15318         * dwarf2out.c (loc_descr_plus_const): New function.
15319         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
15320         mem_loc_descriptor, loc_descriptor_from_tree_1,
15321         descr_info_loc, gen_variable_die): Use it.
15322
15323         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
15324         !TREE_STATIC VAR_DECLs.
15325         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
15326         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
15327         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
15328         DECL_BY_REFERENCE is valid.
15329         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
15330         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
15331         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
15332         Copy DECL_BY_REFERENCE.
15333         (struct nesting_copy_body_data): New type.
15334         (nesting_copy_decl): New function.
15335         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
15336         if they have variable length.
15337
15338 2009-04-26  Michael Matz  <matz@suse.de>
15339
15340         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
15341         mark new temporaries for renaming.
15342
15343 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
15344
15345         PR c/39581
15346         * c-decl.c (global_bindings_p): Return negative value.
15347         (c_variable_size): New.  Based on variable_size from
15348         stor-layout.c.
15349         (grokdeclarator): Call c_variable_size not variable_size.
15350
15351 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
15352
15353         * config/i386/i386.c (print_operand) ['z']: Fix typo.
15354
15355 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
15356
15357         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
15358         Redefine it to just use mingw/include.
15359         (ASM_SPEC): Rules for -m32 and -m64.
15360         (LINK_SPEC): Use Likewise.
15361         (SPEC_32): New define.
15362         (SPEC_64): Likewise.
15363         (SUB_LINK_SPEC): Likewise.
15364         (MULTILIB_DEFAULTS): New define.
15365         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
15366         Add multilib options.
15367         (MULTILIB_DIRNAMES): Likewise.
15368         (MULTILIB_OSDIRNAMES): Likewise.
15369         (LIBGCC): Likewise.
15370         (INSTALL_LIBGCC): Likewise.
15371
15372 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
15373
15374         PR c/39556
15375         * c-tree.h (enum c_inline_static_type): New.
15376         (record_inline_static): Declare.
15377         * c-decl.c (struct c_inline_static, c_inline_statics,
15378         record_inline_static, check_inline_statics): New.
15379         (pop_file_scope): Call check_inline_statics.
15380         (start_decl): Call record_inline_static instead of pedwarning
15381         directly for static in inline function.
15382         * c-typeck.c (build_external_ref): Call record_inline_static
15383         instead of pedwarning directly for static referenced in inline
15384         function.
15385
15386 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
15387
15388         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
15389         not new but only being rescanned.
15390         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
15391         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
15392         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
15393         record_set_info, compute_set, grealloc): Remove.
15394         (recompute_all_luids): New function.
15395         (gcse_main): Don't compute sets, and don't do related memory
15396         allocations/free-ing.  If something changed before the end of the
15397         pass, update LUIDs using recompute_all_luids.
15398         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
15399         (free_gcse_mem): Don't free it either.
15400         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
15401         Use the df insn LUIDs.
15402         (load_killed_in_block): Likewise.
15403         (compute_hash_table_work): Don't compute reg_set_in_block.
15404         (compute_transp): Use DF_REG_DEF_CHAINs.
15405         (local_cprop_pass): Don't use compute_sets and related functions.
15406         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
15407         Use get_max_uid() instead of max_cuid.
15408         (insert_insn_end_basic_block, pre_insert_copy_insn,
15409         update_ld_motion_stores): Don't try to
15410         keep reg_set tables up to date.
15411         (pre_insert_copies): Use df insn LUIDs.
15412         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
15413         (reg_set_info): Don't use extra bitmap argument.
15414         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
15415         information to compute regs_set_in_block.
15416         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
15417         (bypass_jumps): Don't use compute_sets and friends.
15418
15419 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15420
15421         PR testsuite/39710
15422         * opts.c (undocumented_msg): Do not leave blank even with
15423         ENABLE_CHECKING.
15424
15425 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
15426
15427         * c-decl.c (build_enumerator): Allow values folding to integer
15428         constants but not integer constant expressions with a pedwarn if
15429         pedantic.
15430
15431 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
15432
15433         PR c/39582
15434         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
15435         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
15436         type is an integer constant.
15437
15438 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
15439
15440         PR target/39897
15441         * config/i386/i386.c (print_operand) ['z']: Revert handling of
15442         HImode operands.
15443
15444 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
15445
15446         PR c/39564
15447         * c-decl.c (grokdeclarator): Diagnose declarations of functions
15448         with variably modified return type and no storage class
15449         specifiers, except for the case of nested functions.  Distinguish
15450         extern declarations of functions with variably modified return
15451         types from those of objects with variably modified types.
15452
15453 2009-04-25  Jan Hubicka  <jh@suse.cz>
15454
15455         * tree.c (list_equal_p): New function.
15456         * tree.h (list_equal_p): Declare.
15457         * coretypes.h (edge_def, edge, const_edge, basic_block_def
15458         basic_block_def, basic_block, const_basic_block): New.
15459         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
15460         (redirect_eh_edge): New function.
15461         (make_eh_edge_update_phi): EH edges are not abnormal.
15462         * except.c: Include tree-flow.h.
15463         (list_match): New function.
15464         (eh_region_replaceable_by_p): New function.
15465         (replace_region): New function.
15466         (hash_type_list): New function.
15467         (hash_eh_region): New function.
15468         (eh_regions_equal_p): New function.
15469         (merge_peers): New function.
15470         (remove_unreachable_regions): Verify EH tree when checking;
15471         merge peers.
15472         (copy_eh_region_1): New function.
15473         (copy_eh_region): New function.
15474         (push_reachable_handler): New function.
15475         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
15476         regions without label but with live RESX.
15477         * except.h (redirect_eh_edge_to_label): New.
15478         * tree-flow.h (redirect_eh_edge): New.
15479         * coretypes.h (edge_def, edge, const_edge, basic_block_def
15480         basic_block_def, basic_block, const_basic_block): Remove.
15481         * Makefile.in (except.o): Add dependency on tree-flow.h
15482         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
15483         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
15484         Remove.
15485
15486 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
15487
15488         PR bootstrap/39645
15489         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
15490         on the destination of memcpy.
15491
15492 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
15493
15494         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
15495         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
15496         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
15497
15498 2009-04-25  Jan Hubicka  <jh@suse.cz>
15499
15500         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
15501         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
15502         to be reached by different label than left.
15503         (update_eh_edges): Update comment; remove edge_to_remove if possible
15504         and return true if suceeded.
15505         (cleanup_empty_eh): Accept sharing map; handle shared regions.
15506         (cleanup_eh): Compute sharing map.
15507         * except.c (remove_eh_handler_and_replace): Add argument if we should
15508         update regions.
15509         (remove_unreachable_regions): Update for label sharing.
15510         (label_to_region_map): Likewise.
15511         (get_next_region_sharing_label): New function.
15512         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
15513         prev_try pointers.
15514         (remove_eh_handler): Update.
15515         (remove_eh_region_and_replace_by_outer_of): New function.
15516         * except.h (struct eh_region): Add next_region_sharing_label.
15517         (remove_eh_region_and_replace_by_outer_of,
15518         get_next_region_sharing_label): Declare.
15519         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
15520
15521 2009-04-25  Jan Hubicka  <jh@suse.cz>
15522
15523         * tree-cfg.c (split_critical_edges): Split also edges where we can't
15524         insert code even if they are not critical.
15525
15526 2009-04-25  Jan Hubicka  <jh@suse.cz>
15527
15528         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
15529         (gimple_can_remove_branch_p): EH edges won't remove branch by
15530         redirection.
15531         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
15532         updating of non-abnormal EH edges.
15533         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
15534         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
15535         (split_critical_edges): Split also edges where emitting code on them
15536         will lead to splitting later.
15537
15538 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
15539             H.J. Lu  <hongjiu.lu@intel.com>
15540
15541         PR target/39590
15542         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
15543         the configured assembler supports fildq and fistpq mnemonics.
15544         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
15545         * configure: Regenerated.
15546         * config.in: Ditto.
15547
15548         * config/i386/i386.c (print_operand): Handle 'Z'.
15549         ['z']: Remove handling of special fild/fist suffixes.
15550         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
15551         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
15552         suffix of fild insn.
15553         (*floatsi<mode>2_vector_mixed): Ditto.
15554         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
15555         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
15556         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
15557         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
15558         * config/i386/gas.h (GAS_MNEMONICS): Remove.
15559
15560 2009-04-25  Ben Elliston  <bje@au.ibm.com>
15561
15562         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
15563         the source of a set operation.
15564
15565 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
15566
15567         * target.h (struct gcc_target): Add case_values_threshold field.
15568         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
15569         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
15570         * targhooks.c (default_case_values_threshold): New function.
15571         * targhooks.h (default_case_values_threshold): Declare function.
15572         * stmt.c (expand_case): Use case_values_threshold target hook.
15573         * expr.h (case_values_threshold): Remove declartation.
15574         * expr.c (case_values_threshold): Remove function.
15575         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
15576
15577         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
15578         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
15579         (avr_case_values_threshold): Declare as static.
15580         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
15581
15582         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
15583         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
15584         (mn10300_case_values_threshold): New function.
15585
15586 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
15587
15588         * ira.c (setup_cover_and_important_classes): Add enum cast.
15589
15590 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
15591
15592         * genpreds.c (write_enum_constraint_num): Output definition of
15593         CONSTRAINT_NUM_DEFINED_P macro.
15594         * ira.c (setup_cover_and_important_classes): Use
15595         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
15596
15597 2009-04-24  DJ Delorie  <dj@redhat.com>
15598
15599         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
15600         __SH2A_SINGLE_ONLY__ also.
15601
15602 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
15603
15604         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
15605         (movdf_internal): Ditto.
15606         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
15607         SFmode and DFmode constants.
15608         (ia64_print_operand): Add 'G' format for printing
15609         floating point constants.
15610
15611 2009-04-24  Richard Guenther  <rguenther@suse.de>
15612
15613         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
15614         from unsigned additions.
15615
15616 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
15617
15618         * c-typeck.c (set_init_index): Allow array designators that are
15619         not integer constant expressions with a pedwarn if pedantic.
15620
15621 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
15622
15623         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
15624         zero if no overlap in nonzero bits between the operands.
15625
15626 2009-04-24  Ian Lance Taylor  <iant@google.com>
15627
15628         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
15629         (record_dead_and_set_regs): Likewise.
15630         * df.h (struct df_mw_hardreg): Change flags field to int.
15631         (struct df_base_ref): Likewise.
15632         (struct df): Change changeable_flags field to int.
15633         * df-scan.c (df_defs_record): Change clobber_flags to int.
15634         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
15635         constants rather than #define macros.
15636         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
15637         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
15638         (enum dwarf_calling_convention): Likewise.
15639         (enum dwarf_line_number_x_ops): Likewise.
15640         (enum dwarf_call_frame_info): Likewise.
15641         (enum dwarf_source_language): Likewise.
15642         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
15643         (add_calling_convention_attribute): Likewise.
15644         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
15645         (combine_comparisons): Change compcode to int.  Add cast to enum type.
15646         * genrecog.c (maybe_both_true_2): Change c to int.
15647         (write_switch): Likewise.  Add cast to enum type.
15648         * gimplify.c (gimplify_omp_for): Handle return values from
15649         gimplify_expr using MIN rather than bitwise or.
15650         (gimplify_expr): Add cast to enum type.
15651         * ipa-prop.c (update_jump_functions_after_inlining): Change
15652         IPA_BOTTOM to IPA_JF_UNKNOWN.
15653         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
15654         Add casts to enum type.
15655         (setup_cover_and_important_classes): Change cl to int.  Add casts
15656         to enum type.
15657         (setup_class_translate): Change cl and mode to int.
15658         (ira_init_once): Change mode to int.
15659         (free_register_move_costs): Likewise.
15660         (setup_prohibited_mode_move_regs): Add casts to enum type.
15661         * langhooks.c (add_builtin_function_common): Rework assertion that
15662         value fits bitfield.
15663         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
15664         * omega.c (omega_do_elimination): Avoid math on enum types.
15665         * optabs.c (expand_vec_shift_expr): Remove casts to int.
15666         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
15667         int local to handle integral_argment value.
15668         * regmove.c (try_auto_increment): Change PUT_MODE to
15669         PUT_REG_NOTE_KIND.
15670         * reload.c (push_secondary_reload): Add casts to enum type.
15671         (secondary_reload_class, find_valid_class): Likewise.
15672         * reload1.c (emit_input_reload_insns): Likewise.
15673         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
15674         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
15675         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
15676         constant.
15677         * tree.c (build_common_builtin_nodes): Add casts to enum type.
15678         * tree-complex.c (complex_lattice_t): Typedef to int rather than
15679         enum type.
15680         (expand_complex_libcall): Add casts to enum type.
15681         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
15682         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
15683         with ERROR_MARK, not NUM_TREE_CODES.
15684         (vect_create_epilog_for_reduction): Likewise.
15685         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
15686         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
15687         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
15688         enum machine_mode.
15689         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
15690         vect_unused_in_loop.  Change 0 to loop_vect.
15691         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
15692         * var-tracking.c (get_init_value): Change return type to enum
15693         var_init_status.
15694         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
15695         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
15696         arm_fp_model.
15697         (arm_override_options): Add casts to enum type.
15698         (arm_emit_tls_decoration): Likewise.
15699         * config/i386/i386.c (ix86_function_specific_restore): Add casts
15700         to enum type.
15701         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
15702         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
15703         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
15704         enum type.
15705         * config/s390/s390.c (code_for_builtin_64): Change to array of
15706         enum insn_code.
15707         (code_for_builtin_31): Likewise.
15708         (s390_expand_builtin): Change code_for_builtin to enum insn_code
15709         const *.
15710         * config/sparc/sparc.c (sparc_override_options): Change value
15711         field in struct code_model to enum cmodel.  In initializer change
15712         0 to NULL and add cast to enum type.
15713
15714         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
15715         Change all callers.  Issue a -Wc++-compat warning using
15716         lhs_origtype if necessary.
15717         (convert_for_assignment): Issue -Wc++-compat warnings about
15718         invalid conversions to enum type on assignment.
15719         * c-common.h (build_modify_expr): Update declaration.
15720
15721 2009-04-24  Nick Clifton  <nickc@redhat.com>
15722
15723         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
15724         (function_arg_advance): Likewise.
15725         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
15726         5th alternative.
15727
15728 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
15729
15730         * config/s390/constraints.md ('I', 'J'): Fix condition.
15731
15732 2009-04-24  Diego Novillo  <dnovillo@google.com>
15733
15734         * gengtype-parse.c (parse_error): Add newline after message.
15735
15736 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
15737
15738         * config/i386/sse.md (avxmodesuffixs): Removed.
15739         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
15740         (*avx_pinsr<ssevecsize>): This.
15741
15742 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
15743
15744         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
15745         follow chains of regs with a single definition, and allow expressions
15746         that are function_invariant_p.
15747         (simple_rhs_p): Allow expressions that are function_invariant_p.
15748
15749 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
15750
15751         PR middle-end/39867
15752         * fold-const.c (fold_cond_expr_with_comparison): When folding
15753         > and >= to MAX, make sure the MAX uses the same type as the
15754         comparison's operands.
15755
15756 2009-04-24  Nick Clifton  <nickc@redhat.com>
15757
15758         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
15759         addressing for DImode accesses.
15760         (frv_print_operand_address): Handle PLUS case.
15761         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
15762
15763 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
15764
15765         PR rtl-optimization/39794
15766         * alias.c (canon_true_dependence): Add x_addr argument.
15767         * rtl.h (canon_true_dependence): Adjust prototype.
15768         * cse.c (check_dependence): Adjust canon_true_dependence callers.
15769         * cselib.c (cselib_invalidate_mem): Likewise.
15770         * gcse.c (compute_transp): Likewise.
15771         * dse.c (scan_reads_nospill): Likewise.
15772         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
15773         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
15774         canon_base_addr of the group, plus optional offset.
15775         (struct group_info): Rename canon_base_mem to
15776         canon_base_addr.
15777         (get_group_info): Set canon_base_addr to canon_rtx of base, not
15778         canon_rtx of base_mem.
15779
15780 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
15781
15782         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
15783         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
15784
15785 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15786
15787         * config/spu/spu-builtins.h: Delete file.
15788
15789         * config/spu/spu.h (enum spu_builtin_type): Move here from
15790         spu-builtins.h.
15791         (struct spu_builtin_description): Likewise.  Add GTY marker.
15792         Do not use enum spu_function_code or enum insn_code.
15793         (spu_builtins): Add extern declaration.
15794
15795         * config/spu/spu.c: Do not include "spu-builtins.h".
15796         (enum spu_function_code, enum spu_builtin_type_index,
15797         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
15798         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
15799         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
15800         unsigned_V2DI_type_node): Move here from spu-builtins.h.
15801         (spu_builtin_types): Make static.  Add GTY marker.
15802         (spu_builtins): Add extern declaration with GTY marker.
15803         Include "gt-spu.h".
15804
15805         * config/spu/spu-c.c: Do not include "spu-builtins.h".
15806         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
15807         Check programmatically whether all parameters are scalar.
15808
15809         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
15810
15811 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
15812
15813         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
15814         assignment from the constructor either if the target is volatile.
15815
15816 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
15817
15818         * config/arm/arm.md (insv): Do not share operands[0].
15819
15820 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
15821
15822         * config/vxlib-tls.c (active_tls_threads): Delete.
15823         (delete_hook_installed): New.
15824         (tls_delete_hook): Don't delete the delete hook.
15825         (tls_destructor): Delete it here.
15826         (__gthread_set_specific): Adjust installing the delete hook.
15827         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
15828         __gthread_leave_tsd_dtor_context.
15829
15830 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
15831
15832         * c-format.c (gcc_tdiag_char_table): Add support for %E.
15833
15834 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
15835
15836         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
15837         enum type.
15838         (alpha_rtx_costs): Ditto.
15839         (emit_unlikely_jump): Use add_reg_note.
15840         (emit_frame_store_1): Ditto.
15841         (alpha_expand_prologue): Ditto.
15842         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
15843         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
15844
15845 2009-04-23  Nick Clifton  <nickc@redhat.com>
15846
15847         * config/v850/v850.md (epilogue): Remove suppressed code.
15848         (return): Rename to return_simple and remove test of frame size.
15849         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
15850         to gen_return_simple.
15851
15852 2009-04-22  Jing Yu  <jingyu@google.com>
15853
15854         PR testsuite/39781
15855         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
15856
15857 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15858
15859         PR C/31499
15860         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
15861         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
15862         value is a VECTOR_CST, the element type is the element type of the
15863         vector.
15864
15865 2009-04-22  DJ Delorie  <dj@redhat.com>
15866
15867         * config/m32c/m32c.h: Update GTY annotations to new syntax.
15868
15869 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
15870
15871         * alias.c (find_base_term): Move around LO_SUM case, so that
15872         CONST falls through into PLUS/MINUS handling.
15873
15874         PR c/39855
15875         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
15876         into 0, use omit_one_operand.
15877
15878 2009-04-23  Ben Elliston  <bje@au.ibm.com>
15879
15880         * config/rs6000/linux-unwind.h (get_regs): Remove type
15881         puns. Change the type of `pc' to an array of unsigned ints and
15882         update all users.  Constify frame24.
15883
15884 2009-04-22  DJ Delorie  <dj@redhat.com>
15885
15886         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
15887         declarations before code.
15888         (current_function_special_page_vector): Likewise.
15889         (m32c_expand_insv): Silence a warning.
15890
15891 2009-04-21  Taras Glek  <tglek@mozilla.com>
15892
15893         * alias.c: Update GTY annotations to new syntax.
15894         * basic-block.h: Likewise.
15895         * bitmap.h: Likewise.
15896         * c-common.h: Likewise.
15897         * c-decl.c: Likewise.
15898         * c-parser.c: Likewise.
15899         * c-pragma.c: Likewise.
15900         * c-tree.h: Likewise.
15901         * cfgloop.h: Likewise.
15902         * cgraph.h: Likewise.
15903         * config/alpha/alpha.c: Likewise.
15904         * config/arm/arm.h: Likewise.
15905         * config/avr/avr.h: Likewise.
15906         * config/bfin/bfin.c: Likewise.
15907         * config/cris/cris.c: Likewise.
15908         * config/darwin.c: Likewise.
15909         * config/frv/frv.c: Likewise.
15910         * config/i386/i386.c: Likewise.
15911         * config/i386/i386.h: Likewise.
15912         * config/i386/winnt.c: Likewise.
15913         * config/ia64/ia64.h: Likewise.
15914         * config/iq2000/iq2000.c: Likewise.
15915         * config/mips/mips.c: Likewise.
15916         * config/mmix/mmix.h: Likewise.
15917         * config/pa/pa.c: Likewise.
15918         * config/pa/pa.h: Likewise.
15919         * config/rs6000/rs6000.c: Likewise.
15920         * config/s390/s390.c: Likewise.
15921         * config/sparc/sparc.c: Likewise.
15922         * config/xtensa/xtensa.c: Likewise.
15923         * cselib.h: Likewise.
15924         * dbxout.c: Likewise.
15925         * dwarf2out.c: Likewise.
15926         * except.c: Likewise.
15927         * except.h: Likewise.
15928         * fixed-value.h: Likewise.
15929         * function.c: Likewise.
15930         * function.h: Likewise.
15931         * gimple.h: Likewise.
15932         * integrate.c: Likewise.
15933         * optabs.c: Likewise.
15934         * output.h: Likewise.
15935         * real.h: Likewise.
15936         * rtl.h: Likewise.
15937         * stringpool.c: Likewise.
15938         * tree-data-ref.c: Likewise.
15939         * tree-flow.h: Likewise.
15940         * tree-scalar-evolution.c: Likewise.
15941         * tree-ssa-address.c: Likewise.
15942         * tree-ssa-alias.h: Likewise.
15943         * tree-ssa-operands.h: Likewise.
15944         * tree.c: Likewise.
15945         * tree.h: Likewise.
15946         * varasm.c: Likewise.
15947         * varray.h: Likewise.
15948         * vec.h: Likewise.
15949         * coretypes.h: Do not define GTY macro if it is already defined.
15950         * doc/gty.texi: Update GTY documentation to new syntax.
15951         * gengtype-lex.l: Enforce attribute-like syntax for GTY
15952         annotations on structs.
15953         * gengtype-parse.c: Likewise.
15954
15955 2009-04-22  Mark Heffernan  <meheff@google.com>
15956
15957         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
15958
15959 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
15960
15961         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
15962         where appropriate.
15963
15964 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
15965
15966         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
15967         the same as a PLUS without a shift.  Increase the cost of a
15968         CONST_INT in MULT.
15969
15970 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15971
15972         * Makefile.in: Update dependencies.
15973         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
15974         * errors.h: Remove bogus comment about compatibility.
15975         (warning): Update declaration.
15976         * genautomata.c: Update all calls to warning.
15977         * gimple.c: Do not include errors.h. Include toplev.h.
15978         * tree-ssa-structalias.c: Do not include errors.h.
15979         * omega.c: Likewise.
15980         * tree-ssa-reassoc.c: Likewise.
15981         * config/spu/spu-c.c: Likewise.
15982         * config/spu/t-spu-elf: Update dependencies.
15983
15984 2009-04-22  Richard Guenther  <rguenther@suse.de>
15985
15986         PR tree-optimization/39824
15987         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
15988         make sure the types are compatible.
15989
15990 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15991
15992         PR c++/14875
15993         * c-common.c (c_parse_error): Take a token_flags parameter.
15994         Use token_type for the token type instead.
15995         Pass token_flags to cpp_type2name.
15996         * c-common.h (c_parse_error): Update declaration.
15997         * c-parser.c (c_parser_error): Pass 0 as token flags.
15998
15999 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
16000
16001         PR rtl-optimization/39580
16002         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
16003
16004 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16005
16006         * function.c (expand_function_end): Do not emit a jump to the "naked"
16007         return label for fall-through returns.
16008         * except.c (sjlj_emit_function_exit): Always place the call to the
16009         unregister function at the location installed by expand_function_end.
16010
16011 2009-04-22  Richard Guenther  <rguenther@suse.de>
16012
16013         PR tree-optimization/39845
16014         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
16015         (gen_inbound_check): Likewise.
16016
16017 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
16018
16019         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
16020         padding for PPC.
16021         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
16022         * config/vxlib.c (__gthread_once): Add race guard for PPC.
16023
16024 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
16025
16026         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
16027         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
16028         shift counts to avoid out-of-bounds array accesses.
16029
16030 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
16031
16032         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
16033         (Pmode): Move above.
16034
16035 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
16036
16037         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
16038         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
16039         GET_CODE macro.  Use IN_RANGE macro where appropriate.
16040         * config/alpha/alpha.h: Ditto.
16041         * config/alpha/alpha.md: Ditto.
16042         * config/alpha/constraints.md: Ditto.
16043         * config/alpha/predicates.md: Ditto.
16044
16045 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
16046
16047         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
16048         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16049         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16050         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16051         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16052         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16053         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16054         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16055         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16056         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16057         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16058         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16059         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16060         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16061         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16062         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16063         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16064         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16065         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16066         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16067         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16068         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16069         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16070         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16071         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16072         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16073         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
16074
16075 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
16076
16077         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
16078         references from comments.
16079         * cfgbuild.c: (count_basic_blocks): Delete.
16080         (find_basic_blocks_1): Delete.
16081         (find_basic_blocks): Delete.
16082         * except.c (finish_eh_generation): Make static.  Move comment from
16083         except.h here.  Remove find_basic_blocks references from comments.
16084         * except.h (finish_eh_generation): Delete.
16085         * basic-block.h (find_basic_blocks): Delete.
16086         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
16087
16088 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
16089
16090         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
16091         (sdbout_parms):  Likewise.
16092
16093 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
16094
16095         * config/sh/sh.c (prepare_cbranch_operands): Use
16096         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
16097         (expand_cbranchdi4): Likewise.
16098         (from_compare): Add cast to enum type.
16099         (expand_cbranchsi4): Use add_reg_note.
16100         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
16101         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
16102         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
16103         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
16104         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
16105         instead of CODE_FOR_nothing.
16106         (cbranchdi4): Likewise.  Fix the order of arguments for
16107         gen_rtx_fmt_ee.
16108         (push_fpscr): Use add_reg_note.
16109         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
16110         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
16111
16112 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
16113
16114         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
16115         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
16116         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
16117         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
16118         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
16119         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
16120         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
16121         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
16122         config/alpha/x-vms, config/arc/t-arc,
16123         config/arm/README-interworking, config/arm/arm-c.c,
16124         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
16125         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
16126         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
16127         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
16128         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
16129         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
16130         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
16131         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
16132         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
16133         config/cris/t-elfmulti, config/crx/t-crx,
16134         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
16135         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
16136         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
16137         config/h8300/t-h8300, config/i386/athlon.md,
16138         config/i386/darwin-libgcc.10.4.ver,
16139         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
16140         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
16141         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
16142         config/i386/t-linux64, config/i386/t-nwld,
16143         config/i386/t-rtems-i386, config/i386/t-sol2-10,
16144         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
16145         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
16146         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
16147         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
16148         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
16149         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
16150         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
16151         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
16152         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
16153         config/m68k/t-uclinux, config/mcore/t-mcore,
16154         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
16155         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
16156         config/mips/crtn.asm, config/mips/irix-crti.asm,
16157         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
16158         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
16159         config/mips/mips-fixed.md, config/mips/sb1.md,
16160         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
16161         config/mips/t-iris6, config/mips/t-isa3264,
16162         config/mips/t-libgcc-mips16, config/mips/t-linux64,
16163         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
16164         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
16165         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
16166         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
16167         config/mn10300/t-linux, config/mn10300/t-mn10300,
16168         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
16169         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
16170         config/picochip/libgccExtras/clzsi2.asm,
16171         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
16172         config/rs6000/darwin-libgcc.10.4.ver,
16173         config/rs6000/darwin-libgcc.10.5.ver,
16174         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
16175         config/rs6000/t-aix43, config/rs6000/t-aix52,
16176         config/rs6000/t-darwin, config/rs6000/t-fprules,
16177         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
16178         config/rs6000/t-lynx, config/rs6000/t-netbsd,
16179         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
16180         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
16181         config/rs6000/t-rtems, config/rs6000/t-spe,
16182         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
16183         config/score/t-score-elf, config/sh/divcost-analysis,
16184         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
16185         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
16186         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
16187         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
16188         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
16189         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
16190         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
16191         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
16192         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
16193         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
16194         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
16195         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
16196         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
16197         limitx.h, version.c, xcoff.h: Add copyright and license notices.
16198         * config/h8300/genmova.sh: Include copyright and license notices
16199         in generated output.
16200         * config/h8300/mova.md: Regenerate.
16201         * doc/install.texi2html: Include word "Copyright" in copyright
16202         notice and use name "Free Software Foundation, Inc.".
16203         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
16204         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
16205         ChangeLog-2007, ChangeLog-2008: Correct dates.
16206
16207 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
16208
16209         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
16210         NE_EXPR operations as well.
16211         * c-parser.c (c_parser_condition): Do not set location information on
16212         the condition.
16213         (c_parser_conditional_expression): Likewise.
16214         (c_parser_binary_expression): Set location information on operators.
16215         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
16216         TRUTH_NOT_EXPR has been folded.
16217         * fold-const.c (fold_truth_not_expr): Copy location information from
16218         the incoming expression to the outgoing one.
16219         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
16220         recursive calls on the LHS of the operator but pass that of the
16221         operator to recursive calls on the RHS of the operator.  Set it
16222         on the COND_EXPR.
16223         (shortcut_cond_expr): Set the locus of the operator on the second
16224         COND_EXPR and that of the expression on the first in degenerate cases.
16225         Pass the locus of the expression to calls to shortcut_cond_r.
16226         Set the locus of the 'then' block on the associated jump, if any.
16227         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
16228         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
16229         expression to call to gimplify_boolean_expr.
16230
16231 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
16232
16233         * config.gcc: Add additional configuration for
16234         i686-w64-mingw* and x86_64-w64-mingw* triplet.
16235         * config/i386/mingw-w64.h: New mingw-w64 specific header.
16236         (CPP_SPEC): Redefine for allowing -municode option.
16237         (STARTFILE_SPEC): Likewise.
16238         * config/i386/t-mingw-w64: New.
16239         * config/i386/mingw-w64.opt: New.
16240         (municode): Add new target option.
16241         * doc/invoke.texi (municode): Add documentation for new option.
16242
16243 2009-04-21  Ian Lance Taylor  <iant@google.com>
16244
16245         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16246         Correct test for number of arguments.
16247         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
16248
16249 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
16250
16251         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
16252         argument of emit_library_call.
16253
16254 2009-04-21  Richard Guenther  <rguenther@suse.de>
16255
16256         PR middle-end/39829
16257         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
16258         inside VIEW_CONVERT_EXPRs.
16259
16260 2009-04-21  Martin Jambor  <mjambor@suse.cz>
16261
16262         * tree-switch-conversion.c (build_constructors): Split a long line.
16263         (constructor_contains_same_values_p): New function.
16264         (build_one_array): Create assigns of constants if possible, do not
16265         call mark_sym_for_renaming, call update_stmt.
16266         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
16267         make_rename_temp.  Do not call mark_symbols_for_renaming, call
16268         update_stmt.
16269         (gen_def_assigns): Do not call mark_symbols_for_renaming or
16270         find_new_referenced_vars, call update_stmt.
16271         (gen_inbound_check): Use create_tmp_var and create ssa names manually
16272         instead of calling make_rename_temp.  Do not call
16273         find_new_referenced_vars or mark_symbols_for_renaming, call
16274         update_stmt.
16275
16276 2009-04-21  Richard Guenther  <rguenther@suse.de>
16277
16278         PR tree-optimization/39827
16279         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
16280         (tree_ssa_phiprop): Pass the correct array size.
16281
16282 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
16283
16284         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
16285
16286 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16287
16288         PR 16202
16289         * c-typeck.c (lvalue_p): Move declaration ...
16290         * c-common.h (lvalue_p): ... to here.
16291         * c-common.c (candidate_equal_p): New.
16292         (add_tlist): Use it.
16293         (merge_tlist): Use it.
16294         (warn_for_collisions_1): Likewise.
16295         (warning_candidate_p): Accept more candidates.
16296         (verify_tree): A warning candidate can be an expression. Use
16297         candidate_equal_p.
16298
16299 2009-04-21  Ben Elliston  <bje@au.ibm.com>
16300
16301         PR target/5267
16302         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
16303         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
16304         options.  Remove -mcall-solaris documentation.
16305
16306 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16307
16308         PR c++/13358
16309         * doc/invoke.texi (-Wlong-long): Update description.
16310         * c-lex (interpret_integer): Only warn if there was no previous
16311         overflow and -Wlong-long is enabled.
16312         * c-decl.c (declspecs_add_type): Drop redundant flags.
16313         * c.opt (Wlong-long): Init to -1.
16314         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
16315         and front-end warn_long_long. Wlong-long only depends on other
16316         flags if it is uninitialized.
16317         * c-parser.c (disable_extension_diagnostics): warn_long_long is
16318         the same for CPP and FE.
16319         (restore_extension_diagnostics): Likewise.
16320
16321 2009-04-20  Ian Lance Taylor  <iant@google.com>
16322
16323         Fix enum conversions which are invalid in C++:
16324         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
16325         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
16326         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
16327         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
16328         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
16329         (dbxout_parms): Likewise.
16330         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
16331         (df_clear_flags): Likewise.
16332         * df-problems.c (df_rd_bb_local_compute_process_def): Change
16333         top_flag parameter to int.
16334         (df_chain_create_bb_process_use): Likewise.
16335         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
16336         Remove cast.
16337         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
16338         (df_ref_create_structure, df_def_record_1): Likewise.
16339         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
16340         (df_notes_rescan): Change 0 to VOIDmode in function call.
16341         (df_get_call_refs, df_insn_refs_collect): Likewise.
16342         (df_bb_regs_collect): Likewise.
16343         (df_entry_block_defs_collect): Likewise.
16344         (df_exit_block_uses_collect): Likewise.
16345         * df.h: Update declarations.
16346         * double-int.c (double_int_divmod): Add cast to enum type.
16347         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
16348         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
16349         (based_loc_descr): Likewise.
16350         (loc_descriptor_from_tree_1): Change first_op and second_op to
16351         enum dwarf_location_atom.  Add cast to enum type.
16352         * expmed.c (init_expmed): Change 0 to SET in function call.
16353         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
16354         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
16355         (do_store_flag): Likewise.
16356         * fixed-value.h (struct fixed_value): Change mode to enum
16357         machine_mode.
16358         * function.c (assign_parms): Change 0 to VOIDmode in function call.
16359         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
16360         function call.
16361         (insert_insn_decl, insert_decl, insert_state): Likewise.
16362         (automata_list_finish): Likewise.
16363         * genrecog.c (process_define_predicate): Add cast to enum type.
16364         * gensupport.c (init_predicate_table): Add cast to enum type.
16365         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
16366         function call.
16367         (gimple_build_call_1, gimple_build_label): Likewise.
16368         (gimple_build_goto, gimple_build_asm_1): Likewise.
16369         (gimple_build_switch_1, gimple_build_cdt): Likewise.
16370         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
16371         (enum fallback): Rename from enum fallback_t.
16372         (fallback_t): Typedef as int.
16373         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
16374         GSI_SAME_STMT in function call.
16375         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
16376         enum type.
16377         (setup_reg_class_relations): Likewise.
16378         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
16379         (setup_prohibited_class_mode_regs): Add cast to enum type.
16380         (setup_prohibited_mode_move_regs): Likewise.
16381         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
16382         (record_address_regs): Change i to enum reg_class.
16383         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
16384         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
16385         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
16386         (GET_MODE_2XWIDER_MODE): Likewise.
16387         (GET_CLASS_NARROWEST_MODE): Likewise.
16388         * omp-low.c (expand_omp_for): Add cast to enum type.
16389         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
16390         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
16391         * postreload.c (reload_cse_simplify_operands): Change rclass local
16392         to enum reg_class.
16393         * predict.c (combine_predictions_for_insn): Change best_predictor
16394         and predictor to enum br_predictor.
16395         (combine_predictions_for_bb): Likewise.
16396         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
16397         use SET_PREDICT_EXPR_OUTCOME.
16398         * real.c (real_arithmetic): Change icode to code in function call.
16399         * reginfo.c (init_move_cost): Add casts to enum type.
16400         (init_reg_sets_1, init_fake_stack_mems): Likewise.
16401         * regmove.c (regclass_compatible_p): Change class0 and class1 to
16402         enum reg_class.
16403         * reload.c (find_valid_class): Add casts to enum type.
16404         (push_reload): Change 0 to NO_REGS in function call.
16405         (find_reloads): Change this_alternative to array of enum
16406         reg_class.  Remove some now-unnecessary casts.
16407         (make_memloc): Change 0 to VOIDmode in function call.
16408         * reload1.c (reload): Change 0 to VOIDmode in function call.
16409         (eliminate_regs_1, elimination_effects): Likewise.
16410         (eliminate_regs_in_insn): Likewise.
16411         (emit_input_reload_insns): Add cast to enum type.
16412         (delete_output_reload): Change 0 to VOIDmode in function call.
16413         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
16414         to enum type in function call.
16415         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
16416         (SET_PREDICT_EXPR_OUTCOME): Define.
16417         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
16418         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
16419         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
16420         (dump_function): Likewise.
16421         * tree-dump.h: Update declarations.
16422         * tree-pass.h: Update declarations.
16423         * varasm.c (assemble_integer): Change mclass to enum mode_class.
16424         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
16425         enum type.
16426         (arm_rtx_costs_1): Correct parenthesization.
16427         (arm_rtx_costs): Add casts to enum type.
16428         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
16429         (vfp_emit_fstmd): Use add_rg_note.
16430         (emit_multi_reg_push, emit_sfm): Likewise.
16431         (thumb_set_frame_pointer): Likewise.
16432         (arm_expand_prologue): Likewise.
16433         (arm_regno_class): Change return type to enum reg_class.
16434         (thumb1_expand_prologue): Use add_reg_note.
16435         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
16436         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
16437         in function call.
16438         * config/arm/gentune.sh: Add cast to enum type.
16439         * config/arm/arm-tune.md: Rebuild.
16440         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
16441         (ix86_split_fp_branch, predict_jump): Likewise.
16442         (ix86_expand_multi_arg_builtin): Change sub_code from enum
16443         insn_code to enum rtx_code.
16444         (ix86_builtin_vectorized_function): Add cast to enum type.
16445         * config/i386/i386.md (truncdfsf2): Change slot to enum
16446         ix86_stack_slot.
16447         (truncxf<mode>2, isinf<mode>2): Likewise.
16448         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
16449         enum type.
16450         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
16451         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
16452         (insert_bundle_state): Change 1 to INSERT in function call.
16453         (ia64_add_bundle_selector_before): Likewise.
16454         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
16455         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
16456         (restore_stack_nonlocal): Likewise.
16457         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
16458         function call.
16459         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
16460         function call.
16461         (mips_rtx_costs): Likewise.
16462         (mips_override_options): Add casts to enum type.
16463         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
16464         in function call.
16465         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
16466         (store_reg, set_reg_plus_d): Likewise.
16467         (hppa_expand_prologue, hppa_profile_hook): Likewise.
16468         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
16469         cast to enum type.
16470         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
16471         function call.
16472         (emit_unlikely_jump): Use add_reg_note.
16473         (rs6000_emit_allocate_stack): Likewise.
16474         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
16475         (output_toc): Change 1 to INSERT in function call.
16476         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
16477         (rs6000_initialize_trampoline): Likewise.
16478         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
16479         function call.
16480         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
16481         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
16482         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
16483         (save_gprs): Use add_reg_note.
16484         (s390_emit_prologue): Likewise.
16485         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
16486         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
16487         (sparc_fold_builtin): Add cast to enum type.
16488         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
16489         enum insn_code.
16490         (spu_expand_prologue): Use add_reg_note.
16491         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
16492
16493 2009-04-20  Ian Lance Taylor  <iant@google.com>
16494
16495         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
16496         (c_parser_postfix_expression_after_primary): Get VEC for list of
16497         arguments.  Get original types of arguments.  Call
16498         build_function_call_vec.
16499         (cached_expr_list_1, cached_expr_list_2): New static variables.
16500         (c_parser_expr_list): Change return type to VEC *.  Add
16501         p_orig_types parameter.  Change all callers.
16502         (c_parser_release_expr): New static function.
16503         (c_parser_vec_to_tree_list): New static function.
16504         * c-typeck.c (build_function_call): Rewrite to build a VEC and
16505         call build_function_call_vec.
16506         (build_function_call_vec): New function, based on old
16507         build_function_call.
16508         (convert_arguments): Remove nargs and argarray parameters.  Change
16509         values to a VEC.  Add origtypes parameter.
16510         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
16511         (convert_for_assignment): Add origtype parameter.  Change all
16512         callers.  If warn_cxx_compat, check for conversion to an enum
16513         type when calling a function.
16514         (store_init_value): Add origtype parameter.  Change all callers.
16515         (digest_init): Likewise.
16516         (struct init_node): Add origtype field.
16517         (add_pending_init): Add origtype parameter.  Change all callers.
16518         (output_init_element): Likewise.
16519         (output_pending_init_elements): Pass origtype from init_node to
16520         output_init_element.
16521         (process_init_element): Pass origtype from c_expr to
16522         output_init_element.
16523         (c_finish_return): Add origtype parameter.  Change all callers.
16524         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
16525         caller.
16526         (sync_resolve_params): Likewise.
16527         (sync_resolve_return): Change params to first_param.  Change caller.
16528         (resolve_overloaded_builtins): Change params to VEC *.  Change
16529         callers.  Save first parameter around call to build_function_call_vec.
16530         * c-decl.c (finish_decl): Add origtype parameter.  Change all
16531         callers.  Call build_function_call_vec rather than
16532         build_function_call for cleanup.
16533         * c-tree.h: Update declarations.
16534         * c-common.h: Update declarations.
16535         * stub-objc.c (objc_rewrite_function_call): Change parameter from
16536         params to first_param.
16537         * target.h (struct gcc_target): Change resolve_overloaded_builtin
16538         params parameter from tree to void *.
16539         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16540         Change arglist parameter to have type void *, and to be a pointer
16541         to a VEC.
16542         * config/rs6000/rs6000-protos.h
16543         (altivec_resolve_overloaded_builtin): Update declaration.
16544         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
16545         fnargs parameter to have type void *, and to be a pointer to a
16546         VEC.  Call build_function_call_vec instead of
16547         build_function_call.
16548         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
16549
16550 2009-04-20  Joey Ye  <joey.ye@intel.com>
16551             Xuepeng Guo  <xuepeng.guo@intel.com>
16552             H.J. Lu  <hongjiu.lu@intel.com>
16553
16554         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
16555
16556         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
16557         (IX86_LEA_PRIORITY): Likewise.
16558         (distance_non_agu_define): New function.
16559         (distance_agu_use): Likewise.
16560         (ix86_lea_for_add_ok): Likewise.
16561         (ix86_dep_by_shift_count): Likewise.
16562
16563         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
16564         should split for LEA.
16565
16566         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
16567         function.
16568         (ix86_dep_by_shift_count): Likewise.
16569
16570 2009-04-20  Richard Guenther  <rguenther@suse.de>
16571
16572         * expr.c (handled_component_p): Move ...
16573         * tree.h (handled_component_p): ... here.
16574         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
16575         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
16576         and REALPART_EXPR to be in one group.
16577
16578 2009-04-20  Richard Guenther  <rguenther@suse.de>
16579
16580         * basic-block.h (get_all_dominated_blocks): Declare.
16581         * dominance.c (get_all_dominated_blocks): New function.
16582         * tree-cfg.c (get_all_dominated_blocks): Remove.
16583         (remove_edge_and_dominated_blocks): Adjust.
16584         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
16585         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
16586         instead of recursing.
16587
16588 2009-04-20  Doug Kwan  <dougkwan@google.com>
16589
16590         * cgraph.h (cgraph_node_ptr): New type for vector functions.
16591         (struct cgraph_node_set_def): New type.
16592         (cgraph_node_set) New type. Also declare vector functions.
16593         (struct cgraph_node_set_element_def): New type.
16594         (cgraph_node_set_element): Ditto.
16595         (cgraph_node_set_iterator): New iterator type.
16596         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
16597         cgraph_node_set_remove, dump_cgraph_node_set,
16598         debug_cgraph_node_set): New prototypes.
16599         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
16600         cgraph_node_set_size): New inlines.
16601         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
16602         including cgraph.h.
16603         (struct ipa_opt_pass): Add struct cgraph_node_set_def
16604         argument to function 'write_summary'.
16605         * ipa.c: Include ggc.h.
16606         (hash_cgraph_node_set_element,
16607         eq_cgraph_node_set_element, cgraph_node_set_new,
16608         cgraph_node_set_add, cgraph_node_set_remove,
16609         cgraph_node_set_find, dump_cgraph_node_set,
16610         debug_cgraph_node_set): New functions.
16611         * Makefile.in (ipa.o): Add dependency on GGC_H.
16612
16613 2009-04-20  Ira Rosen  <irar@il.ibm.com>
16614
16615         PR tree-optimization/39675
16616         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
16617         check of the return code of vect_schedule_slp. Check that
16618         stmt_vec_info still exists for the statement, before checking its
16619         vectorization type.
16620
16621 2009-04-20  Michael Matz  <matz@suse.de>
16622
16623         * Makefile.in (generated_files): Take out $(simple_generated_c).
16624
16625 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
16626
16627         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
16628         (UINTPTR_TYPE):  Likewise.
16629
16630 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
16631
16632         PR c/37481
16633         * c-typeck.c (digest_init): Check for initializing an array with a
16634         string literal.
16635
16636 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
16637
16638         PR c/19771
16639         * c-semantics.c (pop_stmt_list): Propagate
16640         STATEMENT_LIST_HAS_LABEL to parent statement list.
16641
16642 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
16643
16644         * config/mips/mips.h (mips_tune_attr): New macro.
16645         * config/mips/mips.md (cpu): Use it.
16646
16647 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
16648
16649         PR c/38243
16650         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
16651         declaring a tag.
16652
16653 2009-04-19  Diego Novillo  <dnovillo@google.com>
16654
16655         * toplev.c (compile_file): Move call to coverage_finish ...
16656         * cgraphunit.c (ipa_passes): ... here.
16657         Call cgraph_process_new_functions.
16658         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
16659         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
16660
16661 2009-04-19  Jan Hubicka  <jh@suse.cz>
16662
16663         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
16664         cfun.
16665         (dump_cgraph_node): Dump can throw external flag.
16666         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
16667
16668 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16669
16670         PR c/32061
16671         PR c++/36954
16672         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
16673         * common.opt (Wlogical-op): Move from here...
16674         * c.opt (Wlogical-op): ... to here.
16675         * c-typeck.c (parser_build_binary_op): Update call to
16676         warn_logical_operator.
16677         * c-opts.c (c_common_post_options): Enable warn_logical_op with
16678         extra_warnings.
16679         * c-common.c (warn_logical_op): Update.
16680         * c-common.h (warn_logical_op): Update declaration.
16681
16682 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
16683
16684         * tree.c (protected_set_expr_location): Fix formatting.
16685
16686 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
16687
16688         PR c/27676
16689         * c-typeck.c (readonly_warning): new.
16690         (build_unary_op, build_modify_expr): Use readonly_warning for
16691         storing into something readonly but not const-qualified.
16692
16693 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
16694
16695         PR c/22367
16696         * c-typeck.c (build_unary_op): Check for taking address of
16697         expression of type void.
16698
16699 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
16700
16701         PR c/35210
16702         * c-typeck.c (build_function_call): Check for calling a function
16703         with qualified void return types.  Call require_complete_type when
16704         generating a trap.
16705
16706 2009-04-18  Jan Hubicka  <jh@suse.cz>
16707
16708         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
16709         Set nothrow flag.
16710         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
16711         can_throw_external flag.
16712         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
16713         * ipa-pure-const.c (ignore_edge): New function.
16714         (propagate): Compute order for NOTHROW computation; set NOTHROWs
16715         only over can_throw_external edges.
16716         (local_pure_const): Add nothrow flag.
16717         * ipa-utils.c (searchc): Add ignore_edge callback.
16718         (ipa_utils_reduced_inorder): Add ignore_edge callback.
16719         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
16720         (set_nothrow_function_flags): Update cgraph.
16721         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
16722
16723 2009-04-18  Richard Guenther  <rguenther@suse.de>
16724
16725         PR middle-end/39804
16726         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
16727         (fold_stmt): ... this and ...
16728         (fold_stmt_inplace): ... this.
16729         (fold_stmt_1): Fold references in calls and asms.
16730         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
16731
16732 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
16733
16734         * tree-vrp.c (ssa_name_nonzero_p): Remove.
16735         * tree.h: Remove the prototype for ssa_name_nonzero_p.
16736
16737 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
16738
16739         * tree.c (function_args_count): Remove.
16740         * tree.h: Remove the prototype for function_args_count.
16741
16742 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
16743
16744         * tree-iterator.c (expr_only): Remove.
16745         * tree.h: Remove the prototype for expr_only.
16746
16747 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
16748
16749         * reginfo.c (cannot_change_mode_set_regs): Remove.
16750         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
16751
16752 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
16753
16754         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
16755         whether operands 0 and 1 overlaps.
16756
16757 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16758
16759         PR middle-end/36902
16760         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
16761         pointer. Use warning_at instead of warning.
16762         (search_for_addr_array): Likewise.
16763         (check_array_bounds): Likewise.
16764         (check_all_array_refs): Check that the incoming edge is not in the
16765         list of edges to be removed.
16766         (check_all_array_refs): Avoid the temporal pointer.
16767         (vrp_visit_cond_stmt): Fix typo.
16768         (simplify_switch_using_ranges): Handle the case where the switch
16769         index is an integer constant.
16770
16771 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
16772
16773         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
16774
16775 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
16776
16777         * doc/extend.texi, doc/invoke.texi: Fix typos.
16778
16779 2009-04-17  Cary Coutant  <ccoutant@google.com>
16780
16781         * tree-flow-inline.h (get_lineno): Fix inverted test.
16782
16783 2009-04-17  Diego Novillo  <dnovillo@google.com>
16784
16785         * tree-ssa-pre.c (create_expression_by_pieces): Remove
16786         assertion for AVAIL_OUT.
16787
16788 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
16789
16790         PR target/38627
16791         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
16792         * config/sh/linux-atomic.asm: Likewise.
16793
16794 2009-04-17  Diego Novillo  <dnovillo@google.com>
16795
16796         * except.c (debug_eh_tree): New.
16797         (struct eh_region, struct eh_status): Move ...
16798         * except.h: ... here.
16799         (add_type_for_runtime): Declare extern.
16800         (lookup_type_for_runtime): Likewise.
16801         (debug_eh_tree): Declare.
16802         * Makefile.in (GTFILES): List except.h before except.c
16803
16804 2009-04-17  Diego Novillo  <dnovillo@google.com>
16805
16806         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
16807         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
16808         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
16809         (find_vars_r): ... here.
16810         * tree-flow.h (find_referenced_vars_in): Declare.
16811         * tree-ssa-pre.c (create_expression_by_pieces): Assert
16812         that AVAIL_OUT exists for BLOCK.
16813         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
16814         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
16815         (tree-parloops.o): Likewise.
16816
16817 2009-04-17  Simon Baldwin  <simonb@google.com>
16818
16819         * toplev.c (default_tree_printer): Add handling for %E format.
16820
16821 2009-04-17  Diego Novillo  <dnovillo@google.com>
16822
16823         * tree-pretty-print.c (dump_generic_node): Add break after
16824         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
16825         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
16826         FUNCTION_TYPE together.  Call print_struct_decl when printing
16827         structures and TDF_SLIM is not given.
16828         (print_struct_decl): Fix logic for detecting recursion.
16829
16830 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
16831
16832         PR 31567
16833         * gcc.c (create_at_file): New.
16834         (compile_input_file_p): New.
16835         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
16836         * main.c (main): Update call to toplev_main.
16837         * toplev.c (toplev_main): Change signature. Call expandargv.
16838         * toplev.h (toplev_main): Change signature.
16839
16840 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
16841
16842         * dwarf2out.c (field_byte_offset): Use the type size as the field size
16843         if the latter is not constant.
16844
16845 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
16846
16847         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
16848
16849 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
16850
16851         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
16852         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
16853
16854 2009-04-17  Richard Guenther  <rguenther@suse.de>
16855
16856         * tree-ssa-structalias.c (get_constraint_for_component_ref):
16857         Handle component references view-converting an invariant address.
16858
16859 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
16860
16861         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
16862         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
16863         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
16864         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
16865         Use @deftypevr rather than @deftypevar.
16866
16867 2009-04-17  Richard Guenther  <rguenther@suse.de>
16868
16869         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
16870         (get_prop_source_stmt): Likewise.
16871         (can_propagate_from): Likewise.
16872
16873 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
16874
16875         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
16876         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
16877         (--with-multilib-list): Add default value.
16878         * configure: Regenerate.
16879         * Makefile.in (TM_ENDIAN_CONFIG): Define.
16880         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
16881         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
16882         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
16883         Don't add default cpu to multilib list unnecessarily, but do enable
16884         the relevant compiler option..
16885         Add support for --with-multilib-list=<blank> and
16886         --with-multilib-list=!<somelib> to supress unwanted multilibs.
16887         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
16888         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
16889         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
16890         TM_MULTILIB_CONFIG.
16891         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
16892         (MULTILIB_OSDIRNAMES): New variable.
16893         * config/sh/t-1e: Delete file.
16894         * config/sh/t-mlib-sh1: Delete file.
16895         * config/sh/t-mlib-sh2: Delete file.
16896         * config/sh/t-mlib-sh2a: Delete file.
16897         * config/sh/t-mlib-sh2a-nofpu: Delete file.
16898         * config/sh/t-mlib-sh2a-single: Delete file.
16899         * config/sh/t-mlib-sh2a-single-only: Delete file.
16900         * config/sh/t-mlib-sh2e: Delete file.
16901         * config/sh/t-mlib-sh3e: Delete file.
16902         * config/sh/t-mlib-sh4: Delete file.
16903         * config/sh/t-mlib-sh4-nofpu: Delete file.
16904         * config/sh/t-mlib-sh4-single: Delete file.
16905         * config/sh/t-mlib-sh4-single-only: Delete file.
16906         * config/sh/t-mlib-sh4a: Delete file.
16907         * config/sh/t-mlib-sh4a-nofpu: Delete file.
16908         * config/sh/t-mlib-sh4a-single: Delete file.
16909         * config/sh/t-mlib-sh4a-single-only: Delete file.
16910         * config/sh/t-mlib-sh4al: Delete file.
16911         * config/sh/t-mlib-sh5-32media: Delete file.
16912         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
16913         * config/sh/t-mlib-sh5-64media: Delete file.
16914         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
16915         * config/sh/t-mlib-sh5-compact: Delete file.
16916         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
16917         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
16918         * doc/install.texi (Options specification): Add
16919         --with-multilib-list and --with-endian.
16920
16921 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
16922
16923         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
16924         REVISION_c.
16925         (OBJS-common): Add plugin-version.o.
16926         (plugin-version.o): New.
16927         * gcc-plugin.h (plugin_gcc_version): New.
16928         (plugin_default_version_check): New.
16929         (plugin_init_func, plugin_init): Add version argument.
16930         * plugin-version.c: New.
16931         * plugin.c (str_plugin_gcc_version_name): New.
16932         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
16933         pass it to the init function.
16934         (plugin_default_version_check): New.
16935
16936 2009-04-17  Richard Guenther  <rguenther@suse.de>
16937
16938         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
16939         for decl-vs-decl disambiguation.
16940
16941 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
16942
16943         * config/s390/s390.h (s390_tune_attr): New macro definition.
16944         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
16945
16946 2009-04-17  Richard Guenther  <rguenther@suse.de>
16947
16948         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
16949         (fold_stmt_r): Likewise.
16950         (maybe_fold_reference): New function.
16951         (fold_gimple_assign): Handle cases fold_stmt_r did.
16952         (fold_stmt): Do not use fold_stmt_r.
16953         (fold_stmt_inplace): Likewise.
16954
16955 2009-04-17  Richard Guenther  <rguenther@suse.de>
16956
16957         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
16958         (record_equivalences_from_stmt): Remove useless checks and
16959         simplifications.
16960         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
16961         the type is already suitable.
16962
16963 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
16964
16965         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
16966
16967 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
16968
16969         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
16970         (CMPtype): Define as __gcc_CMPtype.
16971
16972 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
16973
16974         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
16975         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
16976
16977 2009-04-17  Richard Guenther  <rguenther@suse.de>
16978
16979         PR tree-optimization/39746
16980         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
16981         special-casing for builtins and static variable use/def.
16982         (call_may_clobber_ref_p_1): Likewise.
16983
16984 2009-04-16  Ian Lance Taylor  <iant@google.com>
16985
16986         * df.h: Include "timevar.h".
16987         (struct df_problem): Change tv_id field to timevar_id_t.
16988         * tree-pass.h: Include "timevar.h".
16989         (struct opt_pass): Change tv_id field to timevar_id_t.
16990         * timevar.h (timevar_id_t): Define TV_NONE.
16991         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
16992         TV_NONE rather than tv_id != 0.
16993         (execute_one_pass): Likewise.
16994         * Makefile.in (DF_H): Add $(TIMEVAR_H).
16995         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
16996         dependencies to $(TREE_PASS_H).
16997         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
16998         to TV_NONE.
16999         (pass_branch_target_load_optimize2): Likewise.
17000         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
17001         (pass_outof_cfg_layout_mode): Likewise.
17002         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
17003         (pass_rebuild_cgraph_edges): Likewise.
17004         (pass_remove_cgraph_callee_edges): Likewise.
17005         * df-core.c (pass_df_initialize_opt): Likewise.
17006         (pass_df_initialize_no_opt): Likewise.
17007         (pass_df_finish): Likewise.
17008         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
17009         * except.c (pass_set_nothrow_function_flags): Likewise.
17010         (pass_convert_to_eh_region_ranges): Likewise.
17011         * final.c (pass_compute_alignments): Likewise.
17012         * function.c (pass_instantiate_virtual_regs): Likewise.
17013         (pass_init_function): Likewise.
17014         (pass_leaf_regs): Likewise.
17015         (pass_match_asm_constraints): Likewise.
17016         * gimple-low.c (pass_lower_cf): Likewise.
17017         (pass_mark_used_blocks): Likewise.
17018         * init-regs.c (pass_initialize_regs): Likewise.
17019         * integrate.c (pass_initial_value_sets): Likewise.
17020         * ira.c (pass_ira): Likewise.
17021         * jump.c (pass_cleanup_barriers): Likewise.
17022         * omp-low.c (pass_expand_omp): Likewise.
17023         (pass_lower_omp): Likewise.
17024         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
17025         * recog.c (pass_split_all_insns): Likewise.
17026         (pass_split_after_reload): Likewise.
17027         (pass_split_before_regstack): Likewise.
17028         (pass_split_before_sched2): Likewise.
17029         (pass_split_for_shorten_branches): Likewise.
17030         * reginfo.c (pass_reginfo_init): Likewise.
17031         (pass_subregs_of_mode_init): Likewise.
17032         (pass_subregs_of_mode_finish): Likewise.
17033         * passes.c (pass_postreload): Likewise.
17034         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
17035         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
17036         (pass_warn_function_return): Likewise.
17037         (pass_warn_function_noreturn): Likewise.
17038         * tree-complex.c (pass_lower_complex): Likewise.
17039         (pass_lower_complex_O0): Likewise.
17040         * tree-if-conv.c (pass_if_conversion): Likewise.
17041         * tree-into-ssa.c (pass_build_ssa): Likewise.
17042         * tree-mudflap.c (pass_mudflap_1): Likewise.
17043         (pass_mudflap_2): Likewise.
17044         * tree-nomudflap.c (pass_mudflap_1): Likewise.
17045         (pass_mudflap_2): Likewise.
17046         * tree-nrv.c (pass_return_slot): Likewise.
17047         * tree-object-size.c (pass_object_sizes): Likewise.
17048         * tree-optimize.c (pass_all_optimizations): Likewise.
17049         (pass_early_local_passes): Likewise.
17050         (pass_all_early_optimizations): Likewise.
17051         (pass_cleanup_cfg): Likewise.
17052         (pass_cleanup_cfg_post_optimizing): Likewise.
17053         (pass_free_datastructures): Likewise.
17054         (pass_free_cfg_annotations): Likewise.
17055         (pass_fixup_cfg): Likewise.
17056         (pass_init_datastructures): Likewise.
17057         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
17058         (pass_late_warn_uninitialized): Likewise.
17059         (pass_update_address_taken): Likewise.
17060         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
17061         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
17062         (pass_cse_sincos): Likewise.
17063         (pass_convert_to_rsqrt): Likewise.
17064         * tree-ssa-structalias.c (pass_build_alias): Likewise.
17065         * tree-stdarg.c (pass_stdarg): Likewise.
17066         * tree-tailcall.c (pass_tail_recursion): Likewise.
17067         (pass_tail_calls): Likewise.
17068         * tree-vect-generic.c (pass_lower_vector): Likewise.
17069         (pass_lower_vector_ssa): Likewise.
17070         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
17071
17072 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
17073
17074         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
17075         XLR entry.
17076         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
17077         Handle -march=xlr.
17078         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
17079         logical and signext.
17080
17081 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
17082
17083         PR target/39767
17084         * config/sh/predicates.md (arith_operand): Check if the operand
17085         of TRUNCATE is a REG.
17086
17087 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
17088
17089         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
17090         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
17091
17092 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
17093
17094         * tree-iterator.c (tsi_split_statement_list_after,
17095         tsi_split_statement_list_before): Remove.
17096         * tree-iterator.h: Remove the prototypes for
17097         tsi_split_statement_list_after and tsi_split_statement_list_before.
17098
17099 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
17100
17101         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
17102         * tree-ssa-propagate.h: Remove the prototype for
17103         stmt_makes_single_load.
17104
17105 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
17106
17107         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
17108         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
17109
17110 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
17111
17112         * tree-iterator.c (EXPR_LAST_BODY): Remove.
17113
17114 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
17115
17116         * except.c (eh_region_outer_p): Remove.
17117         * except.h: Remove the prototype for eh_region_outer_p.
17118
17119 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
17120
17121         * function.c (current_function_assembler_name): Remove.
17122         * function.h: Remove the prototype for
17123         current_function_assembler_name.
17124
17125 2009-04-16  Ian Lance Taylor  <iant@google.com>
17126
17127         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
17128         (add_reg_note): Call alloc_reg_note.
17129         * rtl.h (alloc_reg_note): Declare.
17130         * combine.c (try_combine): Use alloc_reg_note.
17131         (recog_for_combine, move_deaths): Likewise.
17132         (distribute_notes): Use alloc_reg_note and add_reg_note.
17133         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
17134         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
17135         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
17136
17137 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
17138
17139         PR rtl-optimization/39762
17140         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
17141         ira_may_move_out_cost): Add comments about way of their usage.
17142         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
17143
17144         * ira-conflicts.c (process_regs_for_copy): Use function
17145         ira_get_register_move_cost instead of global
17146         ira_register_move_cost.
17147
17148         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
17149         color_pass, move_spill_restore, update_curr_costs): Ditto.
17150
17151         * ira-lives.c (process_single_reg_class_operands): Ditto.
17152
17153         * ira-emit.c (emit_move_list): Ditto.
17154
17155         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
17156         (record_reg_classes): Ditto.  Use functions
17157         ira_get_register_move_cost and ira_get_may_move_cost instead of
17158         global vars ira_register_move_cost, ira_may_move_out_cost and
17159         ira_may_move_in_cost.
17160         (record_address_regs): Don't call ira_init_register_move_cost.
17161         Use function ira_get_may_move_cost instead of global
17162         ira_may_move_in_cost.
17163         (process_bb_node_for_hard_reg_moves): Use function
17164         ira_get_register_move_cost instead of global ira_register_move_cost.
17165         (ira_costs): Don't call ira_init_register_move_cost.
17166
17167 2009-04-16  Richard Guenther  <rguenther@suse.de>
17168
17169         * tree-cfg.c (verify_gimple_assign_binary):
17170         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
17171         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
17172         (create_general_new_stmt): Note that this function is broken.
17173
17174 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
17175
17176         * common.opt (fhelp): Add Var(help_flag).
17177         * gcc-plugin.h (plugin_info): Add help.
17178         * plugin.c (plugin_name_args): Add help.
17179         (register_plugin_info): Set plugin->help.
17180         (print_help_one_plugin): New.
17181         (print_plugins_help): New.
17182         * plugin.h (print_plugins_help): New.
17183         * toplev.c (toplev_main): Call print_plugins_help if needed.
17184
17185 2009-04-16  Richard Guenther  <rguenther@suse.de>
17186
17187         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
17188         (gimple_ior_addresses_taken_1): New function.
17189         (gimple_ior_addresses_taken): Likewise.
17190         * gimple.h (struct gimple_statement_with_ops_base): Remove
17191         addresses_taken member.
17192         (gimple_ior_addresses_taken): Declare.
17193         (gimple_addresses_taken, gimple_addresses_taken_ptr,
17194         gimple_set_addresses_taken): Remove.
17195         * ipa-reference.c (mark_address): New function.
17196         (scan_stmt_for_static_refs): Use it for marking addresses taken.
17197         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
17198         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
17199         (gimple_add_to_addresses_taken): Remove.
17200         (get_tmr_operands): Call mark_address_taken.
17201         (get_asm_expr_operands): Likewise.
17202         (get_expr_operands): Likewise.
17203         (build_ssa_operands): Do not clear the addresses_taken bitmap.
17204         (free_stmt_operands): Do not free it.
17205         * tree-ssa.c (delete_tree_ssa): Likewise.
17206         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
17207
17208 2009-04-16  Richard Guenther  <rguenther@suse.de>
17209
17210         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
17211         (walk_stmt_load_store_ops): Likewise.
17212         * gimple.c (get_base_loadstore): New function.
17213         (walk_stmt_load_store_addr_ops): Likewise.
17214         (walk_stmt_load_store_ops): Likewise.
17215         * ipa-pure-const.c (check_op): Simplify.
17216         (check_load, check_store): New functions.
17217         (check_stmt): Use walk_stmt_load_store_ops.
17218         * ipa-reference.c (mark_load): Adjust signature.
17219         (mark_store): Likewise.
17220         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
17221
17222 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
17223
17224         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
17225         (plugin_info): New.
17226         * opts.c (common_handle_option): Don't call print_version.
17227         * plugin.c (plugin_name_args): Add version.
17228         (register_plugin_info): New.
17229         (register_callback): Handle PLUGIN_INFO.
17230         (try_init_one_plugin): New.
17231         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
17232         if failed to init.
17233         (finalize_one_plugin): New.
17234         (finalize_plugins): New.
17235         (print_one_plugin): New.
17236         (print_plugins_versions): New.
17237         * plugin.h (print_plugins_versions): New.
17238         (finalize_plugins): New.
17239         * toplev.c (compile_file): Don't call initialize_plugins.
17240         (print_version): Call print_plugins_versions.
17241         (toplev_main): Call initialize_plugins. Print version if needed.
17242         Call finalize_plugins.
17243
17244 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
17245
17246         * common.opt (fversion): New.
17247         * gcc.c (print_version): New.
17248         (process_command): Don't print the version. Just set print_version.
17249         (main): Print version. Call subprocesses if print_version and
17250         verbose_flag are set.
17251         * opts.c (common_handle_option): Handle OPT_fversion.
17252
17253 2009-04-16  Richard Guenther  <rguenther@suse.de>
17254             Ira Rosen  <irar@il.ibm.com>
17255
17256         PR tree-optimization/39698
17257         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
17258         type of the reduction variable.  Only generate the def if
17259         it is needed.
17260
17261         * omp-low.c (expand_omp_for_generic): When converting to a pointer
17262         make sure to first convert to an integer of the same precision.
17263         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
17264         the type of the evolution correctly in computing the new
17265         induction variable base.
17266
17267 2009-04-16  Richard Guenther  <rguenther@suse.de>
17268
17269         PR middle-end/39625
17270         * tree-cfg.c (make_blocks): Split statements with to-be
17271         abnormal SSA names on the lhs.
17272
17273 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
17274
17275         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
17276         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
17277         * c-typeck.c (really_start_incremental_init): Likewise.
17278         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
17279         (TARGET_INITIALIZER): Remove it.
17280         * target.h (struct target): Remove vector_opaque_p.
17281         * tree.c (build_opaque_vector_type): New.
17282         * tree.h (TYPE_VECTOR_OPAQUE): New.
17283         (build_opaque_vector_type): Declare.
17284         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
17285         * config/rs6000/rs6000.c (build_opaque_vector_type,
17286         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
17287         (rs6000_init_builtins): Use build_opaque_vector_type for
17288         opaque_V4SI_type_node.
17289
17290 2009-04-15  Catherine Moore  <clm@codesourcery.com>
17291
17292         * debug.h (set_name):  Declare.
17293         * dwarf2out.c (dwarf2out_set_name): Declare.
17294         (dwarf2_debug_hooks): Add set_name.
17295         (find_AT_string): New.
17296         (add_AT_string): Call find_AT_string.
17297         (dwarf2out_set_name): New.
17298         * cp/decl.c (grokdeclarator): Call set_name.
17299         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
17300         * debug.c (do_nothing_debug_hooks):  Likewise.
17301         * dbxout.c (dbx_debug_hooks): Likewise.
17302         * sdbout.c (sdb_debug_hooks): Likewise.
17303
17304 2009-04-15  Michael Eager  <eager@eagercon.com>
17305
17306         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
17307         reg for single-precision FPU.
17308         * config/rs6000/rs6000.md (movsi_internal1): Only for
17309         !TARGET_SINGLE_FPU.
17310         (movsi_internal1_single): New. Add pattern to move SI values to/from
17311         single-precision FP regs.
17312
17313 2009-04-15  Richard Guenther  <rguenther@suse.de>
17314
17315         * omp-low.c (lower_rec_input_clauses): Build correct address
17316         expressions.
17317         (expand_omp_for_generic): Fix multiplication type.
17318         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
17319         (generate_memset_zero): Fix types.
17320         * tree-profile.c (prepare_instrumented_value): Correctly
17321         widen a pointer.
17322
17323 2009-04-15  Ian Lance Taylor  <iant@google.com>
17324
17325         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
17326         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
17327         for -Wall and for -Wc++-compat.
17328         (c_common_post_options): For C++, set warn_enum_compare if not
17329         already set.
17330         * c-tree.h (struct c_expr): Add field original_type.
17331         (build_external_ref): Update declaration.
17332         * c-parser.c (c_parser_braced_init): Set original_type.
17333         (c_parser_initelt): Likewise.
17334         (c_parser_expr_no_commas): Likewise.
17335         (c_parser_conditional_expression): Likewise.
17336         (c_parser_cast_expression): Likewise.
17337         (c_parser_unary_expression): Likewise.  Pull setting of
17338         original_code to top of function.
17339         (c_parser_sizeof_expression): Set original_type.
17340         (c_parser_alignof_expression): Likewise.
17341         (c_parser_postfix_expression): Likewise.  Pull setting of
17342         original_code to top of function.
17343         (c_parser_postfix_expression_after_paren_type): Set original_type.
17344         (c_parser_postfix_expression_after_primary): Likewise.
17345         (c_parser_expression): Likewise.
17346         * c-typeck.c (build_external_ref): Add type parameter.  Change all
17347         callers.
17348         (c_expr_sizeof_expr): Set original_type field.
17349         (parser_build_unary_op): Likewise.
17350         (parser_build_binary_op): Likewise.  Optionally warn about
17351         comparisons of enums of different types.
17352         (digest_init): Set original_type field.
17353         (really_start_incremental_init): Likewise.
17354         (push_init_level, pop_init_level): Likewise.
17355         * doc/invoke.texi (Warning Options): -Wenum-compare now
17356         supported in C.
17357
17358 2009-04-15  Richard Guenther  <rguenther@suse.de>
17359
17360         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
17361         out a necessary conversion.
17362         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
17363         names we didn't value number.
17364         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
17365
17366 2009-04-15  Richard Guenther  <rguenther@suse.de>
17367
17368         PR tree-optimization/39764
17369         * tree-ssa-ccp.c (get_value): Canonicalize value with
17370         canonicalize_float_value.
17371
17372 2009-04-15  Jan Hubicka  <jh@suse.cz>
17373
17374         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
17375         Wrong version of patch.
17376
17377 2009-04-15  Jan Hubicka  <jh@suse.cz>
17378
17379         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
17380
17381 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
17382
17383         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
17384         our distinct integral and vector types.
17385
17386 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
17387
17388         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
17389         * init.c (build_vtbl_address): Remove call to assemble_external.
17390
17391 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
17392
17393         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
17394         output for other floating point modes.
17395
17396 2009-04-14  Diego Novillo  <dnovillo@google.com>
17397
17398         * diagnostic.c (diagnostic_report_diagnostic): Do not
17399         warn about loaded plugins for DK_ERROR and DK_WARNING.
17400         * c-decl.c (declspecs_add_type): Move call to
17401         invoke_plugin_callbacks ...
17402         * c-parser.c (c_parser_declspecs): ... here.
17403         * plugin.c (dump_active_plugins): Tidy output.
17404
17405 2009-04-14  Diego Novillo  <dnovillo@google.com>
17406             Le-Chun Wu  <lcwu@google.com>
17407
17408         * configure.ac: Add --enable-plugin support.
17409         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
17410         * Makefile.in (PLUGIN_H): Define.
17411         Export ENABLE_PLUGIN and GMPINC to site.exp.
17412         Add PLUGINLIBS to link command.
17413         Add/modify dependencies for plugin.o and files including plugin.h.
17414         (plugin.o): New.
17415         * config.in: Regenerate.
17416
17417         * opts.c (common_handle_option): Handle OPT_fplugin_ and
17418         OPT_fplugin_arg_.
17419
17420 2009-04-14  Le-Chun Wu  <lcwu@google.com>
17421
17422         * tree-pass.h (register_one_dump_file): Add a prototype for
17423         register_one_dump_file.
17424         * toplev.c (compile_file): Call initialize_plugins.
17425         (do_compile): Call invoke_plugin_callbacks.
17426         (toplev_main): Call invoke_plugin_callbacks.
17427         * common.opt: Add -fplugin= and -fplugin-arg-.
17428         * gcc-plugin.h: New public header file for plugins to include.
17429         * plugin.c: New source file.
17430         * plugin.h: New internal header file.
17431         * passes.c (register_one_dump_file): Make it external.
17432
17433         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
17434
17435 2009-04-14  Diego Novillo  <dnovillo@google.com>
17436
17437         * doc/plugins.texi: New.
17438         * doc/gccint.texi: Add reference to Plugins chapter.
17439         * doc/invoke.texi: Document -fplugin and -fplugin-arg
17440         * diagnostic.c (diagnostic_report_diagnostic): Warn about
17441         loaded plugins, if any.
17442         * timevar.def (TV_PLUGIN_INIT): Define.
17443         (TV_PLUGIN_RUN): Define.
17444         * plugin.c: Include timevar.h
17445         (plugins_active_p): New.
17446         (dump_active_plugins): New.
17447         (debug_active_plugins): New.
17448
17449 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
17450
17451         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
17452         library paths.
17453         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
17454
17455 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
17456
17457         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
17458         the same as a minus without a shift.
17459
17460 2009-04-14  Nick Clifton  <nickc@redhat.com>
17461
17462         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
17463         comparisons with small integers will always produce a short
17464         branch.
17465
17466 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
17467
17468         Merge:
17469         2008-12-19  Diego Novillo  <dnovillo@google.com>
17470
17471         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
17472
17473 2009-04-14  Richard Guenther  <rguenther@suse.de>
17474
17475         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
17476         verification.
17477         (verify_gimple_assign_binary): Likewise.  Handle shifts and
17478         rotates correctly.
17479         (verify_gimple_phi): Print the mismatched argument position.
17480         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
17481         Fix types.
17482         (vect_update_init_of_dr): Likewise.
17483         * matrix-reorg.c (transform_access_sites): Do what the
17484         comment suggests.
17485         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
17486
17487 2009-04-13  Michael Eager  <eager@eagercon.com>
17488
17489         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
17490         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
17491         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
17492         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
17493         remove duplicate config
17494
17495 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
17496
17497         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
17498         file_name:line_number type locator of the call site.
17499
17500 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
17501
17502         * genautomata.c: Put blank after comma.
17503         (automaton_decls): New.
17504         (struct unit_usage): Add comments to member next.
17505         (store_alt_unit_usage): Keep the list ordered.
17506         (unit_present_on_list_p, equal_alternatives_p): New.
17507         (check_regexp_units_distribution): Check units distribution
17508         correctness correctly.
17509         (main): Don't write automata if error is found.  Return correct
17510         exit code.
17511
17512         * config/m68k/cf.md (cfv4_ds): Remove.
17513         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
17514         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
17515
17516         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
17517         power4-load-ext, power4-store, power4-store-update,
17518         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
17519         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
17520         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
17521         power4-sqrt, power4-isync): Modify reservation to make correct
17522         unit distribution to automata.
17523
17524         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
17525         power5-store-update, power5-two, power5-three, power5-lmul,
17526         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
17527
17528 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
17529
17530         * except.c (pass_set_nothrow_function_flags): Set name and add
17531         TODO_dump_func.
17532         (set_nothrow_function_flags): Mention in the dump file when
17533         changing a function to nothrow.
17534
17535 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
17536
17537         PR/39066
17538         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
17539         instead of unsigned long.
17540
17541 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17542
17543         * config/arm/arm.c (return_used_this_function): Remove.
17544         (arm_output_function_prologue): Remove use of
17545         return_used_this_function.
17546         (output_return_instruction): Replace use of
17547         return_used_this_function
17548         by cfun->machine->return_used_this_function.
17549         (arm_output_epilogue): Likewise.
17550         (arm_output_function_epilogue): Likewise.
17551         (thumb_unexpanded_epilogue): Likewise.
17552         * config/arm/arm.h (struct machine_function):
17553         New member return_used_this_function.
17554
17555 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
17556
17557         * doc/install.texi: Correct description of default directory for
17558         --with-gxx-include-dir.
17559
17560 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
17561
17562         * fold-const.c (build_range_check): Properly deal with enumeral and
17563         boolean base types.
17564
17565 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
17566
17567         * doc/invoke.texi (max_gcse_passes): Remove documentation.
17568         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
17569         * params.h (MAX_GCSE_PASSES): Remove.
17570         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
17571         in sequence.  Remove ability to run multiple passes.
17572         (bypass_jumps): Report run as third CPROP pass.
17573
17574 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
17575
17576         PR middle-end/39651
17577         * except.c (can_throw_external): Look at each insn in a SEQUENCE
17578         when deciding whether the whole SEQUENCE can throw.
17579
17580 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
17581
17582         PR target/39740
17583         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
17584         offseted label references.
17585
17586 2009-04-11  Jan Hubicka  <jh@suse.cz>
17587
17588         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
17589
17590 2009-04-11  Richard Guenther  <rguenther@suse.de>
17591
17592         PR middle-end/39732
17593         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
17594         return variables as TREE_ADDRESSABLE.
17595
17596 2009-04-11  Richard Guenther  <rguenther@suse.de>
17597
17598         PR tree-optimization/39713
17599         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
17600         reference trees have SSA_NAME operands.
17601
17602 2009-04-11  Richard Guenther  <rguenther@suse.de>
17603
17604         PR c/39712
17605         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
17606         address expressions.
17607
17608 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
17609
17610         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
17611         match changes in Cygwin 1.7
17612         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
17613         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
17614
17615 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
17616
17617         PR tree-optimization/39701
17618         * doc/invoke.texi (Optimization Options): Document change in
17619         meaning and initialization of -fdelete-null-pointer-checks.
17620
17621 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
17622
17623         PR middle-end/39701
17624         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
17625
17626         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
17627         here.
17628
17629         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
17630
17631 2009-04-10  Chao-ying Fu  <fu@mips.com>
17632
17633         * doc/tm.texi (Instruction Output): Document
17634         TARGET_ASM_FINAL_POSTSCAN_INSN.
17635         * target.h (final_postscan_insn): New field in asm_out.
17636         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
17637         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
17638         * final.c (final_scan_insn): Call
17639         targetm.asm_out.final_postscan_insn after outputting
17640         an asm macro and a normal instruction.
17641
17642         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
17643         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
17644         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
17645         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
17646         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
17647
17648 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
17649
17650         PR middle-end/39701
17651         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
17652         variables as non-NULL even with -fdelete-null-pointer-checks.
17653
17654 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
17655
17656         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
17657
17658 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
17659
17660         PR target/39678
17661         * config/i386/i386.c (classify_argument): Handle SCmode with
17662         (bit_offset % 64) != 0.
17663
17664 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
17665
17666         * doc/invoke.texi (Optimize Options): Add cross-reference to
17667         -Q --help=optimizers examples.
17668
17669 2009-04-10  Ben Elliston  <bje@au.ibm.com>
17670
17671         PR target/36800
17672         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
17673         regalign for the reg == fpr and TDmode case.
17674
17675 2009-04-09  David Ayers  <ayers@fsfe.org>
17676
17677         PR objc/29200
17678         * objc/objc-act.c (warn_with_method): Remove helper function.
17679         (check_duplicates): Call warning and inform directly.
17680         (really_start_method): Likewise.
17681
17682 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
17683
17684         * expmed.c (expand_divmod): Always use a comparison for a division
17685         by a large unsigned integer.
17686
17687         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
17688         for things others than variables or functions as nonzero.
17689
17690 2009-04-09  Nick Clifton  <nickc@redhat.com>
17691
17692         * unwind-compat.c: Change copyright header to refer to version
17693         3 of the GNU General Public License with version 3.1 of the
17694         GCC Runtime Library Exception and to point readers at the
17695         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
17696         * config/alpha/crtfastmath.c: Likewise.
17697         * config/alpha/linux-unwind.h: Likewise.
17698         * config/alpha/qrnnd.asm: Likewise.
17699         * config/alpha/vms-crt0-64.c: Likewise.
17700         * config/alpha/vms-crt0.c: Likewise.
17701         * config/alpha/vms-dwarf2.asm: Likewise.
17702         * config/alpha/vms-dwarf2eh.asm: Likewise.
17703         * config/alpha/vms-psxcrt0-64.c: Likewise.
17704         * config/alpha/vms-psxcrt0.c: Likewise.
17705         * config/alpha/vms_tramp.asm: Likewise.
17706         * config/arc/initfini.c: Likewise.
17707         * config/arc/lib1funcs.asm: Likewise.
17708         * config/arm/bpabi-v6m.S: Likewise.
17709         * config/arm/bpabi.S: Likewise.
17710         * config/arm/bpabi.c: Likewise.
17711         * config/arm/crti.asm: Likewise.
17712         * config/arm/crtn.asm: Likewise.
17713         * config/arm/ieee754-df.S: Likewise.
17714         * config/arm/ieee754-sf.S: Likewise.
17715         * config/arm/lib1funcs.asm: Likewise.
17716         * config/arm/libunwind.S: Likewise.
17717         * config/arm/linux-atomic.c: Likewise.
17718         * config/arm/mmintrin.h: Likewise.
17719         * config/arm/pr-support.c: Likewise.
17720         * config/arm/unaligned-funcs.c: Likewise.
17721         * config/arm/unwind-arm.c: Likewise.
17722         * config/arm/unwind-arm.h: Likewise.
17723         * config/avr/libgcc.S: Likewise.
17724         * config/bfin/crti.s: Likewise.
17725         * config/bfin/crtlibid.s: Likewise.
17726         * config/bfin/crtn.s: Likewise.
17727         * config/bfin/lib1funcs.asm: Likewise.
17728         * config/bfin/linux-unwind.h: Likewise.
17729         * config/cris/arit.c: Likewise.
17730         * config/cris/cris_abi_symbol.c: Likewise.
17731         * config/darwin-64.c: Likewise.
17732         * config/darwin-crt2.c: Likewise.
17733         * config/darwin-crt3.c: Likewise.
17734         * config/darwin.h: Likewise.
17735         * config/dbxelf.h: Likewise.
17736         * config/dfp-bit.c: Likewise.
17737         * config/dfp-bit.h: Likewise.
17738         * config/elfos.h: Likewise.
17739         * config/fixed-bit.c: Likewise.
17740         * config/fixed-bit.h: Likewise.
17741         * config/fp-bit.c: Likewise.
17742         * config/fp-bit.h: Likewise.
17743         * config/fr30/crti.asm: Likewise.
17744         * config/fr30/crtn.asm: Likewise.
17745         * config/fr30/lib1funcs.asm: Likewise.
17746         * config/freebsd-spec.h: Likewise.
17747         * config/frv/cmovd.c: Likewise.
17748         * config/frv/cmovh.c: Likewise.
17749         * config/frv/cmovw.c: Likewise.
17750         * config/frv/frvbegin.c: Likewise.
17751         * config/frv/frvend.c: Likewise.
17752         * config/frv/lib1funcs.asm: Likewise.
17753         * config/glibc-stdint.h: Likewise.
17754         * config/h8300/clzhi2.c: Likewise.
17755         * config/h8300/crti.asm: Likewise.
17756         * config/h8300/crtn.asm: Likewise.
17757         * config/h8300/ctzhi2.c: Likewise.
17758         * config/h8300/fixunssfsi.c: Likewise.
17759         * config/h8300/lib1funcs.asm: Likewise.
17760         * config/h8300/parityhi2.c: Likewise.
17761         * config/h8300/popcounthi2.c: Likewise.
17762         * config/i386/ammintrin.h: Likewise.
17763         * config/i386/att.h: Likewise.
17764         * config/i386/avxintrin.h: Likewise.
17765         * config/i386/biarch64.h: Likewise.
17766         * config/i386/bmmintrin.h: Likewise.
17767         * config/i386/cpuid.h: Likewise.
17768         * config/i386/cross-stdarg.h: Likewise.
17769         * config/i386/crtfastmath.c: Likewise.
17770         * config/i386/crtprec.c: Likewise.
17771         * config/i386/cygming-crtbegin.c: Likewise.
17772         * config/i386/cygming-crtend.c: Likewise.
17773         * config/i386/cygwin.asm: Likewise.
17774         * config/i386/emmintrin.h: Likewise.
17775         * config/i386/gmm_malloc.h: Likewise.
17776         * config/i386/gthr-win32.c: Likewise.
17777         * config/i386/i386.h: Likewise.
17778         * config/i386/immintrin.h: Likewise.
17779         * config/i386/linux-unwind.h: Likewise.
17780         * config/i386/linux64.h: Likewise.
17781         * config/i386/mm3dnow.h: Likewise.
17782         * config/i386/mmintrin-common.h: Likewise.
17783         * config/i386/mmintrin.h: Likewise.
17784         * config/i386/nmmintrin.h: Likewise.
17785         * config/i386/pmm_malloc.h: Likewise.
17786         * config/i386/pmmintrin.h: Likewise.
17787         * config/i386/smmintrin.h: Likewise.
17788         * config/i386/sol2-c1.asm: Likewise.
17789         * config/i386/sol2-ci.asm: Likewise.
17790         * config/i386/sol2-cn.asm: Likewise.
17791         * config/i386/sol2-gc1.asm: Likewise.
17792         * config/i386/tmmintrin.h: Likewise.
17793         * config/i386/unix.h: Likewise.
17794         * config/i386/w32-unwind.h: Likewise.
17795         * config/i386/wmmintrin.h: Likewise.
17796         * config/i386/x86-64.h: Likewise.
17797         * config/i386/x86intrin.h: Likewise.
17798         * config/i386/xmmintrin.h: Likewise.
17799         * config/ia64/crtbegin.asm: Likewise.
17800         * config/ia64/crtend.asm: Likewise.
17801         * config/ia64/crtfastmath.c: Likewise.
17802         * config/ia64/crti.asm: Likewise.
17803         * config/ia64/crtn.asm: Likewise.
17804         * config/ia64/fde-glibc.c: Likewise.
17805         * config/ia64/lib1funcs.asm: Likewise.
17806         * config/ia64/linux-unwind.h: Likewise.
17807         * config/ia64/quadlib.c: Likewise.
17808         * config/ia64/unwind-ia64.c: Likewise.
17809         * config/linux.h: Likewise.
17810         * config/m32c/m32c-lib1.S: Likewise.
17811         * config/m32c/m32c-lib2-trapv.c: Likewise.
17812         * config/m32c/m32c-lib2.c: Likewise.
17813         * config/m32r/initfini.c: Likewise.
17814         * config/m68hc11/larith.asm: Likewise.
17815         * config/m68hc11/m68hc11-crt0.S: Likewise.
17816         * config/m68k/cf.md: Likewise.
17817         * config/m68k/crti.s: Likewise.
17818         * config/m68k/crtn.s: Likewise.
17819         * config/m68k/lb1sf68.asm: Likewise.
17820         * config/m68k/linux-unwind.h: Likewise.
17821         * config/mcore/crti.asm: Likewise.
17822         * config/mcore/crtn.asm: Likewise.
17823         * config/mcore/lib1.asm: Likewise.
17824         * config/mips/linux-unwind.h: Likewise.
17825         * config/mips/loongson.h: Likewise.
17826         * config/mips/mips16.S: Likewise.
17827         * config/mmix/crti.asm: Likewise.
17828         * config/mmix/crtn.asm: Likewise.
17829         * config/pa/fptr.c: Likewise.
17830         * config/pa/hpux-unwind.h: Likewise.
17831         * config/pa/lib2funcs.asm: Likewise.
17832         * config/pa/linux-atomic.c: Likewise.
17833         * config/pa/linux-unwind.h: Likewise.
17834         * config/pa/milli64.S: Likewise.
17835         * config/pa/quadlib.c: Likewise.
17836         * config/pa/stublib.c: Likewise.
17837         * config/picochip/libgccExtras/adddi3.asm: Likewise.
17838         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
17839         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
17840         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
17841         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
17842         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
17843         * config/picochip/libgccExtras/divmod15.asm: Likewise.
17844         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
17845         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
17846         * config/picochip/libgccExtras/longjmp.asm: Likewise.
17847         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
17848         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
17849         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
17850         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
17851         * config/picochip/libgccExtras/setjmp.asm: Likewise.
17852         * config/picochip/libgccExtras/subdi3.asm: Likewise.
17853         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
17854         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
17855         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
17856         * config/rs6000/750cl.h: Likewise.
17857         * config/rs6000/altivec.h: Likewise.
17858         * config/rs6000/biarch64.h: Likewise.
17859         * config/rs6000/crtresfpr.asm: Likewise.
17860         * config/rs6000/crtresgpr.asm: Likewise.
17861         * config/rs6000/crtresxfpr.asm: Likewise.
17862         * config/rs6000/crtresxgpr.asm: Likewise.
17863         * config/rs6000/crtsavfpr.asm: Likewise.
17864         * config/rs6000/crtsavgpr.asm: Likewise.
17865         * config/rs6000/darwin-asm.h: Likewise.
17866         * config/rs6000/darwin-fallback.c: Likewise.
17867         * config/rs6000/darwin-fpsave.asm: Likewise.
17868         * config/rs6000/darwin-ldouble.c: Likewise.
17869         * config/rs6000/darwin-tramp.asm: Likewise.
17870         * config/rs6000/darwin-unwind.h: Likewise.
17871         * config/rs6000/darwin-vecsave.asm: Likewise.
17872         * config/rs6000/darwin-world.asm: Likewise.
17873         * config/rs6000/e500crtres32gpr.asm: Likewise.
17874         * config/rs6000/e500crtres64gpr.asm: Likewise.
17875         * config/rs6000/e500crtres64gprctr.asm: Likewise.
17876         * config/rs6000/e500crtrest32gpr.asm: Likewise.
17877         * config/rs6000/e500crtrest64gpr.asm: Likewise.
17878         * config/rs6000/e500crtresx32gpr.asm: Likewise.
17879         * config/rs6000/e500crtresx64gpr.asm: Likewise.
17880         * config/rs6000/e500crtsav32gpr.asm: Likewise.
17881         * config/rs6000/e500crtsav64gpr.asm: Likewise.
17882         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
17883         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
17884         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
17885         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
17886         * config/rs6000/eabi-ci.asm: Likewise.
17887         * config/rs6000/eabi-cn.asm: Likewise.
17888         * config/rs6000/eabi.asm: Likewise.
17889         * config/rs6000/linux-unwind.h: Likewise.
17890         * config/rs6000/linux64.h: Likewise.
17891         * config/rs6000/paired.h: Likewise.
17892         * config/rs6000/paired.md: Likewise.
17893         * config/rs6000/ppc64-fp.c: Likewise.
17894         * config/rs6000/ppu_intrinsics.h: Likewise.
17895         * config/rs6000/rs6000.h: Likewise.
17896         * config/rs6000/si2vmx.h: Likewise.
17897         * config/rs6000/sol-ci.asm: Likewise.
17898         * config/rs6000/sol-cn.asm: Likewise.
17899         * config/rs6000/spe.h: Likewise.
17900         * config/rs6000/spu2vmx.h: Likewise.
17901         * config/rs6000/sysv4.h: Likewise.
17902         * config/rs6000/tramp.asm: Likewise.
17903         * config/rs6000/vec_types.h: Likewise.
17904         * config/s390/linux-unwind.h: Likewise.
17905         * config/s390/tpf-unwind.h: Likewise.
17906         * config/score/crti.asm: Likewise.
17907         * config/score/crtn.asm: Likewise.
17908         * config/sh/crt1.asm: Likewise.
17909         * config/sh/crti.asm: Likewise.
17910         * config/sh/crtn.asm: Likewise.
17911         * config/sh/divtab-sh4-300.c: Likewise.
17912         * config/sh/divtab-sh4.c: Likewise.
17913         * config/sh/divtab.c: Likewise.
17914         * config/sh/lib1funcs-4-300.asm: Likewise.
17915         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
17916         * config/sh/lib1funcs.asm: Likewise.
17917         * config/sh/lib1funcs.h: Likewise.
17918         * config/sh/linux-atomic.asm: Likewise.
17919         * config/sh/linux-unwind.h: Likewise.
17920         * config/sh/shmedia.h: Likewise.
17921         * config/sh/sshmedia.h: Likewise.
17922         * config/sh/ushmedia.h: Likewise.
17923         * config/sparc/crtfastmath.c: Likewise.
17924         * config/sparc/linux-unwind.h: Likewise.
17925         * config/sparc/sol2-c1.asm: Likewise.
17926         * config/sparc/sol2-ci.asm: Likewise.
17927         * config/sparc/sol2-cn.asm: Likewise.
17928         * config/spu/divmodti4.c: Likewise.
17929         * config/spu/divv2df3.c: Likewise.
17930         * config/spu/float_disf.c: Likewise.
17931         * config/spu/float_unsdidf.c: Likewise.
17932         * config/spu/float_unsdisf.c: Likewise.
17933         * config/spu/float_unssidf.c: Likewise.
17934         * config/spu/mfc_multi_tag_release.c: Likewise.
17935         * config/spu/mfc_multi_tag_reserve.c: Likewise.
17936         * config/spu/mfc_tag_release.c: Likewise.
17937         * config/spu/mfc_tag_reserve.c: Likewise.
17938         * config/spu/mfc_tag_table.c: Likewise.
17939         * config/spu/multi3.c: Likewise.
17940         * config/spu/spu_internals.h: Likewise.
17941         * config/spu/spu_intrinsics.h: Likewise.
17942         * config/spu/spu_mfcio.h: Likewise.
17943         * config/spu/vec_types.h: Likewise.
17944         * config/spu/vmx2spu.h: Likewise.
17945         * config/stormy16/stormy16-lib2.c: Likewise.
17946         * config/svr4.h: Likewise.
17947         * config/sync.c: Likewise.
17948         * config/v850/lib1funcs.asm: Likewise.
17949         * config/vxlib-tls.c: Likewise.
17950         * config/vxlib.c: Likewise.
17951         * config/vxworks-dummy.h: Likewise.
17952         * config/xtensa/crti.asm: Likewise.
17953         * config/xtensa/crtn.asm: Likewise.
17954         * config/xtensa/ieee754-df.S: Likewise.
17955         * config/xtensa/ieee754-sf.S: Likewise.
17956         * config/xtensa/lib1funcs.asm: Likewise.
17957         * config/xtensa/lib2funcs.S: Likewise.
17958         * config/xtensa/linux-unwind.h: Likewise.
17959         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
17960         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
17961         * coretypes.h: Likewise.
17962         * crtstuff.c: Likewise.
17963         * defaults.h: Likewise.
17964         * dwarf2.h: Likewise.
17965         * emutls.c: Likewise.
17966         * gbl-ctors.h: Likewise.
17967         * gcov-io.h: Likewise.
17968         * ginclude/float.h: Likewise.
17969         * ginclude/iso646.h: Likewise.
17970         * ginclude/stdarg.h: Likewise.
17971         * ginclude/stdbool.h: Likewise.
17972         * ginclude/stddef.h: Likewise.
17973         * ginclude/stdfix.h: Likewise.
17974         * ginclude/stdint-gcc.h: Likewise.
17975         * ginclude/tgmath.h: Likewise.
17976         * gthr-aix.h: Likewise.
17977         * gthr-dce.h: Likewise.
17978         * gthr-gnat.c: Likewise.
17979         * gthr-gnat.h: Likewise.
17980         * gthr-lynx.h: Likewise.
17981         * gthr-mipssde.h: Likewise.
17982         * gthr-nks.h: Likewise.
17983         * gthr-posix.c: Likewise.
17984         * gthr-posix.h: Likewise.
17985         * gthr-posix95.h: Likewise.
17986         * gthr-rtems.h: Likewise.
17987         * gthr-single.h: Likewise.
17988         * gthr-solaris.h: Likewise.
17989         * gthr-tpf.h: Likewise.
17990         * gthr-vxworks.h: Likewise.
17991         * gthr-win32.h: Likewise.
17992         * gthr.h: Likewise.
17993         * libgcc2.c: Likewise.
17994         * libgcc2.h: Likewise.
17995         * libgcov.c: Likewise.
17996         * tsystem.h: Likewise.
17997         * typeclass.h: Likewise.
17998         * unwind-c.c: Likewise.
17999         * unwind-compat.h: Likewise.
18000         * unwind-dw2-fde-compat.c: Likewise.
18001         * unwind-dw2-fde-darwin.c: Likewise.
18002         * unwind-dw2-fde-glibc.c: Likewise.
18003         * unwind-dw2-fde.c: Likewise.
18004         * unwind-dw2-fde.h: Likewise.
18005         * unwind-dw2.c: Likewise.
18006         * unwind-dw2.h: Likewise.
18007         * unwind-generic.h: Likewise.
18008         * unwind-pe.h: Likewise.
18009         * unwind-sjlj.c: Likewise.
18010         * unwind.inc: Likewise.
18011         * config/arm/neon-gen.ml: Change generated copyright header to
18012         refer to version 3 of the GNU General Public License with
18013         version 3.1 of the GCC Runtime Library Exception and to point
18014         readers at the COPYING3 and COPYING3.RUNTIME files and the
18015         FSF's license web page.
18016         * config/arm/arm_neon.h: Regenerate.
18017
18018 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
18019
18020         * config/cris/cris.md: Change copyright header to refer to version
18021         3 of the GNU General Public License.
18022         * doc/install.texi2html: Change copyright header to refer to version
18023         3 of the GNU General Public License and to point readers at the
18024         COPYING3 file and the FSF's license web page.
18025         * config/vax/linux.h: Likewise.
18026
18027 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
18028
18029         * config/i386/i386.md (cmpcc): New.
18030         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
18031         (sync_compare_and_swap_cc*): Delete.
18032
18033         * config/s390/s390.c (s390_compare_emitted): Remove.
18034         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
18035         s390_compare_emitted used to be handled.  Assert that modes match.
18036         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
18037         refer to sync_compare_and_swap_ccsi.
18038         * config/s390/s390.h (s390_compare_emitted): Remove.
18039         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
18040         instead of s390_compare_emitted.
18041         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
18042         instead of s390_compare_emitted.
18043         * config/s390/s390.md (cmpcc): New.
18044         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
18045         CC_REGNUM, do not pretend it's set.
18046         (sync_compare_and_swap_cc*): Delete.
18047         * config/s390/predicates.md (cc_reg_operand): New.
18048
18049         * expr.c (sync_compare_and_swap_cc): Delete.
18050         * optabs.h (sync_compare_and_swap_cc): Delete.
18051         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
18052         is being used with can_compare_p.
18053         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
18054         (find_cc_set): New.
18055         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
18056         look for a MODE_CC set instead.  Use emit_store_flag.
18057         (expand_compare_and_swap_loop): Likewise, with some additional
18058         complication to avoid a force_reg when useless.  Use
18059         emit_cmp_and_jump_insns.
18060         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
18061         * doc/md.texi (sync_compare_and_swap_cc): Merge with
18062         sync_compare_and_swap documentation.
18063
18064 2009-04-09  Jan Hubicka  <jh@suse.cz>
18065
18066         * except.c (find_prev_try): Break out from ....
18067         (duplicate_eh_regions): ... here; properly update prev_try pointers
18068         when duplication part of tree.
18069         (dump_eh_tree): Improve dumping.
18070         (verify_eh_region): New.
18071         (verify_eh_tree): Use it.
18072
18073 2009-04-06  Richard Guenther  <rguenther@suse.de>
18074
18075         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
18076         &ARRAY addresses by adjusting their types and prepending
18077         a conversion.
18078         * tree-cfg.c (verify_gimple_assign_single): Verify that
18079         addresses are correct.
18080
18081 2009-04-09  Richard Guenther  <rguenther@suse.de>
18082
18083         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
18084         indices into an array reference if possible.
18085         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
18086         Fold POINTER_PLUS_EXPR statements with invariant address.
18087
18088 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
18089
18090         PR target/39634
18091         * config.gcc (powerpc64-*-linux*): Always build biarch.
18092
18093 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
18094
18095         PR c/39613
18096         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
18097         it and pedwarn if this results in an INTEGER_CST.
18098
18099 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18100
18101         * doc/install.texi: Update minimum GMP version.  Remove obsolete
18102         text in MPFR section.
18103
18104 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
18105
18106         * dwarf2out.c (class_scope_p): New static inline.
18107         (class_or_namespace_scope_p): Use it.
18108         (gen_variable_die): Use DW_TAG_member tag for static data member
18109         declarations instead of DW_TAG_variable.
18110
18111         PR middle-end/39573
18112         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
18113         variables.
18114
18115 2009-04-08  Richard Guenther  <rguenther@suse.de>
18116
18117         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
18118         valueize random data.
18119
18120 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
18121
18122         * config.gcc (aix tm_file):  Add aix-stdint.h.
18123         (aix tm clause use_gcc_stdint):  Set to wrap.
18124         * config/rs6000/aix-stdint.h:  New file.
18125
18126 2009-04-08  Richard Guenther  <rguenther@suse.de>
18127
18128         PR middle-end/36291
18129         * tree-dfa.c (add_referenced_var): Do not recurse into
18130         global initializers.
18131         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
18132         exposed variables.
18133         (fold_const_aggregate_ref): Likewise.
18134
18135 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
18136
18137         * recog.c (ordered_comparison_operator): New.
18138         * gensupport.c (std_preds): Add it.
18139         * doc/md.texi (Machine-Independent Predicates): Document it.
18140
18141 2009-04-08  Jan Hubicka  <jh@suse.cz>
18142
18143         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
18144         * function.h (rtl_eh): Remove exception_handler_label_map.
18145         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
18146         remove_exception_handler_label, for_each_eh_label_1): Remove.
18147         (rtl_remove_unreachable_regions): Remove.
18148         (convert_from_eh_region_ranges): Do not remove unreachable regions.
18149         (find_exception_handler_labels): Don't build the hashtable.
18150         (maybe_remove_eh_handler): Remove.
18151         (for_each_eh_label): Rewrite to walk the tree.
18152         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
18153         * except.h (maybe_remove_eh_handler): Remove.
18154         * passes.c (init_optimization_passes): Schedule second EH cleanup
18155         before out-of-ssa.
18156         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
18157         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
18158
18159 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
18160
18161         * genoutput.c (validate_optab_operands): New.
18162         (gen_insn, gen_expand): Call it.
18163
18164         * genflags.c (gen_insn): Detect misused iterators.
18165         (main): Pass line_no to gen_insn, exit with status 1 on error.
18166
18167         * genextract.c (line_no): Make global.
18168         (VEC_safe_set_locstr): Change assertion to error message.
18169         (main): Exit with status 1 on error.
18170
18171 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
18172
18173         PR c/39614
18174         PR c/39673
18175         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
18176         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
18177         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
18178         * c-convert.c (convert): Do not call fold on results of conversion
18179         functions when the result is a C_MAYBE_CONST_EXPR.
18180         * c-parser.c (c_parser_postfix_expression): Do not fold condition
18181         of __builtin_choose_expr.
18182         * c-typeck.c (remove_c_maybe_const_expr): New.
18183         (build_unary_op, build_conditional_expr, build_compound_expr,
18184         build_binary_op, c_objc_common_truthvalue_conversion): Call
18185         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
18186         integer operands.
18187
18188 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
18189
18190         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
18191         CODE to produce a new one. Add a prototype to use fold_convert_const
18192
18193 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
18194
18195         PR bootstrap/39660
18196         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
18197         mix declarations and code.
18198
18199 2009-04-08  Ben Elliston  <bje@au.ibm.com>
18200
18201         * gcc.c: Replace `CC' with `GCC' throughout.
18202
18203 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
18204
18205         * doc/invoke.texi: Document Atom support.
18206
18207 2009-04-07  Jason Merrill  <jason@redhat.com>
18208
18209         PR c++/25185
18210         * c-common.h, c-common.c: Add flag_pretty_templates.
18211         * c-opts.c (c_common_handle_option): Set it.
18212         * c.opt: Add -fno-pretty-templates.
18213         * doc/invoke.texi (C++ Dialect Options): Likewise.
18214
18215 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
18216
18217         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
18218         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
18219         (ia64_expand_builtin): Likewise.
18220
18221 2009-04-07  Martin Jambor  <mjambor@suse.cz>
18222
18223         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
18224         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
18225         ADDR_EXPRS are include too.
18226
18227 2009-04-07  Richard Guenther  <rguenther@suse.de>
18228
18229         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
18230         decls are only used if passes as parameters or if they are
18231         local statics and the call is not to a builtin.
18232         (call_may_clobber_ref_p_1): Likewise.
18233
18234 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
18235
18236         * expr.c (do_store_flag): Remove last argument.  Simplify code
18237         to avoid duplication of tests already done by can_compare_p.
18238         (expand_expr_real_1): Adjust caller.
18239
18240 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
18241
18242         * optabs.c (can_compare_p): Test the predicate of a
18243         cbranch and cstore pattern.
18244
18245 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
18246
18247         * expr.c (convert_move): Use emit_store_flag instead of
18248         "emulating" it.
18249
18250 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
18251
18252         * config/i386/i386.c (ix86_compare_emitted): Remove.
18253         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
18254         ix86_compare_op0 like ix86_compare_emitted used to be handled.
18255         * config/i386/i386.h (ix86_compare_emitted): Remove.
18256         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
18257         instead of ix86_compare_emitted.
18258         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
18259
18260 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
18261
18262         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
18263         Add t-sysroot-suffix to tmake_file.
18264         * config/print-sysroot-suffix.sh: New file.
18265         * config/t-sysroot-suffix: New file.
18266
18267 2009-04-07  Ben Elliston  <bje@au.ibm.com>
18268
18269         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
18270         as the latter produces a warning when the target does not support
18271         infinity.
18272
18273 2009-04-07  Ben Elliston  <bje@au.ibm.com>
18274
18275         * dfp.c: Replace type punning assignments with memcpy throughout.
18276         * Makefile.in (dfp.o-warn): Remove.
18277
18278 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
18279
18280         PR target/39634
18281         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
18282         Include soft-fp/t-softfp after rs6000/t-linux64.
18283
18284 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
18285
18286         * stor-layout.c (set_sizetype): Use the full precision of their
18287         machine mode for bitsize types.
18288
18289 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
18290
18291         * config/i386/i386.md: Revert 2 accidental checkins.
18292
18293 2009-04-06  Joey Ye  <joey.ye@intel.com>
18294             Xuepeng Guo  <xuepeng.guo@intel.com>
18295             H.J. Lu  <hongjiu.lu@intel.com>
18296
18297         Atom pipeline model, tuning and insn selection.
18298         * config.gcc (atom): Add atom config options and target.
18299
18300         * config/i386/atom.md: New.
18301
18302         * config/i386/i386.c (atom_cost): New cost.
18303         (m_ATOM): New macro flag.
18304         (initial_ix86_tune_features): Set m_ATOM.
18305         (x86_accumulate_outgoing_args): Likewise.
18306         (x86_arch_always_fancy_math_387): Likewise.
18307         (processor_target): Add Atom cost.
18308         (cpu_names): Add Atom cpu name.
18309         (override_options): Set Atom ISA.
18310         (ix86_issue_rate): New case PROCESSOR_ATOM.
18311         (ix86_adjust_cost): Likewise.
18312
18313         * config/i386/i386.h (TARGET_ATOM): New target macro.
18314         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
18315         (TARGET_OPT_AGU): New target option.
18316         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
18317         (processor_type): Add PROCESSOR_ATOM.
18318
18319         * config/i386/i386.md (cpu): Add new value "atom".
18320         (use_carry, movu): New attr.
18321         (atom.md): Include atom.md.
18322         (adddi3_carry_rex64): Set attr "use_carry".
18323         (addqi3_carry): Likewise.
18324         (addhi3_carry): Likewise.
18325         (addsi3_carry): Likewise.
18326         (*addsi3_carry_zext): Likewise.
18327         (subdi3_carry_rex64): Likewise.
18328         (subqi3_carry): Likewise.
18329         (subhi3_carry): Likewise.
18330         (subsi3_carry): Likewise.
18331         (x86_movdicc_0_m1_rex64): Likewise.
18332         (*x86_movdicc_0_m1_se): Likewise.
18333         (x86_movsicc_0_m1): Likewise.
18334         (*x86_movsicc_0_m1_se): Likewise.
18335         (*adddi_1_rex64): Emit add insn as much as possible.
18336         (*addsi_1): Likewise.
18337         (return_internal): Set atom_unit.
18338         (return_internal_long): Likewise.
18339         (return_pop_internal): Likewise.
18340         (*rcpsf2_sse): Set atom_sse_attr attr.
18341         (*qrt<mode>2_sse): Likewise.
18342         (*prefetch_sse): Likewise.
18343
18344         * config/i386/i386-c.c (ix86_target_macros_internal): New case
18345         PROCESSOR_ATOM.
18346         (ix86_target_macros_internal): Likewise.
18347
18348         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
18349         (*prefetch_sse_rex): Likewise.
18350         (sse_rcpv4sf2): Likewise.
18351         (sse_vmrcpv4sf2): Likewise.
18352         (sse_sqrtv4sf2): Likewise.
18353         (<sse>_vmsqrt<mode>2): Likewise.
18354         (sse_ldmxcsr): Likewise.
18355         (sse_stmxcsr): Likewise.
18356         (*sse_sfence): Likewise.
18357         (sse2_clflush): Likewise.
18358         (*sse2_mfence): Likewise.
18359         (*sse2_lfence): Likewise.
18360         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
18361         (<sse>_movup<ssemodesuffixf2c>): Likewise.
18362         (avx_movdqu<avxmodesuffix>): Likewise.
18363         (avx_lddqu<avxmodesuffix>): Likewise.
18364         (sse2_movntv2di): Change attr "type" to "ssemov".
18365         (sse2_movntsi): Likewise.
18366         (rsqrtv8sf2): Change attr "type" to "sseadd".
18367         (sse3_addsubv2df3): Set attr "atom_unit".
18368         (sse3_h<plusminus_insn>v4sf3): Likewise.
18369         (*sse2_pmaddwd): Likewise.
18370         (*vec_extractv2di_1_rex64): Likewise.
18371         (*vec_extractv2di_1_avx): Likewise.
18372         (sse2_psadbw): Likewise.
18373         (ssse3_phaddwv8hi3): Likewise.
18374         (ssse3_phaddwv4hi3): Likewise.
18375         (ssse3_phadddv4si3): Likewise.
18376         (ssse3_phadddv2si3): Likewise.
18377         (ssse3_phaddswv8hi3): Likewise.
18378         (ssse3_phaddswv4hi3): Likewise.
18379         (ssse3_phsubwv8hi3): Likewise.
18380         (ssse3_phsubwv4hi3): Likewise.
18381         (ssse3_phsubdv4si3): Likewise.
18382         (ssse3_phsubdv2si3): Likewise.
18383         (ssse3_phsubswv8hi3): Likewise.
18384         (ssse3_phsubswv4hi3): Likewise.
18385         (ssse3_pmaddubsw128): Likewise.
18386         (sse3_pmaddubsw: Likewise.
18387         (ssse3_palignrti): Likewise.
18388         (ssse3_palignrdi): Likewise.
18389
18390 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
18391
18392         * doc/install.texi (Specific): Fix two cross-references to MinGW.
18393
18394 2009-04-06  Richard Guenther  <rguenther@suse.de>
18395
18396         PR tree-optimization/28868
18397         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
18398         of which PHI results we inserted.
18399         (insert_into_preds_of_block): Record inserted PHIs.
18400         (eliminate): Eliminate redundant PHI nodes.
18401         (init_pre): Init inserted_phi_names.
18402
18403 2009-04-06  Richard Guenther  <rguenther@suse.de>
18404
18405         PR tree-optimization/39643
18406         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
18407         IMAGPART_EXPRs of complex constants.
18408         (execute_fold_all_builtins): If we folded a call queue
18409         TODO_update_address_taken.
18410
18411 2009-04-06  Jan Hubicka  <jh@suse.cz>
18412
18413         PR middle-end/39659
18414         * except.c (remove_unreachable_regions): Propagate may_contain_throw
18415         flag.
18416
18417 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
18418
18419         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
18420         delay slot.
18421         (ic_invalidate_array): Likewise.
18422
18423 2009-04-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
18424
18425         * calls.c (emit_library_call_value_1): Fix a problem with parameter
18426         alignment for library calls.
18427
18428 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
18429
18430         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
18431         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
18432         * config/i386/mingw-stdint.h:  New file.
18433
18434 2009-04-05  Richard Guenther  <rguenther@suse.de>
18435
18436         PR tree-optimization/39648
18437         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
18438         our &A vs. &A[0] IL deficiencies.
18439
18440 2009-04-04  Jan Hubicka  <jh@suse.cz>
18441
18442         * except.c (sjlj_find_directly_reachable_regions): Be ready for
18443         removed toplevel regions.
18444         (sjlj_mark_call_sites): Likewise.
18445
18446 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
18447
18448         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
18449         (cygwin tm clause use_gcc_stdint):  Set to wrap.
18450         * config/i386/cygwin-stdint.h:  New file.
18451
18452 2009-04-04  Richard Guenther  <rguenther@suse.de>
18453
18454         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
18455         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
18456         single-argument PHIs if we are in loop-closed SSA form.
18457         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
18458         for the pre-condition.
18459         (slpeel_tree_peel_loop_to_edge): Likewise.
18460         (vect_build_loop_niters): Take an optional sequence to append stmts.
18461         (vect_generate_tmps_on_preheader): Likewise.
18462         (vect_do_peeling_for_loop_bound): Take extra guards for the
18463         pre-condition.
18464         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
18465         the cost model check.
18466         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
18467         guards if we are going to peel.  Do not apply versioning in that case.
18468         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
18469         (vect_do_peeling_for_loop_bound): Likewise.
18470         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
18471         loop bound only record extra pre-conditions, do not apply loop
18472         versioning.
18473
18474 2009-04-04  Richard Guenther  <rguenther@suse.de>
18475
18476         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
18477         renaming code.
18478
18479 2009-04-04  Jan Hubicka  <jh@suse.cz>
18480
18481         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
18482         last_basic_block for size of bb->index indexed array.
18483         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
18484         compute_out, link_btr_uses, build_btr_def_use_webs,
18485         build_btr_def_use_webs, migrate_btr_defs): Likewise.
18486
18487 2009-04-04  Jan Hubicka  <jh@suse.cz>
18488
18489         * except.c (remove_eh_handler_and_replace): Break out from ...
18490         (remove_eh_handler): ... here.
18491         (bring_to_root): New function.
18492         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
18493         handled ones, bring others to root of tree.
18494
18495 2009-04-04  Jan Hubicka  <jh@suse.cz>
18496
18497         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
18498         (all_phis_safe_to_merge): New function.
18499         (update_info): New structure.
18500         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
18501         (cleanup_empty_eh): Update SSA if possible.
18502
18503 2009-04-04  Richard Guenther  <rguenther@suse.de>
18504
18505         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
18506         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
18507         (append_vuse): Likewise.
18508
18509 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
18510
18511         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
18512         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
18513         instead of REG_UNSAVED for DW_CFA_undefined.
18514         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
18515         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
18516         outermost frame.
18517
18518 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
18519
18520         PR target/39501
18521         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
18522         * testsuite/gcc.c-torture/execute/pr39501.c: New file.
18523         * testsuite/gcc.c-torture/execute/pr39501.x: New file.
18524
18525 2009-04-04  Richard Guenther  <rguenther@suse.de>
18526
18527         PR tree-optimization/8781
18528         PR tree-optimization/37892
18529         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
18530         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
18531         (valueize_refs): Call it for *& valueizations.
18532         (shared_reference_ops_from_ref): Rename to ...
18533         (valueize_shared_reference_ops_from_ref): ... this and valueize.
18534         (shared_reference_ops_from_call): Rename to ...
18535         (valueize_shared_reference_ops_from_call): ... this and valueize.
18536         (vn_reference_lookup): Update.
18537         (visit_reference_op_call): Likewise.
18538         * tree-ssa-pre.c (phi_translate_1): Fold *&.
18539         (eliminate): Value-replace the call address in call statements.
18540
18541 2009-04-04  Richard Guenther  <rguenther@suse.de>
18542
18543         PR tree-optimization/39636
18544         * tree-ssa-forwprop.c
18545         (forward_propagate_addr_into_variable_array_index): Check for
18546         GIMPLE_ASSIGN before accessing the rhs code.
18547
18548 2009-04-03  Jason Merrill  <jason@redhat.com>
18549
18550         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
18551
18552 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
18553
18554         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
18555         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
18556         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
18557         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
18558         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
18559         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
18560         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
18561         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
18562         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
18563         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
18564         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
18565         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
18566         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
18567         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
18568         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
18569         Use fr_reg_or_fp01_operand instead of fr_register_operand
18570
18571         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
18572         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
18573         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
18574
18575 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
18576
18577         PR rtl-optimization/39607
18578         PR rtl-optimization/39631
18579
18580         Revert:
18581
18582         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
18583         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
18584         instead of DF_LR_OUT.
18585         * ira-lives.c (process_bb_node_lives): Ditto.
18586         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
18587         instead of DF_LR_{OUT,IN}.
18588         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
18589         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
18590
18591 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
18592
18593         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
18594         (execute_lower_omp): Always run but take the short way out if -fopenmp
18595         is not given.
18596         (gate_lower_omp): Remove, forcing the pass manager to always run the
18597         pass and always set PROP_gimple_lomp.
18598         (pass_lower_omp): Remove gate function.
18599         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
18600         PROP_trees.  Instead, require it.
18601         * ipa-cp.c (pass_ipa_cp): Likewise.
18602         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
18603         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
18604         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
18605         and PROP_gimple_leh.
18606
18607 2009-04-03  Richard Guenther  <rguenther@suse.de>
18608
18609         PR middle-end/13146
18610         PR tree-optimization/23940
18611         PR tree-optimization/33237
18612         PR middle-end/33974
18613         PR middle-end/34093
18614         PR tree-optimization/36201
18615         PR tree-optimization/36230
18616         PR tree-optimization/38049
18617         PR tree-optimization/38207
18618         PR tree-optimization/38230
18619         PR tree-optimization/38301
18620         PR tree-optimization/38585
18621         PR middle-end/38895
18622         PR tree-optimization/38985
18623         PR tree-optimization/39299
18624         * tree-ssa-structalias.h: Remove.
18625         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
18626         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
18627         (struct vuse_element_d): Remove.
18628         (struct vuse_vec_d): Likewise.
18629         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
18630         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
18631         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
18632         VUSE_ELEMENT_VAR): Likewise.
18633         (struct voptype_d): Likewise.
18634         (NUM_VOP_FREE_BUCKETS): Likewise.
18635         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
18636         (struct stmt_operands_d): Remove.
18637         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
18638         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
18639         VDEF_NUM, VDEF_VECT): Likewise.
18640         (copy_virtual_operands): Remove.
18641         (operand_build_cmp): Likewise.
18642         (create_ssa_artificial_load_stmt): Likewise.
18643         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
18644         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
18645         vuse_index and mayuse_index members.  Pack and move done and iter_type
18646         members to the front.
18647         (SSA_OP_VMAYUSE): Remove.
18648         (SSA_OP_VIRTUAL_USES): Adjust.
18649         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
18650         (unlink_stmt_vdef): Declare.
18651         (add_to_addressable_set): Remove.
18652         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
18653         (vrp_visit_stmt): Likewise.
18654         * doc/tree-ssa.texi (Alias analysis): Update.
18655         * doc/invoke.texi (max-aliased-vops): Remove docs.
18656         (avg-aliased-vops): Likewise.
18657         * tree-into-ssa.c (syms_to_rename): Remove.
18658         (need_to_update_vops_p): Likewise.
18659         (need_to_initialize_update_ssa_p): Rename to ...
18660         (update_ssa_initialized_fn): ... this.  Track function we are
18661         initialized for.
18662         (symbol_marked_for_renaming): Simplify.
18663         (add_new_name_mapping): Do not set need_to_update_vops_p.
18664         (dump_currdefs): Use SYMS_TO_RENAME.
18665         (rewrite_update_stmt): Always walk all uses/defs.
18666         (dump_update_ssa): Adjust.
18667         (init_update_ssa): Take function argument.  Track what we are
18668         initialized for.
18669         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
18670         (create_new_def_for): Initialize for cfun, assert we are initialized
18671         for cfun.
18672         (mark_sym_for_renaming): Simplify.
18673         (mark_set_for_renaming): Do not initialize update-ssa.
18674         (need_ssa_update_p): Simplify.  Take function argument.
18675         (name_mappings_registered_p): Assert we ask for the correct function.
18676         (name_registered_for_update_p): Likewise.
18677         (ssa_names_to_replace): Likewise.
18678         (release_ssa_name_after_update_ssa): Likewise.
18679         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
18680         (dump_decl_set): Do not print a newline.
18681         (debug_decl_set): Do it here.
18682         (dump_update_ssa): And here.
18683         * tree-ssa-loop-im.c (move_computations): Adjust.
18684         (movement_possibility): Likewise.
18685         (determine_max_movement): Likewise.
18686         (gather_mem_refs_stmt): Likewise.
18687         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
18688         or NAME_MEMORY_TAG.
18689         * tree-complex.c (update_all_vops): Remove.
18690         (expand_complex_move): Adjust.
18691         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
18692         Simplify test for memory referencing statement.  Exclude
18693         non-invariant ADDR_EXPRs.
18694         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
18695         * tree-loop-distribution.c (generate_memset_zero): Adjust.
18696         (rdg_flag_uses): Likewise.
18697         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
18698         related code.
18699         (tree_optimize_tail_calls_1): Also split the
18700         edge from the entry block if we have degenerate PHI nodes in
18701         the first basic block.
18702         * tree.c (init_ttree): Remove memory-tag related code.
18703         (tree_code_size): Likewise.
18704         (tree_node_structure): Likewise.
18705         (build7_stat): Re-write to be build6_stat.
18706         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
18707         (SSA_VAR_P): Adjust.
18708         (struct tree_memory_tag): Remove.
18709         (struct tree_memory_partition_tag): Likewise.
18710         (union tree_node): Adjust.
18711         (build7): Re-write to be build6.
18712         * tree-pass.h (pass_reset_cc_flags): Remove.
18713         (TODO_update_address_taken): New flag.
18714         (pass_simple_dse): Remove.
18715         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
18716         * params.h (MAX_ALIASED_VOPS): Remove.
18717         (AVG_ALIASED_VOPS): Likewise.
18718         * omp-low.c (expand_omp_taskreg): Update SSA form.
18719         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
18720         aliases the lhs in a copy stmt.
18721         * tree-ssa-dse.c (struct address_walk_data): Remove.
18722         (memory_ssa_name_same): Likewise.
18723         (memory_address_same): Likewise.
18724         (get_kill_of_stmt_lhs): Likewise.
18725         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
18726         unused stores.  Look through PHI nodes into post-dominated regions.
18727         (dse_optimize_stmt): Simplify.  Properly remove stores.
18728         (tree_ssa_dse): Compute dominators.
18729         (execute_simple_dse): Remove.
18730         (pass_simple_dse): Likewise.
18731         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
18732         gimple_loaded_syms and gimple_stored_syms computation.
18733         * toplev.c (dump_memory_report): Dump alias and pta stats.
18734         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
18735         (vn_reference_eq): Likewise.
18736         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
18737         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
18738         valueize_vuses): Remove.
18739         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
18740         (get_def_ref_stmt_vuse): ... this.
18741         (vn_reference_lookup_2): New function.
18742         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
18743         walking equivalent vuses.  Simplify.
18744         (vn_reference_lookup): Likewise.
18745         (vn_reference_insert): Likewise.
18746         (vn_reference_insert_pieces): Likewise.
18747         (visit_reference_op_call): Simplify.
18748         (visit_reference_op_load): Likewise.
18749         (visit_reference_op_store): Likewise.
18750         (init_scc_vn): Remove shared_lookup_vuses initialization.
18751         (free_scc_vn): Remove shared_lookup_vuses freeing.
18752         (sort_vuses, sort_vuses_heap): Remove.
18753         (get_ref_from_reference_ops): Export.
18754         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
18755         vector with single vuse pointer.
18756         (vn_reference_lookup_pieces, vn_reference_lookup,
18757         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
18758         (shared_vuses_from_stmt): Remove.
18759         (get_ref_from_reference_ops): Declare.
18760         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
18761         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
18762         memory-tag related code.
18763         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
18764         (likely_value): Add comment, skip static-chain of call statements.
18765         (surely_varying_stmt_p): Adjust.
18766         (gimplify_and_update_call_from_tree): Likewise.
18767         (execute_fold_all_builtins): Do not rebuild alias info.
18768         (gimplify_and_update_call_from_tree): Properly update VOPs.
18769         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
18770         (copy_ref_info): Remove memory-tag related code.
18771         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
18772         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
18773         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
18774         computation.
18775         * tree-ssa-dom.c (gimple_p): Remove typedef.
18776         (eliminate_redundant_computations): Adjust.
18777         (record_equivalences_from_stmt): Likewise.
18778         (avail_expr_hash): Likewise.
18779         (avail_expr_eq): Likewise.
18780         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
18781         (stmt_makes_single_load): Likewise.
18782         (stmt_makes_single_store): Likewise.
18783         * tree-ssa-alias.c: Rewrite completely.
18784         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
18785         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
18786         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
18787         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
18788         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
18789         Remove public functions.
18790         (pass_reset_cc_flags): Remove.
18791         (pass_build_alias): Move ...
18792         * tree-ssa-structalias.c (pass_build_alias): ... here.
18793         * tree-ssa-alias.c (may_be_aliased): Move ...
18794         * tree-flow-inline.h (may_be_aliased): ... here.
18795         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
18796         count_uses_and_derefs): Move ...
18797         * gimple.c: ... here.
18798         * gimple.h (count_uses_and_derefs): Declare.
18799         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
18800         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
18801         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
18802         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
18803         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
18804         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
18805         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
18806         New functions.
18807         * tree-dfa.c (refs_may_alias_p): Move ...
18808         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
18809         * tree-ssa-alias.h: New file.
18810         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
18811         (statement_sink_location): Likewise.
18812         * opts.c (decode_options): Do not adjust max-aliased-vops or
18813         avg-aliased-vops values.
18814         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
18815         (TV_CALL_CLOBBER): Likewise.
18816         (TV_FLOW_SENSITIVE): Likewise.
18817         (TV_FLOW_INSENSITIVE): Likewise.
18818         (TV_MEMORY_PARTITIONING): Likewise.
18819         (TV_ALIAS_STMT_WALK): New timevar.
18820         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
18821         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
18822         (get_address_description): Remove memory-tag related code.
18823         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
18824         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
18825         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
18826         and immediate uses in statements.  Document.
18827         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
18828         (dump_symbols): Remove.
18829         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
18830         * alias.c (get_deref_alias_set): New function split out from ...
18831         (get_alias_set): ... here.
18832         * alias.h (get_deref_alias_set): Declare.
18833         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
18834         type parameter.  Remove restrict pointer handling.  Create a
18835         ref-all pointer in case type-based alias sets do not conflict.
18836         (vect_analyze_data_refs): Remove SMT related code.
18837         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
18838         (vectorizable_load): Likewise.
18839         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
18840         (DR_SYMBOL_TAG, DR_VOPS): Remove.
18841         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
18842         Ignore vops and SMTs.
18843         (dr_analyze_alias): Likewise..
18844         (free_data_ref): Likewise.
18845         (create_data_ref): Likewise.
18846         (analyze_all_data_dependences): Likewise.
18847         (get_references_in_stmt): Adjust.
18848         * tree-flow-inline.h (gimple_aliases_computed_p,
18849         gimple_addressable_vars, gimple_call_clobbered_vars,
18850         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
18851         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
18852         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
18853         gimple_mem_ref_stats): Remove.
18854         (gimple_vop): New function.
18855         (op_iter_next_use): Remove vuses and mayuses cases.
18856         (op_iter_next_def): Remove vdefs case.
18857         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
18858         (clear_and_done_ssa_iter): Do not set removed fields.
18859         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
18860         Assert we are not iterating over vuses or vdefs if not also
18861         iterating over uses or defs.
18862         (op_iter_init_use): Likewise.
18863         (op_iter_init_def): Likewise.
18864         (op_iter_next_vdef): Remove.
18865         (op_iter_next_mustdef): Likewise.
18866         (op_iter_init_vdef): Likewise.
18867         (compare_ssa_operands_equal): Likewise.
18868         (link_use_stmts_after): Handle vuse operand.
18869         (is_call_used): Use is_call_clobbered.
18870         (is_call_clobbered): Global variables are always call clobbered,
18871         query the call-clobbers bitmap.
18872         (mark_call_clobbered): Ignore global variables.
18873         (clear_call_clobbered): Likewise.
18874         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
18875         virtual operands sanity check.
18876         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
18877         Remove.
18878         (TARGET_MEM_REF): Remove TMR_TAG operand.
18879         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
18880         Remove call-clobber related code.
18881         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
18882         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
18883         partitions or escape reason.
18884         (get_single_def_stmt, get_single_def_stmt_from_phi,
18885         get_single_def_stmt_with_phi): Remove.
18886         (dump_referenced_vars): Tidy.
18887         (get_ref_base_and_extent): Allow bare decls.
18888         (collect_dfa_stats): Adjust.
18889         * graphite.c (rename_variables_in_stmt): Adjust.
18890         (graphite_copy_stmts_from_block): Likewise.
18891         (translate_clast): Likewise.
18892         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
18893         (EXPR_DIES): New.
18894         (translate_vuse_through_block): Use the oracle.
18895         (phi_translate_1): Adjust.
18896         (value_dies_in_block_x): Use the oracle.  Cache the outcome
18897         in EXPR_DIES.
18898         (valid_in_sets): Check if the VUSE for
18899         a REFERENCE is available.
18900         (eliminate): Do not remove stmts during elimination,
18901         instead queue and remove them afterwards.
18902         (do_pre): Do not rebuild alias info.
18903         (pass_pre): Run TODO_rebuild_alias before PRE.
18904         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
18905         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
18906         (mark_all_v_defs_stmt): Remove.
18907         (mark_all_v_defs_seq): Adjust.
18908         (sra_replace): Likewise.
18909         (scalarize_use): Likewise.
18910         (scalarize_copy): Likewise.
18911         (scalarize_init): Likewise.
18912         (scalarize_ldst): Likewise.
18913         (todoflags): Remove.
18914         (tree_sra): Do not rebuild alias info.
18915         (tree_sra_early): Adjust.
18916         (pass_sra): Run TODO_update_address_taken before SRA.
18917         * tree-predcom.c (set_alias_info): Remove.
18918         (prepare_initializers_chain): Do not call it.
18919         (mark_virtual_ops_for_renaming): Adjust.
18920         (mark_virtual_ops_for_renaming_list): Remove.
18921         (initialize_root_vars): Adjust.
18922         (initialize_root_vars_lm): Likewise.
18923         (prepare_initializers_chain): Likewise.
18924         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
18925         (may_propagate_copy_into_stmt): Likewise.
18926         (merge_alias_info): Do nothing for now.
18927         (propagate_tree_value_into_stmt): Adjust.
18928         (stmt_may_generate_copy): Likewise.
18929         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
18930         not mark symbols for renaming.
18931         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
18932         with the same statement, make sure to update the new pointed-to one.
18933         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
18934         call statements, do not mark symbols for renaming.
18935         (mark_operand_necessary): Dump something.
18936         (ref_may_be_aliased): New function.
18937         (mark_aliased_reaching_defs_necessary_1): New helper function.
18938         (mark_aliased_reaching_defs_necessary): Likewise.
18939         (mark_all_reaching_defs_necessary_1): Likewise.
18940         (mark_all_reaching_defs_necessary): Likewise.
18941         (propagate_necessity): Do not process virtual PHIs.  For
18942         non-aliased loads mark all reaching definitions as necessary.
18943         For aliased loads and stores mark the immediate dominating
18944         aliased clobbers as necessary.
18945         (visited): New global static.
18946         (perform_tree_ssa_dce): Free visited bitmap after propagating
18947         necessity.
18948         (remove_dead_phis): Perform simple dead virtual PHI removal.
18949         (remove_dead_stmt): Properly unlink virtual operands when
18950         removing stores.
18951         (eliminate_unnecessary_stmts): Schedule PHI removal after
18952         stmt removal.
18953         * tree-ssa-ter.c (is_replaceable_p): Adjust.
18954         (process_replaceable): Likewise.
18955         (find_replaceable_in_bb): Likewise.
18956         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
18957         based on the single gimple vop.
18958         (verify_flow_insensitive_alias_info): Remove.
18959         (verify_flow_sensitive_alias_info): Likewise.
18960         (verify_call_clobbering): Likewise.
18961         (verify_memory_partitions): Likewise.
18962         (verify_alias_info): Likewise.
18963         (verify_ssa): Adjust..
18964         (execute_update_addresses_taken): Export.  Update SSA
18965         manually.  Optimize only when optimizing.  Use a local bitmap.
18966         (pass_update_address_taken): Remove TODO_update_ssa, add
18967         TODO_dump_func.
18968         (pass_update_address_taken): Just use TODO_update_address_taken.
18969         (init_tree_ssa): Do not initialize addressable_vars.
18970         (verify_ssa): Verify new VUSE / VDEF properties.
18971         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
18972         Do not call verify_alias_info.
18973         (delete_tree_ssa): Clear the VUSE, VDEF operands.
18974         Do not free the loaded and stored syms bitmaps.  Reset the escaped
18975         and callused solutions.  Do not free addressable_vars.
18976         Remove memory-tag related code.
18977         (warn_uninitialized_var): Aliases are always available.
18978         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
18979         * lambda-code.c (can_put_in_inner_loop): Adjust.
18980         (can_put_after_inner_loop): Likewise.
18981         (perfect_nestify): Likewise.
18982         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
18983         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
18984         (vectorizable_conversion): Do not mark symbols for renaming.
18985         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
18986         (expand_call_inline): Unlink the calls virtual operands before
18987         replacing it.
18988         (tree_function_versioning): Do not call update_ssa if we are not
18989         updating clones.  Simplify.
18990         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
18991         (propagate_with_phi): Likewise..
18992         * tree-outof-ssa.c (create_temp): Remove memory tag and call
18993         clobber code.  Assert we are not aliased or global.
18994         * tree-flow.h: Include tree-ssa-alias.h
18995         (enum escape_type): Remove.
18996         (struct mem_sym_stats_d): Likewise.
18997         (struct mem_ref_stats_d): Likewise.
18998         (struct gimple_df): Add vop member.  Remove global_var,
18999         call_clobbered_vars, call_used_vars, addressable_vars,
19000         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
19001         escaped and callused members.
19002         (struct ptr_info_def): Remove all members, add points-to solution
19003         member pt.
19004         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
19005         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
19006         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
19007         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
19008         (tree-ssa-alias.o): Likewise.
19009         (toplev.o): Add tree-ssa-alias.h
19010         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
19011         * gimple.c (gimple_set_bb): Fix off-by-one error.
19012         (is_gimple_reg): Do not handle memory tags.
19013         (gimple_copy): Also copy virtual operands.
19014         Delay updating the statement.  Do not reset loaded and stored syms.
19015         (gimple_set_stored_syms): Remove.
19016         (gimple_set_loaded_syms): Likewise.
19017         (gimple_call_copy_skip_args): Copy the virtual operands
19018         and mark the new statement modified.
19019         * tree-ssa-structalias.c (may_alias_p): Remove.
19020         (set_uids_in_ptset): Take the alias set to prune with as
19021         parameter.  Fold in the alias test of may_alias_p.
19022         (compute_points_to_sets): Compute whether a ptr is dereferenced
19023         in a local sbitmap.
19024         (process_constraint): Deal with &ANYTHING on the lhs, reject all
19025         other ADDRESSOF constraints on the lhs.
19026         (get_constraint_for_component_ref): Assert that we don't get
19027         ADDRESSOF constraints from the base of the reference.
19028         Properly generate UNKNOWN_OFFSET for DEREF if needed.
19029         (struct variable_info): Remove collapsed_to member.
19030         (get_varinfo_fc): Remove.
19031         (new_var_info): Do not set collapsed_to.
19032         (dump_constraint): Do not follow cycles.
19033         (dump_constraint_graph): Likewise.
19034         (build_pred_graph): Likewise.
19035         (build_succ_graph): Likewise.
19036         (rewrite_constraints): Likewise.
19037         (do_simple_structure_copy): Remove.
19038         (do_rhs_deref_structure_copy): Remove.
19039         (do_lhs_deref_structure_copy): Remove.
19040         (collapse_rest_of_var): Remove.
19041         (do_structure_copy): Re-implement.
19042         (pta_stats): New global variable.
19043         (dump_pta_stats): New function.
19044         (struct constraint_expr): Make offset signed.
19045         (UNKNOWN_OFFSET): Define special value.
19046         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
19047         (solution_set_expand): New helper function split out from ...
19048         (do_sd_constraint): ... here.
19049         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
19050         (do_ds_constraint): Likewise.
19051         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
19052         and CALLUSED = *CALLUSED.
19053         (set_union_with_increment): Make inc argument signed.
19054         (type_safe): Remove.
19055         (get_constraint_for_ptr_offset): Handle unknown and negative
19056         constant offsets.
19057         (first_vi_for_offset): Handle offsets before start.  Bail
19058         out early for offsets beyond the variable extent.
19059         (first_or_preceding_vi_for_offset): New function.
19060         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
19061         Together with ESCAPED = *ESCAPED this properly computes reachability.
19062         (find_what_var_points_to): New function.
19063         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
19064         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
19065         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
19066         pt_solutions_intersect): New functions.
19067         (compute_call_used_vars): Remove.
19068         (compute_may_aliases): New main entry into PTA computation.
19069         * gimple.h (gimple_p): New typedef.
19070         (struct gimple_statement_base): Remove references_memory_p.
19071         (struct gimple_statement_with_memory_ops_base): Remove
19072         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
19073         members.
19074         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
19075         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
19076         gimple_set_references_memory): Remove.
19077         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
19078         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
19079         New functions.
19080         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
19081         (verify_expr): Allow RESULT_DECL.
19082         (gimple_duplicate_bb): Do not copy virtual operands.
19083         (gimple_duplicate_sese_region): Adjust.
19084         (gimple_duplicate_sese_tail): Likewise.
19085         (mark_virtual_ops_in_region): Remove.
19086         (move_sese_region_to_fn): Do not call it.
19087         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
19088         and pass_simple_dse.
19089         (execute_function_todo): Handle TODO_update_address_taken,
19090         call execute_update_addresses_taken for TODO_rebuild_alias.
19091         (execute_todo): Adjust.
19092         (execute_one_pass): Init dump files early.
19093         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
19094         call-clobbered.
19095         (create_general_new_stmt): Clear vops.
19096         * tree-ssa-reassoc.c (get_rank): Adjust.
19097         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
19098         symbols for renaming.
19099         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
19100         (PARAM_AVG_ALIASED_VOPS): Likewise.
19101         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
19102         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
19103         * tree-ssa-operands.c: Simplify for new virtual operand representation.
19104         (operand_build_cmp, copy_virtual_operands,
19105         create_ssa_artificial_load_stmt, add_to_addressable_set,
19106         gimple_add_to_addresses_taken): Remove public functions.
19107         (unlink_stmt_vdef): New function.
19108
19109 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
19110
19111         * config.gcc (powerpc-*-linux*): Merge variants.
19112
19113 2009-04-02  Chao-ying Fu  <fu@mips.com>
19114             James Grosbach  <james.grosbach@microchip.com>
19115
19116         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
19117         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
19118         cop0_sp_offset.
19119         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
19120         keep_interrupts_masked_p, use_debug_exception_return_p.
19121         (mips_attribute_table): Add interrupt, use_shadow_register_set,
19122         keep_interrupts_masked, use_debug_exception_return.
19123         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
19124         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
19125         New functions.
19126         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
19127         (mips_print_operand): Process COP0 registers to print $0 .. $31
19128         correctly for GAS to process.
19129         (mips_interrupt_extra_call_saved_reg_p): New function.
19130         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
19131         extra registers.
19132         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
19133         (mips_compute_frame_info): Add supports for interrupt context that
19134         includes doubleword accumulators and COP0 registers.
19135         (mips_for_each_saved_acc): New function.
19136         (mips_for_each_saved_gpr_and_fpr): Change the function name from
19137         mips_for_each_saved_reg.
19138         (mips_save_reg): Save accumulators.
19139         (mips_kernel_reg_p): A new for_each_rtx callback.
19140         (mips_expand_prologue): Support interrupt handlers.
19141         (mips_restore_reg): Restore accumulators.
19142         (mips_expand_epilogue): Support interrupt handlers.
19143         (mips_can_use_return_insn): Return false for interrupt handlers.
19144         (mips_epilogue_uses): New function.
19145         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
19146         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
19147         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
19148         cop0_move): New instructions.
19149         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
19150         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
19151         defines.
19152         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
19153         New defines.
19154         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
19155         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
19156         interrupt handlers, we use K0 as the temporary register.
19157         (EPILOGUE_USES): Change to a function call.
19158         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
19159         handlers, we use K0 as the temporary register.
19160
19161         * doc/extend.texi (Function Attributes): Document interrupt,
19162         use_shadow_register_set, keep_interrupts_masked,
19163         use_debug_exception_return for MIPS attributes.
19164
19165 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
19166
19167         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
19168         Remove a number of t-files from tmake_file.
19169         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
19170         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
19171         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
19172         target_prototype, not TARGET_PROTOTYPE.
19173         (LINK_OS_GNU_SPEC): Define.
19174         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
19175         and darwin-ldoubdle.c.
19176
19177 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
19178
19179         PR driver/39293
19180         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
19181         (cpp_options): Ditto.
19182         (default_compilers): Ditto.
19183         (display_help): Ditto.
19184         (process_command): Ditto.
19185         (do_spec_1): Ditto.
19186         (set_input): Use lbasename instead of duplicate code.
19187         (save_temps_prefix): New static for -save-temps=obj.
19188         (save_temps_length): Ditto.
19189
19190         * doc/invoke.texi (-save-temps=obj): Document new variant to
19191         -save-temps switch.
19192
19193 2009-04-02  Jeff Law  <law@redhat.com>
19194
19195         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
19196         variable.
19197
19198 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
19199
19200         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
19201         * configure: Regenerated.
19202
19203 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
19204
19205         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
19206         share the argument list.
19207
19208 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
19209
19210         Merge
19211
19212         2009-02-12  Diego Novillo  <dnovillo@google.com>
19213
19214         * varpool.c (debug_varpool): New.
19215         * cgraph.h (debug_varpool): Declare.
19216
19217 2009-04-02  Jan Hubicka  <jh@suse.cz>
19218
19219         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
19220         pass.
19221
19222 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
19223
19224         * config/i386/i386.c (ix86_abi): Move initialization to ...
19225         (override_options): Here.
19226
19227 2009-04-02  Christian Bruel  <christian.bruel@st.com>
19228
19229         * config/sh/sh.c (sh_dwarf_register_span): New function.
19230         (TARGET_DWARF_REGISTER_SPAN): Define.
19231         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
19232
19233 2009-04-02  Ira Rosen  <irar@il.ibm.com>
19234
19235         PR tree-optimization/39595
19236         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
19237         interleaved loads group is not  greater than the SLP group size.
19238
19239 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
19240
19241         * builtins.c (is_builtin_name): New.
19242         (called_as_built_in): Use is_builtin_name.
19243         * tree.h (is_builtin_name): New.
19244         * varasm.c (incorporeal_function_p): Use is_builtin_name
19245
19246 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
19247
19248         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
19249
19250 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
19251
19252         PR c++/26693
19253         * c-decl.c (clone_underlying_type): Move this ...
19254         * c-common.c (set_underlying_type): ... here.
19255         Also, make sure the function properly sets TYPE_STUB_DECL() on
19256         the newly created typedef variant type.
19257         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
19258         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
19259         points.
19260
19261 2009-04-02  Richard Guenther  <rguenther@suse.de>
19262
19263         PR tree-optimization/37221
19264         * tree-flow.h (degenerate_phi_result): Declare.
19265         * tree-ssa-dom.c (degenerate_phi_result): Export.
19266         * tree-scalar-evolution.c (analyze_initial_condition): If
19267         the initial condition is defined by a degenerate PHI node
19268         use the degenerate value.
19269
19270 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
19271
19272         PR rtl-optimization/39588
19273         * combine.c (merge_outer_ops): Do not set the constant when this
19274         is not necessary.
19275         (simplify_shift_const_1): Do not modify it either in this case.
19276
19277 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
19278
19279         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
19280         tuning is deprecated if -mtune value is set to an Itanium1 variant.
19281
19282 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
19283
19284         PR c/29027
19285         * c-lex.c (interpret_float): Default (no suffix) is double.
19286
19287 2009-04-1  Xinliang David Li  <davidxl@google.com>
19288
19289         * config/i386/i386.c (legitimate_constant_p): Recognize
19290         all one vector constant.
19291
19292 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
19293
19294         * config/vax/vax.c: Add #includes to silence warnings.
19295         Change #include order to silence two warnings.
19296
19297 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
19298
19299         * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
19300         (ASM_SPEC): Pass -k to the assembler for PIC code.
19301
19302 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
19303
19304         * config.gcc: Add vax-*-linux* to the switch.
19305         * config/vax/linux.h: New file. (TARGET_VERSION,
19306         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
19307
19308 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
19309
19310         * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
19311         Use predicate macros instead of GET_CODE() == foo.
19312         * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
19313         ashlsi3, rotrsi3, <unnamed>): Likewise.
19314
19315 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
19316
19317         * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
19318         jbbccihi, jbbccisi): Remova trailing whitespace.
19319         * config/vax/constraints.md: Likewise.
19320         * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
19321         * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
19322         * config/vax/predicates.md: Likewise.
19323         * config/vax/vax.c (print_operand_address, vax_output_int_move,
19324         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
19325         * config/vax/vax.h: Likewise.
19326         * config/vax/vax.md (nonlocal_goto): Likewise.
19327
19328 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
19329
19330         * config/vax/vax.c (vax_float_literal, vax_output_int_move)
19331         (indirectable_address_p, adjacent_operands_p): Add spaces around
19332         braces.
19333         * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
19334
19335 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
19336
19337         * config/vax/vax.c (legitimate_constant_address_p,
19338         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
19339         index_term_p, reg_plus_index_p, legitimate_address_p,
19340         vax_mode_dependent_address_p): Update comments to match functions
19341         modified by the recent int->bool conversion.
19342
19343 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
19344
19345         * config/vax/builtins.md: Update copyright message.
19346         * config/vax/constraints.md: Likewise.
19347         * config/vax/netbsd-elf.h: Likewise.
19348         * config/vax/predicates.md: Likewise.
19349         * config/vax/vax-protos.h: Likewise.
19350         * config/vax/vax.c: Likewise.
19351         * config/vax/vax.h: Likewise.
19352         * config/vax/vax.md: Likewise.
19353         * config/vax/vax.opt: Likewise.
19354
19355 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
19356
19357         * config/vax/builtins.md (ffssi2, ffssi2_internal,
19358         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
19359         * config/vax/constraints.md (B, R): Likewise.
19360         * config/vax/predicates.md (external_memory_operand,
19361         nonimmediate_addsub_di_operand): Likewise.
19362         * config/vax/vax.c (vax_output_int_add): Likewise.
19363         * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
19364         untyped_call): Likewise.
19365
19366 2009-04-01  Matt Thomas  <matt@3am-software.com>
19367
19368         * config/vax/predicates.md: New file.
19369         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
19370         external_const_operand, nonsymbolic_operand, external_memory_operand,
19371         indirect_memory_operand, indexed_memory_operand,
19372         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
19373         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
19374         predicate.
19375         * config/vax/constraints.md: New file.
19376         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
19377         New constraint.
19378         * config/vax/builtins.md: New file.
19379         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
19380         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
19381         jbbccisi): Define.
19382         * config/vax/vax.opt (mqmath): Add option.
19383         * config/vax/vax.md (isfx): Extend with DI.
19384         (VAXintQH, VAXintQHSD): Define.
19385         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
19386         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
19387         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
19388         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
19389         (movdi): Update constraints and use vax_output_int_move().
19390         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
19391         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
19392         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
19393         nonlocal_goto): New.
19394         (mov<mode>): Extend accepted operand types.
19395         (subdi3_old): Rename from subdi3, change update constraints and use
19396         a new implementation.
19397         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
19398         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
19399         MOVE_RATIO, CLEAR_RATIO): Define.
19400         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
19401         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
19402         (PRINT_OPERAND): Redefine using a function instead of inlined code.
19403         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
19404         (split_quadword_operands): Make static and really allow variable
19405         splitting.
19406         (print_operand_address): Update for PIC generation.
19407         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
19408         indexable_address_p, fixup_mathdi_operand,
19409         vax_expand_addsub_di_operands, adjacent_operands_p): New.
19410         (vax_float_literal, legitimate_constant_p,
19411         indirectable_constant_address_p, index_term_p,
19412         reg_plus_index_p): Return bool instead of int.
19413         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
19414         where needed.
19415         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
19416         generation.
19417         (vax_output_conditional_branch): Indent.
19418         (legitimate_constant_address_p, indirectable_constant_address_p,
19419         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
19420         vax_mode_dependent_address_p): Return bool instead of int, update for
19421         PIC generation.
19422         * config/vax/vax-protos.h (legitimate_constant_address_p,
19423         legitimate_constant_p, legitimate_address_p,
19424         vax_mode_dependent_address_p): Change declaration to bool.
19425         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
19426         vax_expand_addsub_di_operands, vax_output_int_subtract,
19427         vax_output_movmemsi): Declare.
19428         (split_quadword_operands, vax_float_literal): Delete declaration.
19429         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
19430         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
19431         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
19432         ASM_OUTPUT_DWARF_PCREL): Define.
19433         (ASM_SPEC): Change definition to allow PIC generation.
19434
19435 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
19436
19437         * doc/sourcebuild.texi: Update front-end requirements.
19438
19439 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
19440
19441         PR target/39226
19442         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
19443         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
19444         (booldi3_internal3): Use boolean_or_operator instead of
19445         boolean_operator.
19446
19447 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
19448
19449         PR c/39605
19450         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
19451         declarator whose size is not an integer constant expression but
19452         folds to an integer constant, then treat it as a constant
19453         subsequently.
19454
19455 2009-04-01  Richard Guenther  <rguenther@suse.de>
19456
19457         * fold-const.c (fold_plusminus_mult_expr): Do not fold
19458         i * 4 + 2 to (i * 2 + 1) * 2.
19459
19460 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
19461
19462         PR c/37772
19463         * c-parser.c (c_parser_asm_statement): Skip until close paren and
19464         return if c_parser_asm_string_literal returned NULL.
19465
19466 2009-04-01  Nick Clifton  <nickc@redhat.com>
19467
19468         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
19469         already defined.
19470         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
19471         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
19472         other typedefs to avoid conflicts with libgcc2.c.  Define labels
19473         to gain 16-bit bit-manipulation functions from libgcc2.c and then
19474         include it.
19475         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
19476         to gain 16-bit trapping arithmetic functions from libgcc2.c and
19477         then include it.
19478
19479 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
19480
19481         * varasm.c (default_function_rodata_section): Declare DOT as
19482         const char*.
19483
19484 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
19485             Andrey Galkin  <agalkin@hypercom.com>
19486
19487         PR/39492
19488         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
19489         Make object_name unique for each process.
19490
19491 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
19492
19493         PR other/39591
19494         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
19495         addressable variables in the parallel that could go out of scope while
19496         running queued tasks.
19497
19498 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
19499
19500         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
19501         (CASE_VALUES_THRESHOLD): Redefine.
19502         * config/avr/avr.c (avr_override_options): Remove initialization of
19503         avr_case_values_threshold variable.
19504         (avr_case_values_threshold): Remove variable. Add new function.
19505         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
19506         * config/avr/avr.opt (mno-tablejump): Remove option.
19507         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
19508
19509 2009-04-01  DJ Delorie  <dj@redhat.com>
19510
19511         * varasm.c (default_function_rodata_section): Don't assume
19512         anything about where the first '.' in the section name is.
19513
19514 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
19515
19516         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
19517         rs6000_emit_stack_tie.
19518
19519 2009-03-31  Ian Lance Taylor  <iant@google.com>
19520
19521         * tree-eh.c (tree_remove_unreachable_handlers): Compare
19522         gimple_code with GIMPLE_RESX, not RESX.
19523
19524 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
19525
19526         * c-common.c (c_get_ident): New.
19527         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
19528
19529 2009-04-01  Ben Elliston  <bje@au.ibm.com>
19530
19531         * config/rs6000/sysv4.opt (msdata): Improve option description.
19532
19533 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
19534
19535         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
19536         (divdf3_internal_lat): Remove.
19537         (divxf3_internal_lat): Remove.
19538         (divxf3_internal_thr): Remove.
19539         (divxf): Use divxf3_internal.
19540         * config/ia64/div.md (divsf3_internal_lat): New.
19541         (divdf3_internal_lat): New.
19542         (divxf3_internal): New.
19543
19544 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
19545
19546         PR c/448
19547         * Makefile.in (USE_GCC_STDINT): Define.
19548         (stmp-int-hdrs): Install stdint.h if applicable.
19549         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
19550         if known.
19551         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
19552         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
19553         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
19554         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
19555         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
19556         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
19557         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
19558         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
19559         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
19560         (c_common_nodes_and_builtins): Initialize
19561         underlying_wchar_type_node.  Do not initialize
19562         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
19563         nodes for new types.
19564         (c_stddef_cpp_builtins): Define macros for new types.
19565         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
19566         Remove.
19567         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
19568         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
19569         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
19570         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
19571         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
19572         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
19573         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
19574         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
19575         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
19576         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
19577         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
19578         int16_type_node, int32_type_node, int64_type_node,
19579         uint8_type_node, uint16_type_node, c_uint32_type_node,
19580         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
19581         int_least32_type_node, int_least64_type_node,
19582         uint_least8_type_node, uint_least16_type_node,
19583         uint_least32_type_node, uint_least64_type_node,
19584         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
19585         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
19586         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
19587         uintptr_type_node): Define.
19588         * c-cppbuiltin.c (builtin_define_constants,
19589         builtin_define_type_minmax): New.
19590         (builtin_define_stdint_macros): Define more macros.
19591         (c_cpp_builtins): Define more limit macros.
19592         (type_suffix): New.
19593         (builtin_define_type_max): Define in terms of
19594         builtin_define_type_minmax.  Remove is_long parameter.  All
19595         callers changed.
19596         * config.gcc (use_gcc_stdint): Define.
19597         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
19598         Add newlib-stdint.h for generic targets.
19599         * config/glibc-stdint.h, config/newlib-stdint.h,
19600         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
19601         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
19602         * config/score/score.h (UINTPTR_TYPE): Define.
19603         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
19604         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
19605         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
19606         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
19607         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
19608         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
19609         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
19610         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
19611         * config/spu/spu.h (STDINT_LONG32): Define.
19612         * configure.ac (use_gcc_stdint): Substitute.
19613         * configure: Regenerate.
19614         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
19615         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
19616         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
19617         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
19618         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
19619         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
19620         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
19621         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
19622         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
19623         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
19624         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
19625         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
19626         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
19627         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
19628         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
19629         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
19630         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
19631         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
19632         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
19633         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
19634         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
19635         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
19636         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
19637         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
19638         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
19639         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
19640         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
19641         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
19642         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
19643
19644 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
19645
19646         * loop-iv.c (suitable_set_for_replacement): Renamed from
19647         simplify_using_assignment; changed to return bool and to accept new
19648         args DEST and SRC.  Return true iff we find a source/destination pair
19649         that can be used to make a replacement, and fill SRC and DEST if so.
19650         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
19651         changed.
19652         (simplify_using_initial_values): Deal with altered regs here and track
19653         more precisely the effect they have on the validity of our expression.
19654
19655         * loop-iv.c (simplify_using_condition): A condition of the form
19656         (EQ REG CONST) can be used to simply make a substitution.
19657         (simplify_using_initial_values): Keep track of conditions we have seen
19658         and keep using them to simplify new expressions, while applying the
19659         same substitutions to them as to the expression.
19660
19661         * simplify-rtx.c (simplify_relational_operation_1): Simplify
19662         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
19663         GEU/LTU reversed.
19664
19665         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
19666         changed.  Use this when trying to improve the upper bound.
19667         Generate the comparison by using simplify_gen_relational.
19668
19669         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
19670
19671         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
19672         functions.
19673         (simplify_using_assignment, simplify_using_initial_values): Call
19674         replace_in_expr to make replacements.  Call replace_single_def_regs
19675         once on the initial version of the expression.
19676
19677 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19678
19679         PR target/27237
19680         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
19681
19682 2009-03-31  Richard Guenther  <rguenther@suse.de>
19683
19684         PR middle-end/31029
19685         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
19686         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
19687
19688 2009-03-31  Richard Guenther  <rguenther@suse.de>
19689
19690         * tree.h (div_if_zero_remainder): Declare.
19691         * fold-const.c (div_if_zero_remainder): Export.
19692         * tree-ssa-forwprop.c
19693         (forward_propagate_addr_into_variable_array_index): Handle
19694         constant array index addition outside of the variable index.
19695
19696 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
19697
19698         PR target/39592
19699         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
19700         define_splits, floatunssi<mode>2): Require x87 conversions from
19701         DImode to be permitted.
19702
19703 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
19704
19705         PR preprocessor/15638
19706         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
19707
19708 2009-03-31  Richard Guenther  <rguenther@suse.de>
19709
19710         PR middle-end/23401
19711         PR middle-end/27810
19712         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
19713         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
19714         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
19715         a separate statement.
19716         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
19717         (lookup_tmp_var): Likewise.
19718         (is_gimple_formal_tmp_or_call_rhs): Remove.
19719         (is_gimple_reg_or_call_rhs): Rename to ...
19720         (is_gimple_reg_rhs_or_call): ... this.
19721         (is_gimple_mem_or_call_rhs): Rename to ...
19722         (is_gimple_mem_rhs_or_call): ... this.
19723         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
19724         DECL_GIMPLE_REG_P only if is_formal is true.
19725         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
19726         for non-proper post-modify expression gimplification.
19727         (gimplify_self_mod_expr): For post-modify expressions gimplify
19728         the lvalue to a minimal lvalue.
19729         (rhs_predicate_for): Remove formal temp case.
19730         (gimplify_modify_expr_rhs): Likewise.
19731         (gimplify_addr_expr): Use is_gimple_reg.
19732         (gimplify_expr): Remove formal temp cases.
19733         (gimple_regimplify_operands): Likewise.
19734         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
19735         and FILTER_EXPR like constants.
19736         * gimple.c (walk_gimple_op): Fix val_only initialization, use
19737         is_gimple_reg.
19738         (is_gimple_formal_tmp_rhs): Remove.
19739         (is_gimple_reg_rhs): Remove special casing.
19740         (is_gimple_mem_rhs): Fix.
19741         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
19742         (is_gimple_formal_tmp_var): Remove.
19743         (is_gimple_formal_tmp_reg): Likewise.
19744         (is_gimple_min_lval): Allow invariant component ref parts.
19745         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
19746         is_gimple_formal_tmp_reg): Remove declarations.
19747         * tree-cfg.c (verify_expr): Verify that variables with address
19748         taken do not have DECL_GIMPLE_REG_P set.
19749         * tree-mudflap.c (mf_build_check_statement_for): Use
19750         force_gimple_operand instead of gimplify_expr.
19751
19752 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
19753
19754         * modulo-sched.c (sms_schedule_by_order): Pass the actual
19755         schedulable rows to compute_split_row.
19756
19757 2009-03-31  Ben Elliston  <bje@au.ibm.com>
19758
19759         PR target/31635
19760         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
19761         OPT_mvrsave.
19762
19763 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
19764
19765         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
19766         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
19767         * configure: Regenerate.
19768         * config.in: Regenerate.
19769         * config/rs6000/rs6000.opt (mtls-markers): Add.
19770         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
19771         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
19772         (tls_ld_aix, tls_ld_sysv): Likewise.
19773         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
19774         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
19775
19776 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
19777
19778         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
19779
19780 2009-03-30  Jan Hubicka  <jh@suse.cz>
19781
19782         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
19783         out of RESX.
19784         (tree_remove_unreachable_handlers): Cleanup EH predecestor
19785         detection and label handling.
19786
19787 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
19788
19789         * ira-int.h (ira_allocno): Rename left_conflicts_num to
19790         left_conflicts_size.
19791         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
19792         ALLOCNO_LEFT_CONFLICTS_SIZE.
19793
19794         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
19795         remove_allocno_from_bucket_and_push,
19796         allocno_spill_priority_compare, push_allocnos_to_stack,
19797         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
19798         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
19799         (setup_allocno_left_conflicts_num): Ditto.  Rename to
19800         setup_allocno_left_conflicts_size.
19801         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
19802         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
19803         setup_allocno_left_conflicts_size instead of
19804         setup_allocno_left_conflicts_num.
19805
19806         * ira-build.c (ira_create_allocno): Use
19807         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
19808         ALLOCNO_LEFT_CONFLICTS_NUM.
19809
19810 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
19811
19812         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
19813         instead of DF_LR_OUT.
19814
19815         * ira-lives.c (process_bb_node_lives): Ditto.
19816
19817         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
19818         instead of DF_LR_{OUT,IN}.
19819
19820         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
19821
19822         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
19823
19824 2009-03-30  Jan Hubicka  <jh@suse.cz>
19825
19826         * except.c (label_to_region_map): Fix thinko.
19827
19828 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
19829
19830         PR middle-end/38237
19831         * tree.h (tree_find_value): New declaration.
19832         * tree.c (tree_find_value): New function.
19833         * varasm.c (assemble_external): Avoid duplicate entries on lists.
19834
19835 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
19836
19837         PR debug/39563
19838         * c-decl.c (struct c_binding): Add locus field.
19839         (bind): Add locus argument, set locus field from it.
19840         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
19841         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
19842         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
19843         implicitly_declare, undeclared_variable, lookup_label,
19844         declare_label, c_make_fname_decl, c_builtin_function,
19845         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
19846         bind callers.
19847
19848 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
19849
19850         PR target/38781
19851         * config/i386/i386.c (classify_argument): Check total size of
19852         structure.
19853
19854 2009-03-30  Martin Jambor  <mjambor@suse.cz>
19855
19856         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
19857         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
19858         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
19859         respectively.
19860
19861         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
19862         seen_variable_array_ref while also traversing a union.
19863
19864         * tree-inline.c (optimize_inline_calls): Do not call
19865         cgraph_node_remove_callees.
19866         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
19867         (pass_remove_cgraph_callee_edges): New variable.
19868         * passes.c (init_optimization_passes): Add
19869         pass_remove_cgraph_callee_edges after early inlining and before all
19870         late intraprocedural passes.
19871
19872         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
19873
19874 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
19875
19876         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
19877         Fix typos in names.
19878
19879 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
19880
19881         * combine.c (simplify_comparison): Use have_insn_for.
19882         * dojump.c (do_jump): Likewise.
19883
19884 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
19885
19886         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
19887         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
19888         sparc_compare_op0 like sparc_compare_emitted used to be handled.
19889         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
19890         instead of sparc_compare_emitted.
19891         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
19892         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
19893         instead of sparc_compare_emitted.
19894
19895 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
19896
19897         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
19898         enter/exit cfglayout mode.
19899         (pass_partition_block): Require it.
19900         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
19901         (combine_instructions): Track basic blocks instead of labels.
19902         (update_cfg_for_uncondjump): New.
19903         (try_combine): Use it.  Update jumps after rescanning.
19904         (pass_combine): Require PROP_cfglayout.
19905         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
19906
19907 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
19908
19909         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
19910         Provide/destroy PROP_cfglayout respectively.
19911         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
19912         * tree-pass.h (PROP_cfglayout): New.
19913
19914 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
19915
19916         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
19917         fold_convert_const_fixed_from_fixed,
19918         fold_convert_const_fixed_from_int,
19919         fold_convert_const_fixed_from_real, fold_negate_const): Do not
19920         set TREE_CONSTANT_OVERFLOW.
19921         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
19922         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
19923
19924 2009-03-30  Ira Rosen  <irar@il.ibm.com>
19925
19926         * tree-vect-loop-manip.c: New file.
19927         * tree-vectorizer.c: Update documentation and included files.
19928         (vect_loop_location): Make extern.
19929         (rename_use_op): Move to tree-vect-loop-manip.c
19930         (rename_variables_in_bb, rename_variables_in_loop,
19931         slpeel_update_phis_for_duplicate_loop,
19932         slpeel_update_phi_nodes_for_guard1,
19933         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
19934         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
19935         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
19936         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
19937         find_loop_location): Likewise.
19938         (new_stmt_vec_info): Move to tree-vect-stmts.c.
19939         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
19940         get_vectype_for_scalar_type, vect_is_simple_use,
19941         supportable_widening_operation, supportable_narrowing_operation):
19942         Likewise.
19943         (bb_in_loop_p): Move to tree-vect-loop.c.
19944         (new_loop_vec_info, destroy_loop_vec_info,
19945         reduction_code_for_scalar_code, report_vect_op,
19946         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
19947         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
19948         (vect_supportable_dr_alignment): Likewise.
19949         * tree-vectorizer.h (tree-data-ref.h): Include.
19950         (vect_loop_location): Declare.
19951         Reorganize function declarations according to the new file structure.
19952         * tree-vect-loop.c: New file.
19953         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
19954         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
19955         * tree-vect-data-refs.c: New file.
19956         * tree-vect-patterns.c (timevar.h): Don't include.
19957         * tree-vect-stmts.c: New file.
19958         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
19959         tree-vect-slp.c, tree-vect-loop.c.
19960         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
19961         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
19962         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
19963         (tree-vect-analyze.o): Remove.
19964         (tree-vect-transform.o): Likewise.
19965         (tree-vect-data-refs.o): Add rule.
19966         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
19967         tree-vect-slp.o): Likewise.
19968         (tree-vect-patterns.o): Remove redundant dependencies.
19969         (tree-vectorizer.o): Likewise.
19970         * tree-vect-slp.c: New file.
19971
19972 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19973
19974         * optc-gen.awk: Warn if an option flag has multiple different
19975         help strings.
19976
19977 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
19978
19979         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
19980         -floop-block): Document dependences on PPL, CLooG and Graphite.
19981
19982 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
19983
19984         PR rtl-optimization/323
19985         * c-common.c (c_fully_fold, convert_and_check,
19986         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
19987         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
19988         * c-common.def (EXCESS_PRECISION_EXPR): New.
19989         * c-cppbuiltin.c (builtin_define_float_constants): Define
19990         constants with enough digits for long double.
19991         * c-lex.c (interpret_float): Interpret constant with excess
19992         precision where appropriate.
19993         * c-opts.c (c_common_post_options): Set
19994         flag_excess_precision_cmdline.  Give an error for
19995         -fexcess-precision=standard for C++ for processors where the
19996         option is significant.
19997         * c-parser.c (c_parser_conditional_expression): Handle excess
19998         precision in condition.
19999         * c-typeck.c (convert_arguments): Handle arguments with excess
20000         precision.
20001         (build_unary_op): Move excess precision outside operation.
20002         (build_conditional_expr): Likewise.
20003         (build_compound_expr): Likewise.
20004         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
20005         (build_modify_expr): Handle excess precision in RHS.
20006         (convert_for_assignment): Handle excess precision in converted
20007         value.
20008         (digest_init, output_init_element, process_init_element): Handle
20009         excess precision in initializer.
20010         (c_finish_return): Handle excess precision in return value.
20011         (build_binary_op): Handle excess precision in operands and add
20012         excess precision as needed for operation.
20013         * common.opt (-fexcess-precision=): New option.
20014         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
20015         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
20016         For standard excess precision, output explicit conversion to and
20017         truncation from XFmode.
20018         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
20019         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
20020         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
20021         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
20022         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
20023         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
20024         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
20025         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
20026         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
20027         define_splits, sqrt<mode>2): Disable where appropriate for
20028         standard excess precision.
20029         * convert.c (convert_to_real): Do not shorten arithmetic to type
20030         for which excess precision would be used.
20031         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
20032         * doc/invoke.texi (-fexcess-precision=): Document option.
20033         (-mfpmath=): Correct index entry.
20034         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
20035         flag_excess_precision): New.
20036         * langhooks.c (lhd_post_options): Set
20037         flag_excess_precision_cmdline.
20038         * opts.c (common_handle_option): Handle -fexcess-precision=.
20039         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
20040         init_excess_precision): New.
20041         (lang_dependent_init_target): Call init_excess_precision.
20042         * tree.c (excess_precision_type): New.
20043         * tree.h (excess_precision_type): Declare.
20044
20045 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
20046
20047         PR c/35235
20048         * c-typeck.c (build_component_ref): Do not copy qualifiers from
20049         non-lvalue to component.
20050
20051 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
20052
20053         PR preprocessor/34695
20054         * Makefile.in (c-opts.o): Depend on c-tree.h.
20055         * c-common.c: Move down include of diagnostic.h.
20056         (done_lexing, c_cpp_error): New.
20057         * c-common.h (done_lexing): Declare.
20058         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
20059         (parse_in).
20060         * c-opts.c: Include c-tree.h.
20061         (c_common_init_options): Set preprocessor error callback.
20062         (c_common_handle_option): Do not set preprocessor
20063         inhibit_warnings, warnings_are_errors, warn_system_headers,
20064         pedantic_errors or inhibit_warnings flags.
20065         (c_common_post_options): Do not check cpp_errors (parse_in).
20066         (c_common_finish): Do not output dependencies if there were
20067         errors.  Do not check return value of cpp_finish.
20068         * c-ppoutput.c (pp_file_change): Set input_location.
20069         * c-tree.h (c_cpp_error): Declare.
20070         * diagnostic.c (diagnostic_set_info_translated): Also initialize
20071         override_column.
20072         (diagnostic_build_prefix): Check override_column.
20073         * diagnostic.h (diagnostic_info): Add override_column field.
20074         (diagnostic_override_column): Define.
20075
20076 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
20077
20078         * c-common.c (c_expand_expr, c_staticp): Remove.
20079         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
20080         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
20081         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
20082         * c-gimplify.c (gimplify_compound_literal_expr,
20083         optimize_compound_literals_in_ctor): Remove.
20084         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
20085         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
20086         * c-semantics.c (emit_local_var): Remove.
20087
20088         * langhooks-def.h (lhd_expand_expr): Remove.
20089         * langhooks.c (lhd_expand_expr): Remove.
20090         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
20091
20092         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
20093         handling from c-semantics.c; don't call into langhook.
20094         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
20095         * gimplify.c (gimplify_compound_literal_expr,
20096         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
20097         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
20098         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
20099         as was done in c-gimplify.c.
20100         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
20101         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
20102         Move from c-common.h.
20103         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
20104
20105         * tree.c (staticp): Do not call langhook.
20106         * langhooks.c (lhd_staticp): Delete.
20107         * langhooks-def.h (lhd_staticp): Delete prototype.
20108         (LANG_HOOKS_STATICP): Delete.
20109         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
20110
20111         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
20112         instead of DECL_STMTs.
20113
20114 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
20115
20116         PR c/456
20117         PR c/5675
20118         PR c/19976
20119         PR c/29116
20120         PR c/31871
20121         PR c/35198
20122         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
20123         void_type_node.
20124         (fold_call_expr): Return a NOP_EXPR from folding rather than the
20125         contained expression.
20126         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
20127         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
20128         conditional expressions for C.
20129         (decl_constant_value_for_optimization): Move from
20130         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
20131         whether optimizing and that the expression is a VAR_DECL not of
20132         array type instead of doing such checks in the caller.  Do not
20133         check pedantic.  Call gcc_unreachable for C++.
20134         * c-common.def (C_MAYBE_CONST_EXPR): New.
20135         * c-common.h (c_fully_fold, c_save_expr,
20136         decl_constant_value_for_optimization): New prototypes.
20137         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
20138         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
20139         EXPR_INT_CONST_OPERANDS): Define.
20140         * c-convert.c (convert): Strip nops from expression.
20141         * c-decl.c (groktypename): Take extra parameters expr and
20142         expr_const_operands.  Update call to grokdeclarator.
20143         (start_decl): Update call to grokdeclarator.  Add statement for
20144         expressions used in type of decl.
20145         (grokparm): Update call to grokdeclarator.
20146         (push_parm_decl): Update call to grokdeclarator.
20147         (build_compound_literal): Add parameter non_const and build a
20148         C_MAYBE_COSNT_EXPR if applicable.
20149         (grokdeclarator): Take extra parameters expr and
20150         expr_const_operands.  Track expressions used in declaration
20151         specifiers and declarators.  Fold array sizes and track whether
20152         they are constant expressions and whether they are integer
20153         constant expressions.
20154         (parser_xref_tag): Set expr and expr_const_operands fields in
20155         return value.
20156         (grokfield): Update call to grokdeclarator.
20157         (start_function): Update call to grokdeclarator.
20158         (build_null_declspecs): Set expr and expr_const_operands fields in
20159         return value.
20160         (declspecs_add_type): Handle expressions in typeof specifiers.
20161         * c-parser.c (c_parser_declspecs): Set expr and
20162         expr_const_operands fields for declaration specifiers.
20163         (c_parser_enum_specifier): Likewise.
20164         (c_parser_struct_or_union_specifier): Likewise.
20165         (c_parser_typeof_specifier): Likewise.  Update call to
20166         groktypename.  Fold expression as needed.  Return expressions with
20167         type instead of adding statements.
20168         (c_parser_attributes): Update calls to c_parser_expr_list.
20169         (c_parser_statement_after_labels): Fold expression before passing
20170         to objc_build_throw_stmt.
20171         (c_parser_condition): Fold expression.
20172         (c_parser_asm_operands): Fold expression.
20173         (c_parser_conditional_expression): Use c_save_expr.  Update call
20174         to build_conditional_expr.
20175         (c_parser_alignof_expression): Update call to groktypename.
20176         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
20177         original_code.  Fold expression argument of va_arg.  Create
20178         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
20179         argument to va_arg.  Update calls to groktypename.  Fold array
20180         index for offsetof.  Verify that first argument to
20181         __builtin_choose_expr has integer type.
20182         (c_parser_postfix_expression_after_paren_type): Update calls to
20183         groktypename and build_compound_literal.  Handle expressions with
20184         side effects in type name.
20185         (c_parser_postfix_expression_after_primary): Update call to
20186         c_parser_expr_list.  Set original_code for calls to
20187         __builtin_constant_p.
20188         (c_parser_expr_list): Take extra parameter fold_p.  Fold
20189         expressions if requested.
20190         (c_parser_objc_type_name): Update call to groktypename.
20191         (c_parser_objc_synchronized_statement): Fold expression.
20192         (c_parser_objc_receiver): Fold expression.
20193         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
20194         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
20195         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
20196         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
20197         (struct c_typespec): Add elements expr and expr_const_operands.
20198         (struct c_declspecs): Add elements expr and expr_const_operands.
20199         (groktypename, build_conditional_expr, build_compound_literal):
20200         Update prototypes.
20201         (in_late_binary_op): Declare.
20202         * c-typeck.c (note_integer_operands): New function.
20203         (in_late_binary_op): New variable.
20204         (decl_constant_value_for_broken_optimization): Move to c-common.c
20205         and rename to decl_constant_value_for_optimization.
20206         (default_function_array_conversion): Do not strip nops.
20207         (default_conversion): Do not call
20208         decl_constant_value_for_broken_optimization.
20209         (build_array_ref): Do not fold result.
20210         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
20211         result when operand is a VLA.
20212         (c_expr_sizeof_type): Update call to groktypename.  Handle
20213         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
20214         result when operand names a VLA type.
20215         (build_function_call): Update call to build_compound_literal.
20216         Only fold result for calls to __builtin_* functions.  Strip
20217         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
20218         the function designator.
20219         (convert_arguments): Fold arguments.  Update call to
20220         convert_for_assignment.
20221         (build_unary_op): Handle increment and decrement of
20222         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
20223         decrement earlier.  Fold operand of increment and decrement.
20224         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
20225         built for integer operand.  Wrap returns that are INTEGER_CSTs
20226         without being integer constant expressions or that have integer
20227         constant operands without being INTEGER_CSTs.
20228         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
20229         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
20230         result is an integer constant expression or can be used in
20231         unevaluated parts of one and avoid folding and wrap as
20232         appropriate.  Fold operands before possibly doing -Wsign-compare
20233         warnings.
20234         (build_compound_expr): Wrap result for C99 if operands can be used
20235         in integer constant expressions.
20236         (build_c_cast): Update call to digest_init.  Do not ignore
20237         overflow from casting floating-point constants to integers.  Wrap
20238         results that could be confused with integer constant expressions,
20239         null pointer constants or floating-point constants.
20240         (c_cast_expr): Update call to groktypename.  Handle expressions
20241         included in type name.
20242         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
20243         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
20244         Update calls to convert_for_assignment.
20245         (convert_for_assignment): Take new parameter
20246         null_pointer_constant.  Do not strip nops or call
20247         decl_constant_value_for_broken_optimization.  Set
20248         in_late_binary_op for conversions to boolean.
20249         (store_init_value): Update call to digest_init.
20250         (digest_init): Take new parameter null_pointer_constant.  Do not
20251         call decl_constant_value_for_broken_optimization.  pedwarn for
20252         initializers not constant expressions.  Update calls to
20253         convert_for_assignment.
20254         (constructor_nonconst): New.
20255         (struct constructor_stack): Add nonconst element.
20256         (really_start_incremental_init, push_init_level, pop_init_level):
20257         Handle constructor_nonconst and nonconst element.
20258         (set_init_index): Call constant_expression_warning for array
20259         designators.
20260         (output_init_element): Fold value.  Set constructor_nonconst as
20261         applicable.  pedwarn for initializers not constant expressions.
20262         Update call to digest_init.  Call constant_expression_warning
20263         where constant initializers are required.
20264         (process_init_element): Use c_save_expr.
20265         (c_finish_goto_ptr): Fold expression.
20266         (c_finish_return): Fold return value.  Update call to
20267         convert_for_assignment.
20268         (c_start_case): Fold switch expression.
20269         (c_process_expr_stmt): Fold expression.
20270         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
20271         ensure statement expression is not evaluated in constant expression.
20272         (build_binary_op): Track whether results are integer constant
20273         expressions or may occur in such, disable folding and wrap results
20274         as applicable.  Fold operands for -Wsign-compare warnings unless
20275         in_late_binary_op.
20276         (c_objc_common_truthvalue_conversion): Handle results folded to
20277         integer constants that are not integer constant expressions.
20278         * doc/extend.texi: Document when typeof operands are evaluated,
20279         that condition of __builtin_choose_expr is an integer constant
20280         expression, and more about use of __builtin_constant_p in
20281         initializers.
20282
20283 2009-03-29  Richard Guenther  <rguenther@suse.de>
20284
20285         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
20286         propagate addresses of array references.
20287
20288 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
20289
20290         * regmove.c (perhaps_ends_bb_p): Remove.
20291         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
20292         from INSN and check that the main loop stays within that basic block.
20293         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
20294         (regmove_forward_pass): Split out from regmove_optimize.  Use
20295         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
20296         (regmove_backward_pass): Split out from regmove_optimize.  Use
20297         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
20298         (regmove_optimize): Simplify.
20299
20300 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
20301
20302         PR target/39545
20303         * config/i386/i386.c (classify_argument): Ignore flexible array
20304         member in struct and warn ABI change.
20305
20306 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
20307
20308         * config/i386/i386-protos.h (ix86_agi_dependent): New.
20309
20310         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
20311         (ix86_adjust_cost): Updated.
20312
20313 2009-03-29  Jan Hubicka  <jh@suse.cz>
20314
20315         PR middle-end/28850
20316         * tree-pass.h (pass_cleanup_eh): New function.
20317         (remove_unreachable_regions): Break code handling RTL
20318         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
20319         that can not be reached by runtime.
20320         (can_be_reached_by_runtime): New function.
20321         (label_to_region_map): New function.
20322         (num_eh_regions): New function.
20323         (rtl_remove_unreachable_regions): New function.
20324         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
20325         (remove_eh_region): New function.
20326         * except.h: Include sbitmap and vecprim.
20327         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
20328         num_eh_regions): Declare.
20329         * passes.c (init_optimization_passes): Schedule cleanup_eh.
20330         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
20331         * tree-eh.c (tree_remove_unreachable_handlers): New function.
20332         (tree_empty_eh_handler_p): New function.
20333         (cleanup_empty_eh): New function.
20334         (cleanup_eh): New function.
20335         (pass_cleanup_eh): New function.
20336
20337 2009-03-29  Jan Hubicka  <jh@suse.cz>
20338
20339         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
20340         for removed regions.
20341
20342 2009-03-29  Jan Hubicka  <jh@suse.cz>
20343
20344         * except.c (dump_eh_tree): Dump all datastructures.
20345
20346 2009-03-29  Jan Hubicka  <jh@suse.cz>
20347
20348         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
20349         (duplicate_eh_regions_1): Likewise.
20350         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
20351         vector; call EH verification.
20352         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
20353         Be ready for region being removed.
20354
20355 2009-03-29  Jan Hubicka  <jh@suse.cz>
20356
20357         * bitmap.c (bitmap_last_set_bit): New function.
20358         * bitmap.h (bitmap_last_set_bit): Declare.
20359
20360 2009-03-29  David Ayers  <ayers@fsfe.org>
20361
20362         PR objc/27377
20363         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
20364         by calling objc_compare_types and surpress warnings about
20365         incompatible C pointers that are compatible ObjC pointers.
20366
20367 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
20368
20369         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
20370         call initialize_inline_failed.
20371         (initialize_inline_failed): Move it from here ...
20372         * cgraph.c (initialize_inline_failed): ... to here.
20373         (cgraph_create_edge): Call initialize_inline_failed rather than
20374         setting inline_failed directly.
20375
20376 2009-03-29  Ben Elliston  <bje@au.ibm.com>
20377
20378         PR target/32542
20379         * sysv4.opt (msdata): Improve comment.
20380         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
20381         * sysv4.h (SVR4_ASM_SPEC): Likewise.
20382
20383 2009-03-29  Ben Elliston  <bje@au.ibm.com>
20384
20385         PR target/30451
20386         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
20387         load and store attributes.
20388
20389 2009-03-29  Ben Elliston  <bje@au.ibm.com>
20390
20391         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
20392         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
20393         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
20394         * doc/extend.texi (X86 Built-in Functions): Add index entries for
20395         __builtin_infq and __builtin_huge_valq.
20396
20397 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
20398
20399         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
20400         atmega8m1 devices.
20401         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
20402         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
20403
20404 2009-03-28  Xinliang David Li  <davidxl@google.com>
20405
20406         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
20407         (do_dbg_cnt): New function.
20408
20409 2009-03-28  Jan Hubicka  <jh@suse.cz>
20410
20411         Merge from pretty-ipa:
20412
20413         2009-03-27  Jan Hubicka  <jh@suse.cz>
20414
20415         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
20416         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
20417         * passes.c (function_called_by_processed_nodes_p): New.
20418         * ipa-pure-const.c (check_call): Fix handling of operands.
20419         (analyze_function): Dump debug output for skipped bodies.
20420         (local_pure_const): Use function_called_by_processed_nodes_p.
20421         * dwarf2out.c (reference_to_unused): Use output.
20422         * passes.c (do_per_function_toporder): Likewise.
20423
20424         2008-11-12  Jan Hubicka  <jh@suse.cz>
20425
20426         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
20427         * ipa-pure-const.c (funct_state_d): Add can throw field; make
20428         state_set_in_source enum
20429         (check_decl): Ignore memory tags; do not set fake looping flags;
20430         dump diagnostics.
20431         (check_operand, check_tree, check_rhs_var, check_lhs_var,
20432         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
20433         (check_call, analyze_function): Rewrite.
20434         (check_stmt): New.
20435         (add_new_function): Update call of analyze_function.
20436         (generate_summary): Add call of analyze_function.
20437         (propagate): Propagate can_throw; handle state_set_in_source correctly.
20438         (local_pure_const): New function.
20439         (pass_local_pure_const): New pass.
20440         * ipa-inline.c (inline_transform): Set after_inlining.
20441         * tree-eh.c (stmt_can_throw_external): New.
20442         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
20443         work with aliasing built.
20444         * tree-flow.h (stmt_can_throw_external): New.
20445         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
20446         and local pure/const pass in early and late optimization queue.
20447
20448 2009-03-28  Martin Jambor  <mjambor@suse.cz>
20449
20450         * fold-const.c (get_pointer_modulus_and_residue): New parameter
20451         allow_func_align.
20452         (fold_binary): Allow function decl aligment consideration is the
20453         second argument is integer constant one.
20454         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
20455         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
20456         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
20457
20458 2009-03-28  Jan Hubicka  <jh@suse.cz>
20459
20460         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
20461         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
20462         * function.h (rtl_data): Add nothrow flag.
20463         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
20464         set DECL_NOTHROW for AVAILABLE functions.
20465
20466 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
20467
20468         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
20469         following vector keyword has expansion starting with pixel or bool
20470         keyword, expand vector to __vector and pixel or bool to __pixel or
20471         __bool.
20472
20473         PR c++/39554
20474         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
20475         warn_if_disallowed_function_p): Removed.
20476         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
20477         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
20478         warning_if_disallowed_function_p.
20479         * flags.h (warn_if_disallowed_function_p,
20480         warn_disallowed_functions): Removed.
20481         * common.opt (Wdisallowed-function-list=): Removed.
20482         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
20483
20484 2009-03-28  Richard Guenther  <rguenther@suse.de>
20485
20486         PR tree-optimization/38723
20487         * tree-ssa-pre.c (compute_avail): Add all default definitions to
20488         the entry block.
20489
20490 2009-03-28  Jan Hubicka  <jh@suse.cz>
20491
20492         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
20493         test introduced by my previous patch.
20494
20495 2009-03-28  Richard Guenther  <rguenther@suse.de>
20496
20497         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
20498         the PHIs value undefined.
20499
20500 2009-03-28  Jan Hubicka  <jh@suse.cz>
20501
20502         * tree-pass.h (pass_fixup_cfg): New pass.
20503         * ipa-inline.c (inline_transform): Set
20504         always_inline_functions_inlined/after_inlining.
20505         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
20506         (pass_fixup_cfg): New pass.
20507         * passes.c (init_optimization_passes): Add fixup_cfg.
20508
20509 2009-03-28  Richard Guenther  <rguenther@suse.de>
20510
20511         PR tree-optimization/38458
20512         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
20513         argument use the arguments copy-of value.
20514
20515 2009-03-28  Richard Guenther  <rguenther@suse.de>
20516
20517         PR tree-optimization/38180
20518         * tree-ssa-ccp.c (get_default_value): Simplify.
20519         (likely_value): Likewise.
20520         (surely_varying_stmt_p): Properly handle VOP case.
20521         (ccp_initialize): Likewise.
20522         (ccp_fold): Handle propagating through *&.
20523         (fold_const_aggregate_ref): Also handle decls.
20524
20525 2009-03-28  Jan Hubicka  <jh@suse.cz>
20526
20527         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
20528         * cgraph.h (cgraph_node): Likewise.
20529         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
20530         (cgraph_reset_node): Use process flag.
20531         (cgraph_mark_functions_to_output): Likewise.
20532         (cgraph_expand_function): Likewise.
20533         (cgraph_expand_all_functions): Likewise.
20534         (cgraph_output_in_order): Likewise.
20535         * dwarf2out.c (reference_to_unused): Likewise.
20536         * passes.c do_per_function_toporder): Likewise.
20537
20538 2009-03-28  Jan Hubicka  <jh@suse.cz>
20539
20540         Bring from lto-branch:
20541
20542         2008-09-03  Doug Kwan  <dougkwan@google.com>
20543
20544         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
20545         enums instead of reason strings.
20546         * cgraph.c (cgraph_create_edge): Same.
20547         (cgraph_inline_failed_string): New function.
20548         * cgraph.h (cgraph_inline_failed_t): New enum type.
20549         (cgraph_inline_failed_string): New prototype.
20550         (struct cgraph_edge): Change type of INLINED_FAILED from constant
20551         char pointer to cgraph_inline_failed_t.
20552         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
20553         (cgraph_default_inline_p): Ditto.
20554         * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
20555         to cgraph_inline_failed_t pointer.
20556         * cif-code.def: New file.
20557         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
20558         reason string.
20559         (cgraph_check_inline_limits): Change type of REASON to pointer to
20560         cgraph_inline_failed_t.  Replace reason strings with enums.
20561         (cgraph_default_inline_p): Ditto.
20562         (cgraph_recursive_inlining_p): Ditto.
20563         (update_caller_keys): Change type of FAILED_REASON to
20564         cgraph_inline_failed_t.
20565         (cgraph_set_inline_failed): Change type of REASON to pointer to
20566         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
20567         convert enums to strings for text output.
20568         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
20569         to be of type cgraph_inline_failed_t.  Replace reason strings with
20570         enums.  Call cgraph_inline_failed_string to covert enums
20571         to strings for text output.
20572         (cgraph_decide_inlining): Replace reason strings with enums.
20573         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
20574         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
20575         for text output.
20576         * tree-inline.c (expand_call_inline): Change type of REASON
20577         to cgraph_inline_failed_t.  Replace reason strings with enums.
20578         Call cgraph_inline_failed_string for text output.
20579         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
20580         (cgraph.o): Ditto.
20581
20582 2009-03-28  Jan Hubicka  <jh@suse.cz>
20583
20584         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
20585         cgraph_clone_node): Remove master clone handling.
20586         (cgraph_is_master_clone, cgraph_master_clone): Remove.
20587         * cgraph.h (master_clone): Remove.
20588         (cgraph_is_master_clone, cgraph_master_clone): Remove.
20589         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
20590         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
20591
20592 2009-03-28  Jan Hubicka  <jh@suse.cz>
20593
20594         * cgraph.c (cgraph_function_body_availability): Functions declared
20595         inline are always safe to assume that it is not going to be replaced.
20596
20597 2009-03-28  Richard Guenther  <rguenther@suse.de>
20598
20599         PR tree-optimization/38513
20600         * tree-ssa-pre.c (eliminate): Remove redundant stores.
20601         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
20602         EXC_PTR_EXPR and FILTER_EXPR.
20603         (get_ref_from_reference_ops): Likewise.
20604
20605 2009-03-28  Richard Guenther  <rguenther@suse.de>
20606
20607         PR tree-optimization/38968
20608         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
20609         Use FLOOR_MOD_EXPR to compute misalignment.
20610
20611 2009-03-28  Richard Guenther  <rguenther@suse.de>
20612
20613         PR tree-optimization/37795
20614         * tree.h (combine_comparisons): Declare.
20615         * fold-const.c (combine_comparisons): Export.
20616         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
20617         comparisons.
20618         (ifcombine_iforif): Use combine_comparisons.
20619
20620 2009-03-28  Jan Hubicka  <jh@suse.cz>
20621
20622         * tree-eh.c (inlinable_call_p): New function.
20623         (make_eh_edges): Use it.
20624         (verify_eh_edges): Use it.
20625         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
20626         * except.c (reachable_next_level): Add inlinable_function argument
20627         (sjlj_find_directly_reachable_regions): Update.
20628         (add_reachable_handler): Do not set saw_any_handlers.
20629         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
20630         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
20631         Add new inlinable call parameter.
20632         (can_throw_internal, can_throw_external): Update.
20633         * except.h (can_throw_internal_1, can_throw_external_1,
20634         foreach_reachable_handler): Update declaration.
20635
20636 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
20637
20638         * config/arm/t-arm-coff, config/h8300/coff.h,
20639         config/i386/i386-aout.h, config/i386/i386-coff.h,
20640         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
20641         config/pdp11/2bsd.h, config/rs6000/aix41.h,
20642         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
20643         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
20644         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
20645         sys-types.h: Remove.
20646         * Makefile.in: Remove protoize and fixproto support and references
20647         in comments.
20648         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
20649         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
20650         Remove.
20651         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
20652         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
20653         unprotoize$(exeext).
20654         (rest.encap): Don't depend on $(STMP_FIXPROTO)
20655         (.PHONY): Don't depend on proto.
20656         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
20657         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
20658         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
20659         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
20660         build/gen-protos.o, build/scan.o, xsys-protos.h,
20661         build/fix-header$(build_exeext), build/fix-header.o,
20662         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
20663         stmp-install-fixproto): Remove.
20664         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
20665         SYSCALLS.c or fixproto files.
20666         (install-common): Don't install protoize.
20667         (install-headers-tar, install-headers-cpio, install-headers-cp):
20668         Don't depend on $(STMP_FIXPROTO).
20669         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
20670         install fixproto files or write out fixproto settings.
20671         (uninstall): Don't uninstall protoize.
20672         * config.gcc (use_fixproto): Remove.
20673         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
20674         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
20675         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
20676         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
20677         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
20678         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
20679         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
20680         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
20681         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
20682         * config/t-vxworks (STMP_FIXPROTO): Remove.
20683         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
20684         STMP_FIXPROTO): Remove.
20685         * config.in, configure: Regenerate.
20686         * crtstuff.c (gid_t, uid_t): Don't undefine.
20687         * doc/install.texi: Change m68k-coff to m68k-elf in example.
20688         (arm-*-coff, arm-*-aout: Remove target entries.
20689         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
20690         Remove mention of AIX 4.1.
20691         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
20692         * doc/invoke.texi (Running Protoize): Remove.
20693         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
20694         (Protoize Caveats): Remove.
20695         * tsystem.h: Update comments on headers assumed to exist.
20696
20697 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
20698
20699         * genautomata.c: Add a new year to the copyright.  Add a new
20700         reference.
20701         (struct insn_reserv_decl): Add comments for member bypass_list.
20702         (find_bypass): Remove.
20703         (insert_bypass): New.
20704         (process_decls): Use insert_bypass.
20705         (output_internal_insn_latency_func): Output all bypasses with the
20706         same input insn in one switch case.
20707
20708         * rtl.def (define_bypass): Describe bypass choice.
20709         * doc/md.texi (define_bypass): Ditto.
20710
20711 2009-03-27  Richard Guenther  <rguenther@suse.de>
20712
20713         * gimplify.c (mark_addressable): Export.
20714         * tree-flow.h (mark_addressable): Declare.
20715         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
20716         * tree-ssa.c (verify_phi_args): Verify that address taken
20717         variables have TREE_ADDRESSABLE set.
20718
20719 2009-03-27  Richard Guenther  <rguenther@suse.de>
20720
20721         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
20722         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
20723         Do not mark decls TREE_ADDRESSABLE.
20724         (build_fold_addr_expr): Adjust.
20725         (fold_addr_expr): Remove.
20726         (fold_unary): Use build_fold_addr_expr.
20727         (fold_comparison): Likewise.
20728         (split_address_to_core_and_offset): Likewise.
20729         * coverage.c (tree_coverage_counter_addr): Mark the array decl
20730         TREE_ADDRESSABLE.
20731         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
20732         (gimplify_modify_expr_to_memcpy): Mark source and destination
20733         addressable.
20734         * omp-low.c (create_omp_child_function): Mark the object decl
20735         TREE_ADDRESSABLE.
20736         (lower_rec_input_clauses): Mark the var we take the address of
20737         TREE_ADDRESSABLE.
20738         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
20739
20740 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
20741
20742         PR middle-end/39315
20743         * cfgexpand.c (expand_one_stack_var_at): Change alignment
20744         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
20745
20746 2009-03-27  Richard Guenther  <rguenther@suse.de>
20747
20748         PR tree-optimization/39120
20749         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
20750         constraints.
20751         (handle_lhs_call): Process return constraints.  Add escape
20752         constraints if necessary.
20753         (handle_const_call): Fill out return constraints.  Make nested
20754         case more precise.  Avoid consttmp if possible.
20755         (handle_pure_call): Fill out return constraints.  Avoid
20756         callused if possible.
20757         (find_func_aliases): Simplify call handling.
20758
20759 2009-03-27  Richard Guenther  <rguenther@suse.de>
20760
20761         PR tree-optimization/39120
20762         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
20763         as a representative.
20764         (solve_graph): Do propagate CALLUSED.
20765         (handle_pure_call): Use a scalar constraint from CALLUSED for
20766         the return value.
20767         (find_what_p_points_to): CALLUSED shall not appear in poins-to
20768         solutions.
20769
20770 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
20771
20772         PR c/39323
20773         * c-common.c (handle_aligned_attribute): Properly check alignment
20774         overflow.  Use (1U << i) instead of (1 << i).
20775
20776         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
20777
20778         * expr.h (get_mem_align_offset): Updated.
20779
20780         * tree.h (tree_decl_common): Change align to "unsigned int" and
20781         move it before pointer_alias_set.
20782
20783 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
20784             Jakub Jelinek  <jakub@redhat.com>
20785
20786         PR target/38034
20787         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
20788         gr_register_operand with gr_reg_or_0_operand.
20789         (cmpxchg_rel_di): Likewise.
20790         (sync_lock_test_and_set<mode>): Likewise.
20791
20792 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
20793
20794         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
20795         (true_regnum): Likewise.
20796
20797         * rtlanal.c (subreg_info): Moved to ...
20798         * rtl.h (subreg_info): Here.  New.
20799         (subreg_get_info): New.
20800
20801         * rtlanal.c (subreg_get_info): Make it extern.
20802
20803 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
20804
20805         PR target/39472
20806         * config/i386/i386.c (ix86_abi): New.
20807         (override_options): Handle -mabi=.
20808         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
20809         (ix86_call_abi_override): Likewise.
20810         (init_cumulative_args): Likewise.
20811         (function_arg_advance): Likewise.
20812         (function_arg_64): Likewise.
20813         (function_arg): Likewise.
20814         (ix86_pass_by_reference): Likewise.
20815         (ix86_function_value_regno_p): Likewise.
20816         (ix86_build_builtin_va_list_abi): Likewise.
20817         (setup_incoming_varargs_64): Likewise.
20818         (is_va_list_char_pointer): Likewise.
20819         (ix86_init_machine_status): Likewise.
20820         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
20821         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
20822         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
20823         (ix86_function_abi): Make it static and return enum calling_abi.
20824         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
20825         with ix86_abi.
20826         (ix86_fn_abi_va_list): Updated.
20827
20828         * config/i386/i386.h (ix86_abi): New.
20829         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
20830         (CONDITIONAL_REGISTER_USAGE): Likewise.
20831         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
20832         (machine_function): Likewise.
20833
20834         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
20835         with ix86_abi.
20836         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
20837         (STACK_BOUNDARY): Likewise.
20838         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
20839
20840         * config/i386/i386.opt (mabi=): New.
20841
20842         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
20843         return enum calling_abi.
20844         (ix86_function_type_abi): Likewise.
20845         (ix86_function_abi): Removed.
20846
20847         * doc/invoke.texi: Document -mabi= option for x86.
20848
20849 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20850
20851         * builtins.c (real_dconstp): Delete.
20852         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
20853
20854 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
20855             Jakub Jelinek  <jakub@redhat.com>
20856
20857         PR debug/37959
20858         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
20859         (gen_subprogram_die): When a function is explicit, generate the
20860         DW_AT_explicit attribute.
20861         * langhooks.h (struct lang_hooks_for_decls): Add
20862         function_decl_explicit_p langhook.
20863         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
20864         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
20865
20866 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
20867
20868         * builtins.c (fold_builtin_memory_op): Optimize memmove
20869         into memcpy if we can prove source and destination don't overlap.
20870
20871         * tree-inline.c: Include gt-tree-inline.h.
20872         (clone_fn_id_num): New variable.
20873         (clone_function_name): New function.
20874         (tree_function_versioning): Use it.
20875         * Makefile.in (GTFILES): Add tree-inline.c.
20876
20877 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
20878
20879         * BASE-VER: Change to 4.5.0.
20880
20881 2009-03-27  Xinliang David Li  <davidxl@google.com>
20882
20883         PR tree-optimization/39557
20884         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
20885
20886 2009-03-27  Xinliang David Li  <davidxl@google.com>
20887
20888         PR tree-optimization/39548
20889         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
20890         candidate check.
20891
20892 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
20893
20894         * c-common.c (pointer_int_sum): Use %wd on return from
20895         tree_low_cst.
20896
20897 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
20898
20899         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
20900         on return from tree_low_cst.
20901
20902 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20903
20904         PR c++/36799
20905         * ginclude/stdarg.h (va_copy): Define also for
20906         __GXX_EXPERIMENTAL_CXX0X__.
20907
20908 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20909
20910         PR c++/35652
20911         * builtins.h (c_strlen): Do not warn here.
20912         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
20913         * c-common.c (pointer_int_sum): Take an explicit location.
20914         Warn about offsets out of bounds.
20915         * c-common.h (pointer_int_sum): Adjust declaration.
20916
20917 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20918
20919         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
20920         markup glitch.
20921
20922 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
20923
20924         PR c++/39554
20925         * opts.c (warn_if_disallowed_function_p): Don't assume
20926         get_callee_fndecl must return non-NULL.
20927
20928 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
20929
20930         PR rtl-optimization/39522
20931         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
20932         when reg_reloaded_valid is set.
20933
20934 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20935
20936         * config/spu/divv2df3.c: New file.
20937         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
20938         (DPBIT_FUNCS): Filter out _div_df.
20939
20940 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
20941
20942         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
20943         a jump insn, count that jump in the distance to the loop start.
20944
20945 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
20946
20947         PR target/39523
20948         * config/sh/sh.c (calc_live_regs): Fix condition for global
20949         registers except PIC_OFFSET_TABLE_REGNUM.
20950
20951 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
20952
20953         PR/39518
20954         * doc/invoke.texi (-mconsole): New.
20955         (-mcygwin): New.
20956         (-mno-cygwin): New.
20957         (-mdll): New.
20958         (-mnop-fun-dllimport): New.
20959         (-mthread): New.
20960         (-mwin32): New.
20961         (-mwindows): New.
20962         (sub section "i386 and x86-64 Windows Options"): New.
20963
20964 2009-03-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
20965
20966         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
20967         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
20968
20969 2009-03-25  Richard Guenther  <rguenther@suse.de>
20970
20971         PR middle-end/39497
20972         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
20973         of -Wno-error.
20974
20975 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
20976
20977         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
20978         neither of haifa/selective schedulers are working.
20979
20980 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20981
20982         * doc/invoke.texi (Debugging Options): Fix description of
20983         -fno-merge-debug-strings.
20984
20985 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
20986
20987         * config/cris/libgcc.ver: New version-script.
20988         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
20989
20990         * configure.ac <GAS features, nop mnemonic>: Add pattern
20991         crisv32-*-* for "nop".
20992         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
20993         * configure: Regenerate.
20994
20995 2009-03-24  Ira Rosen  <irar@il.ibm.com>
20996
20997         PR tree-optimization/39529
20998         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
20999         mark_sym_for_renaming for the tag copied to the new vector
21000         pointer.
21001
21002 2009-03-24  Arthur Loiret  <aloiret@debian.org>
21003
21004         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
21005         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
21006         EXTRA_SPEC_FUNCTIONS.
21007         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
21008         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
21009         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
21010         -march and -mtune options.
21011
21012 2009-03-24  Ralf Corsépius  <ralf.corsepius@rtems.org>
21013
21014         * config/m68k/t-rtems: Add m5329 multilib.
21015
21016 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
21017             Jakub Jelinek  <jakub@redhat.com>
21018
21019         PR debug/39524
21020         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
21021         nodes.
21022
21023 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
21024
21025         PR c/39495
21026         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
21027         instead of c_parser_expression_conv, if original_code isn't one of the
21028         4 allowed comparison codes, fail.
21029
21030 2009-03-23  Richard Guenther  <rguenther@suse.de>
21031
21032         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
21033         * tree.h (struct tree_type): Likewise.
21034         * reload.h (struct insn_chain): Likewise.
21035         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
21036         * function.h (struct function): Likewise.
21037         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
21038
21039 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
21040
21041         PR tree-optimization/39516
21042         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
21043
21044 2009-03-23  Bingfeng Mei  <bmei@broadcom.com>
21045
21046         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
21047         should be set true if BITS_PER_WORD of target is bigger than 32
21048
21049 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
21050
21051         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
21052         Translate -B-options to -rpath-link.  Correct existing
21053         rpath-link and conditionalize on !nostdlib.
21054
21055 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21056
21057         * doc/extend.texi (Function Attributes, Variable Attributes):
21058         Fix typos.
21059         * doc/invoke.texi (Debugging Options, Optimize Options)
21060         (i386 and x86-64 Options, MCore Options): Likewise.
21061
21062 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
21063
21064         PR debug/37890
21065         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
21066         it for block local namespace aliases.
21067         (gen_decl_die): Pass context_die to gen_namespace_die.
21068
21069 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
21070
21071         PR c/39495
21072         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
21073         minimum or maximum value.
21074
21075 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
21076
21077         * reginfo.c (globalize_reg): Recompute derived reg sets.
21078
21079 2009-03-19  Ozkan Sezer  <sezeroz@gmail.com>
21080
21081         PR target/39063
21082         * libgcc2.c (mprotect): Do not use signed arguments for
21083         VirtualProtect, use DWORD arguments.  Also fix the 'may
21084         be used uninitialized' warning for the np variable.
21085
21086 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
21087
21088         PR target/39496
21089         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
21090         functions using regparm calling conventions when not optimizing.
21091         (ix86_function_sseregparm): Similarly for sseregparm calling
21092         conventions.
21093
21094 2009-03-19  Li Feng  <nemokingdom@gmail.com>
21095
21096         PR middle-end/39500
21097         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
21098         dependence if the first conflict is after niter iterations.
21099
21100 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
21101
21102         PR middle-end/38609
21103         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
21104         functions with dynamic stack-pointer adjustments.
21105
21106 2009-03-19  Ben Elliston  <bje@au.ibm.com>
21107
21108         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
21109         option; change to -msdata=data.
21110
21111 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21112
21113         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
21114         and -fopenmp.
21115
21116 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
21117
21118         PR target/35180
21119         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
21120
21121 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
21122
21123         * doc/invoke.texi (Code Gen Options): Expand discussion of
21124         -fno-common.
21125
21126 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
21127
21128         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
21129         * matrix-reorg.c (struct matrix_info): Likewise.
21130         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
21131         * rtl.h (struct mem_attrs): Likewise.
21132         * df.h (struct df): Likewise.
21133         * tree-data-ref.h (struct data_dependence_relation): Likewise.
21134         * ira-int.h (struct ira_allocno): Likewise.
21135         * df-scan.c (struct df_collection_rec): Likewise.
21136         * ira.c (struct equivalence): Likewise.
21137         * function.c (struct temp_slot): Likewise.
21138         * cfgloop.h (struct loop): Likewise.
21139
21140         PR debug/39485
21141         * function.c (use_register_for_decl): When not optimizing, disregard
21142         register keyword for variables with types containing methods.
21143
21144 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
21145
21146         PR middle-end/39447
21147         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
21148         (is_simple_operand): Call contains_component_ref_p before calling data
21149         reference analysis that would fail on COMPONENT_REFs.
21150
21151         * tree-vrp.c (search_for_addr_array): Fix formatting.
21152
21153 2009-03-18  Richard Guenther  <rguenther@suse.de>
21154
21155         * tree-vect-transform.c (vect_loop_versioning): Fold the
21156         generated comparisons.
21157         * tree-vectorizer.c (set_prologue_iterations): Likewise.
21158         (slpeel_tree_peel_loop_to_edge): Likewise.
21159
21160 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21161
21162         PR middle-end/37805
21163         * opts.c (print_specific_help): In addition to `undocumented',
21164         accept `separate' and `joined' flags if passed alone.  Describe
21165         output by the first matched one of those.
21166         (common_handle_option): Skip over empty strings.
21167         * gcc.c (display_help): Fix help string for `--help='.
21168         * doc/invoke.texi (Option Summary, Overall Options): With
21169         `--help=', classes and qualifiers can both be repeated, but
21170         only the latter can be negated.  One should not pass only
21171         negated qualifiers.  Fix markup and examples.
21172
21173         Revert
21174         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
21175         PR middle-end/37805
21176         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
21177         and -fhelp=separate.
21178
21179 2009-03-17  Jing Yu  <jingyu@google.com>
21180
21181         PR middle-end/39378
21182         * function.h (struct rtl_data): Move is_thunk from here...
21183         (struct function): ...to here.
21184         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
21185         * varasm.c (assemble_start_function): Change is_thunk from crtl to
21186         cfun.
21187         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
21188         cfun.
21189         (alpha_does_function_need_gp, alpha_start_function): Likewise.
21190         (alpha_output_function_end_prologue): Likewise.
21191         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
21192         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
21193         (rs6000_output_function_epilogue): Likewise.
21194         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
21195
21196 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
21197
21198         PR target/39482
21199         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
21200         from different units in a single alternative.
21201         (*truncdfsf_i387): Ditto.
21202         (*truncxfsf2_mixed): Ditto.
21203         (*truncxfdf2_mixed): Ditto.
21204
21205 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
21206
21207         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
21208         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
21209
21210         PR debug/39474
21211         * tree-ssa-live.c (remove_unused_locals): Don't remove local
21212         unused non-artificial variables when not optimizing.
21213
21214         PR debug/39471
21215         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
21216         DW_TAG_imported_module even if decl is IMPORTED_DECL with
21217         NAMESPACE_DECL in its DECL_INITIAL.
21218
21219         PR middle-end/39443
21220         * optabs.c (set_user_assembler_libfunc): New function.
21221         * expr.h (set_user_assembler_libfunc): New prototype.
21222         * c-common.c: Include libfuncs.h.
21223         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
21224         for memcmp, memset, memcpy, memmove and abort.
21225         * Makefile.in (c-common.o): Depend on libfuncs.h.
21226
21227         PR debug/39412
21228         * dwarf2out.c (gen_inlined_enumeration_type_die,
21229         gen_inlined_structure_type_die, gen_inlined_union_type_die,
21230         gen_tagged_type_instantiation_die): Removed.
21231         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
21232         do nothing.
21233
21234 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
21235
21236         PR testsuite/38526
21237         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
21238         its use.
21239         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
21240         (check-parallel-%): Ditto.
21241         (check-consistency): Ditto.
21242
21243 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
21244
21245         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
21246         local variable rhs by NULL_TREE.
21247
21248 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
21249
21250         PR target/39477
21251         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
21252
21253 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
21254
21255         PR target/39476
21256         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
21257
21258 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
21259
21260         PR target/39473
21261         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
21262         for ms->sysv ABI calls only in 64bit mode.
21263
21264         * config/i386/i386.md (untyped_call): Support 32bit.
21265
21266 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
21267
21268         * doc/extend.texi: Replace x86_65 with x86_64.
21269
21270 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
21271
21272         PR tree-optimization/39455
21273         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
21274         mismatches for POINTER_TYPE_P (type).
21275         (number_of_iterations_le): Likewise.
21276
21277 2009-03-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
21278
21279         * config/picochip/picochip.c: Removed profiling support.
21280         * config/picochip/picochip.md: Removed profiling instruction.
21281         * config/picochip/picochip.h: Removed profiling builtin.
21282
21283 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
21284
21285         * doc/install.texi (--with-host-libstdcxx): Document.
21286
21287 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
21288
21289         PR target/34299
21290         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
21291         generate a warning if the function name does not begin with
21292         "__vector" and the function has either the 'signal' or 'interrupt'
21293         attribute, from here to ...
21294         (avr_declare_function_name): ...here. New function.
21295         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
21296         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
21297
21298 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
21299
21300         PR bootstrap/39454
21301         * cse.c (fold_rtx): Don't modify original const_arg1 when
21302         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
21303         separate variable instead.
21304         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
21305         from out of range shift counts.
21306         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
21307
21308 2009-03-13  Catherine Moore  <clm@codesourcery.com>
21309
21310         * config/i386/x-mingw32 (host-mingw32.o): Replace
21311         diagnostic.h with $(DIAGNOSTIC_H).
21312
21313 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
21314
21315         PR target/39431
21316         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
21317         predicate.
21318         * config/i386/sync.md (sync_compare_and_swap<mode>,
21319         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
21320         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
21321         into a register.
21322         (sync_double_compare_and_swapdi_pic,
21323         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
21324         cmpxchg8b_pic_memory_operand instead of just memory_operand.
21325
21326 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
21327
21328         PR target/39445
21329         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
21330
21331 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
21332
21333         PR target/39327
21334         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
21335         (avx_addsubv4df3): Likewise.
21336         (*avx_addsubv4sf3): Likewise.
21337         (sse3_addsubv4sf3): Likewise.
21338
21339 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
21340
21341         PR target/38824
21342         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
21343
21344 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
21345
21346         PR debug/39432
21347         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
21348         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
21349         registers for allocnos created from user-defined variables.
21350
21351 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21352
21353         PR target/39181
21354         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
21355         of non-integer mode as well.
21356
21357 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
21358
21359         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
21360         for functions for which the parameter types are unknown.
21361
21362 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
21363
21364         PR target/39137
21365         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
21366         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
21367         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
21368         * config/i386/i386.c (ix86_local_alignment): For
21369         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
21370         long long variables on the stack to avoid dynamic realignment.
21371         Allow the first argument to be a decl rather than type.
21372         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
21373
21374 2009-03-11  Nick Clifton  <nickc@redhat.com>
21375
21376         PR target/5362
21377         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
21378         options.
21379         Add description to mno-lsim option.
21380         * config/mcore/mcore.h: Remove comment about deprecated m4align
21381         option.
21382         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
21383         * doc/invoke.texi: Add description of mno-lsim and
21384         mstack-increment options.
21385
21386         * config/fr30/fr30.opt: Document the -mno-lsim option.
21387         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
21388         and -mno-lsim options.
21389
21390 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21391
21392         * fold-const.c (fold_comparison): Only call fold_inf_compare
21393         if the mode supports infinities.
21394
21395 2009-03-11  Jason Merrill  <jason@redhat.com>
21396
21397         PR debug/39086
21398         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
21399         end already did.  Notice GIMPLE_CALL modifications of the result.
21400         Don't copy debug information from an ignored decl or a decl from
21401         another function.
21402
21403 2009-03-10  Richard Guenther  <rguenther@suse.de>
21404             Nathan Froyd  <froydnj@codesourcery.com>
21405
21406         PR middle-end/37850
21407         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
21408         (__divMODE3): Likewise.
21409
21410 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
21411
21412         PR tree-optimization/39394
21413         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
21414         DECL_SIZE_UNIT of variable length FIELD_DECLs.
21415
21416 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21417
21418         * recog.c (verfiy_changes): Disallow renaming of hard regs in
21419         inline asms for register asm ("") declarations.
21420
21421 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
21422
21423         * fold-const.c (fold_unary): Fix comment.
21424
21425 2009-03-07  Jan Hubicka  <jh@suse.cz>
21426
21427         PR target/39361
21428         * tree-inline.c (setup_one_parameter): Do replacement of const
21429         argument by constant in SSA form.
21430
21431 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21432
21433         PR middle-end/38028
21434         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
21435         determine alignment passed to assign_stack_local.
21436         (assign_parms_unsplit_complex): Likewise.
21437         * except.c (sjlj_build_landing_pads): Likewise.
21438
21439 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
21440
21441         PR middle-end/39360
21442         * tree-flow.h (add_referenced_var): Return bool instead of void.
21443         * tree-dfa.c (add_referenced_var): Return result of
21444         referenced_var_check_and_insert call.
21445         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
21446         of referenced_var_check_and_insert.
21447
21448         PR debug/39372
21449         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
21450         (gen_variable_die): Emit DW_AT_location on abstract static variable's
21451         DIE, don't emit it if abstract origin already has it.
21452         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
21453         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
21454
21455 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
21456
21457         * genpreds.c (needs_variable): Fix parentheses at variable name
21458         detection.
21459         (write_tm_constrs_h): Indent generated code.
21460
21461 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21462
21463         * doc/extend.texi (Function Attributes): Add documentation
21464         for isr attributes.
21465
21466 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
21467
21468         PR debug/39387
21469         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
21470         take locus from its DECL_SOURCE_LOCATION instead of input_location.
21471
21472 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
21473
21474         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
21475         the loop as bad.
21476
21477 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
21478
21479         PR debug/39379
21480         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
21481         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
21482
21483 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
21484
21485         * config/i386/i386.md (R8_REG, R9_REG): New constants.
21486         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
21487         constants instead of magic numbers.
21488         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
21489         (QI_REG_P): Ditto.
21490         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
21491         (x86_64_ms_abi_int_parameter_registers): Ditto.
21492         (x86_64_int_return_registers): Ditto.
21493         (ix86_maybe_switch_abi): Ditto.
21494         (ix86_expand_call): Ditto for clobbered_registers array.
21495         (ix86_hard_regno_mode_ok): Ditto.
21496         (x86_extended_QIreg_mentioned_p): Ditto.
21497
21498 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
21499
21500         PR tree-optimization/39349
21501         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
21502
21503         * combine.c (gen_lowpart_for_combine): Use omode when generating
21504         clobber.
21505
21506 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
21507
21508         PR rtl-optimization/39235
21509         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
21510
21511 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
21512
21513         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
21514
21515 2009-03-04  Richard Guenther  <rguenther@suse.de>
21516
21517         PR tree-optimization/39362
21518         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
21519         that occur in abnormal PHIs should be varying.
21520
21521 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
21522
21523         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
21524         Extend comments.
21525         (simple_iv):  Take loop as an argument instead of statement.
21526         * tree-scalar-evolution.h (simple_iv): Declaration changed.
21527         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
21528         to simple_iv.
21529         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
21530         Ditto.
21531         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
21532         * matrix-reorg.c (analyze_transpose): Ditto.
21533         * tree-data-ref.c (dr_analyze_innermost): Ditto.
21534         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
21535         * tree-predcom.c (ref_at_iteration): Ditto.
21536         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
21537
21538 2009-03-04  Richard Guenther  <rguenther@suse.de>
21539
21540         PR tree-optimization/39358
21541         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
21542         escaped_id and callused_id.
21543         (solve_graph): Likewise.
21544
21545 2009-03-04  Richard Guenther  <rguenther@suse.de>
21546
21547         PR tree-optimization/39339
21548         * tree-sra.c (try_instantiate_multiple_fields): Make it
21549         no longer ICE on the above.
21550
21551 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
21552
21553         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
21554         that fits within Pmode.
21555
21556 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
21557
21558         PR middle-end/10109
21559         * tm.texi (LIBCALL_VALUE): Update description.
21560
21561 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
21562
21563         PR middle-end/34443
21564         * doc/extend.texi (section): Update description.
21565
21566 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
21567
21568         PR middle-end/39345
21569         * tree-inline.c (remapped_type): New.
21570         (can_be_nonlocal): Call remapped_type instead of remap_type.
21571
21572 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
21573
21574         PR fortran/39354
21575         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
21576         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
21577
21578 2009-03-03  Richard Guenther  <rguenther@suse.de>
21579
21580         PR middle-end/39272
21581         * tree.c (tree_nonartificial_location): New function.
21582         * tree.h (tree_nonartificial_location): Declare.
21583         * builtins.c (expand_builtin_memory_chk): Provide location
21584         of the call location for artificial function pieces.
21585         (maybe_emit_chk_warning): Likewise.
21586         (maybe_emit_sprintf_chk_warning): Likewise.
21587         (maybe_emit_free_warning): Likewise.
21588         * expr.c (expand_expr_real_1): Likewise.
21589
21590 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
21591
21592         PR tree-optimization/39343
21593         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
21594         COMPONENT_REF t has ARRAY_TYPE.
21595
21596 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
21597
21598         PR middle-end/39335
21599         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
21600         when the type precision of the induction variable should be
21601         larger than the type precision of nit.
21602         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
21603         * graphite.c (graphite_loop_normal_form): Same.
21604         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
21605
21606 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
21607
21608         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
21609         (*call_1_rex64_ms_sysv): Use named constants instead of magic
21610         numbers to describe clobbered registers.
21611         (*call_value_0_rex64_ms_sysv): Ditto.
21612         * config/i386/mmx.md (mmx_emms): Ditto.
21613         (mmx_femms): Ditto.
21614
21615 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
21616
21617         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
21618         of ABI_64.
21619
21620 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21621
21622         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
21623         (spu_section_type_flags): New function.
21624
21625 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
21626
21627         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
21628         reg_class_contents of FLOAT_REGS into a temporary.
21629
21630 2009-03-02  Richard Guenther  <rguenther@suse.de>
21631             Ira Rosen  <irar@il.ibm.com>
21632
21633         PR tree-optimization/39318
21634         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
21635         information to the vectorized statement.
21636
21637 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
21638
21639         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
21640         variable.  Use defined names instead of magic constants for REX SSE
21641         registers.
21642
21643 2009-03-01  Richard Guenther  <rguenther@suse.de>
21644
21645         PR tree-optimization/39331
21646         * omp-low.c (lower_send_shared_vars): Do not receive new
21647         values for the reference of DECL_BY_REFERENCE parms or results.
21648
21649 2009-03-01  Jan Hubicka  <jh@suse.cz>
21650
21651         PR debug/39267
21652         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
21653         BLOCK_NONLOCALIZED_VAR): New macros.
21654         (tree_block): Add nonlocalized_vars.
21655         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
21656         gen_decl_die): Add origin argument.  Allow generation of die with
21657         origin at hand only.
21658         (gen_member_die, gen_type_die_with_usage, force_decl_die,
21659         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
21660         of gen_*.
21661         (gen_block_die): Fix checking for unused blocks.
21662         (process_scope_var): Break out from .... ; work with origins only.
21663         (decls_for_scope) ... here; process nonlocalized list.
21664         (dwarf2out_ignore_block): Look for nonlocalized vars.
21665         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
21666         vars.
21667         (dump_scope_block): Dump them.
21668         * tree-inline.c (remap_decls): Handle nonlocalized vars.
21669         (remap_block): Likewise.
21670         (can_be_nonlocal): New predicate.
21671         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
21672
21673 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21674
21675         * configure: Regenerate.
21676
21677 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21678
21679         * optc-gen.awk: No need to duplicate option flags twice.
21680         Reuse help texts for duplicate options which do not have any.
21681
21682         * gcc.c (display_help): Document --version.
21683
21684         * gcc.c (main): If print_help_list and verbose_flag, ensure
21685         driver output comes before subprocess output.
21686
21687         * optc-gen.awk: Assign all remaining fields to help string,
21688         space-separated, for multi-line help in *.opt.
21689
21690         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
21691         -Wno-pedantic-ms-format is for MinGW targets only.
21692
21693         * doc/options.texi (Option file format): Fix bad indentation,
21694         restoring dropped sentence.
21695
21696 2009-02-28  Jan Hubicka  <jh@suse.cz>
21697
21698         * tree-inline.c (tree_function_versioning): Output debug info.
21699
21700 2009-02-28  Jan Hubicka  <jh@suse.cz>
21701
21702         PR debug/39267
21703         * tree-inline.c (setup_one_parameter): Do not copy propagate
21704         arguments when not optimizing.
21705
21706 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
21707
21708         PR target/39327
21709         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
21710         (avx_addsubv4df3): Likewise.
21711         (*avx_addsubv4sf3): Likewise.
21712         (sse3_addsubv4sf3): Likewise.
21713         (*avx_addsubv2df3): Likewise.
21714         (sse3_addsubv2df3): Likewise.
21715         (avx_unpckhps256): Correct item selectors.
21716         (avx_unpcklps256): Likewise.
21717         (avx_unpckhpd256): Likewise.
21718         (avx_unpcklpd256): Likewise.
21719
21720 2009-02-28  Jan Hubicka  <jh@suse.cz>
21721
21722         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
21723         static vars.
21724         (copy_arguments_for_versioning): If var is declared don't declare it.
21725         (tree_function_versioning): First setup substitutions and then copy
21726         args.
21727
21728 2009-02-27  Jan Hubicka  <jh@suse.cz>
21729
21730         PR debug/39267
21731         * cgraph.h (varpool_output_debug_info): Remove.
21732         * cgraphunit.c (varpool_output_debug_info): Remove.
21733         * dwarf2out.c (deferred_locations_struct): New struct
21734         (deferred_locations): New type.
21735         (deferred_locations_list): New static var.
21736         (deffer_location): New function.
21737         (gen_variable_die): Use it.
21738         (decls_for_scope): Output info on local static vars.
21739         (dwarf2out_finish): Process deferred locations.
21740         * varpool.c (varpool_output_debug_info): Remove.
21741
21742 2009-02-27  Jan Hubicka  <jh@suse.cz>
21743
21744         PR debug/39267
21745         * tree.h (TREE_PROTECTED): Fix comment.
21746         (BLOCK_HANDLER_BLOCK): Remove.
21747         (struct tree_block): Remove handler_block add body_block.
21748         (inlined_function_outer_scope_p): New.
21749         (is_body_block): Remove.
21750         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
21751         * dwarf2out.c (is_inlined_entry_point): Remove.
21752         (add_high_low_attributes): Use inlined_function_outer_scope_p.
21753         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
21754         code.
21755         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
21756         * gimplify.c (gimplify_expr): Gimplify body blocks.
21757         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
21758         block with multiple subblocks.
21759         (dump_scope_block): Prettier output; dump more flags and info.
21760         (dump_scope_blocks): New.
21761         (remove_unused_locals): Use dump_scope_blocks.
21762         * tree-flow.h (dump_scope_blocks): Declare.
21763         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
21764         * stmt.c (is_body_block): Remove.
21765         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
21766         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
21767
21768 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
21769
21770         PR middle-end/39308
21771         * graphite.c (graphite_loop_normal_form): Do not call
21772         number_of_iterations_exit from a gcc_assert.
21773
21774 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21775
21776         * config/s390/s390.c (s390_swap_cmp): Look for conditional
21777         jumps if COND is NULL.
21778         (find_cond_jump): New function.
21779         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
21780         * config/s390/s390.md: Remove z10_cobra attribute value.
21781
21782 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
21783
21784         * config/alpha/alpha.h (alpha_expand_mov): Return false if
21785         force_const_mem returns NULL_RTX.
21786
21787 2009-02-26  Jan Hubicka  <jh@suse.cz>
21788
21789         PR debug/39267
21790         * cgraph.h (varpool_output_debug_info): Remove.
21791         * cgraphunit.c (varpool_output_debug_info): Remove.
21792         * dwarf2out.c (deferred_locations_struct): New struct
21793         (deferred_locations): New type.
21794         (deferred_locations_list): New static var.
21795         (deffer_location): New function.
21796         (gen_variable_die): Use it.
21797         (decls_for_scope): Output info on local static vars.
21798         (dwarf2out_finish): Process deferred locations.
21799         * varpool.c (varpool_output_debug_info): Remove.
21800
21801 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
21802
21803         PR rtl-optimization/39241
21804         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
21805         to subreg_offset_representable_p.
21806
21807 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
21808
21809         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
21810         execute function prototype.  Get f and nregs from max_reg_num
21811         and get_insns.  Remove the first backward pass as it's dead,
21812         guard the forward pass by flag_expensive_optimizations.
21813         (rest_of_handle_regmove): Delete.
21814         (pass_regmove): Replace it with regmove_optimize.
21815
21816 2009-02-25  Martin Jambor  <mjambor@suse.cz>
21817
21818         PR tree-optimization/39259
21819         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
21820         calls_alloca function flags.
21821         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
21822         calls are detected.
21823
21824 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
21825
21826         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
21827         flags_set_1_rtx, flags_set_1_set): Delete.
21828         (regmove_optimize): Do not call mark_flags_life_zones.
21829
21830 2009-02-24  Julian Brown  <julian@codesourcery.com>
21831
21832         PR target/35965
21833         * config/arm/arm.c (require_pic_register): Only set
21834         cfun->machine->pic_reg once per function.
21835
21836 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
21837
21838         * doc/invoke.texi (Link Options): Document an easier way to pass
21839         options that take arguments to the GNU linker using -Xlinker and -Wl.
21840
21841 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
21842
21843         PR target/33785
21844         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
21845
21846 2009-02-24  Richard Guenther  <rguenther@suse.de>
21847
21848         PR debug/39285
21849         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
21850
21851 2009-02-24  Richard Guenther  <rguenther@suse.de>
21852             Zdenek Dvorak  <ook@ucw.cz>
21853
21854         PR tree-optimization/39233
21855         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
21856         from converting them to a generic type.
21857
21858 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
21859
21860         PR tree-optimization/39260
21861         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
21862         contains a condition with a real type.
21863         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
21864
21865 2009-02-23  Jason Merrill  <jason@redhat.com>
21866
21867         PR c++/38880
21868         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
21869         narrowing_initializer_constant_valid_p.
21870         (narrowing_initializer_constant_valid_p): Don't return
21871         null_pointer_node for adding a pointer to itself.
21872
21873 2009-02-23  Jan Hubicka  <jh@suse.cz>
21874
21875         PR c/12245
21876         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
21877         resizing.
21878
21879 2009-02-23  Jan Hubicka  <jh@suse.cz>
21880
21881         PR tree-optimization/37709
21882         * tree.c (block_ultimate_origin): Move here from dwarf2out.
21883         * tree.h (block_ultimate_origin): Declare.
21884         * dwarf2out.c (block_ultimate_origin): Move to tree.c
21885         * tree-ssa-live.c (remove_unused_scope_block_p):
21886         Eliminate blocks containig no instructions nor live variables nor
21887         nested blocks.
21888         (dump_scope_block): New function.
21889         (remove_unused_locals): Enable removal of dead blocks by default;
21890         enable dumping at TDF_DETAILS.
21891
21892 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
21893
21894         * config/i386/i386.c (classify_argument): Don't allow COImode
21895         and OImode.
21896         (function_arg_advance_32): Don't allow OImode.
21897         (function_arg_32): Likewise.
21898         (function_value_32): Likewise.
21899         (return_in_memory_32): Likewise.
21900         (function_arg_64): Remove OImode comment.
21901
21902 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
21903
21904         PR target/39261
21905         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
21906         ix86_expand_vector_set for V4DImode in 64bit mode only.
21907         (ix86_expand_vector_init_one_var): Likewise.
21908
21909 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
21910
21911         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
21912
21913 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
21914
21915         PR bootstrap/39257
21916         * loop-iv.c: Revert last change.
21917         * emit-rtl.c: Likewise.
21918
21919 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
21920
21921         PR target/39256
21922         * config/i386/i386.c (type_natural_mode): Remove an extra
21923         space in the warning message.
21924         (function_value_32): Handle 32-byte vector modes.
21925         (return_in_memory_32): Likewise.
21926
21927 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
21928
21929         * loop-iv.c (truncate_value): New function.
21930         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
21931         of lowpart_subreg.
21932         (lowpart_subreg): Move to...
21933         * emit-rtl.c: ...here.
21934
21935 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
21936
21937         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
21938         accidental and undocumented change at revision 140860.
21939
21940 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
21941
21942         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
21943         take gimple_seq * arguments.
21944         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
21945         types_compatible_p langhook.
21946
21947 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
21948             Joseph Myers  <joseph@codesourcery.com>
21949
21950         * config/arm/arm.c (arm_builtin_va_list): New function.
21951         (arm_expand_builtin_va_start): Likewise.
21952         (arm_gimplify_va_arg_expr): Likewise.
21953         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
21954         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
21955         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
21956         (va_list_type): New variable.
21957         (arm_mangle_type): Mangle va_list_type appropriately.
21958
21959 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
21960
21961         PR middle-end/39157
21962         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
21963         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
21964         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
21965         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
21966         parameter to 1000 for -O1 by default.
21967         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
21968         parameter.
21969         * loop-invariant.c: Include params.h.
21970         (move_loop_invariants): Don't call move_single_loop_invariants on
21971         very large loops.
21972
21973 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
21974
21975         * calls.c (emit_library_call_value_1): Use slot_offset instead of
21976         offset when calculating bounds for indexing stack_usage_map.  Fixes
21977         a buffer overflow with certain target setups.
21978
21979 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
21980
21981         PR target/39240
21982         * calls.c (expand_call): Clear try_tail_call if caller and callee
21983         disagree in promotion of function return value.
21984
21985 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
21986
21987         PR target/39175
21988         * c-common.c (c_determine_visibility): If visibility changed and
21989         DECL_RTL has been already set, call make_decl_rtl to update symbol
21990         flags.
21991
21992 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
21993
21994         PR c++/39188
21995         * varasm.c (assemble_variable): Don't check DECL_NAME when
21996         globalizing a variable.
21997
21998 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
21999
22000         PR c/38483
22001         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
22002         expression before any __builtin_trap call.
22003         * c-typeck.c (build_function_call): Convert and check function
22004         arguments before generating a call to a trap.  Evaluate the
22005         function arguments before the trap.
22006
22007 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
22008
22009         PR target/39228
22010         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
22011         (UNSPEC_FXAM_MEM): New unspec.
22012         (fxam<mode>2_i387_with_temp): New insn and split pattern.
22013         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
22014         memory using fxam<mode>2_i387_with_temp to remove excess precision.
22015
22016 2009-02-19  Richard Guenther  <rguenther@suse.de>
22017
22018         PR tree-optimization/39207
22019         PR tree-optimization/39074
22020         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
22021         storedanything_tree): New.
22022         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
22023         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
22024         (build_succ_graph): Add edges from STOREDANYTHING to all
22025         non-direct nodes.
22026         (init_base_vars): Initialize STOREDANYTHING.
22027         (compute_points_to_sets): Free substitution info after
22028         building the succ graph.
22029         (ipa_pta_execute): Likewise.
22030
22031         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
22032         field.
22033         (do_ds_constraint): Do not add to special var or non-pointer
22034         field solutions.
22035         (type_could_have_pointers): Split out from ...
22036         (could_have_pointers): ... here.  For arrays use the element type.
22037         (create_variable_info_for): Initialize may_have_pointers.
22038         (new_var_info): Likewise.
22039         (handle_lhs_call): Make the HEAP variable unknown-sized.
22040         (intra_create_variable_infos): Use a type with pointers for
22041         PARM_NOALIAS, make it unknown-sized.
22042
22043 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
22044
22045         PR target/39224
22046         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
22047
22048 2009-02-18  Jason Merrill  <jason@redhat.com>
22049
22050         PR target/39179
22051         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
22052         value if DECL_EXTERNAL.
22053         * tree-sra.c (sra_walk_gimple_assign): Likewise.
22054         * target.h (gcc_target::binds_local_p): Clarify "module".
22055         * tree.h (TREE_PUBLIC): Clarify "module".
22056
22057 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
22058
22059         PR target/38891
22060         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
22061         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
22062
22063 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
22064
22065         PR target/39082
22066         * c.opt (Wabi): Support C and ObjC.
22067         (Wpsabi): New.
22068
22069         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
22070
22071         * config/i386/i386.c (classify_argument): Warn once about the ABI
22072         change when passing union with long double.
22073
22074         * doc/invoke.texi: Update -Wabi for warning psABI changes.
22075
22076 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
22077
22078         PR c/35447
22079         * c-parser.c (c_parser_compound_statement): Always enter and leave
22080         a scope.
22081
22082 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22083
22084         PR target/34587
22085         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
22086
22087 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
22088
22089         PR tree-optimization/36922
22090         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
22091         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
22092         Likewise.
22093
22094 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
22095
22096         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
22097         to 0 for EABI64.
22098
22099 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
22100
22101         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
22102
22103 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
22104
22105         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
22106         tree sharing.
22107
22108 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
22109             Richard Sandiford  <rdsandiford@googlemail.com>
22110
22111         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
22112         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
22113         (loongson_biadd): ...this.
22114
22115 2009-02-17  Richard Guenther  <rguenther@suse.de>
22116
22117         PR tree-optimization/39202
22118         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
22119         a var make sure to follow existing collapses.
22120
22121 2009-02-17  Richard Guenther  <rguenther@suse.de>
22122
22123         PR middle-end/39214
22124         * langhooks.c (lhd_print_error_function): Check for NULL block.
22125
22126 2009-02-17  Richard Guenther  <rguenther@suse.de>
22127
22128         PR tree-optimization/39204
22129         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
22130         of the PHI arg.
22131
22132 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
22133
22134         * config/soft-fp/double.h: Update from glibc CVS.
22135
22136 2009-02-17  Richard Guenther  <rguenther@suse.de>
22137
22138         PR tree-optimization/39207
22139         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
22140         strict-aliasing warnings for pointers pointing to NULL.
22141
22142 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
22143
22144         PR c/35446
22145         * c-parser.c (c_parser_braced_init): Call pop_init_level when
22146         skipping until next close brace.
22147
22148 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
22149
22150         PR target/37049
22151         * config/i386/i386.c (ix86_expand_push): Set memory alignment
22152         to function argument boundary.
22153
22154 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
22155
22156         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
22157         in the lea_add. Reload eventually constraints it properly.
22158         * config/picochip/constraints.md: Remove the target constraint
22159         "b", since it is not needed anymore.
22160
22161 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
22162
22163         * gthr-dce.h: Uglify function parameter and local variable names.
22164         * gthr-gnat.h: Likewise.
22165         * gthr-mipssde.h: Likewise.
22166         * gthr-nks.h: Likewise.
22167         * gthr-posix95.h: Likewise.
22168         * gthr-posix.h: Likewise.
22169         * gthr-rtems.h: Likewise.
22170         * gthr-single.h: Likewise.
22171         * gthr-solaris.h: Likewise.
22172         * gthr-tpf.h: Likewise.
22173         * gthr-vxworks.h: Likewise.
22174         * gthr-win32.h: Likewise.
22175
22176 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
22177
22178         PR target/39196
22179         * config/i386/i386.md: Restrict the new peephole2 to move
22180         between MMX/SSE registers.
22181
22182 2009-02-15  Richard Guenther  <rguenther@suse.de>
22183
22184         Revert
22185         2009-02-13  Richard Guenther  <rguenther@suse.de>
22186
22187         * configure.ac: Enable LFS.
22188         * configure: Re-generate.
22189         * config.in: Likewise.
22190
22191 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22192
22193         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
22194         spu_srqwbyte, spu_srqwbytebc): Define.
22195         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
22196         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
22197         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
22198         "shrqby_<mode>"): New insn-and-split patterns.
22199         * config/spu/spu.c (expand_builtin_args): Determine and return
22200         number of operands using spu_builtin_description data.
22201         (spu_expand_builtin_1): Use it.
22202
22203 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
22204
22205         PR target/38056
22206         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
22207         TARGET_CONST_GP.
22208
22209 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
22210
22211         PR target/39149
22212         * config/i386/i386.c (override_options): Correct warning
22213         messages for -malign-loops, -malign-jumps and -malign-functions.
22214
22215 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
22216
22217         PR target/39152
22218         * config/i386/i386.md: Restrict the new peephole2 to move
22219         between the general purpose registers.
22220
22221 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
22222
22223         PR target/39162
22224         * config/i386/i386.c (type_natural_mode): Add a new argument.
22225         Return the original mode and warn ABI change if vector size is 32byte.
22226         (function_arg_advance): Updated.
22227         (function_arg): Likewise.
22228         (ix86_function_value): Likewise.
22229         (ix86_return_in_memory): Likewise.
22230         (ix86_sol10_return_in_memory): Likewise.
22231         (ix86_gimplify_va_arg): Likewise.
22232         (function_arg_32): Don't warn ABX ABI change here.
22233         (function_arg_64): Likewise.
22234
22235 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
22236
22237         * loop-iv.c (implies_p): In the final case, test that operands 0
22238         of the two comparisons match.
22239
22240         * config/bfin/bfin.c (find_prev_insn_start): New function.
22241         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
22242         (find_next_insn_start): Move.
22243
22244 2009-02-13  Richard Guenther  <rguenther@suse.de>
22245
22246         * configure.ac: Enable LFS.
22247         * configure: Re-generate.
22248         * config.in: Likewise.
22249
22250 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
22251
22252         PR c/35444
22253         * c-parser.c (c_parser_parms_list_declarator): Discard pending
22254         sizes on syntax error after some arguments have been parsed.
22255
22256 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
22257
22258         * doc/invoke.texi (-fira): Remove.
22259
22260 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
22261
22262         * caller-save.c: Replace regclass.c with reginfo.c in comments.
22263         * recog.c: Likewise.
22264         * rtl.h: Likewise.
22265
22266 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
22267
22268         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
22269         (umul_ppmm): Likewise.
22270         (count_leading_zeros): Likewise.
22271         (count_trailing_zeros): Likewise.
22272         (UMUL_TIME): Likewise.
22273
22274 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
22275
22276         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
22277         soft-fp/t-softfp to tmake_file.
22278
22279         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
22280         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
22281         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
22282         IA64_BUILTIN_INFQ]: New.
22283         (ia64_init_builtins): Initialize __builtin_infq,
22284         __builtin_fabsq and __builtin_copysignq if not HPUX.
22285         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
22286         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
22287
22288         * config/ia64/lib1funcs.asm (__divtf3): Define only if
22289         SHARED is defined.
22290         (__fixtfti): Likewise.
22291         (__fixunstfti): Likewise.
22292         (__floattitf): Likewise.
22293
22294         * config/ia64/libgcc-glibc.ver: New.
22295         * config/ia64/t-fprules-softfp: Likewise.
22296         * config/ia64/sfp-machine.h: Likewise.
22297
22298         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
22299         (LIBGCC2_TF_CEXT): Likewise.
22300         (TF_SIZE): Likewise.
22301         (TARGET_INIT_LIBFUNCS): Likewise.
22302
22303         * config/ia64/t-glibc (SHLINB_MAPFILES):
22304         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
22305
22306 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
22307
22308         * config/i386/i386.c (construct_container): Rewrite processing
22309         BLKmode with X86_64_SSE_CLASS.
22310
22311 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
22312
22313         PR target/39152
22314         * config/i386/i386.md: Replace simplify_replace_rtx with
22315         replace_rtx in the new peephole2.
22316
22317 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
22318
22319         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
22320         loop unrolling do not happen at -O2.
22321
22322 2009-02-12  Michael Matz  <matz@suse.de>
22323
22324         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
22325
22326 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
22327
22328         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
22329         for -g3.
22330
22331 2009-02-12  Ben Elliston  <bje@au.ibm.com>
22332
22333         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
22334         patterns when updating the back chain.  Missed in the 2009-02-10
22335         change.
22336
22337 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
22338
22339         * doc/extend.texi (Decimal Floating Types): Update identifier of
22340         draft TR and list of missing support.
22341
22342 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
22343
22344         PR middle-end/39154
22345         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
22346         bit to variable length decl's flags, add it also to its
22347         pointer replacement variable.
22348
22349 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
22350             Jakub Jelinek  <jakub@redhat.com>
22351
22352         PR target/39118
22353         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
22354         (memory_blockage): New expander.
22355         (*memory_blockage): New insn pattern.
22356         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
22357         instead of general blockage at the end of function prologue when
22358         frame pointer is used to access red zone area.  Do not emit blockage
22359         when profiling, it is emitted in generic code.
22360         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
22361         function epilogue when frame pointer is used to access red zone area.
22362
22363 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
22364
22365         PR target/38824
22366         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
22367         by arithmetic with memory operands.
22368         * config/i386/predicates.md (commutative_operator): New.
22369
22370 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
22371
22372         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
22373         bulleted lists.
22374
22375 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
22376
22377         * alias.h (record_alias_subset): Declare.
22378         * alias.c (record_alias_subset): Make global.
22379
22380 2009-02-10  Nick Clifton  <nickc@redhat.com>
22381
22382         * tree-parloops.c: Change license to GPLv3.
22383         * ipa-struct-reorg.c: Change license to GPLv3.
22384         * ipa-struct-reorg.h: Change license to GPLv3.
22385
22386 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
22387
22388         PR c/39084
22389         * c-decl.c (start_struct): Return NULL on error.
22390
22391 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
22392
22393         PR middle-end/39124
22394         * cfgloopmanip.c (remove_path): Call remove_bbs after
22395         cancel_loop_tree, not before it.
22396
22397         PR target/39139
22398         * function.h (struct function): Add has_local_explicit_reg_vars bit.
22399         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
22400         VAR_DECLs were seen.
22401         * tree-ssa-live.c (remove_unused_locals): Recompute
22402         cfun->has_local_explicit_reg_vars.
22403         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
22404         copies or clearings if cfun->has_local_explicit_reg_vars.
22405
22406 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
22407
22408         PR target/39118
22409         * config/i386/i386.c (expand_prologue): Emit blockage at the end
22410         of function prologue when frame pointer is used to access
22411         red zone area.
22412
22413 2009-02-10  Richard Guenther  <rguenther@suse.de>
22414
22415         PR middle-end/39127
22416         * gimplify.c (gimple_regimplify_operands): Always look if
22417         we need to create a temporary.
22418
22419 2009-02-10  Richard Guenther  <rguenther@suse.de>
22420
22421         PR tree-optimization/39132
22422         * tree-loop-distribution.c (todo): New global var.
22423         (generate_memset_zero): Trigger TODO_rebuild_alias.
22424         (tree_loop_distribution): Return todo.
22425
22426 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
22427
22428         PR target/39119
22429         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
22430         (x86_64_reg_class_name): Removed.
22431         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
22432         first one isn't X86_64_SSE_CLASS or any other ones aren't
22433         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
22434         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
22435         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
22436         and 3 X86_64_SSEUP_CLASS.
22437         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
22438         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
22439
22440 2009-02-10  Ben Elliston  <bje@au.ibm.com>
22441
22442         * config/rs6000/rs6000.md (allocate_stack): Always use an update
22443         form instruction to update the stack back chain word, even if the
22444         user has disabled the generation of update instructions.
22445         (movdi_<mode>_update_stack): New.
22446         (movsi_update_stack): Likewise.
22447         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
22448         always use an update form instruction to update the stack back
22449         chain word.
22450
22451 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
22452
22453         PR middle-end/38953
22454         * graphite.c (if_region_set_false_region): After moving a region in
22455         the false branch of a condition, remove the empty dummy basic block.
22456         (gloog): Remove wrong fix for PR38953.
22457
22458 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22459
22460         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
22461         generation due to implicit sign extension.
22462
22463 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
22464
22465         PR middle-end/38981
22466         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
22467         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
22468
22469 2009-02-09  Richard Guenther  <rguenther@suse.de>
22470
22471         PR middle-end/35202
22472         * convert.c (convert_to_real): Disable (float)fn((double)x)
22473         to fnf(x) conversion if errno differences may occur and
22474         -fmath-errno is set.
22475
22476 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
22477
22478         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
22479         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
22480         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
22481
22482 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
22483
22484         PR c/35434
22485         * c-common.c (handle_alias_attribute): Disallow attribute for
22486         anything not a FUNCTION_DECL or VAR_DECL.
22487
22488 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
22489
22490         PR c/39035
22491         * real.c (do_compare): Special-case compare of zero against
22492         decimal float value.
22493
22494 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
22495
22496         PR c/36432
22497         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
22498         as indicating flexible array members unless the field itself is
22499         being declarared as the incomplete array.
22500
22501 2009-02-06  Jan Hubicka  <jh@suse.cz>
22502
22503         PR tree-optimization/38844
22504         * ipa-inline.c (try_inline): Stop inlining recursion when edge
22505         is already inlined.
22506
22507 2009-02-06  Richard Guenther  <rguenther@suse.de>
22508
22509         PR middle-end/38977
22510         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
22511         fork because we may expand it as __gcov_fork.
22512
22513 2009-02-06  Nick Clifton  <nickc@redhat.com>
22514
22515         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
22516
22517 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
22518
22519         PR tree-optimization/35659
22520         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
22521         vn_phi_eq): Shortcut if hashcode does not match.
22522         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
22523         NULL operands.
22524         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
22525         and avoid iterative_hash_expr.
22526         (FOR_EACH_VALUE_ID_IN_SET): New.
22527         (value_id_compare): Remove.
22528         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
22529         sort expressions by value id.
22530
22531 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
22532
22533         PR target/38991
22534         * config/sh/predicates.md (general_movsrc_operand): Don't check
22535         the subreg of system registers here.
22536
22537 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
22538
22539         PR c++/39106
22540         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
22541         on the copied decl.
22542
22543 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
22544
22545         PR rtl-optimization/39110
22546         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
22547         addresses, not aligned ones.
22548
22549 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
22550             Richard Guenther  <rguenther@suse.de>
22551
22552         PR tree-optimization/39100
22553         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
22554         comment says and add edges.
22555
22556 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
22557
22558         PR c/35435
22559         * c-common.c (handle_tls_model_attribute): Ignore attribute for
22560         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
22561
22562 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
22563
22564         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
22565         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
22566         register_bb_in_sese, new_sese, free_sese): Moved.
22567         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
22568         outermost_loop_in_scop, build_scop_iteration_domain,
22569         expand_scalar_variables_ssa_name, get_vdef_before_scop,
22570         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
22571         Use loop_in_sese_p instead of loop_in_scop_p.
22572         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
22573         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
22574         (scopdet_basic_block_info): Fix bug in scop detection.
22575         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
22576         eq_loop_to_cloog_loop): Remove.
22577         (nb_loops_around_loop_in_scop, nb_loop
22578         ref_nb_loops): Moved here...
22579         * graphite.h (ref_nb_loops): ... from here.
22580         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
22581         (loop_domain_dim, loop_iteration_vector_dim): Remove.
22582         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
22583         * testsuite/gcc.dg/graphite/scop-19.c: New
22584
22585 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
22586             Hans-Peter Nilsson  <hp@axis.com>
22587
22588         PR rtl-optimization/37889
22589         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
22590         Move offset handling from PLUS to before the switch.  Use new
22591         arguments when considering SYMBOL_REFs too.
22592         (rtx_addr_can_trap_p): Pass dummy offset and size.
22593         (enum may_trap_p_flags): Remove.
22594         (may_trap_p_1): Pass size from MEM_SIZE.
22595
22596         PR rtl-optimization/38921
22597         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
22598         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
22599         * rtlanal.c (may_trap_after_code_motion_p): Delete.
22600         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
22601
22602 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
22603
22604         AVX Programming Reference (January, 2009)
22605         * config/i386/sse.md (*vpclmulqdq): New.
22606
22607 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
22608
22609         PR tree-optimization/38977
22610         PR gcov-profile/38292
22611         * calls.c (special_function_p): Disregard __builtin_ prefix.
22612
22613 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
22614
22615         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
22616         non-indexable addresses even before reload.
22617
22618 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
22619
22620         PR c/29129
22621         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
22622         as having variable size.  Do not give an error for unnamed
22623         parameters with [*] declarators.  Give a warning for type names
22624         with [*] declarators and mark them as variable size.
22625         * c-parser.c (c_parser_sizeof_expression): Do not give an error
22626         for sizeof applied to [*] type names.
22627
22628 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
22629
22630         PR C++/36607
22631         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
22632
22633 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
22634
22635         * gcc.c (process_command): Update copyright notice dates.
22636         * gcov.c (print_version): Likewise.
22637         * gcov-dump.c (print_version): Likewise.
22638         * mips-tfile.c (main): Likewise.
22639         * mips-tdump.c (main): Likewise.
22640
22641 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
22642
22643         PR c/35433
22644         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
22645         for composite type involving a zero-length array type.
22646
22647 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
22648
22649         PR target/35318
22650         * function.c (match_asm_constraints_1): Skip over
22651         initial optional % in the constraint.
22652
22653         PR inline-asm/39059
22654         * c-parser.c (c_parser_postfix_expression): If fixed point is not
22655         supported, don't accept FIXED_CSTs.
22656         * c-decl.c (finish_declspecs): Error if fixed point is not supported
22657         and _Sat is used without _Fract/_Accum.  Set specs->type to
22658         integer_type_node for cts_fract/cts_accum if fixed point is not
22659         supported.
22660
22661 2009-02-02  Catherine Moore  <clm@codesourcery.com>
22662
22663         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
22664
22665 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
22666
22667         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
22668         (ABI_HAS_64BIT_SYMBOLS): Use it.
22669         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
22670
22671 2009-02-02  Paul Brook  <paul@codesourcery.com>
22672
22673         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
22674
22675 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
22676
22677         PR inline-asm/39058
22678         * recog.h (asm_operand_ok): Add constraints argument.
22679         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
22680         recurse on matching constraint.
22681         (check_asm_operands): Pass constraints as 3rd argument to
22682         asm_operand_ok.  Don't look up matching constraint here.
22683         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
22684         to asm_operand_ok.
22685
22686 2009-02-02  Ben Elliston  <bje@au.ibm.com>
22687
22688         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
22689         TARGET_NARROW_VOLATILE_BITFIELD macro names.
22690
22691 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22692
22693         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
22694         information.  Remove some obsolete information.  Reorganize.
22695
22696         * config/pa/fptr.c: Revert license to GPL 2.
22697         * config/pa/milli64.S: Likewise.
22698
22699 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
22700
22701         PR target/38904
22702         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
22703         LIBRARY name in, instead of hard-coding it.
22704         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
22705         extra target make frag to tmake_files according to EH model.
22706         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
22707         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
22708         frags that define makefile variable EH_MODEL appropriately.
22709         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
22710         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
22711         to "-sjlj" according to type of EH configured.
22712         (LIBGCC_SONAME):  Concatenate it to shared library base name.
22713         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
22714         to "_sjlj" according to type of EH configured.
22715         (LIBGCC_SONAME):  Concatenate it to shared library base name.
22716         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
22717         (SHLIB_LINK):  Add missing semicolon to if-else construct.
22718         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
22719         string value of "pe_dll" command-line option.
22720         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
22721         (SHLIB_SONAME):  Use it when overriding t-cygming default.
22722         (SHLIB_IMPLIB):  Override t-cygming default.
22723         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
22724         string value of "pe_dll" command-line option.
22725
22726 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
22727
22728         PR target/38952
22729         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
22730         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
22731
22732 2009-01-31  Richard Guenther  <rguenther@suse.de>
22733
22734         PR tree-optimization/38937
22735         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
22736         computing the transitive closure.
22737
22738 2009-01-30  Richard Guenther  <rguenther@suse.de>
22739
22740         PR tree-optimization/39041
22741         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
22742         Propagate variable indices only if the types match for this stmt.
22743
22744 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
22745
22746         PR target/39013
22747         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
22748         inline but never defined.
22749
22750 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
22751
22752         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
22753         (*insv_h_di_reg_extimm): New insn.
22754         (*insv_l<mode>_reg_extimm): New insn.
22755
22756 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
22757
22758         * config/picochip/picochip.c (flag_conserve_stack): set
22759         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
22760         fconserve-stack. Reduce call-overhead used by inliner.
22761
22762 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
22763
22764         PR/38157
22765         * common.opt (flag_conserve_stack): Initialised to zero.
22766
22767 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
22768
22769         PR/39002
22770         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
22771         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
22772         method.
22773
22774 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
22775
22776         * ira-color.c (allocno_reload_assign): Update comments.
22777         * regmove.c (regmove_optimize): Likewise.
22778
22779         * ra.h: Removed.
22780
22781 2009-01-29  Robert Millan  <rmh@aybabtu.com>
22782
22783         * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
22784         * config/i386/kopensolaris-gnu.h: New file.  Undefine
22785         `MD_UNWIND_SUPPORT'.
22786         * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
22787
22788 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
22789
22790         PR tree-optimization/39007
22791         * tree-loop-distribution.c (generate_builtin): Use
22792         recompute_dominator to compute the immediate dominator of the
22793         basic block just after the loop.
22794
22795 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
22796
22797         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
22798         (ASM_OUTPUT_DWARF_PCREL): Define.
22799
22800 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
22801
22802         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
22803         * doc/passes.texi: Remove entries about regclass, local-alloc, and
22804         global.  Modify entries about regmove and IRA.
22805
22806         * ra-conflict.c: Remove the file.
22807
22808         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
22809
22810         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
22811         (pass_regclass_init): Rename to pass_reginfo_init.
22812
22813         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
22814
22815         * toplev.h (flag_ira): Remove.
22816
22817         * caller-save.c (setup_save_areas): Remove flag_ira.
22818
22819         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
22820
22821         * global.c: Remove the file.
22822
22823         * opts.c (decode_options): Remove flag_ira.
22824
22825         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
22826
22827         * regmove.c: Modify file description.
22828         (find_use_as_address, try_auto_increment): Define them only if
22829         AUTO_INC_DEC is defined.
22830         (replacement_quality, replace_in_call_usage, fixup_match_1,
22831         stable_and_no_regs_but_for_p): Remove.
22832         (reg_set_in_bb): Make it static.
22833         (regmove_optimize): Remove flag_ira and code which worked for
22834         !flag_ira.
22835
22836         * local-alloc.c: Remove the file.
22837
22838         * common.opt (fira): Remove.
22839
22840         * ira.c: Include except.h.
22841         (eliminable_regset): Move from global.c.
22842         (mark_elimination): Ditto.  Remove flag_ira.
22843         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
22844         equiv_mem_modified, validate_equiv_mem_from_store,
22845         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
22846         contains_replace_regs, memref_referenced_p, memref_used_between_p,
22847         no_equiv, recorded_label_ref): Move from local-alloc.c.
22848         (update_equiv_regs): Ditto.  Make it static.
22849         (print_insn_chain, print_insn_chains): Move it from global.c.
22850         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
22851         (build_insn_chain): Ditto.  Make it static.
22852         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
22853         Rename to init_live_subregs.
22854         (gate_ira): Remove flag_ira.
22855
22856         * regclass.c: Rename reginfo.c.  Change file description.
22857         (FORBIDDEN_INC_DEC_CLASSES): Remove.
22858         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
22859         (init_reg_sets_1): Remove code for evaluation of
22860         reg_class_superclasses and losing_caller_save_reg_set.
22861         (init_regs): Remove init_reg_autoinc.
22862         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
22863         ok_for_base_p_nonstrict): Remove.
22864         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
22865         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
22866         corresponding entries.
22867         (dump_regclass, record_operand_costs, scan_one_insn,
22868         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
22869         record_address_regs, auto_inc_dec_reg_p): Remove.
22870         (gt-regclass.h): Rename to gt-reginfo.h.
22871
22872         * rtl.h (dump_global_regs, retry_global_alloc,
22873         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
22874
22875         * Makefile.in (RA_H): Remove.
22876         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
22877         Rename regclass.o to reginfo.o.
22878         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
22879         gt-reginfo.h.
22880         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
22881         (GTFILES): Rename regclass.c to reginfo.c.
22882
22883         * passes.c (init_optimization_passes): Remove pass_local_alloc and
22884         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
22885
22886         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
22887         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
22888         Remove flag_ira.
22889         (finish_spills): Ditto.  Remove code for !flag_ira.
22890
22891 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
22892
22893         PR middle-end/35854
22894         * doc/invoke.texi (rtl debug options): Complete rewrite.
22895         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
22896         to auto_inc_dec".
22897         * mode-switching.c (pass_mode_switching): Rename pass from
22898         "mode-sw" to "mode_sw".
22899         * except.c (pass_convert_to_eh_ranges): Rename pass from
22900         "eh-ranges" to "eh_ranges".
22901         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
22902         to "subreg1".
22903
22904
22905 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
22906             Alexander Monakov  <amonakov@ispras.ru>
22907
22908         PR middle-end/38857
22909         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
22910         register.
22911         (move_exprs_to_boundary): Change return type and pass through
22912         should_move from move_op.  Relax assert.  Update usage ...
22913         (schedule_expr_on_boundary): ... here.  Use should_move instead of
22914         cant_move.
22915         (move_op_orig_expr_found): Indicate that insn was disconnected from
22916         stream.
22917         (code_motion_process_successors): Do not call after_merge_succs
22918         callback if original expression was not found when traversing any of
22919         the branches.
22920         (code_motion_path_driver): Change return type.  Update prototype.
22921         (move_op): Update comment.  Add a new parameter (should_move).  Update
22922         prototype.  Set *should_move based on indication provided by
22923         move_op_orig_expr_found.
22924
22925 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
22926
22927         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
22928         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
22929         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
22930         * config/rs6000/rs6000.c (rs6000_override_options): Default
22931         avoid-indexed-addresses on for Power6, off for everything else.
22932         (avoiding_indexed_address_p): New function.
22933         (rs6000_legitimize_address): Use it.
22934         (rs6000_legitimate_address): Likewise.
22935         * config/rs6000/rs6000.md (movXX_updateX): Likewise
22936
22937 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
22938
22939         PR tree-optimization/38997
22940         * tree-loop-distribution.c (generate_memset_zero): Use
22941         POINTER_PLUS_EXPR for a pointer addition.
22942
22943 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
22944
22945         * config/s390/s390.md (bswap<mode>2): New pattern added.
22946
22947 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
22948
22949         * config/s390/s390.md (*tls_load_31): Added type attribute.
22950
22951 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
22952
22953         * config/s390/s390.md: Fix a few comments.
22954
22955 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
22956
22957         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
22958         (*tm<mode>_full): Fixed z10prop attribute.
22959         (*tst<mode>_extimm): Fixed z10prop attribute.
22960         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
22961         (*tstqiCCT_cconly): Fixed z10prop attribute.
22962         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
22963         (*movsi_larl): Fixed z10prop attribute.
22964         (*movsi_zarch): Fixed z10prop attribute.
22965         (*movsi_eas): Fixed z10prop attribute.
22966         (*movhi): Fixed z10prop attribute.
22967         (*movqi): Fixed z10prop attribute.
22968         (*movstrictqi): Fixed z10prop attribute.
22969         (*mov<mode>): Fixed z10prop attribute.
22970         (*movcc): Fixed z10prop attribute.
22971         (*sethighpartdi_64): Fixed z10prop attribute.
22972         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
22973         (*negdi2_sign_cc): Fixed z10prop attribute.
22974         (*negdi2_sign): Fixed z10prop attribute.
22975         (*absdi2_sign_cc): Fixed z10prop attribute.
22976         (*absdi2_sign): Fixed z10prop attribute.
22977         (*negabsdi2_sign_cc): Fixed z10prop attribute.
22978         (*negabsdi2_sign): Fixed z10prop attribute.
22979         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
22980         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
22981         (doloop_si64): Fixed z10prop attribute.
22982         (doloop_si31): Fixed z10prop attribute.
22983         (doloop_long): Fixed z10prop attribute.
22984         (indirect_jump): Fixed z10prop attribute.
22985         (nop): Fixed z10prop attribute.
22986         (main_base_64): Fixed z10prop attribute.
22987         (reload_base_64): Fixed z10prop attribute.
22988
22989 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
22990
22991         PR rtl-optimization/38740
22992         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
22993         if !optimize.
22994         * config/mips/mips.c (mips_reorg): Likewise.
22995
22996 2009-01-28  Richard Guenther  <rguenther@suse.de>
22997
22998         PR tree-optimization/38926
22999         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
23000         with the correct value id to a value.
23001         (do_regular_insertion): Use the value number of edoubleprime
23002         for the value number of the expr.
23003
23004         Revert
23005         2008-08-21  Richard Guenther  <rguenther@suse.de>
23006
23007         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
23008         a PHI ask VN if it is already available.
23009         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
23010         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
23011
23012 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
23013
23014         PR middle-end/38934
23015         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
23016         set to varying whenever max has TREE_OVERFLOW set, similarly
23017         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
23018
23019 2009-01-28  Richard Guenther  <rguenther@suse.de>
23020
23021         PR middle-end/38908
23022         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
23023         uninitialized aggregate uses in call arguments.
23024
23025 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
23026
23027         PR tree-optimization/38984
23028         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
23029         the nothing_id variable if -fno-delete-null-pointer-checks.
23030
23031 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
23032
23033         PR target/38988
23034         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
23035         (set_got_offset_rex64): Ditto.
23036
23037 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
23038
23039         PR target/38941
23040         * doc/extend.texi: Improve local variable with asm reg.
23041
23042 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
23043
23044         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
23045         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
23046         was not supplied then set warn_packed_bitfield_compat to the
23047         default value of 1.
23048         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
23049         against 1.
23050
23051 2009-01-27  Richard Guenther  <rguenther@suse.de>
23052
23053         PR tree-optimization/38503
23054         * cfgexpand.c (expand_gimple_basic_block): Ignore
23055         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
23056         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
23057         variables that cannot have TBAA applied.
23058         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
23059         statements.
23060
23061 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
23062
23063         PR middle-end/38969
23064         * calls.c (initialize_argument_information): Do not wrap complex
23065         arguments in SAVE_EXPR.
23066
23067 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
23068
23069         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
23070         (INSTALL_LIBGCC): Revert typo commit.
23071
23072 2009-01-26  Richard Guenther  <rguenther@suse.de>
23073
23074         PR tree-optimization/38745
23075         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
23076         from special handling.
23077
23078 2009-01-26  Richard Guenther  <rguenther@suse.de>
23079
23080         PR tree-optimization/38745
23081         * tree-ssa.c (execute_update_addresses_taken): Do not include
23082         variables that cannot possibly be a register in not_reg_needs.
23083         Do not clear TREE_ADDRESSABLE on vars that may not become
23084         registers.
23085         * tree-ssa.c (update_alias_info_1): Include those in the set
23086         of addressable vars.
23087
23088 2009-01-26  Richard Guenther  <rguenther@suse.de>
23089
23090         PR middle-end/38851
23091         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
23092         * tree-ssa-dse.c: Include langhooks.h
23093         (execute_simple_dse): Remove stores with zero size.
23094
23095 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
23096
23097         PR c/38957
23098         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
23099         as PLUS_EXPR.
23100
23101 2009-01-24  Julian Brown  <julian@codesourcery.com>
23102
23103         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
23104         config/arm/linux-atomic.c.
23105         * config/arm/linux-atomic.c: New.
23106
23107 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
23108
23109         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
23110         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
23111         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
23112
23113 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
23114
23115         PR c/38938
23116         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
23117         properly.
23118
23119 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
23120
23121         PR tree-optimization/38953
23122         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
23123         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
23124         (gloog): Split the exit of the scop when the scop exit is a loop exit.
23125         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
23126         changed the CFG.
23127
23128 2009-01-24  Paul Brook  <paul@codesourcery.com>
23129
23130         * config/arm/neon.md (neon_type): Move to arm.md.
23131         (neon_mov<VSTRUCT>): Add neon_type attribute.
23132         * config/arm/arm.md (neon_type): Move to here.
23133         (conds): Add "unconditioal" and use as default for NEON insns.
23134
23135 2009-01-24  Ben Elliston  <bje@au.ibm.com>
23136
23137         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
23138         void *' warning from -Wc++-compat.
23139         * Makefile.in (dominance.o-warn): Remove.
23140
23141 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
23142
23143         PR tree-optimization/38932
23144         * fold-const.c (fold_unary_ignore_overflow): New.
23145         * tree.h (fold_unary_ignore_overflow): Declare.
23146         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
23147         * tree-ssa-sccvn.c (visit_reference_op_load,
23148         simplify_unary_expression): Likewise.
23149
23150 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
23151
23152         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
23153         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
23154         regardless of their type.
23155         * c-common.c (handle_packed_attribute): Don't ignore packed on
23156         bitfields.
23157         * c.opt (Wpacked-bitfield-compat): New warning option.
23158         * stor-layout.c (place_field): Warn if offset of a field changed.
23159         * doc/extend.texi (packed): Mention the ABI change.
23160         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
23161         (Warning Options): Add it to the list.
23162
23163 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
23164
23165         * c-opts.c (c_common_post_options): Fix a typo in comments.
23166
23167 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
23168
23169         PR middle-end/38615
23170         * gimplify.c (gimplify_init_constructor): Fix promotion of const
23171         variables to static.
23172         * doc/invoke.texi (-fmerge-all-constants): Update description.
23173
23174 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
23175
23176         PR target/38931
23177         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
23178         (*movdi_1_rex64): Use type "mmx" for alternative 5.
23179
23180 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
23181
23182         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
23183         a word boundary.
23184         (LOCAL_ALIGNMENT): Similarly.
23185
23186 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
23187             Joseph Myers  <joseph@codesourcery.com>
23188
23189         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
23190         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
23191         * config/arm/arm-tune.md: Regenerate.
23192         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
23193         -march=iwmmxt2.
23194
23195 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
23196
23197         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
23198         version number to five.
23199
23200 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
23201
23202         PR c++/38930
23203         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
23204         * c-common.c (set_underlying_type): Likewise.
23205         (is_typedef_decl ): Likewise
23206         * tree.h: Likewise
23207         (set_underlying_type): Likewise.
23208         (is_typedef_type): Likewise.
23209
23210 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
23211
23212         PR middle-end/38587
23213         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
23214         crossing setjmps.
23215
23216 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
23217
23218         PR bootstrap/37660
23219         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
23220         (LIBGCC_SPEC):  Don't define.
23221         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
23222
23223 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
23224
23225         PR rtl-optimization/38879
23226         * alias.c (base_alias_check): Unaligned access via AND address can
23227         alias all surrounding object types except those with sizes equal
23228         or wider than the size of unaligned access.
23229
23230 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
23231
23232         PR c++/26693
23233         * c-decl.c (clone_underlying_type): Move this ...
23234         * c-common.c (set_underlying_type): ... here.
23235         Also, make sure the function properly sets TYPE_STUB_DECL() on
23236         the newly created typedef variant type.
23237         (is_typedef_decl ): New entry point.
23238         * tree.h: Added a new member member_types_needing_access_check to
23239         struct tree_decl_non_common.
23240         (set_underlying_type): New entry point.
23241         (is_typedef_type): Likewise.
23242
23243 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
23244
23245         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
23246         Check whether two instructions have memory references that
23247         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
23248         are helper functions for traversing.
23249         * alias.h (insn_alias_sets_confilict_p): New prototypes.
23250         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
23251         not to draw dependency edge for instructions with non-conflicting
23252         alias sets.
23253
23254 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
23255
23256         PR other/38758
23257         * longlong.h: Update copyright years.  Use soft-fp license notice.
23258         Sync __clz_tab declaration with glibc.
23259
23260 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
23261
23262         PR target/30687
23263         * doc/extend.texi (syscall_linkage): New.
23264         (version_id): Modify.
23265
23266 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
23267             Richard Guenther  <rguenther@suse.de>
23268
23269         PR tree-optimization/38747
23270         PR tree-optimization/38748
23271         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
23272         conversion if the base address is an indirect reference and the
23273         aliasing sets could cause issues.
23274
23275 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
23276
23277         * common.opt (fgraphite, fgraphite-identity): Add comment for
23278         explaining why these options are not documented.
23279
23280 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
23281
23282         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
23283         gimple_call_lhs is NULL.
23284
23285 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
23286
23287         PR target/38868
23288         * emit-rtl.c (adjust_address_1): Make sure memref is never
23289         overwritten.
23290
23291 2009-01-20  Ben Elliston  <bje@au.ibm.com>
23292
23293         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
23294         const qualifier from arg parameter. Remove unnecessary cast to char *.
23295         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
23296         const qualifier from arg 2.
23297
23298 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
23299
23300         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
23301
23302 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
23303
23304         PR c/38869
23305         * rtl.h (reinit_regs): New prototype.
23306         * regclass.c: Include ira.h.
23307         (reinit_regs): New.
23308         * Makefile.in (regclass.o): Add ira.h.
23309         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
23310
23311 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
23312
23313         PR target/38736
23314         * c-common.c (handle_aligned_attribute): Use
23315         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
23316         default alignment value.
23317
23318         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
23319
23320         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
23321         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
23322
23323         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
23324         __BIGGEST_ALIGNMENT__.
23325
23326         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
23327
23328 2009-01-18  Richard Guenther  <rguenther@suse.de>
23329
23330         PR tree-optimization/38819
23331         * tree-flow.h (operation_could_trap_helper_p): Declare.
23332         * tree-eh.c (operation_could_trap_helper_p): Export.
23333         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
23334         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
23335         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
23336         are about to insert a possibly trapping instruction and fail
23337         in this case.
23338
23339 2009-01-18  Andreas Schwab  <schwab@suse.de>
23340
23341         * doc/install.texi (Configuration): Remove obsolete paragraph
23342         about use of --with-gnu-ld with --with-gnu-as.
23343
23344 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
23345
23346         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
23347         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
23348         Follow spelling conventions.
23349
23350 2009-01-18  Ben Elliston  <bje@au.ibm.com>
23351
23352         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
23353         C++ warning about implicit conversion from void * to struct
23354         bitmap_head_def *.
23355         (bitmap_obstack_free): Likewise for bitmap_element *.
23356         * Makefile.in (bitmap.o-warn): Remove.
23357
23358 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
23359
23360         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
23361
23362 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
23363             Tobias Grosser  <tobi.grosser@amd.com>
23364
23365         * graphite.c (graphite_trans_scop_block): Do not block single
23366         nested loops.
23367
23368 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
23369
23370         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
23371         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
23372         test with assertion.
23373
23374 2009-01-16  Richard Guenther  <rguenther@suse.de>
23375
23376         PR tree-optimization/38835
23377         PR middle-end/36227
23378         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
23379         and INT + PTR -> (INT)(PTR p+ INT) folding.
23380         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
23381
23382 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
23383
23384         PR target/38554
23385         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
23386         the subreg from a lowpart subreg if it is also casting the value.
23387
23388 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
23389             Tobias Grosser  <tobi.grosser@amd.com>
23390
23391         * graphite.c (compare_prefix_loops): New.
23392         (build_scop_canonical_schedules): Rewritten.
23393         (graphite_transform_loops): Move build_scop_canonical_schedules
23394         after build_scop_iteration_domain.
23395
23396 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
23397             Tobias Grosser  <tobi.grosser@amd.com>
23398
23399         * graphite.c (add_conditions_to_domain): Add the loops to
23400         the dimension of the iteration domain.  Do copy the domain
23401         only when it exists.
23402         (build_scop_conditions_1): Do not call add_conditions_to_domain.
23403         (add_conditions_to_constraints): New.
23404         (can_generate_code_stmt, can_generate_code): Removed.
23405         (gloog): Do not call can_generate_code.
23406         (graphite_transform_loops): Call add_conditions_to_constraints
23407         after building the iteration domain.
23408
23409 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
23410
23411         PR tree-optimization/38789
23412         * tree-ssa-threadedge.c
23413         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
23414         __builtin_constant_p.
23415
23416 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
23417
23418         * dce.c (delete_unmarked_insns): Reversed the order that insns are
23419         examined before deleting them.
23420
23421 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
23422
23423         * function.c (aggregate_value_p): Correctly extract the function
23424         type from CALL_EXPR_FN lookup.
23425
23426 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
23427
23428         * config/picochip/picochip.c (picochip_override_options): Revert
23429         CFI asm flag disable commited previously.
23430
23431 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
23432             Tobias Grosser  <tobi.grosser@amd.com>
23433             Jan Sjodin  <jan.sjodin@amd.com>
23434
23435         * graphite.c (scan_tree_for_params): On substractions negate
23436         all the coefficients of the term.
23437         (clast_to_gcc_expression_red): New.  Handle reduction expressions
23438         of more than two operands.
23439         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
23440         (get_vdef_before_scop): Handle also the case of default definitions.
23441
23442 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
23443
23444         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
23445         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
23446         Also use them when walking CALL_INSN_FUNCTION_USAGE.
23447
23448 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
23449             Joey Ye  <joey.ye@intel.com>
23450
23451         PR middle-end/37843
23452         * cfgexpand.c (expand_stack_alignment): Don't update stack
23453         boundary nor check incoming stack boundary here.
23454         (gimple_expand_cfg): Update stack boundary and check incoming
23455         stack boundary here.
23456
23457 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
23458
23459         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
23460
23461 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
23462
23463         PR rtl-optimization/38245
23464         * calls.c (expand_call): Add stack arguments to
23465         CALL_INSN_FUNCTION_USAGE even for pure calls (when
23466         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
23467         in regs and partially in memory or BLKmode arguments.
23468         (emit_library_call_value_1): Add stack arguments to
23469         CALL_INSN_FUNCTION_USAGE even for pure calls (when
23470         ACCUMULATE_OUTGOING_ARGS).
23471         * dce.c: Include tm_p.h.
23472         (find_call_stack_args): New function.
23473         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
23474         argument.
23475         (mark_insn): Call find_call_stack_args for CALL_Ps.
23476         (prescan_insns_for_dce): Walk insns backwards in bb rather than
23477         forwards.  Allocate and free arg_stores bitmap if needed, pass it
23478         down to deletable_insn_p, don't mark stores set in arg_stores
23479         bitmap, clear the bitmap at the beginning of each bb.
23480         * Makefile.in (dce.o): Depend on $(TM_P_H).
23481
23482 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
23483
23484         PR target/22599
23485         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
23486         to make sure the insn is a conditional test (bug 22599).  Reformat a
23487         few long lines.
23488
23489 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
23490
23491         PR middle-end/38431
23492         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
23493         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
23494         (gloog): Do not call cleanup_tree_cfg.
23495         (graphite_transform_loops): Call cleanup_tree_cfg after all
23496         scops have been code generated.
23497
23498 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
23499         * doc/gty.texi (Invoking the garbage collector): Added new node
23500         and section documenting ggc_collect.
23501
23502 2009-01-14  Richard Guenther  <rguenther@suse.de>
23503
23504         PR tree-optimization/38826
23505         PR middle-end/38477
23506         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
23507         initialization notes only if we actually emitted a warning.
23508         (intra_create_variable_infos): Add constraints for a result decl
23509         that is passed by hidden reference.
23510         (build_pred_graph): Mark all related variables non-direct on
23511         address-taking.
23512
23513 2009-01-14  Nick Clifton  <nickc@redhat.com>
23514
23515         * ira-conflicts.c: Include addresses.h for the definition of
23516         base_reg_class.
23517         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
23518         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
23519
23520 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
23521
23522         PR target/38811
23523         * Makefile.in (ira-lives.o): Add except.h.
23524
23525         * ira-lives.c: Include except.h.
23526         (process_bb_node_lives): Process can_throw_internal.
23527
23528 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
23529
23530         PR rtl-optimization/38774
23531         * combine.c (simplify_set): When undoing cc_use change, don't do
23532         PUT_CODE on the newly created comparison, but instead put back the
23533         old comparison.
23534
23535 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
23536
23537         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
23538         values.  Remove duplicate arm8 entry.
23539
23540 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
23541
23542         PR tree-optimization/38786
23543         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
23544         the SSA_NAME case of expand_scalar_variables_expr.
23545         Set the type of an expression to the type of its assign statement.
23546         (expand_scalar_variables_expr): Also gather the scalar computation
23547         used to index the memory access.  Do not pass loop_p.
23548         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
23549         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
23550         the gimple_stmt_iterator where it inserts new code.
23551         Do not pass loop_p.
23552         (copy_bb_and_scalar_dependences): Do not pass loop_p.
23553         (translate_clast): Update call to copy_bb_and_scalar_dependences.
23554
23555 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
23556
23557         * graphite.h (debug_value): Removed.
23558         * graphite.c (debug_value): Removed.
23559
23560 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
23561
23562         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
23563         ldrd/strd with two 32-bit instructions.
23564
23565 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
23566
23567         * config/arm/arm.c (struct processors): Pass for speed down into
23568         cost helper functions.
23569         (const_ok_for_op): Handle COMPARE and inequality nodes.
23570         (arm_rtx_costs_1): Rewrite.
23571         (arm_size_rtx_costs): Update prototype.
23572         (arm_rtx_costs): Pass speed down to helper functions.
23573         (arm_slowmul_rtx_costs): Rework cost calculations.
23574         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
23575         (arm_9e_rtx_costs): Likewise.
23576
23577 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
23578
23579         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
23580         relocations of local symbols wider than UNITS_PER_WORD are not valid.
23581         (alpha_legitimize_address): Do not split local symbols wider than
23582         UNITS_PER_WORD into HIGH/LO_SUM parts.
23583
23584 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
23585
23586         PR bootstrap/38580
23587         * gcc.c (process_command): Replace call to execvp with calls
23588         to pex_one and exit.
23589
23590 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
23591
23592         PR target/29141
23593         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
23594         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
23595         variant for devices with 3-byte PC.
23596         (__tablejump_elpm__): New.
23597
23598 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
23599
23600         PR c/32041
23601         * c-parser.c (c_parser_postfix_expression): Allow `->' in
23602         offsetof member-designator, handle it as `[0].'.
23603
23604 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23605
23606         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
23607         function when not using named sections on targets with named sections
23608         if branch distance is less than 262132.
23609
23610 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
23611
23612         * combine.c (combine_instructions):  Recompute
23613         optimize_this_for_speed_p  for each BB in the main combine loop.
23614
23615 2009-01-12  Tomas Bily  <tbily@suse.cz>
23616
23617         PR middlend/38385
23618         * tree-loop-distribution.c (prop_phis): New function.
23619         (generate_builtin): Call prop_phis.
23620         * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
23621
23622 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
23623
23624         PR tree-optimization/38807
23625         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
23626         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
23627
23628 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
23629
23630         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
23631         subreg of op0 to the original op0.
23632
23633 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
23634
23635         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
23636
23637 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
23638
23639         PR debug/7055
23640         * mips-tfile.c (parse_def): Fix parsing of def strings
23641         starting with digits.
23642
23643 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
23644
23645         PR target/38695
23646         * config/arm/arm.c (arm_is_long_call_p): Don't call
23647         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
23648
23649 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
23650
23651         * regrename.c (regrename_optimize): Fix dumping.
23652         (find_oldest_value_reg): Preserve REG_POINTER.
23653         (copy_hardreg_forward_1): Likewise.
23654
23655 2009-01-09  Diego Novillo  <dnovillo@google.com>
23656
23657         * gimple.h (struct gimple_statement_base) <uid>: Document
23658         the restrictions on its use.
23659         (gimple_uid): Tidy.
23660         (gimple_set_uid): Tidy.
23661
23662 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
23663
23664         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
23665         zero guard even if align_bytes != 0 and count is smaller than
23666         size_needed.
23667
23668 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
23669
23670         PR rtl-optimization/38495
23671         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
23672         (add_range_and_copies_from_move_list): Print all added ranges.
23673         Add ranges to memory optimized destination.
23674
23675 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
23676
23677         PR target/38686
23678         PR target/38708
23679         * config/i386/i386.c (override_options): Reject
23680         -mstringop-strategy=rep_8byte with -m32.
23681         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
23682         to 1.  Do count comparison against epilogue_size_needed at compile
23683         time even when count_exp was constant forced into register.  For
23684         size_needed don't jump to epilogue, instead just avoid aligning
23685         and invoke the body algorithm.  If need_zero_guard, add zero guard
23686         even if count is non-zero, but smaller than size_needed + number of
23687         bytes that could be stored for alignment.
23688         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
23689         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
23690         but smaller than size_needed + number of bytes that could be stored
23691         for alignment.  Compare size_needed with epilogue_size_needed instead
23692         of desired_align - align, don't adjust size_needed, pass
23693         epilogue_size_needed to the epilogue expanders.
23694
23695         PR c/35742
23696         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
23697
23698 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23699
23700         * pa.c (last_address): Change to unsigned.
23701         (update_total_code_bytes): Change argument to unsigned.  Don't
23702         check if insn addresses are set.
23703         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
23704         addresses are not set.
23705         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
23706
23707 2009-01-09  Nick Clifton  <nickc@redhat.com>
23708
23709         * config/sh/symbian.c: Replace uses of DECL_INLINE with
23710         DECL_DECLARED_INLINE_P.
23711
23712 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
23713
23714         PR middle-end/38347
23715         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
23716         GET_MODE (op0) in operand_subword_force calls.
23717
23718         PR middle-end/38771
23719         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
23720         fold_convert arg0 operands to TREE_TYPE (op0) first.
23721
23722 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
23723
23724         * params.def (ira-max-conflict-table-size): Decrease default value
23725         to 1000.
23726
23727 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
23728
23729         PR tree-optimization/37031
23730         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
23731         on parameter_set.
23732         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
23733         allocate it using gc instead of heap, use VEC_quick_push instead of
23734         VEC_safe_push.
23735         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
23736         instead of heap, use VEC_quick_push instead of VEC_safe_push.
23737         * tree-data-ref.h (struct access_matrix): Change matrix to gc
23738         allocated vector from heap allocated.
23739         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
23740         * tree-loop-linear.c (linear_transform_loops): Allocate nest
23741         vector only after perfect_loop_nest_depth call.
23742
23743 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
23744             Jan Sjodin  <jan.sjodin@amd.com>
23745
23746         PR tree-optimization/38559
23747         * graphite.c (debug_value, copy_constraint,
23748         swap_constraint_variables, scale_constraint_variable, ): New.
23749         (get_lower_bound, get_upper_bound): Removed.
23750         (graphite_trans_bb_strip_mine): Clean up this code that works
23751         only for constant number of iterations.  Fully copy upper and
23752         lower bound constraints, not only the constant part of them.
23753         * graphite.h (debug_value): Declared.
23754
23755 2009-01-08  Ira Rosen  <irar@il.ibm.com>
23756
23757         PR tree-optimization/37194
23758         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
23759         Don't add the cost of cost model guard in prologue to scalar
23760         outside cost in case of known number of iterations.
23761
23762 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
23763             Alan Modra  <amodra@bigpond.net.au>
23764
23765         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
23766         non-word-aligned REG+CONST addressing.
23767
23768 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
23769
23770         PR target/38706
23771         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
23772         free_after_compilation when outputting a thunk.
23773         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
23774         Do not call free_after_compilation here.
23775
23776 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
23777
23778         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
23779         (ix86_valid_target_attribute_inner_p): Ditto.
23780
23781 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
23782
23783         PR tree-optimization/38492
23784         PR tree-optimization/38498
23785         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
23786         * tree-chrec.h (scev_is_linear_expression): Declared.
23787         * graphite.c (graphite_cannot_represent_loop_niter): New.
23788         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
23789         (graphite_loop_normal_form): Use gcc_assert.
23790         (scan_tree_for_params): Use CASE_CONVERT.
23791         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
23792         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
23793         Use gcc_assert.  Discard scops that contain unhandled cases.
23794         (build_scop_conditions): Return a boolean status for unhandled cases.
23795         (strip_mine_profitable_p): Print the loop number, not its depth.
23796         (is_interchange_valid): Pass the depth of the loop nest, don't
23797         recompute it wrongly.
23798         (graphite_trans_bb_block): Same.
23799         (graphite_trans_bb_block): Print tentative of loop blocking.
23800         (graphite_trans_scop_block): Do not print that the loop has been
23801         blocked.
23802         (graphite_transform_loops): Do not handle scops that contain condition
23803         scalar phi nodes.
23804
23805 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
23806
23807         AVX Programming Reference (December, 2008)
23808         * config/i386/avxintrin.h (_mm256_stream_si256): New.
23809         (_mm256_stream_pd): Likewise.
23810         (_mm256_stream_ps): Likewise.
23811
23812         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
23813         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
23814         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
23815         (bdesc_special_args): Add __builtin_ia32_movntdq256,
23816         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
23817         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
23818         (ix86_expand_special_args_builtin): Likewise.
23819
23820         * config/i386/sse.md (AVXMODEDI): New.
23821         (avx_movnt<mode>): Likewise.
23822         (avx_movnt<mode>): Likewise.
23823         (<sse>_movnt<mode>): Remove AVX support.
23824         (sse2_movntv2di): Likewise.
23825
23826 2009-01-07  Richard Guenther  <rguenther@suse.de>
23827
23828         PR middle-end/38751
23829         * fold-const.c (extract_muldiv): Remove obsolete comment.
23830         (fold_plusminus_mult_expr): Undo MINUS_EXPR
23831         to PLUS_EXPR canonicalization for the canonicalization.
23832
23833 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
23834
23835         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
23836         hosted cross-compilers generating less efficient code.
23837
23838 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
23839
23840         * function.h (rtl_data): Add a dbr_scheduled_p field.
23841         * reorg.c (dbr_schedule): Set it.
23842         (gate_handle_delay_slots): Check it.
23843         * config/mips/mips.c (mips_base_delayed_branch): Delete.
23844         (mips_reorg): Check flag_delayed_branch instead of
23845         mips_base_delayed_branch.
23846         (mips_override_options): Don't set mips_base_delayed_branch
23847         or flag_delayed_branch.
23848
23849 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
23850
23851         PR rtl-optimization/38426.
23852         * ira.c (ira): Set current_function_is_leaf earlier.
23853
23854 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
23855
23856         PR rtl-optimization/38722
23857         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
23858         too early, only set a flag and modify after last possible
23859         undo_all point.
23860
23861 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
23862
23863         PR c/34252
23864         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
23865         * real.c (decimal_single_format): Correct values of emin and emax.
23866         (decimal_double_format): Ditto.
23867         (decimal_quad_format): Ditto.
23868         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
23869         computation of DECnn_MIN and DECnn_MAX for corrected values of
23870         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
23871         __DECnn_MIN__, and adjust its computation for the corrected value
23872         of emin.
23873
23874 2009-01-06  Jan Hubicka  <jh@suse.cz>
23875
23876         PR target/38744
23877         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
23878
23879 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
23880
23881         * doc/contrib.texi (Contributors): Slightly adjust the end note.
23882         Add Robert Clark to the list of testers.
23883
23884 2009-01-06  Jan Hubicka  <jh@suse.cz>
23885             Kai Tietz  <kai.tietz@onevision.com>
23886
23887         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
23888         * config/i386/i386.c (ix86_expand_call): Add clobbers.
23889
23890 2009-01-06  Jan Hubicka  <jh@suse.cz>
23891             Kai Tietz  <kai.tietz@onevision.com>
23892
23893         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
23894         for w64 ABI.
23895         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
23896         (ix86_nsaved_regs): Count only general purpose regs.
23897         (ix86_nsaved_sseregs): New.
23898         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
23899         to 16 for w64; compute padding and size of sse reg save area.
23900         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
23901         general purpose regs.
23902         (ix86_emit_save_sse_regs_using_mov): New.
23903         (ix86_expand_prologue): Save SSE regs if needed.
23904         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
23905         (ix86_emit_restore_sse_regs_using_mov): New.
23906         (ix86_expand_epilogue): Save SSE regs if needed.
23907
23908 2009-01-06  Jan Hubicka  <jh@suse.cz>
23909             Kai Tietz  <kai.tietz@onevision.com>
23910
23911         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
23912         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
23913         functions when accumulate outgoing args is off.
23914
23915 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
23916
23917         PR bootstrap/38742
23918         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
23919         before using pseudos_have_intersected_live_ranges_p.
23920
23921         * ira-int.h (ira_assert): Always define.
23922
23923 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
23924
23925         AVX Programming Reference (December, 2008)
23926         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
23927         (_mm256_permute2_pd): Likewise.
23928         (_mm_permute2_ps): Likewise.
23929         (_mm256_permute2_ps): Likewise.
23930         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
23931         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
23932
23933         * config/i386/i386.c (ix86_builtins): Remove
23934         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
23935         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
23936         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
23937         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
23938         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
23939         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
23940         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
23941         __builtin_ia32_vpermil2ps256.
23942         (ix86_init_mmx_sse_builtins): Updated.
23943         (ix86_expand_args_builtin): Likewise.
23944
23945 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23946
23947         * pa.c (output_call): Relocate non-jump insns in the delay slot of
23948         long absolute calls when generating PA 2.0 code.
23949
23950 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
23951
23952         PR rtl-optimization/38583
23953         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
23954
23955         * params.def (ira-max-conflict-table-size): New.
23956
23957         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
23958
23959         * ira.h (ira_conflicts_p): New external definition.
23960
23961         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
23962         table.  Report this.  Return result of building.
23963         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
23964         building conflict table.
23965
23966         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
23967         (ira_color): Use ira_conflicts_p.
23968
23969         * global.c: Include ira.h.
23970         (pseudo_for_reload_consideration_p, build_insn_chain): Use
23971         ira_conflicts_p.
23972
23973         * Makefile.in (global.o): Add ira.h.
23974
23975         * ira-build.c (mark_all_loops_for_removal,
23976         propagate_some_info_from_allocno): New.
23977         (remove_unnecessary_allocnos): Call
23978         propagate_some_info_from_allocno.
23979         (remove_low_level_allocnos): New.
23980         (remove_unnecessary_regions): Add parameter.  Call
23981         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
23982         parameter to remove_unnecessary_regions.
23983         (ira_build): Remove all regions but root if the conflict table was
23984         not built.  Update conflict hard regs for allocnos crossing calls.
23985
23986         * ira.c (ira_conflicts_p): New global.
23987         (ira): Define and use ira_conflicts_p.
23988
23989         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
23990         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
23991         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
23992
23993 2009-01-06  Ben Elliston  <bje@au.ibm.com>
23994
23995         * gengtype-lex.l (YY_NO_INPUT): Define.
23996
23997 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
23998
23999         PR c/34911
24000         * c-common.c (handle_vector_size_attribute): Also reject
24001         BOOLEAN_TYPE types.
24002
24003 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
24004
24005         PR tree-optimization/38492
24006         * graphite.c (rename_map_elt, debug_rename_elt,
24007         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
24008         rename_map_elt_info, eq_rename_map_elts,
24009         get_new_name_from_old_name, bb_in_sese_p): Moved around.
24010         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
24011         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
24012         (sese_build_livein_liveouts): New.
24013         (new_sese, free_sese): New.
24014         (new_scop): Call new_sese.
24015         (free_scop): Call free_sese.
24016         (rename_variables_from_edge, rename_phis_end_scop): Removed.
24017         (register_old_new_names): Renamed register_old_and_new_names.
24018         (register_scop_liveout_renames, add_loop_exit_phis,
24019         insert_loop_close_phis, struct igp,
24020         default_liveout_before_guard, add_guard_exit_phis,
24021         insert_guard_phis, copy_renames): New.
24022         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
24023         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
24024         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
24025         (scop_adjust_phis_for_liveouts): New.
24026         (gloog): Call scop_adjust_phis_for_liveouts.
24027
24028         * graphite.h (struct sese): Documented.  Added fields liveout,
24029         num_ver and livein.
24030         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
24031         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
24032         (struct scop): Added field liveout_renames.
24033         (SCOP_LIVEOUT_RENAMES): New.
24034
24035 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
24036
24037         PR tree-optimization/38510
24038         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
24039         (translate_clast): Call recompute_all_dominators before
24040         graphite_verify.
24041         (gloog): Call recompute_all_dominators before graphite_verify.
24042
24043 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
24044             Jan Sjodin  <jan.sjodin@amd.com>
24045
24046         PR tree-optimization/38500
24047         * graphite.c (create_sese_edges): Call fix_loop_structure after
24048         splitting blocks.
24049
24050 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
24051
24052         * config.gcc: Add m32r*-*-rtems*.
24053         * config/m32r/rtems.h: New file.
24054
24055 2009-01-05  Ben Elliston  <bje@au.ibm.com>
24056
24057         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
24058         (.po.pox): Likewise.
24059         (po/gcc.pot): Likewise.
24060
24061 2009-01-04  David S. Miller  <davem@davemloft.net>
24062
24063         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
24064         (STARTING_FRAME_OFFSET): Always set to zero.
24065
24066 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
24067
24068         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
24069         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
24070         fixed-point types, and vectors of the same.
24071
24072 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
24073
24074         * config/mips/sync.md (*mb_barrier): Rename to...
24075         (*memory_barrier): ...this.
24076
24077 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
24078
24079         * doc/extend.texi (Function Attributes): Move @cindex after @item
24080         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
24081         and put in alphabetical order. Fix 'target' name and put in order.
24082         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
24083         typos.
24084
24085 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
24086
24087         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
24088         (memory_barrier): Expand as unspec instead of unspec_volatile.
24089         Remove mem:BLK from insn operands.  Use Pmode scratch register.
24090         (*memory_barrier): Define as unspec instead of unspec_volatile.
24091         Use (match_dup 0) as input operand.
24092
24093         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
24094         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
24095         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
24096         scratch register.  Remove operand 1.
24097         (*stbar): Define as unspec instead of unspec_volatile.
24098         Use (match_dup 0) as input operand, remove (const_int 8).
24099         (*membar): Define as unspec instead of unspec_volatile.
24100         Use (match_dup 0) as input operand, remove input operand 2.
24101
24102         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
24103         (memory_barrier): Expand as unspec instead of unspec_volatile.
24104         Remove mem:BLK from insn operands.  Use Pmode scratch register.
24105         (*memory_barrier): Define as unspec instead of unspec_volatile.
24106         Use (match_dup 0) as input operand.
24107
24108         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
24109         Remove mem:BLK from insn operands.  Use Pmode scratch register.
24110         Set volatile flag on operand 0.
24111         (*memory_barrier): New insn pattern.
24112
24113         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
24114         insn operands.
24115         (*memory_barrier): Use (match_dup 0) as input operand.
24116
24117         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
24118         Remove mem:BLK from insn operands.  Use Pmode scratch register.
24119         Set volatile flag on operand 0.
24120         (*mb_internal): New insn pattern.
24121
24122         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
24123
24124 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
24125
24126         PR middle-end/38586
24127         * function.c (struct temp_slot): Move to the section of the file
24128         that deals with temp slots.  Remove field 'address'.
24129         (temp_slot_address_table): New hash table of address -> temp slot.
24130         (struct temp_slot_address_entry): New struct, items for the table.
24131         (temp_slot_address_compute_hash, temp_slot_address_hash,
24132         temp_slot_address_eq, insert_temp_slot_address): Support functions
24133         for the new table.
24134         (find_temp_slot_from_address): Rewrite to use the new hash table.
24135         (remove_unused_temp_slot_addresses): Remove addresses of temp
24136         slots that have been made available.
24137         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
24138         worker function for remove_unused_temp_slot_addresses.
24139         (assign_stack_temp_for_type): Don't clear the temp slot address list.
24140         Add the temp slot address to the address -> temp slot map.
24141         (update_temp_slot_address): Update via insert_temp_slot_address.
24142         (free_temp_slots): Call remove_unused_temp_slot_addresses.
24143         (pop_temp_slots): Likewise.
24144         (init_temp_slots): Allocate the address -> temp slot map, or empty
24145         the map if it is already allocated.
24146         (prepare_function_start): Initialize temp slot processing.
24147
24148 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
24149
24150         PR middle-end/38584
24151         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
24152         Calculate the size of all stack vars assuming no packing of stack
24153         vars will happen, replacing a quadratic algorithm with a linear one.
24154
24155 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
24156
24157         PR target/38707
24158         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
24159         can't be used.
24160
24161 2009-01-03  Diego Novillo  <dnovillo@google.com>
24162
24163         * doc/contrib.texi: Update contributions.
24164
24165 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
24166
24167         PR c++/38705
24168         * builtins.c (fold_builtin_memory_op): Give up if either operand
24169         is volatile.  Set srctype or desttype to non-qualified version
24170         of the other type.
24171
24172         PR c/38700
24173         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
24174         and FUNCTION_DECLs.
24175
24176 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
24177
24178         PR rtl-optimization/35805
24179         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
24180         problem if fast dce is able to remove any instructions.
24181         * dce.c (dce_process_block): Fix dump message.
24182
24183 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
24184
24185         PR 33649
24186         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
24187
24188 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
24189
24190         PR middle-end/38690
24191         * tree-flow.h (op_code_prio, op_prio): New prototypes.
24192         * tree-pretty-print.c (op_code_prio): New function.
24193         (op_prio): No longer static.  Use op_code_prio.
24194         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
24195         Use op_prio and op_code_prio to determine if () should be
24196         printed around operand(s) or not.
24197
24198         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
24199         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
24200         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
24201         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
24202         pp_character instead of pp_string for single letter printing.
24203
24204 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
24205
24206         * doc/extend.texi: Fix '#pragma GCC option' typo.
24207
24208 2009-01-02  Richard Guenther  <rguenther@suse.de>
24209
24210         * doc/install.texi (--enable-checking): Mention different
24211         default for stage1.
24212         (--enable-stage1-checking): Document.
24213
24214 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
24215
24216         PR middle-end/30142
24217         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
24218         case to be an error.
24219
24220 2009-01-02  Ben Elliston  <bje@au.ibm.com>
24221
24222         * config/fp-bit.h (pack_d): Constify argument.
24223         * config/fp-bit.c (makenan): Constify return type. Remove casts.
24224         (isnan): Constify argument.
24225         (isinf): Likewise.
24226         (iszero): Likewise.
24227         (pack_d): Likewise.
24228         (_fpadd_parts): Constify return type.
24229         (_fpmul_parts): Likewise.
24230         (_fpdiv_parts): Likewise.
24231
24232 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
24233
24234         PR c/36489
24235         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
24236         warn about overwriting initializer with side-effects or
24237         -Woverride-init if !IMPLICIT.
24238         (output_init_element): Likewise.  Pass IMPLICIT down to
24239         add_pending_init.
24240         (process_init_element): Add IMPLICIT argument.  Pass it down
24241         to output_init_element.
24242         (push_init_element, pop_init_level, set_designator): Adjust
24243         process_init_element callers.
24244         (set_nonincremental_init, set_nonincremental_init_from_string):
24245         Adjust add_pending_init callers.
24246         (output_pending_init_elements): Adjust output_init_element callers.
24247         * c-tree.h (process_init_element): Adjust prototype.
24248         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
24249         process_init_element callers.
24250
24251 \f
24252 Copyright (C) 2009 Free Software Foundation, Inc.
24253
24254 Copying and distribution of this file, with or without modification,
24255 are permitted in any medium without royalty provided the copyright
24256 notice and this notice are preserved.