OSDN Git Service

* config/i386/i386.c: Remove signal.h #include.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-10-20  Stefan Dösinger  <stefan@codeweavers.com>
2
3         * config/i386/i386.c: Remove signal.h #include.
4
5 2009-10-20  Jie Zhang  <jie.zhang@analog.com>
6
7         * simplify-rtx.c (simplify_const_unary_operation): Handle SS_ABS.
8         * doc/rtl.texi: Document ss_abs.
9
10 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
11
12         * c-common.c (c_parse_error): Handle CPP_UTF8STRING.
13         * c-lex.c (c_lex_with_flags): Likewise.  Test C_LEX_STRING_NO_JOIN
14         instead of C_LEX_RAW_STRINGS.
15         (lex_string): Handle CPP_UTF8STRING.
16         * c-parser.c (c_parser_postfix_expression): Likewise.
17         * c-pragma.h (C_LEX_RAW_STRINGS): Rename to ...
18         (C_LEX_STRING_NO_JOIN): ... this.
19
20 2009-10-19  Anatoly Sokolov  <aesok@post.ru>
21
22         * config/cris/cris.c (cris_function_value, cris_libcall_value,
23         cris_function_value_regno_p): New functions.
24         (cris_promote_function_mode): Update comment.
25         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
26         * config/cris/cris.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
27         (FUNCTION_VALUE_REGNO_P): Redefine, use cris_function_value_regno_p.
28         * config/cris/cris-protos.h (cris_function_value_regno_p): Declare.
29
30 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
31
32         * unwind-dw2.c (execute_stack_op): Fix operand order for
33         DW_OP_le, DW_OP_ge, DW_OP_lt and DW_OP_gt.
34
35 2009-10-19  Eric Botcazou  <ebotcazou@adacore.com>
36
37         * gimple-low.c (struct lower_data): Add cannot_fallthru field.
38         (lower_stmt) <GIMPLE_BIND>: Add comment.
39         <GIMPLE_COND, GIMPLE_GOTO, GIMPLE_SWITCH>: Set cannot_fallthru to true
40         and return.
41         <GIMPLE_RETURN>: Remove the statement if cannot_fallthru is set.
42         Otherwise lower it and set cannot_fallthru to true.
43         <GIMPLE_TRY>: Update cannot_fallthru for GIMPLE_TRY_FINALLY and return.
44         <GIMPLE_CATCH, GIMPLE_EH_FILTER>: Set cannot_fallthru to false.
45         <GIMPLE_CALL>: Set cannot_fallthru to false for BUILT_IN_SETJMP and
46         to true for a noreturn call.  Do not remove statements.
47         <GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TASK>: Set cannot_fallthru to false.
48         Set cannot_fallthru to false on function exit.
49         (gimple_stmt_may_fallthru) <GIMPLE_SWITCH>: Really return false.
50         <GIMPLE_ASSIGN>: Remove.
51
52 2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
53
54         * config/s390/s390.c (s390_z10_optimize_cmp): Don't touch FP compares.
55
56 2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
57
58         * config/s390/s390.c (s390_z10_optimize_cmp): Use
59         next/prev_active_insn to skip DEBUG_INSNs as well.
60
61 2009-10-19  Joseph Myers  <joseph@codesourcery.com>
62
63         * config/arm/arm.c (output_move_neon): Use DImode in call to
64         adjust_address.
65
66 2009-10-19  Matthias Klose  <doko@ubuntu.com>
67
68         PR target/40134
69         * config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.
70
71 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
72
73         * cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM op0.
74
75 2009-10-17  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
76
77         PR middle-end/41738
78         * optabs.c (expand_binop): Make mode of shift count expression mode
79         of shift count not target.
80         Remove indent nit.
81
82 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
83
84         * tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
85         case.  Force using values to replace references within the statement.
86         (convert_local_reference_stmt): Likewise.
87
88 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
89
90         * gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
91         remove a subsequent GOTO or RETURN statement.
92
93 2009-10-17  Andy Hutchinson  <hutchinsonandy@aim.com>
94
95         * config/avr.md (*movqi): Add zero as equally preferable constraint
96         as general register.
97         (*movhi): Ditto.
98
99 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
100
101         * print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.
102
103 2009-10-17  Richard Guenther  <rguenther@suse.de>
104
105         * lto-streamer-in.c (lto_input_location): Try to reuse previous maps.
106
107 2009-10-17  Richard Guenther  <rguenther@suse.de>
108
109         * lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL
110         operands in COMPONENT_REFs.
111
112 2009-10-17  Anatoly Sokolov  <aesok@post.ru>
113
114         * targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
115         if not defined. Change type of second argument to const_rtx.
116         (default_function_value): Call gcc_unreachable if FUNCTION_VALUE
117         macro not defined.
118         * targhooks.h (default_libcall_value): Update prototype.
119         * target.h (struct gcc_target): Change type of second argument of
120         libcall_value to const_rtx.
121         * config/arm/arm.c (arm_libcall_value): Change type of second argument
122         to const_rtx.
123         (arm_libcall_uses_aapcs_base): Change type of argument to const_rtx.
124         * doc/tm.texi (TARGET_LIBCALL_VALUE):  Revise documentation.
125
126 2009-10-17  Jakub Jelinek  <jakub@redhat.com>
127
128         PR debug/40521
129         * debug.h (struct gcc_debug_hooks): Add assembly_start hook.
130         * cgraphunit.c (cgraph_optimize): Call it.
131         * dwarf2out.c (dwarf2out_init): Move .cfi_sections printing into...
132         (dwarf2out_assembly_start): ... here.  New hook.
133         (dwarf2out_debug_hooks): Add dwarf2out_assembly_start.
134         * debug.c (do_nothing_debug_hooks): Do nothing for assembly_start
135         hook.
136         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
137         * sdbout.c (sdb_debug_hooks): Likewise.
138         * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_assembly_start.
139         (vmsdbgout_assembly_start): New hook.
140
141 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
142
143         * rtl.h (RTL_LOCATION): Fix typo.
144
145 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
146
147         * print-rtl.c (print_rtx): Print locators in asm_operands
148         and asm_input.
149
150 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
151
152         PR debug/41535
153         * sched-deps.c (depl_on_debug_p): New.
154         (attach_dep_link): Reject debug deps before nondebug deps.
155         (add_to_deps_list): Insert debug deps after nondebug deps.
156         (sd_lists_empty_p): Stop at first nonempty list.  Disregard debug
157         deps.
158         (sd_add_dep): Do not reject debug deps.
159         (add_insn_mem_dependence): Don't count debug deps.
160         (remove_from_deps): Likewise.
161         (sched_analyze_2): Set up mem deps on debug insns.
162         (sched_analyze_insn): Record reg uses for deps on debug insns.
163         * haifa-sched.c (schedule_insn): Reset deferred debug insn.  Don't
164         try_ready nondebug insn after debug insn.
165         * ddg.c (create_ddg_dep_from_intra_loop_link,
166         create_ddg_dep_no_link): Don't reject debug deps.
167
168 2009-10-16  Richard Guenther  <rguenther@suse.de>
169
170         * lto-symtab.c (merge_incomplete_and_complete_type): Remove.
171         (maybe_merge_incomplete_and_complete_type): Likewise.
172         (lto_symtab_merge): Do not call them.  Do not warn for
173         complete vs. incomplete compatible types.
174         (lto_symtab_merge_decls_2): Simplify.
175         * gimple.c (gimple_force_type_merge): Remove.
176         (gimple_types_compatible_p): Make it static.
177         * gimple.h (gimple_force_type_merge): Remove.
178         (gimple_types_compatible_p): Likewise.
179
180 2009-10-16  Jakub Jelinek  <jakub@redhat.com>
181
182         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
183         DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.
184
185 2009-10-16  Richard Guenther  <rguenther@suse.de>
186
187         PR tree-optimization/41728
188         * tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
189         if fold_stmt did anything.
190
191 2009-10-16  Richard Guenther  <rguenther@suse.de>
192
193         PR lto/41715
194         * lto-streamer-in.c (lto_input_tree_ref): Revert last change.
195         (maybe_fixup_handled_component): New function.
196         (input_gimple_stmt): Fixup mismatched decl replacements.
197
198 2009-10-16  Richard Guenther  <rguenther@suse.de>
199
200         PR lto/41713
201         * lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
202         the same as VAR_DECL.
203
204 2009-10-16  Richard Guenther  <rguenther@suse.de>
205
206         * gimple.c (iterative_hash_gimple_type): For integer types
207         also hash their minimum and maximum values and the string flag.
208         For array types hash their domain and the string flag.
209
210 2009-10-16  Richard Guenther  <rguenther@suse.de>
211
212         * gimple.c (gimple_types_compatible_p): Restrict completing
213         types to record or unions.  Simplify completion.
214         Do not merge records or unions with different
215         TYPE_STRUCTURAL_EQUALITY_P tag.
216         (iterative_hash_gimple_type): Restrict non-recursing into
217         pointer targets for records and unions.
218
219 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
220
221         PR debug/41717
222         * cfgexpand.c (expand_debug_expr): Handle CONJ_EXPR.
223         * dwarf2out.c (mem_loc_descriptor): Don't handle
224         POST_INT/POST_DEC/POST_MODIFY like SUBREG.  For SUBREG
225         punt if it is not lowpart subreg or if inner mode isn't
226         MODE_INT.
227
228 2009-10-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
229
230         * config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
231         investigating previous or next insns.
232
233 2009-10-16  Eric Botcazou  <ebotcazou@adacore.com>
234
235         * tree-sra.c (build_ref_for_offset_1): Update comment.
236
237 2009-10-16  Wolfgang Gellerich  <gellerich@de.ibm.com>
238
239         * config/s390/s390.md (atype): Added missing values.
240
241 2009-10-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
242
243         PR target/41702
244         * pa.md (casesi): Use sign extended index in call to gen_casesi64p.
245         (casesi64p): Update pattern to reflect above.
246
247 2009-10-15  Steve Ellcey  <sje@cup.hp.com>
248
249         PR rtl-optimization/41697
250         * sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.
251
252 2009-10-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
253
254         PR target/23983
255         * config/rs6000/predicates.md: Update copyright year.
256         * config/rs6000/altivec.md: Ditto.
257         
258         * config/rs6000/t-rs6000 (TM_H): Add rs6000-builtin.def.
259         (MD_INCLUDES): Add a2.md.
260         
261         * config/rs6000/rs6000.c (rs6000_builtin_decls): Change
262         RS6000_BUILTIN_COUNT to MAX_RS6000_BUILTINS.
263         (builtin_classify): New static vector to classify various builtins
264         to get the tree attributes correct.
265         (def_builtin): Set the attributes of builtins based on what the
266         builtin does (i.e. memory operation, floating point, saturation
267         need special attributes, others are pure functions).
268
269         * config/rs6000/rs6000.h (enum rs6000_btc): New enum to classify
270         the builtins.
271         (enum rs6000_builtins): Include rs6000-builtin.def to define the
272         builtins.  Change the end marker to MAX_RS6000_BUILTINS from
273         RS6000_BUILTIN_COUNT.
274         (rs6000_builtin_decls): Change RS6000_BUILTIN_COUNT to
275         MAX_RS6000_BUILTINS.
276
277         * config/rs6000/rs6000-builtin.def: New file that combines the
278         builtin enumeration name and attributes.
279
280 2009-10-15  H.J. Lu  <hongjiu.lu@intel.com>
281
282         * config/i386/linux.h (ASM_SPEC): Add --32.
283
284 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
285
286         * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
287         and DW_TAG_template_alias.
288         (dwarf_attr_name): Handle DW_AT_main_subprogram,
289         DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
290         DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
291         DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
292         DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
293         and DW_AT_GNU_odr_signature.
294         (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
295         DW_FORM_flag_present and DW_FORM_ref_sig8.
296         (output_signature): Only print name on the first byte.
297         (output_die): Likewise for dw_val_class_data8.
298
299 2009-10-15  Alexander Monakov  <amonakov@ispras.ru>
300
301         * doc/invoke.texi: Clarify that most optimizations are not enabled
302         without -O.
303
304 2009-10-15  Richard Guenther  <rguenther@suse.de>
305
306         PR lto/41668
307         * gimple.c (compare_type_names_p): Handle anonymous names
308         differently based on new mode argument.
309         (gimple_types_compatible_p): For structs also compare the tags.
310         (iterative_hash_type_name): Rename to ...
311         (iterative_hash_name): ... this.  Hash all names.
312         (iterative_hash_gimple_type): Fix hashing the struct tag of
313         pointer targets.  Hash field decl names.
314
315 2009-10-15  Richard Guenther  <rguenther@suse.de>
316
317         PR lto/41669
318         * gimple.c (gimple_get_alias_set): Avoid recursing on
319         invalid type topology.
320
321 2009-10-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
322
323         * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
324
325 2009-10-15  Richard Guenther  <rguenther@suse.de>
326
327         * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
328
329 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
330
331         * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
332         add --with-tune{,-32,-64} configured default for -mtune if explicit
333         -mcpu is used.
334
335 2009-10-14  Daniel Gutson  <dgutson@codesourcery.com>
336
337         * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds fixed.
338
339 2009-10-14  DJ Delorie  <dj@redhat.com>
340         
341         * config/h8300/h8300.c (F): New.
342         (Fpa): New.
343         (h8300_emit_stack_adjustment): Call them.
344         (push): Likewise.
345         (h8300_push_pop): Likewise.
346         (h8300_expand_prologue): Likewise.
347         * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
348         (MUST_USE_SJLJ_EXCEPTIONS): Define.
349         (INCOMING_RETURN_ADDR_RTX): Define.
350         (INCOMING_FRAME_SP_OFFSET): Define.
351         (DWARF_CIE_DATA_ALIGNMENT): Define.
352
353 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
354
355         * stor-layout.c (place_field): Don't emit -Wpadded warnings for
356         fields in builtin structs.
357         (finalize_record_size): Likewise.
358
359 2009-10-14  Richard Guenther  <rguenther@suse.de>
360
361         * gimple.c (gtc_ob): New global.
362         (struct type_pair_d): Replace pointers with type UIDs.
363         (type_pair_hash): Adjust.
364         (type_pair_eq): Likewise.
365         (lookup_type_pair): Likewise.  Allocate from an obstack.
366         (gimple_force_type_merge): Adjust.
367         (gimple_types_compatible_p): Likewise.
368         (free_gimple_type_tables): Free the obstack.
369
370 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
371
372         * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
373         stmts setting DEBUG_EXPR_DECLs.
374
375         * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
376         Don't crash if mode1 is VOIDmode.
377
378 2009-09-26  Vladimir Makarov  <vmakarov@redhat.com>
379
380         * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
381         * params.h (IRA_LOOP_RESERVED_REGS): New.
382         * tree-pass.h (pass_subregs_of_mode_init,
383         pass_subregs_of_mode_finish): Remove.
384         * passes.c (pass_subregs_of_mode_init,
385         pass_subregs_of_mode_finish): Remove.
386         (pass_reginfo_init): Move before loop optimizations.
387         * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
388         * common.opt (fira-loop-pressure): New.
389         * toplev.h (flag_ira_loop_pressure): New.
390         * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New externals.
391         * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
392         Make external and void type functions.
393         (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
394         pass_subregs_of_mode_finish): Remove.
395         * ira-costs.c (init_costs): Call init_subregs_of_mode.
396         * regmove.c: Include ira.h.
397         (regmove_optimize): Call ira_set_pseudo_classes after IRA based
398         register pressure calculation in loops.
399         * loop-invariant.c: Include REGS_H and ira.h.
400         (struct loop_data): New members max_reg_pressure, regs_ref, and
401         regs_live.
402         (struct invariant): New member orig_regno.
403         (curr_loop): New variable.
404         (find_exits): Initialize regs_ref and regs_live.
405         (create_new_invariant): Initialize orig_regno.
406         (get_cover_class_and_nregs): New.
407         (get_inv_cost): Make aregs_needed an array.  Use regs_needed as an
408         array.  Add code for flag_ira_loop_pressure.
409         (gain_for_invariant): Make new_regs an array.  Add code for
410         flag_ira_loop_pressure.
411         (best_gain_for_invariant): Ditto.
412         (set_move_mark): New parameter gain.  Use it for debugging output.
413         (find_invariants_to_move): Make regs_needed and new_regs an array.
414         Add code for flag_ira_loop_pressure.
415         (move_invariant_reg): Set up orig_regno.
416         (move_invariants): Set up reg classes for pseudos for
417         flag_ira_loop_pressure.
418         (free_loop_data): Clear regs_ref and regs_live.
419         (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
420         get_regno_cover_class, change_pressure, mark_regno_live,
421         mark_regno_death, mark_reg_store, mark_reg_clobber,
422         mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
423         (move_loop_invariants): Calculate pressure.  Initialize curr_loop.
424         * ira.c (ira): Call ira_set_pseudo_classes after IRA based
425         register pressure calculation in loops if new regs were added.
426         Call finish_subregs_of_mode.
427         * opts.c (decode_options): Set up flag_ira_loop_pressure.
428         * Makefile.in (loop-invariant.o): Add ira.h.
429         (regmove.o): Ditto.
430         * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
431         Describe.
432         * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
433         
434 2009-10-14  Richard Guenther  <rguenther@suse.de>
435
436         * lto-symtab.c (lto_symtab_compatible): Fold in ...
437         (lto_symtab_merge): ... here.  Rewrite both to take the
438         prevailing and a to-be-merged entry and to queue diagnostics properly.
439         (lto_symtab_resolve_replaceable_p): New predicate for
440         symbol resolution.
441         (lto_symtab_resolve_can_prevail_p): Likewise.
442         (lto_symtab_resolve_symbols): Rewrite.  Fold in code that
443         handles merging commons by choosing the largest decl.  Fold
444         in code that gives ODR errors.
445         (lto_symtab_merge_decls_2): Simplify a lot.  Emit queued
446         diagnostics here.
447         (lto_symtab_merge_decls_1): Re-structure.  Deal with the
448         case of no prevailing decl here.  Diagnose mismatches
449         in object types here.  Drop all but the prevailing decls.
450         (lto_symtab_prevailing_decl): Return the single prevailing decl.
451         * lto-streamer-in.c (lto_input_tree_ref): Deal with
452         VIEW_CONVERT_EXPRs in decl slots.  Unshare the tree in this case.
453
454 2009-10-14  Richard Guenther  <rguenther@suse.de>
455
456         PR lto/41521
457         * lto-streamer-in.c (input_bb): Replace debug stmts with
458         nops instead of dropping them.
459
460 2009-10-14  Nick Clifton  <nickc@redhat.com>
461
462         * gcc/doc/extended.texi: Replace the dash character with @minus{}
463         in situations where it is being used as a minus symbol.
464         * gcc/doc/tm.texi: Likewise.
465         * gcc/doc/md.texi: Likewise.
466
467 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
468
469         PR preprocessor/41543
470         * input.h (BUILTINS_LOCATION): Change to 1 from 2.
471         Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
472         * tree.c: Include intl.h.
473         (expand_location): Handle BUILTINS_LOCATION.
474         * Makefile.in (tree.o): Depend on intl.h.
475
476         PR debug/41695
477         * dwarf2out.c (dwarf2out_var_location): Always clear
478         last_postcall_label when changing last_label.
479
480 2009-10-14  Pascal Obry  <obry@adacore.com>
481
482         * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
483         (process_command): Handle -E as done with -c and -S.  Do not add
484         the target executable suffix to the output file when -E is used.
485         (main): Adjust error message accordingly.
486
487 2009-10-14  Alexandre Oliva  <aoliva@redhat.com>
488
489         PR debug/41343
490         PR debug/41447
491         PR debug/41264
492         PR debug/41338
493         * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
494         decl with rtl.
495         (tree_code_size): Likewise.
496
497 2009-10-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
498
499         * builtins.c (fold_builtin_1): Support complex "arc" functions.
500         * real.h (HAVE_mpc_arc): Define.
501
502 2009-10-14  Kaz Kojima  <kkojima@gcc.gnu.org>
503
504         * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
505         (struct builtin_description): Add fndecl field.
506         (bdesc): Remove const qualifier.  Update initializer.
507         (sh_media_init_builtins): Remove const qualifier for d.  Record
508         the result of add_builtin_function to the fndecl field.
509         (sh_builtin_decl): New.
510         (sh_media_builtin_decl): New.
511
512 2009-10-14  Hans-Peter Nilsson  <hp@axis.com>
513
514         PR target/38948
515         * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
516         requests between special registers.
517
518 2009-10-13  Eric Botcazou  <ebotcazou@adacore.com>
519
520         * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
521
522 2009-10-13  Richard Henderson  <rth@redhat.com>
523
524         PR tree-optimization/41377
525         * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
526         (cleanup_empty_eh_merge_phis): New change_region parameter;
527         pass it on to redirect_eh_edge_1.  Update callers.
528         (cleanup_empty_eh_unsplit): Don't require an existing EH label
529         at the destination block.
530
531 2009-10-13  Basile Starynkevitch  <basile@starynkevitch.net>
532
533         * passes.c (register_pass): Replaced gcc_unreachable by
534         fatal_error on failure. Mentions plugins in comments & messages.
535
536 2009-10-13  Jakub Jelinek  <jakub@redhat.com>
537
538         PR target/41693
539         * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
540         * sched-vis.c (print_value): Use it.
541         * cselib.c (cselib_hash_rtx): Likewise.
542         * print-rtl.c (print_rtx): Likewise.
543         * cfgexpand.c (expand_debug_rtx): Likewise.
544         * var-tracking.c (vt_expand_loc_callback): Likewise.
545
546 2009-10-13  Richard Guenther  <rguenther@suse.de>
547
548         PR lto/41565
549         * opts.c (handle_option): Split out code to handle setting
550         the options flag var ...
551         (set_option): ... here.
552         * opts.h (set_option): Declare.
553         * lto-opts.c (register_user_option_p): Include -fexceptions
554         and all position independent code variants.
555         (handle_common_option): Remove.
556         (lto_reissue_options): Use set_option.
557
558 2009-10-13  Martin Jambor  <mjambor@suse.cz>
559
560         PR tree-optimization/41661
561         * ipa-prop.c (compute_complex_pass_through): Allow only operations
562         that are tcc_comparisons or do not change the type in any
563         un-usleless way.
564         * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
565         folding tcc_comparison operations.
566
567 2009-10-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
568
569         * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
570         properly.
571
572 2009-10-12  Alexandre Oliva  <aoliva@redhat.com>
573
574         PR debug/41343
575         PR debug/41447
576         PR debug/41264
577         PR debug/41338
578         * tree.def (DEBUG_EXPR_DECL): New.
579         * rtl.def (DEBUG_EXPR): New.
580         * gengtype.c (adjust_field_rtx_def): Handle it.
581         * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
582         (insert_debug_temp_for_var_def): ... this.  Drop support for
583         moving.  Take iterator for def stmt; insert debug stmt before it.
584         Scan early for use count and kind in debug stmts.
585         (propagate_defs_into_debug_stmts): Rename to...
586         (insert_debug_temps_for_defs): ... this.  Likewise.
587         * tree.h (DEBUG_TEMP_UID): New.
588         * tree.c (next_debug_decl_uid): New.
589         (make_node_stat): Count debug decls separately.
590         (copy_node_stat): Likewise.
591         * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
592         * var-tracking.c (dv_is_decl_p): Recognize it.
593         (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
594         (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
595         (vt_expand_loc_callback): Expand DEBUG_EXPRs.
596         (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
597         * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
598         (cselib_hash_rtx): Likewise.
599         (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
600         * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
601         debug bind stmts.
602         * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
603         (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
604         * rtl.c (copy_rtx): Likewise.
605         (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
606         * print-rtl.c (print_rtx): Likewise.
607         * sched-vis.c (print_value): Likewise.
608         (print_insn): Handle DEBUG_EXPR_DECL.
609         * tree-dump.c (dequeue_and_dump): Likewise.
610         * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
611         * gimple-iterator (gsi_replace): Check for same lhs.
612         (gsi_remove): Insert debug temps.
613         * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
614         (move_computations_stmt): Drop explicit propagation into debug stmts.
615         (rewrite_bittest): Likewise.  Use gsi_remove for propagation.
616         * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
617         * tree-ssa-sink.c (statement_sink_location): Likewise.
618         * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
619         * tree-ssanames.c (release_ssa_name): Adjust for rename.
620         * tree-flow.h: Likewise.
621         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
622         debug temps without values.
623         (eliminate_unnecessary_stmts): Don't discard just-inserted
624         debug stmts.
625
626 2009-10-12  Hans-Peter Nilsson  <hp@axis.com>
627
628         PR target/26515
629         * config/cris/cris.md (andu): Check that operand 1 is one of the
630         general registers.  Fix typo in head comment.
631
632 2009-10-12  Stefan Dösinger  <stefan@codeweavers.com>
633
634         * config/i386/i386.md (vswapmov): New.
635         * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
636         (ix86_function_ms_hook_prologue): New.
637         (ix86_expand_prologue): Handle ms_hook_prologue attribute.
638         * configure.ac: Test for swap suffix support in as.
639         * configure: Rebuild.
640
641 2009-10-12  Jakub Jelinek  <jakub@redhat.com>
642
643         PR target/41680
644         * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
645         paradoxical subregs to prevent partial register stalls if the inner
646         mode is integer mode.
647
648 2009-10-12  Uros Bizjak  <ubizjak@gmail.com>
649
650         * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
651
652 2009-10-12  Dodji Seketeli  <dodji@redhat.com>
653
654         PR c++/41570
655         * gcc/dwarf2out.c (template_parameter_pack_die,
656         gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
657
658 2009-10-12  Alexandre Oliva  <aoliva@redhat.com>
659
660         PR debug/41616
661         * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
662         on updates too.
663         (maybe_register_def): Likewise.  Take stmt iterator.
664         (rewrite_update_stmt): Take stmt iterator and pass it on.
665         (rewrite_update_enter_block): Pass stmt iterator.
666
667 2009-10-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
668
669         * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
670         (spu_builtin_decl): New function.
671
672 2009-10-12  Uros Bizjak  <ubizjak@gmail.com>
673
674         * config/i386/i386.md (SWIM): New mode iterator.
675         (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
676         using SWIM mode iterator.
677         (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
678         patterns using SWI48 mode iterator.
679         (*x86_mov<mode>cc_0_m1_se):  Macroize insn from
680         *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
681         (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
682         (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
683         patterns using SWI248 mode iterator.
684         * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
685         gen_x86_movdicc_0_m1_rex64 for renamed function
686
687 2009-10-11  Jose Ruiz  <ruiz@adacore.com>
688             Eric Botcazou  <ebotcazou@adacore.com>
689
690         PR target/33743
691         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
692         * config/sparc/sol2-unwind.h: New file.
693
694 2009-10-11  Olivier Hainque  <hainque@adacore.com>
695             Eric Botcazou  <ebotcazou@adacore.com>
696
697         PR target/33743
698         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
699         * config/i386/sol2-unwind.h: New file.
700
701 2009-10-11  H.J. Lu  <hongjiu.lu@intel.com>
702
703         PR target/41665
704         * config/i386/i386.md (addsi_1_zext): Get the proper second
705         operand for lea.
706
707 2009-10-11  Richard Sandiford  <rdsandiford@googlemail.com>
708
709         * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
710         all OLD_RTXes, not just REGs.  Use copy_rtx to create the
711         replacement value.
712
713 2009-10-11  Richard Guenther  <rguenther@suse.de>
714
715         * gimple.c (iterative_hash_type_name): Do not handle special
716         anonymous names.
717
718 2009-10-11  Uros Bizjak  <ubizjak@gmail.com>
719
720         * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
721         (*setcc_si_1_and): Ditto.
722         (*setcc_si_1_movzbl): Ditto.
723         (*setcc_<mode>_2): Ditto.
724         (*setcc_qi): Rename from *setcc_1.
725         (*setcc_qi_slp): Rename from *setcc_2.
726
727         (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
728         (*zero_extendqisi2_movzbw_and splitter): Ditto.
729
730         * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
731         "if" condition, there is already assert with reload_completed present.
732
733 2009-10-11  Gerald Pfeifer  <gerald@pfeifer.com>
734
735         * plugin.c (try_init_one_plugin): Improve constness of variable err.
736
737 2009-10-10  Gerald Pfeifer  <gerald@pfeifer.com>
738
739         * doc/install.texi (Final install): Refer to
740         http://gcc.gnu.org/bugs/ for bug reporting.
741
742 2009-10-10  Peter Bergner  <bergner@vnet.ibm.com>
743
744         * configure.ac: Add test for dci instruction.
745         * configure: Regenerate.
746         * config.in: Likewise.
747         * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
748         * doc/invoke.texi: Add cpu_type 476 and 476fp.
749         (-mmulhw): Add 476 to description.
750         (-mdlmzb): Likewise.
751         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
752         * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
753         (processor_target_table): Add 476 and 476fp entries.
754         (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
755         (rs6000_issue_rate): Add CPU_PPC476.
756         * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
757         (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
758         (processor_type): Add PROCESSOR_PPC476.
759         (EXTRA_SPECS): Add asm_cpu_476 string.
760         * config/rs6000/rs6000.md (define_attr "type"): Add isel attribute.
761         (define_attr "cpu"): Add ppc476.
762         Include 476.md.
763         Update comments for 476.
764         (isel_signed, isel_unsigned): Change to use "isel" type attribute.
765         * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
766         Update copyright year.
767         * config/rs6000/476.md: New file.
768         * config/rs6000/40x.md: Add description for "isel" attribute.
769         Update copyright year.
770         * config/rs6000/440.md: Likewise.
771         * config/rs6000/603.md: Likewise.
772         * config/rs6000/6xx.md: Likewise.
773         * config/rs6000/7450.md: Likewise.
774         * config/rs6000/7xx.md: Likewise.
775         * config/rs6000/8540.md: Likewise.
776         * config/rs6000/cell.md: Likewise.
777         * config/rs6000/e300c2c3.md: Likewise.
778         * config/rs6000/e500mc.md: Likewise.
779         * config/rs6000/mpc.md: Likewise.
780         * config/rs6000/power4.md: Likewise.
781         * config/rs6000/power5.md: Likewise.
782         * config/rs6000/power6.md: Likewise.
783         * config/rs6000/power7.md: Likewise.
784         * config/rs6000/rios1.md: Likewise.
785         * config/rs6000/rios2.md: Likewise.
786         * config/rs6000/rs64.md: Likewise.
787
788 2009-10-10  Richard Guenther  <rguenther@suse.de>
789
790         PR tree-optimization/41654
791         * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
792         a cond expr before calling gimple_cond_set_condition_from_tree.
793         (ifcombine_iforif): Likewise.
794
795 2009-10-09  Ian Lance Taylor  <iant@google.com>
796
797         * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
798         * configure: Rebuild.
799
800 2009-10-09  Neil Vachharajani <nvachhar@google.com>
801
802         * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
803         deprecated.
804
805 2009-10-09  Richard Guenther  <rguenther@suse.de>
806
807         PR lto/41638
808         * target-def.h (TARGET_BUILTIN_DECL): Define.
809         (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
810         * target.h (struct gcc_target): Add builtin_decl target hook.
811         * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
812         * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
813         target builtins.
814         * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
815         not gcc_unreachable.
816         (lto_output_builtin_tree): Sorry if the target does not support
817         streaming target builtins.
818         * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
819         (rs6000_builtin_decl): New function.
820         * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
821         (ix86_builtin_decl): New function.
822
823 2009-10-09  Jakub Jelinek  <jakub@redhat.com>
824
825         PR preprocessor/41445
826         * c-ppoutput.c (do_line_change): New function.
827         (cb_line_change): Use it.
828         (scan_translation_unit): Call do_line_change if
829         avoid_paste or PREV_WHITE and token location is on a different line
830         than print.src_line.
831
832         PR debug/40521
833         * dwarf2out.c (dwarf2out_init): Test whether
834         HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
835         it is defined.
836
837         PR rtl-optimization/41646
838         * calls.c (expand_call): For BLKmode types returned in registers
839         avoid likely spilled hard regs in copy_blkmode_from_reg generated
840         insns.
841
842 2009-10-09  Richard Guenther  <rguenther@suse.de>
843
844         PR tree-optimization/41634
845         * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
846         we remove the correct elements.
847         (optimize_stmt): Make sure to update stmt operands before
848         optimizing redundancies.
849
850 2009-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
851
852         * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
853
854 2009-10-09  Richard Guenther  <rguenther@suse.de>
855
856         PR driver/41637
857         * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
858         globals.
859         (lto_wrapper_exit): New function.
860         (fatal): Use it.
861         (fatal_perror): Likewise.
862         (fork_execute): Use global args_name, do not free it.
863         (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
864         * lto-streamer.h: Remove duplicate prototypes.
865
866 2009-10-09  Richard Guenther  <rguenther@suse.de>
867
868         * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
869         before calling stmt_can_throw_external.
870
871 2009-10-09  Eric Botcazou  <ebotcazou@adacore.com>
872
873         PR tree-optimization/40071
874         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
875         pointer if the original data reference doesn't conflict with the
876         created vector data reference.  Fix long line.
877
878 2009-10-09  Uros Bizjak  <ubizjak@gmail.com>
879
880         * config/i386/i386.md (any_div): New code iterator.
881         (u): Handle div and udiv.
882         (sgnprefix): Ditto.
883         (<u>divqi3): Macroize insn from {,u}divqi3  using any_div
884         code iterator.
885         (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
886         lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
887         (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
888         lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
889
890 2009-10-08  Joseph Myers  <joseph@codesourcery.com>
891
892         * gcc.c (main): Remove trailing "." from diagnostics.
893
894 2009-10-08  Cary Coutant  <ccoutant@google.com>
895
896         Add support for debugging with ICF (Identical Code Folding).
897         * calls.c (debug.h): New #include.
898         (emit_call_1): Call virtual_call_token debug hook.
899         * common.opt (-fenable-icf-debug): New option.
900         * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
901         locations in the source).
902         (poc_label_num): New variable.
903         (dcall_entry, vcall_entry): New typedefs.
904         (dcall_table, vcall_table): New variables.
905         (struct vcall_insn): New type.
906         (vcall_insn_table): New variable.
907         (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
908         (size_of_dcall_table): New function.
909         (output_dcall_table): New function.
910         (size_of_vcall_table): New function.
911         (output_vcall_table): New function.
912         (dwarf2out_direct_call): New function.
913         (vcall_insn_table_hash): New function.
914         (vcall_insn_table_eq): New function.
915         (dwarf2out_virtual_call_token): New function.
916         (dwarf2out_virtual_call): New function.
917         (dwarf2out_init): Allocate new tables and sections.
918         (prune_unused_types): Mark DIEs referenced from direct call table.
919         (dwarf2out_finish): Output direct and virtual call tables.
920         * final.c (final_scan_insn): Call direct_call and virtual_call
921         debug hooks.
922         * debug.h (struct gcc_debug_hooks): Add direct_call,
923         virtual_call_token, virtual_call hooks.
924         (debug_nothing_uid): New function.
925         * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
926         (debug_nothing_uid): New function.
927         * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
928         (xcoff_debug_hooks): Likewise.
929         * sdbout.c (sdb_debug_hooks): Likewise.
930         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
931         * doc/invoke.texi (-fenable-icf-debug): New option.
932
933 2009-10-08  Alexandre Oliva  <aoliva@redhat.com>
934
935         PR debug/41353
936         * regmove.c (regmove_backward_pass): Replace src with dst in the
937         debug insn, and check for dst before rather than after.
938
939 2009-10-08  Janis Johnson <janis187@us.ibm.com>
940
941         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
942         (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
943
944 2009-10-08  Jan Hubicka  <jh@suse.cz>
945
946         PR middle-end/41626
947         * cgraphbuild.c (record_reference): When parameter DATA is NULL,
948         do not mark cgraph nodes as needed.
949         (record_references_in_initializer): Add new only_vars parameter.
950         * cgraph.h (record_references_in_initializer): New parameter.
951         * varasm.c (assemble_variable): Update call.
952         * varpool.c (varpool_analyze_pending_decls): Always look for
953         referenced vars.
954
955 2009-10-08  Anatoly Sokolov  <aesok@post.ru>
956
957         * config/avr/avr.c (last_insn_address) Remove variable.
958         (expand_prologue): Don't initialise last_insn_address variable.
959         (final_prescan_insn): Don't output insn size.
960         * config/avr/avr.opt (msize): Remove switch.
961         * doc/invoke.texi (AVR Options): Remove documentation of -msize
962         switch.
963
964 2009-10-08  Adam Nemet  <anemet@caviumnetworks.com>
965
966         * combine.c (label_tick_ebb_start): Fix comment.
967         (combine_instructions): Set label_tick and label_tick_ebb_start before
968         calling setup_incoming_promotions.  Start them from 1.  Increment
969         label_tick instead of deriving it from the BB index.  Rather than
970         comparing ticks use the block from the previous iteration to decide
971         whether to start a new EBB.  Remove empty lines before function.
972
973 2009-10-08  Michael Matz  <matz@suse.de>
974
975         PR middle-end/41573
976         * builtins.c (fold_builtin_isascii): Use fold_build2.
977         (fold_builtin_isdigit): Ditto.
978         * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
979         * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
980         remove_useless_stmts_cond, remove_useless_stmts_tf,
981         remove_useless_stmts_tc, remove_useless_stmts_bind,
982         remove_useless_stmts_goto, remove_useless_stmts_label,
983         remove_useless_stmts_1, remove_useless_stmts,
984         pass_remove_useless_stmts): Remove.
985         * tree-pass.h (pass_remove_useless_stmts): Don't declare.
986         * passes.c (init_optimization_passes): Don't add
987         pass_remove_useless_stmts.
988         * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
989         * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
990         static constants.
991         * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
992         for static constants.
993         * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
994         * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
995
996 2009-10-08  Richard Guenther  <rguenther@suse.de>
997
998         * gimple.c (free_gimple_type_tables): New function.
999         * gimple.h (free_gimple_type_tables): Declare.
1000
1001 2009-10-07  Mark Heffernan  <meheff@google.com>
1002
1003         * ipa-prop.c (ipa_print_node_params) Only print
1004         names of named arguments.
1005
1006 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
1007
1008         * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
1009         being statically linked.
1010
1011 2009-10-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1012
1013         * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
1014
1015 2009-10-08  Jan Hubicka  <jh@suse.cz>
1016
1017         PR bootstrap/41620
1018         * ipa.c (cgraph_externally_visible_p,
1019         function_and_variable_visibility,
1020         whole_program_function_and_variable_visibility): Skip non-finalized
1021         nodes.
1022
1023 2009-10-08  Nick Clifton  <nickc@redhat.com>
1024
1025         * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
1026         CONST_DOUBLEs.
1027
1028 2009-10-08  Andreas Tobler  <a.tobler@schweiz.org>
1029
1030         PR bootstrap/37739
1031         * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
1032
1033 2009-10-07  Joseph Myers  <joseph@codesourcery.com>
1034
1035         PR c/41182
1036         * c-common.c (c_fully_fold_internal): Strip nops from the result
1037         of recursive calls to c_fully_fold_internal.
1038         (c_wrap_maybe_const): New.
1039         (c_save_expr): Use c_wrap_maybe_const.
1040         * c-common.h (c_wrap_maybe_const): Declare.
1041         * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
1042         build_binary_op): Use c_wrap_maybe_const.
1043
1044 2009-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1045
1046         * real.c: Fix comment to reflect actual exponent size.
1047
1048 2009-10-08  Ben Elliston  <bje@au.ibm.com>
1049
1050         * config/rs6000/a2.md: Add FSF comment header.
1051
1052 2009-10-07  Uros Bizjak  <ubizjak@gmail.com>
1053
1054         * config/i386/i386.md (any_extend): New code iterator.
1055         (u, s): New code attributes.
1056         (sgnprefix): Ditto.
1057         (DWIH): Rewrite as code iterator for SI and DI modes.
1058         (DWI): Rewrite as mode attribute.
1059         (dwi): New mode attribute.
1060         (di): Depend on SI mode and DI mode.
1061         (doubleint_general_operand): Remove mode attribute.
1062
1063         (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
1064         DWIH mode iterator.
1065
1066         (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
1067         (*sub<mode>3_doubleword): Ditto.
1068
1069         (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
1070         using SWIM248 mode iterator.
1071         (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
1072         using SWI48 mode iterator.
1073         (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
1074         patterns using DWIH mode iterator and any_extend code iterator.
1075         (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
1076         using any_extend code iterator.
1077         (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
1078         patterns using DWIH mode iterator and any_extend code iterator.
1079         (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
1080         using any_extend code iterator.
1081         (<s>mul<mode>3_highpart): Macroize expander from
1082         {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
1083         and any_extend code iterator.
1084         (*<s>muldi3_highpart_1): Macroize insn from
1085         *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
1086         (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
1087         patterns using any_extend code iterator.
1088         (*<s>mulsi3_highpart_zext): Macroize insn from
1089         *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
1090
1091 2009-10-07  Jakub Jelinek  <jakub@redhat.com>
1092
1093         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
1094         DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
1095         refering to a DIE with DW_AT_const_value.
1096
1097 2009-10-07  Vladimir Makarov  <vmakarov@redhat.com>
1098
1099         PR middle-end/22072
1100         * ira-lives.c (check_and_make_def_conflict): Process all operands.
1101
1102 2009-10-06  Jan Hubicka  <jh@suse.cz>
1103
1104         * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
1105         correctly.
1106
1107 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
1108
1109         * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
1110         *lea_2_rex64): Move before *add<mode>_1 pattern.
1111
1112 2009-10-07  Jan Hubicka  <jh@suse.cz>
1113
1114         * collect2.c (main): Add -fno-whole-program.
1115         * gcc.c (set_collect_gcc_options): Do not remove whole program here.
1116
1117 2009-10-07  Jan Hubicka  <jh@suse.cz>
1118
1119         * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
1120         has no address taken.
1121         * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
1122         never needed.
1123         (cgraph_clone_node): Clear externally_visible flag for clones.
1124         * cgraph.h (cgraph_only_called_directly_p,
1125         cgraph_can_remove_if_no_direct_calls_p): New predicates.
1126         * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
1127         * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
1128         (ipcp_initialize_node_lattices, ipcp_estimate_growth,
1129         ipcp_insert_stage): Likwise.
1130         * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
1131         externally_visible flag.
1132         (verify_cgraph_node): Verify that inline clones look right.
1133         (process_function_and_variable_attributes): Do not set
1134         externally_visible flags.
1135         (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
1136         been already run.
1137         * lto-cgraph.c (lto_output_node): Assert that inline clones are not
1138         boundaries.
1139         * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
1140         clear externally_visible when turning into inline clones
1141         (cgraph_mark_inline_edge): Use new predicates.
1142         (cgraph_estimate_growth): Likewise.
1143         (cgraph_decide_inlining): Likewise.
1144         * ipa.c (cgraph_postorder): Likewise.
1145         (cgraph_remove_unreachable_nodes): Likewise; sanity check
1146         that inline clones are not needed.
1147         (cgraph_externally_visible_p): New predicate.
1148         (function_and_variable_visibility): Add whole_program parameter;
1149         always set externally_visible flag; handle COMDAT function
1150         privatization.
1151         (local_function_and_variable_visibility): New function.
1152         (gate_whole_program_function_and_variable_visibility): New function.
1153         (whole_program_function_and_variable_visibility): New function.
1154         (pass_ipa_whole_program_visibility): New function.
1155         * passes.c  (init_optimization_passes): Add whole program visibility
1156         pass.
1157         (do_per_function_toporder, function_called_by_processed_nodes_p): Do
1158         not care about needed/reachable flags.
1159         * varpool.c: Include flags.h
1160         (decide_is_variable_needed): When doing LTO assume whole-program mode.
1161         (varpool_finalize_decl): When we are in LTO read-back, all variables
1162         are analyzed.
1163         (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
1164
1165 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1166
1167         * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
1168         add MASK_HARD_DFP.
1169
1170 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1171
1172         * config.gcc: Don't include the makefile fragments intended for
1173         libgcc.
1174         * config/s390/fixdfdi.h: File removed.
1175         * config/s390/libgcc-glibc.ver: File removed.
1176         * config/s390/s390.h: Remove the fixdfdi.h hack.
1177         * config/s390/t-crtstuff: File moved to libgcc dir.
1178         * config/s390/t-linux: Likewise.
1179         * config/s390/t-tpf: libgcc specific parts removed.
1180         * config/s390/t-linux64: Likewise.
1181
1182 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
1183
1184         * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
1185         (lto-compress.o): Likewise.
1186
1187 2009-10-07  Danny Smith  <dannysmith@users.sourceforge.net>
1188
1189         PR target/41512
1190         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
1191         dllexport to class members here.
1192         (i386_pe_determine_dllimport_p): Only check static class data for
1193         definition.
1194         (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
1195         * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
1196         functions for vague linkage.
1197         (i386_pe_type_dllexport_p): Fix formatting.
1198         (maybe_add_dllexport) New function.
1199         (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
1200         to class members.
1201
1202 2009-10-07  Ben Elliston  <bje@au.ibm.com>
1203
1204         * config/rs6000/a2.md: Remove duplicated lines.
1205
1206 2009-10-07  Ben Elliston  <bje@au.ibm.com>
1207
1208         * config.gcc (powerpc*-*-*): Handle a2.
1209         * config/rs6000/rs6000.md (cpu): Add ppca2.  Include "a2.md".
1210         * config/rs6000/a2.md: New file.
1211         * config/rs6000/rs6000.opt (mno-update): New.
1212         (mupdate): Return to using a mask, not a var.
1213         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
1214         (enum processor_type): Add PROCESSOR_PPCA2.
1215         * config/rs6000/rs6000.c (ppca2_cost): New costs.
1216         (rs6000_override_options): Add "a2" to processor_target_table.
1217         Update rs6000_always_hint logic.  Correctly set rs6000_cost for a2.
1218         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
1219
1220 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
1221
1222         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
1223         Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
1224         reference to nonexistent gen_truncxfxf2 function.
1225
1226 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
1227
1228         * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
1229         (DWIH, g, di, doubleint_general_operand): New mode attributes.
1230         (general_operand): Handle TI mode.
1231         (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
1232         using SDWIM mode iterator.
1233         (*add<mode>3_doubleword): New insn_and_split pattern.  Macroize
1234         pattern from *add{di,ti}3_1 patterns and corresponding splitters
1235         using DWI mode iterator.
1236         (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
1237         patterns using SWI mode iterator.
1238         (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
1239         using SWI48 mode iterator.
1240         (*add<mode>_1): Ditto from add{si,di}_1 patterns.
1241         (*add<mode>_2): Ditto from add{si,di}_2 patterns.
1242         (*add<mode>_3): Ditto from add{si,di}_3 patterns.
1243         (*add<mode>_5): Ditto from add{si,di}_5 patterns.
1244         (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
1245         using SDWIM mode iterator.
1246         (*sub<mode>3_doubleword): New insn_and_split pattern.  Macroize
1247         pattern from *sub{di,ti}3_1 patterns and corresponding splitters
1248         using DWI mode iterator.
1249         (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
1250         patterns using SWI mode iterator.
1251         (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
1252         (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
1253         (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
1254         (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
1255         patterns using plusminus code iterator.
1256         (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
1257         sub<mode>3 patterns using plusminus code iterator.
1258         * config/i386/i386.c (override_options): Update the call to
1259         gen_subdi_carry_rex64 for renamed function.
1260         (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
1261         and gen_adddi3_carry_rex64 for renamed functions.  Use indirect
1262         calls to instruction expanders.
1263
1264 2009-10-06  Martin Jambor  <mjambor@suse.cz>
1265
1266         PR bootstrap/41395
1267         * opts.c (decode_options): Run IPA-SRA at -O2.
1268
1269 2009-10-06  Richard Guenther  <rguenther@suse.de>
1270
1271         * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
1272
1273 2009-10-06  Tobias Burnus  <burnus@net-b.de>
1274
1275         PR lto/41591
1276         * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
1277         -flto and -fwhole-program flags can be combined.
1278
1279 2009-10-06  Ryan Mansfield  <rmansfield@qnx.com>
1280
1281         PR driver/41217
1282         * gcc.c (process_command): Check that -o argument was specified.
1283
1284 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
1285
1286         * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
1287
1288 2009-10-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1289
1290         * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
1291         * doc/invoke.texi (Warning Options): Annotate allowed languages
1292         for -Wunsuffixed-float-constants.
1293
1294 2009-10-05  Jakub Jelinek  <jakub@redhat.com>
1295
1296         * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
1297         DW_TAG_{const,volatile}_type if its DW_AT_type already has the
1298         same name and isn't the main variant.
1299
1300         PR debug/41558
1301         * dwarf2out.c (loc_by_reference): Removed.
1302         (dw_loc_list_1): New function.
1303         (dw_loc_list): Remove toplev argument, add want_address argument.
1304         Don't look at decl_by_reference_p at all.  Use dw_loc_list_1.
1305         (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
1306         want_address == 2 to dw_loc_list.  For successful dw_loc_list
1307         set have_address to 1 only if want_address is not 0.
1308
1309 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
1310
1311         * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
1312         * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
1313         a code block followed by two pointers.
1314         (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
1315         * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
1316         (MIPS_MOVE): Likewise.
1317         (MIPS_LUI): Likewise.
1318         (MIPS_JR): Likewise.
1319         (MIPS_BAL): Likewise.
1320         (MIPS_NOP): Likewise.
1321         (mips_asm_trampoline_template): Delete.
1322         (mips_trampoline_code_size): New function.
1323         (mips_trampoline_init): Add shorter sequences for all cases
1324         except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
1325         Calculate the opcodes directly, rather than copying from a template.
1326         Only flush the code part of the trampoline.
1327         (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
1328
1329 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
1330
1331         * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
1332         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
1333         (INCOMING_RETURN_ADDR_RTX): Likewise.
1334         (FUNCTION_PROFILER): Likewise.  Replace GP_REG_FIRST + 1
1335         with AT_REGNUM.
1336         * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
1337         with RETURN_ADDR_REGNUM.
1338         (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
1339         * config/mips/mips.c (mips16_build_call_stub): Replace
1340         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
1341         with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
1342         (mips_print_operand_punctuation): Likewise.
1343         (mips_frame_set): Likewise.
1344         (mips16e_output_save_restore): Likewise.
1345         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
1346         (mips_save_reg_p): Likewise.
1347         (mips_return_addr): Likewise.
1348         (mips_set_return_address): Likewise.
1349         (mips_direct_save_slot_move_p): Likewise.
1350         (mips_output_function_prologue): Likewise.
1351         (mips_restore_reg): Likewise.
1352         (mips_expand_epilogue): Likewise.
1353         (mips_epilogue_uses): Likewise.
1354         * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
1355         (*mov<mode>_ra): Use it instead of a hard-coded 31.
1356         (clear_hazard_<mode>): Likewise.
1357         (call_internal): Likewise.
1358         (call_internal_direct): Likewise.
1359         (call_direct_split): Likewise.
1360         (call_value_internal): Likewise.
1361         (call_value_split): Likewise.
1362         (call_value_internal_direct): Likewise.
1363         (call_value_direct_split): Likewise.
1364         (call_value_multiple_internal): Likewise.
1365         (call_value_multiple_split): Likewise.
1366
1367 2009-10-05  Eric Botcazou  <ebotcazou@adacore.com>
1368             Jakub Jelinek  <jakub@redhat.com>
1369
1370         PR rtl-optimization/41511
1371         * combine.c (record_value_for_reg): Pass explicit values as argument
1372         to get_last_value_validate.
1373         (get_last_value_validate): Document INSN parameter.
1374         For non-readonly MEMs, assume they might have been modified if INSN
1375         was in another basic block.
1376         (get_last_value): Minor reformatting.
1377
1378 2009-10-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1379
1380         PR tree-opt/40992
1381         * final.c (asm_str_count): Split out from asm_insn_count.
1382         * rtl.h (asm_str_count): New prototype.
1383         * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
1384         asm_str_count.
1385
1386 2009-10-05  Sriraman Tallam  <tmsriram@google.com>
1387
1388         * doc/plugins.texi: Change plugin_pass to register_pass_info.
1389
1390 2009-10-05  Basile Starynkevitch  <basile@starynkevitch.net>
1391             Rafael Espindola  <espindola@google.com>
1392
1393         * gengtype.c (write_types): Moved call to write_func_for_structure
1394         into seperate loops.
1395
1396 2009-10-05  Richard Guenther  <rguenther@suse.de>
1397
1398         PR lto/41281
1399         * lto-cgraph.c (output_cgraph): Output toplevel asms.
1400         (input_cgraph_1): Input toplevel asms.
1401
1402 2009-10-05  Richard Guenther  <rguenther@suse.de>
1403
1404         PR lto/40902
1405         * lto-symtab.c (lto_compatible_attributes_p): Remove.
1406         (external_aggregate_decl_p): Likewise.
1407         (lto_symtab_compatible): Re-structure.  Remove dead code.
1408         For variables ignore toplevel qualifiers when comparing types.
1409         Issue warnings, not errors for mismatched user-alignment.
1410
1411 2009-10-05  Richard Guenther  <rguenther@suse.de>
1412
1413         PR lto/41552
1414         PR lto/41487
1415         * lto-symtab.c (struct lto_symtab_base_def): Remove.
1416         (struct lto_symtab_identifier_def): Likewise.
1417         (struct lto_symtab_decl_def): Likewise.
1418         (struct lto_symtab_entry_def): New.
1419         (lto_symtab_identifier_t): Rename to ...
1420         (lto_symtab_entry_t): ... this.
1421         (lto_symtab_decls): Remove.
1422         (lto_symtab_base_hash): Rename to ...
1423         (lto_symtab_entry_hash): ... this.
1424         (lto_symtab_base_eq): Rename to ...
1425         (lto_symtab_entry_eq): ... this.
1426         (lto_symtab_base_marked_p): Rename to ...
1427         (lto_symtab_entry_marked_p): ... this.
1428         (lto_symtab_identifier_marked_p): Remove.
1429         (lto_symtab_decl_marked_p): Likewise.
1430         (lto_symtab_maybe_init_hash_tables): Rename to ...
1431         (lto_symtab_maybe_init_hash_table): ... this.
1432         (lto_symtab_set_resolution_and_file_data): Remove.
1433         (lto_symtab_register_decl): New function.
1434         (lto_symtab_get_identifier): Remove.
1435         (lto_symtab_get): New function.
1436         (lto_symtab_get_resolution): Adjust.
1437         (lto_symtab_get_identifier_decl): Remove.
1438         (lto_symtab_set_identifier_decl): Likewise.
1439         (lto_symtab_merge_decl): Rename to ...
1440         (lto_symtab_merge): ... this.  Rewrite.
1441         (lto_symtab_merge_var): Remove.
1442         (lto_symtab_merge_fn): Likewise.
1443         (lto_symtab_prevailing_decl): Adjust.
1444         (lto_cgraph_replace_node): New function.
1445         (lto_symtab_merge_decls_2): Likewise.
1446         (lto_symtab_merge_decls_1): Likewise.
1447         (lto_symtab_fixup_var_decls): Likewise.
1448         (lto_symtab_resolve_symbols): Likewise.
1449         (lto_symtab_merge_decls): Likewise.
1450         (lto_symtab_prevailing_decl): Adjust.
1451         (lto_symtab_get_symtab_def): Remove.
1452         (lto_symtab_get_file_data): Likewise.
1453         (lto_symtab_clear_resolution): Adjust.
1454         (lto_symtab_clear_resolution): Likewise.
1455         * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
1456         (input_cgraph_1): Likewise.
1457         * lto-streamer-in.c (get_resolution): Do not provide fake
1458         symbol resolutions here.
1459         (deferred_global_decls): Remove.
1460         (lto_register_deferred_decls_in_symtab): Likewise.
1461         (lto_register_var_decl_in_symtab): Change signature, register
1462         variable via lto_symtab_register_decl.
1463         (lto_register_function_decl_in_symtab): Likewise.
1464         (lto_read_tree): Adjust.
1465         * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
1466         (lto_symtab_merge_var): Likewise.
1467         (lto_symtab_merge_fn): Likewise.
1468         (lto_symtab_register_decl): Declare.
1469         (lto_symtab_merge_decls): Likewise.
1470
1471 2009-10-05  Richard Guenther  <rguenther@suse.de>
1472
1473         PR tree-optimization/23821
1474         * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
1475         * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
1476         simple IV increments.
1477
1478 2009-10-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1479
1480         * config/arm/arm.c (arm_override_options): Really initialize
1481         flag_dwarf2_cfi_asm to 0.
1482
1483 2009-10-05  Doug Kwan  <dougkwan@google.com>
1484
1485         PR rtl-optimization/41574
1486         * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
1487         floating point and we are not doing unsafe math optimizations.
1488
1489 2009-10-03  Simon Baldwin  <simonb@google.com>
1490             Cary Coutant  <ccoutant@google.com>
1491             Rafael Espindola  <espindola@google.com>
1492             Richard Guenther  <rguenther@suse.de>
1493             Jan Hubicka  <jh@suse.cz>
1494             Doug Kwan <dougkwan@google.com>
1495             H.J. Lu  <hongjiu.lu@intel.com>
1496             Bill Maddox  <maddox@google.com>
1497             Ryan Mansfield  <rmansfield@qnx.com>
1498             Diego Novillo  <dnovillo@google.com>
1499             Ollie Wild  <aaw@google.com>
1500             Kenneth Zadeck <zadeck@naturalbridge.com>
1501
1502         * lto-cgraph.c: New file.
1503         * lto-compress.c: New file.
1504         * lto-compress.h: New file.
1505         * lto-opts.c: New file.
1506         * lto-section-in.c: New file.
1507         * lto-section-out.c: New file.
1508         * lto-streamer-in.c: New file.
1509         * lto-streamer-out.c: New file.
1510         * lto-streamer.c: New file.
1511         * lto-streamer.h: New file.
1512         * lto-symtab.c: New file.
1513         * lto-wpa-fixup.c: New file.
1514         * lto-wrapper.c: New file.
1515
1516 2009-10-03  Simon Baldwin  <baldwin@google.com>
1517             Ben Elliston  <bje@au.ibm.com>
1518             Rafael Espindola  <espindola@google.com>
1519             Nathan Froyd  <froydnj@codesourcery.com>
1520             Jan Hubicka  <jh@suse.cz>
1521             Doug Kwan  <dougkwan@google.com>
1522             Diego Novillo  <dnovillo@google.com>
1523             Kenneth Zadeck  <zadeck@naturalbridge.com>
1524
1525         * Makefile.in (enable_lto): New.
1526         (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
1527         (LINKER_PLUGIN_API_H): Define.
1528         (LTO_SYMTAB_H): Define.
1529         (LTO_STREAMER_H): Define.
1530         (TREE_VECTORIZER_H): Define.
1531         (INCLUDES): Add LIBELFINC.
1532         (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
1533         lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
1534         lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
1535         (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
1536         (native): Add lto-wrapper$(exeext)
1537         (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
1538         lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
1539         lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
1540         (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
1541         (varasm.o): Add dependency on tree-iterator.h.
1542         (cgraph.o): Add dependency on cif-code.def.
1543         (ipa-reference.o): Add dependency on LTO_STREAMER_H.
1544         (ipa-pure-const.o): Likewise.
1545         (GTFILES): Add lto-symtab.c.
1546         (install-lto-wrapper): New.
1547         * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
1548         and enable_lto.  If LIBELFLIBS is set, define HAVE_libelf.
1549         * config.in: Regenerate.
1550
1551 2009-10-03  Rafael Espindola  <espindola@google.com>
1552             Diego Novillo  <dnovillo@google.com>
1553
1554         * cgraphunit.c (ipa_passes): Prevent lto1 from calling
1555         ipa_write_summaries.
1556         Call execute_ipa_summary_passes for all_regular_ipa_passes and
1557         all_lto_gen_passes.
1558         (cgraph_optimize): Make extern.
1559
1560 2009-10-03  Nathan Froyd  <froydnj@codesourcery.com>
1561             Kenneth Zadeck <zadeck@naturalbridge.com>
1562
1563         * toplev.c (in_lto_p): Declare.
1564         * collect2.c (scan_prog_file): Read all the output when reading
1565         information for LTO.
1566         (enum lto_mode_d): Declare.
1567
1568 2009-10-03  Richard Guenther  <rguenther@suse.de>
1569             Diego Novillo  <dnovillo@google.com>
1570
1571         * gimple.c: Include target.h and alias.h.
1572         (gimple_types): Declare.
1573         (type_hash_cache): Declare.
1574         (gimple_alloc_stat): Make extern.
1575         (gimple_build_eh_must_not_throw): Call
1576         gimple_eh_must_not_throw_set_fndecl.
1577         (struct type_pair_d): Declare.
1578         (type_pair_t): Declare.
1579         (type_pair_hash): New.
1580         (type_pair_eq): New.
1581         (lookup_type_pair): New.
1582         (gimple_force_type_merge): New.
1583         (compare_type_names_p): New.
1584         (compare_field_offset): New.
1585         (gimple_types_compatible_p): New.
1586         (struct sccs): Declare.
1587         (next_dfs_num): Declare.
1588         (iterative_hash_gimple_type): New.
1589         (visit): New.
1590         (iterative_hash_type_name): New.
1591         (iterative_hash_gimple_type): New.
1592         (gimple_type_hash): New.
1593         (gimple_type_eq): New.
1594         (gimple_register_type): New.
1595         (print_gimple_types_stats): New.
1596         (gimple_signed_or_unsigned_type): New.
1597         (gimple_unsigned_type): New.
1598         (gimple_signed_type): New.
1599         (gimple_get_alias_set): New.
1600         (gimple_decl_printable_name): Do not use DMGL_TYPES.
1601         * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
1602         (gimple_force_type_merge): Declare.
1603         (gimple_types_compatible_p): Declare.
1604         (gimple_register_type): Declare.
1605         (print_gimple_types_stats): Declare.
1606         (gimple_unsigned_type): Declare.
1607         (gimple_signed_type): Declare.
1608         (gimple_get_alias_set): Declare.
1609         (gimple_eh_must_not_throw_set_fndecl): New.
1610
1611 2009-10-03  Jan Hubicka  <jh@suse.cz>
1612             Kenneth Zadeck <zadeck@naturalbridge.com>
1613
1614         * ipa-pure-const.c: Include lto-streamer.h.
1615         (register_hooks): Factor out of ...
1616         (generate_summary): ... here.
1617         (pure_const_write_summary): New.
1618         (pure_const_read_summary): New.
1619         (pass_ipa_pure_const): Add pure_const_write_summary and
1620         pure_const_read_summary.
1621         * ipa-reference.c: Include lto-streamer.h.
1622         (add_new_function): New.
1623         (remove_node_data): New.
1624         (duplicate_node_data): New.
1625         (ipa_init): Guard against multiple calls.
1626         Move hook setup from analyze_function.
1627         (write_node_summary_p): New.
1628         (ipa_reference_write_summary): New.
1629         (ipa_reference_read_summary): New.
1630         (pass_ipa_reference): Add ipa_reference_write_summary and
1631         ipa_reference_read_summary.
1632         * cgraph.h (cgraph_local_info): Add field lto_file_data.
1633         (struct cgraph_edge): Add fields lto_stmt_uid and
1634         call_stmt_cannot_inline_p.
1635         (cgraph_optimize): Declare.
1636         (cgraph_decide_is_function_needed): Declare.
1637         (reset_inline_failed): Declare.
1638         (enum LTO_cgraph_tags): Declare.
1639         (LTO_cgraph_tag_names): Declare.
1640         (LCC_NOT_FOUND): Define.
1641
1642 2009-10-03  Doug Kwan  <dougkwan@google.com>
1643             Rafael Espindola  <espindola@google.com>
1644             Jan Hubicka  <jh@suse.cz>
1645             Diego Novillo  <dnovillo@google.com>
1646             Kenneth Zadeck  <zadeck@naturalbridge.com>
1647
1648         * passes.c (all_regular_ipa_passes): New.
1649         (all_ipa_passes): Rename to all_small_ipa_passes.
1650         (init_optimization_passes): Init all_regular_ipa_passes.
1651         * tree-pass.h (all_regular_ipa_passes): New.
1652         (all_ipa_passes): Rename to all_small_ipa_passes.
1653         * passes.c (all_lto_gen_passes): New.
1654         (init_optimization_passes): Initialize all_lto_gen_passes.
1655         (execute_ipa_summary_passes): Make non-static.
1656         (ipa_write_summaries_1): New.
1657         (ipa_write_summaries_2): New.
1658         (ipa_write_summaries): New.
1659         (ipa_write_summaries_of_cgraph_node_set): New.
1660         (ipa_read_summaries_1): New.
1661         (ipa_read_summaries): New.
1662         (execute_ipa_pass_list): Call cgraph_process_new_functions.
1663         (execute_regular_ipa_pass_list): Remove.
1664         (init_optimization_passes): Schedule
1665         pass_rebuild_cgraph_edges and pass_early_inline outside
1666         of pass_all_early_optimizations.  Document reason.
1667         (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
1668         pass_ipa_lto_finish_out): New pass.
1669         (pass_ipa_summary_passes): Start and stop timers if the pass has them.
1670         (execute_all_ipa_transforms): New.
1671         (execute_one_pass): Don't call execute_one_ipa_transform_pass.
1672         (dump_properties, debug_properties): New.
1673         * tree-optimize.c (gate_all_early_local_passes): Return
1674         false if we are in lto1.
1675         (tree_rest_of_compilation): Call execute_all_ipa_transforms.
1676         * tree-pass.h (execute_all_ipa_transforms): Declare.
1677         (pass_ipa_function_and_variable_visibility): Declare.
1678         (pass_ipa_early_inline): Declare.
1679         (pass_ipa_lto_gimple_out): Declare.
1680         (pass_ipa_lto_wpa_fixup): Declare.
1681         (pass_ipa_lto_finish_out): Declare.
1682         (all_small_ipa_passes, all_regular_ipa_passes,
1683         all_lto_gen_passes): Declare.
1684         (execute_ipa_summary_passes): Declare.
1685         (execute_all_ipa_transforms): Declare.
1686         (ipa_write_summaries): Declare
1687         (ipa_write_summaries_of_cgraph_node_set): Declare.
1688         (ipa_read_summaries): Declare.
1689
1690 2009-10-03  Doug Kwan  <dougkwan@google.com>
1691             Ollie Wild  <aaw@google.com>
1692
1693         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
1694
1695         * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
1696         (lto_mode): New variable.
1697         (maybe_run_lto_and_relink): Handle the -fwpa option.
1698         (main): Handle the -fwpa option.
1699         (maybe_unlink_list): New function.
1700         * gcc.c (link_lto_options): Replace -flto with -fwpa.
1701         * common.opt (flto): New flag.
1702         * toplev.c (flag_generate_lto): Declare.
1703
1704 2009-10-03  Simon Baldwin  <simonb@google.com>
1705
1706         * common.opt (flto-compression-level): New flag.
1707
1708         * opts.c: Include lto-opts.h.
1709         (handle_option): Call lto_register_user_option for each
1710         valid option handled.
1711         (decode_options): Clear registered options before the options
1712         handling loop.
1713
1714 2009-10-03  Cary Coutant  <ccoutant@google.com>
1715
1716         * collect2.c (is_elf): New function.
1717         (scan_prog_file): Require LTO object to be in ELF format.
1718
1719 2009-10-03  Rafael Espindola  <espindola@google.com>
1720
1721         * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
1722         libgcc to the linker.
1723
1724         * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
1725
1726         * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
1727         (collect_execute): Add flags argument. Pass flags to pex_run. Update
1728         all callers.
1729         * collect2.h (collect_execute): Add flags argument.
1730         * tlink.c (tlink_execute): Update call to collect_execute.
1731         * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
1732         (use_linker_plugin): New.
1733         (use_linker_plugin_spec_function): New.
1734         (LINK_COMMAND_SPEC): Pass plugin options to the linker.
1735         (linker_plugin_file_spec): New.
1736         (lto_wrapper_spec): New.
1737         (lto_gcc_spec): New.
1738         (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
1739         (static_spec_functions): Add use-linker-plugin.
1740         (process_command): Handle -use-linker-plugin.
1741         (main): Use lto_wrapper_spec instead of lto_wrapper. Set
1742         linker_plugin_file_spec and lto_gcc_spec.
1743         (use_linker_plugin_spec_function): New.
1744
1745 2009-10-03  Richard Guenther  <rguenther@suse.de>
1746
1747         PR lto/41547
1748         PR lto/41548
1749         * tree.h (is_lang_specific): Include LANG_TYPE.
1750         * tree.c (find_decls_types_r): Manually add interesting parts
1751         of TYPE_FIELDS.  Walk BINFO_VIRTUALS.  Do not walk TYPE_METHODS.
1752
1753         * gimple.c (type_pair_hash): Make symmetric.
1754         (type_pair_eq): Likewise.
1755         (lookup_type_pair): Increase initial hashtable size.
1756         (gimple_force_type_merge): Rely on type-pair symmetry.
1757         (visit): Remove excessive checking code.
1758         (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
1759         (gimple_register_type): Remove getenv calls, shrink initial
1760         hashtable size.
1761
1762         PR middle-end/41502
1763         * cgraphunit.c (ipa_passes): Do not remove bodies of extern
1764         inline functions if not generating lto output.
1765
1766         PR lto/41379
1767         * toplev.c (finalize): In WPA mode remove the asm file.
1768
1769 2009-10-03  Doug Kwan  <dougkwan@google.com>
1770
1771         * ipa-inline.c (cgraph_mark_inline): Check
1772         edge->call_stmt_cannot_inline_p instead of calling
1773         gimple_call_cannot_inline_p.
1774         (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
1775         (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
1776         (inline_generate_summary): Do nothing in LTRANS.
1777         * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
1778         exists before calling gimple_call_cannot_inline_p.
1779         (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
1780         (cgraph_clone_edge): Add argument STMT_UID.  Modify all callers.
1781         Update new_edge->lto_stmt_uid.
1782         * cgraphbuild.c (reset_inline_failed): New.
1783
1784         * common.opt (fwpa): New flag.
1785         (fltrans): New option.
1786         * gcc.c (gcc_lto_option_t): New type.
1787         (current_lto_option): New variable.
1788         (lto_single_spec_function): Remove and is replaced by ..
1789         (lto_option_spec_function): New function.
1790         (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
1791         passing the -flto flag.
1792         (cc1_options): Separate non-LTO related parts into ..
1793         (cc1_non_lto_options): Non-LTO related options shared by all FEs.
1794         (lto1_options): New spec for lto FE.
1795         (link_lto_options): New spec for handling LTO flags in linker.
1796         (invoke_lto_single): Re-format to fit in 80 column.  Replace
1797         lto-single with lto-option.
1798         (static_specs): Add cc1_non_lto_options, lto1_options and
1799         link_lto_options.
1800         (static_spec_function): Replace lto-single with lto-option.
1801         (process_command): Handle -flto, -fwpa and -fltran by setting
1802         current_lto_option and not passing it to subprocess unconditionally.
1803
1804 2009-10-03  Bill Maddox  <maddox@google.com>
1805
1806         Add `gcc' driver support for link-time code generation (LTO).
1807
1808         * collect2.c (enum pass): Add new literal PASS_LTOINFO.
1809         (lto_flag, lto_objects, lto_o_file): New variables.
1810         (struct lto_object, struct lto_object_list): New structures.
1811         (collect_exit, handler): Remove LTO temporary output file on exit.
1812         (add_lto_object): New function.
1813         (maybe_run_lto_and_relink): New function. Perform link time code
1814         generation and relinking for object files containing LTO information.
1815         (main): Invoke maybe_run_lto_and_relink().
1816         (dump_argv): New function.  For debugging, currently disabled.
1817         (scan_prog_file): Add LTO information pass.
1818         * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
1819         collect2.
1820         * toplev.c (compile_file): Emit assembler directive to create
1821         the `gnu_lto_v1' marker symbol when compiling with `-flto'.
1822
1823 2009-10-03  Diego Novillo  <dnovillo@google.com>
1824
1825         * c.opt: Add LTO to warn_abi and warn_psabi.
1826
1827         * tree.c (fld_worklist_push): Rename from PUSH.  Convert to static
1828         inline function.  Ignore language-specific nodes.  Update all users.
1829         (find_decls_types_r): Do not traverse the subtrees of
1830         language-specific nodes.  Do not traverse DECL_INITIAL for TYPE_DECLs.
1831         * tree.h (is_lang_specific): New.
1832         * langhooks.h (struct lang_hooks_for_decls): Remove
1833         may_need_assembler_name_p.  Update all users.
1834
1835         * c-common.c (set_builtin_user_assembler_name): Move ...
1836         * builtins.c (set_builtin_user_assembler_name): ... here.
1837         (is_builtin_name): Add comment
1838         (is_builtin_fn): New.
1839         * except.c (output_ttype): Only call
1840         lookup_type_for_runtime if TYPE is not a runtime type.
1841
1842         * passes.c (register_pass): Call position_pass on
1843         all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
1844         * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
1845         (TV_IPA_LTO_DECL_IO): Define.
1846         (TV_IPA_LTO_CGRAPH_IO): Define.
1847         (TV_LTO): Define.
1848         (TV_WHOPR_WPA): Define.
1849         (TV_WHOPR_WPA_IO): Define.
1850         (TV_WHOPR_LTRANS): Define.
1851         (TV_WHOPR_WPA_FIXUP): Define.
1852         (TV_WHOPR_WPA_LTRANS_EXEC): Define.
1853         * tree-cfg.c (tree_node_can_be_shared): Make extern.
1854         * tree-flow.h (tree_node_can_be_shared): Declare.
1855         * tree-inline.c (tree_can_inline_p): Check that E has a
1856         statement associated with it.
1857         * tree.c (free_lang_data_in_binf): Factor out of ...
1858         (free_lang_data_in_type): ... here.
1859         Call RECORD_OR_UNION_TYPE_P.
1860         (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
1861         set.  Call lang_hooks.decls.may_need_assembler_name_p if set.
1862         (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
1863         (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE.  Set
1864         write_symbols to NO_DEBUG.  Set debug_hooks to do_nothing_debug_hooks.
1865         (gate_free_lang_data): Return true if flag_generate_lto is set.
1866         (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
1867         * c-common.h (set_builtin_user_assembler_name): Move ...
1868         * tree.h (set_builtin_user_assembler_name): ... here.
1869
1870         * common.opt (flto-report): New flag.
1871         * opts.c (complain_wrong_lang): Do not complain if running lto1.
1872         * collect2.c (scan_prog_file): Send the error output of
1873         'nm' to HOST_BIT_BUCKET.
1874
1875 2009-10-03  Ollie Wild  <aaw@google.com>
1876
1877         * langhooks-def.h (lhd_begin_section): New function declaration.
1878         (lhd_write_section): New function declaration.
1879         (lhd_end_section): New function declaration.
1880         (LANG_HOOKS_BEGIN_SECTION): New macro.
1881         (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
1882         (LANG_HOOKS_END_SECTION): New macro.
1883         (LANG_HOOKS_LTO): New macro.
1884         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
1885         * langhooks.c (output.h): Add include.
1886         (saved_section): New static variable.
1887         (lhd_begin_section): New function.
1888         (lhd_write_section_data): New function.
1889         (lhd_end_section): New function.
1890         * langhooks.h (struct lang_hooks_for_lto): New structure.
1891         (struct lang_hooks): Add member lto.
1892         * Makefile.in (langhooks.o): Add dependency on output.h.
1893
1894         * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
1895
1896 2009-10-03  Richard Guenther  <rguenther@suse.de>
1897
1898         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
1899         Handle LTO.
1900
1901 2009-10-03  Simon Baldwin  <simonb@google.com>
1902             Richard Guenther  <rguenther@suse.de>
1903             Janis Johnson  <janis187@us.ibm.com>
1904             Doug Kwan  <dougkwan@google.com>
1905             Diego Novillo  <dnovillo@google.com>
1906             Ramana Radhakrishnan  <ramana.r@gmail.com>
1907             Ollie Wild  <aaw@google.com>
1908
1909         * doc/install.texi: Add documentation for libelf and --enable-lto.
1910         * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
1911         -flto-report, -flto-compression-level and -use-linker-plugin.
1912         * doc/sourcebuild.texi: Document use of zlib.  Document lto-plugin.
1913         Add section for LTO Testing.
1914
1915 2009-10-02  Cary Coutant  <ccoutant@google.com>
1916
1917         Add support for comdat type sections for DWARF v4.
1918         Merge from dwarf4 branch.
1919
1920         * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
1921         (dw_die_ref): Define vector type.
1922         (enum dw_val_class): Add dw_val_class_data8.
1923         (struct dw_val_struct): Add v.val_data8.
1924         (comdat_type_node_ref): New type.
1925         (struct die_struct): Move die_symbol into a union; add new field
1926         die_type_node.  Change all uses.
1927         (comdat_type_node): New type.
1928         (skeleton_chain_node): New type.
1929         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
1930         (comdat_type_list): New variable.
1931         (dwarf_tag_name): Add DW_TAG_type_unit.
1932         (dwarf_attr_name): Add DW_AT_signature.
1933         (add_AT_data8): New function.
1934         (replace_child): New function.
1935         (move_all_children): New function.
1936         (print_signature): New function.
1937         (print_die): Print signature information; add dw_val_class_data8.
1938         (attr_checksum): Support dw_val_class_data8.
1939         (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
1940         (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
1941         (checksum_sleb128, checksum_uleb128): New functions.
1942         (checksum_die_context): New function.
1943         (loc_checksum_ordered): New function.
1944         (attr_checksum_ordered): New function.
1945         (struct checksum_attributes): New structure.
1946         (collect_checksum_attributes): New function.
1947         (die_checksum_ordered): New function.
1948         (generate_type_signature): New function.
1949         (same_dw_val_p): Add dw_val_class_data8.
1950         (is_symbol_die): Use new is_declaration_die function.
1951         (is_declaration_die): New function.
1952         (should_move_die_to_comdat): New function.
1953         (clone_die): New function.
1954         (clone_tree): New function.
1955         (clone_as_declaration): New function.
1956         (copy_declaration_context): New function.
1957         (generate_skeleton_ancestor_tree): New function.
1958         (generate_skeleton_bottom_up): New function.
1959         (generate_skeleton): New function.
1960         (remove_child_or_replace_with_skeleton): New function.
1961         (break_out_comdat_types): New function.
1962         (struct decl_table_entry): New type.
1963         (htab_decl_hash): New function.
1964         (htab_decl_eq): New function.
1965         (htab_decl_del): New function.
1966         (copy_ancestor_tree): New function.
1967         (copy_decls_walk): New function.
1968         (copy_decls_for_unworthy_types): New function.
1969         (build_abbrev_table): Don't assert on missing die_symbol when doing
1970         comdat type sections.
1971         (size_of_die): Use DW_FORM_sig8 for external references.  Add
1972         dw_val_class_data8.
1973         (unmark_dies): Don't assert for unmarked dies when doing comdat
1974         type sections.
1975         (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
1976         (output_signature): New function.
1977         (output_die): Likewise.
1978         (output_compilation_unit_header): Mark output as DWARF version 3
1979         even if generating DWARF 4.
1980         (output_comdat_type_unit): New function.
1981         (output_line_info): Mark output as DWARF version 3 even if generating
1982         DWARF 4.
1983         (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
1984         DWARF-4.
1985         (dwarf2out_end_source_file): Likewise.
1986         (prune_unused_types_walk_attribs): Don't follow references into
1987         comdat type sections.
1988         (prune_unused_types_mark): When generating type units, do not mark
1989         children of non-defining declarations of types; do mark children of
1990         type entries.
1991         (prune_unused_types): Process comdat type sections.
1992         (htab_ct_hash): New function.
1993         (htab_ct_eq): New function.
1994         (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
1995         Add a pointer to the line table from type unit entries so
1996         DW_AT_decl_file has meaning.
1997         * varasm.c (default_elf_asm_named_section): Use identifier name as
1998         comdat key instead of lang hook.
1999
2000 2009-10-02  Neil Vachharajani  <nvachhar@google.com>
2001
2002         * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
2003
2004 2009-10-02  Uros Bizjak  <ubizjak@gmail.com>
2005
2006         * config/i386/i386.md (SWIM248): New mode iterator.
2007         (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
2008         divmodhi4 patterns using SWIM248 macro.
2009         (*divmod<mode>4): Macroize insn_and_split pattern from
2010         *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
2011         and their corresponding splitters usign SWIM248 macro.  Split SImode
2012         insn to generate cltd and DImode insn to generate cqto instead of
2013         move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
2014         (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
2015         (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
2016         *divmodsi_noext patterns using SWIM248 macro.
2017         (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
2018         udivmodhi4 patterns using SWIM248 macro.
2019         (*udivmod<mode>4): Macroize insn_and_split pattern from
2020         *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
2021         corresponding splitters using SWIM248 macro.
2022         (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
2023         *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
2024
2025 2009-10-02  Eric Botcazou  <ebotcazou@adacore.com>
2026
2027         * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
2028         of zero-sized element is zero-sized regardless of its extent.
2029
2030 2009-10-02  Jakub Jelinek  <jakub@redhat.com>
2031
2032         PR debug/40521
2033         * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
2034         * configure: Regenerated.
2035         * config.in: Regenerated.
2036         * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
2037         !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
2038         (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
2039         not emitting .eh_frame, emit .cfi_sections .debug_frame
2040         directive.
2041
2042         PR debug/41404
2043         PR debug/41353
2044         * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
2045         CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
2046         with '\0'.
2047         (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
2048         vars use DECL_RTL with resetting it back to NULL afterwards.
2049         * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
2050         rtx_equal_p instead of asserting it is a SYMBOL_REF.
2051         (value_format): For dw_val_class_addr only use DW_FORM_addr if
2052         the attribute type allows it, otherwise use DW_FORM_dataN.
2053         (mem_loc_descriptor): Handle CONST_STRING.
2054         (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
2055         Handle MEM with CONST_STRING address using add_AT_string.
2056         (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
2057         CONST_STRING for const arrays initialized with a string literal.
2058         (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
2059         (dwarf2out_finish): Call resolve_addr.
2060
2061 2009-10-02  Andreas Schwab  <schwab@linux-m68k.org>
2062             Maxim Kuvyrkov  <maxim@codesourcery.com>
2063
2064         * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
2065
2066 2009-10-02  Nick Clifton  <nickc@redhat.com>
2067
2068         * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
2069         (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
2070
2071 2009-10-01  Jan Hubicka  <jh@suse.cz>
2072
2073         * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
2074         (cgraph_create_virtual_clone): Just pass redirect_callers
2075         around.
2076         * cgraph.h (cgraph_clone_node): Update prototype.
2077         * ipa-pure-const.c (self_recursive_p): New function.
2078         (propagate): Use it.
2079         * ipa-inline.c (cgraph_clone_inlined_nodes,
2080         cgraph_decide_recursive_inlining): Update.
2081
2082 2009-10-01  David Daney  <ddaney@caviumnetworks.com>
2083
2084         * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
2085         instructions for TARGET_OCTEON.
2086
2087 2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2088
2089         * config/arm/arm.c (arm_override_options): Turn off
2090         flag_dwarf2_cfi_asm for AAPCS variants.
2091
2092 2009-10-01  Martin Jambor  <mjambor@suse.cz>
2093
2094         PR middle-end/12392
2095         * tree-sra.c (convert_callers): Do not call
2096         compute_inline_parameters on one caller more than once.
2097
2098 2009-10-01  Nick Clifton  <nickc@redhat.com>
2099
2100         * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
2101         an empty string if not already defined.
2102
2103 2009-10-01  Martin Jambor  <mjambor@suse.cz>
2104
2105         PR bootstrap/41395
2106         * tree-sra.c (is_va_list_type): New function.
2107         (find_var_candidates): Call is_va_list_type.
2108         (find_param_candidates): Check that the type or the type pointed
2109         to are not va_list types.
2110
2111 2009-10-01  Martin Jambor  <mjambor@suse.cz>
2112
2113         PR c++/41503
2114         * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
2115         DECL_ARTIFICIAL (param_decl) is true.
2116
2117 2009-09-30  Gabriel Dos Reis  <gdr@cs.tamu.edu>
2118
2119         * tree.h (tree_decl_common::lang_flag_8): New.
2120         * c-common.c (c_common_reswords): Include "constexpr" as C++0x
2121         keyword.
2122         * c-common.h (RID_CONSTEXPR): New.
2123
2124 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
2125
2126         * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
2127         Use ref-all pointers.
2128         (alpha_gimplify_va_arg): Ditto.
2129
2130 2009-09-30  Jakub Jelinek  <jakub@redhat.com>
2131
2132         PR target/41279
2133         * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
2134         before insn counting loop now that BB_END (bb) is counted.  Ensure
2135         the return value isn't zero.
2136
2137 2009-09-30  Nick Clifton  <nickc@redhat.com>
2138
2139         * config.gcc (sh-symbianelf): Replace definition of extra_objs
2140         with separate definitions of c_target_objs and cxx_target_objs.
2141         * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
2142         and symbian-base.o.
2143         * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
2144         sh_symbian_import_export_class.
2145         * config/sh/sh-protos.h: Fix names of exported symbian functions.
2146         * config/sh/symbian.c: Delete, moving code into...
2147         * config/sh/symbian-base.c: ... here
2148         * config/sh/symbian-c.c: ... and here
2149         * config/sh/symbian-cxx.c: ... and here.
2150
2151 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
2152
2153         PR target/22093
2154         * config/alpha/alpha.md (unaligned_storehi_be): Force operand
2155         of plus RTX into register.
2156
2157 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2158
2159         * doc/install.texi: Linguistic and markup fixes.
2160         (Configuration) <--disable-cpp>: Remove description.
2161         <--enable-maintainer-mode>: Autotools files are affected, too.
2162         <--with-sysroot>: Improve description.
2163         (Building): Bump required GNU make version.
2164
2165 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
2166
2167         * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
2168         (x86_64-*-*): Ditto.
2169
2170         * config/i386/fma4intrin.h: New file, provide common x86 compiler
2171         intrinisics for FMA4.
2172         * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
2173         * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
2174         Add FMA4 check and fma4intrin.h.
2175         * config/i386/i386-c.c(ix86_target_macros_internal): Check
2176         ISA_FLAG for FMA4.
2177         * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
2178         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
2179         constant for FMA4 support.
2180         (UNSPEC_FMA4_FMADDSUB): Ditto.
2181         (UNSPEC_FMA4_FMSUBADD): Ditto.
2182         * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
2183         * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
2184         (ix86_expand_fma4_multiple_memory): Ditto.
2185         * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
2186         (OPTION_MASK_ISA_FMA4_UNSET): New.
2187         (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
2188         (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
2189         (ix86_handle_option): Handle -mfma4.
2190         (isa_opts): Handle -mfma4.
2191         (enum pta_flags): Add PTA_FMA4.
2192         (override_options): Add FMA4 support.
2193         (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
2194         (IX86_BUILTIN_VFMADDSD): Ditto.
2195         (IX86_BUILTIN_VFMADDPS): Ditto.
2196         (IX86_BUILTIN_VFMADDPD): Ditto.
2197         (IX86_BUILTIN_VFMSUBSS): Ditto.
2198         (IX86_BUILTIN_VFMSUBSD): Ditto.
2199         (IX86_BUILTIN_VFMSUBPS): Ditto.
2200         (IX86_BUILTIN_VFMSUBPD): Ditto.
2201         (IX86_BUILTIN_VFMADDSUBPS): Ditto.
2202         (IX86_BUILTIN_VFMADDSUBPD): Ditto.
2203         (IX86_BUILTIN_VFMSUBADDPS): Ditto.
2204         (IX86_BUILTIN_VFMSUBADDPD): Ditto.
2205         (IX86_BUILTIN_VFNMADDSS): Ditto.
2206         (IX86_BUILTIN_VFNMADDSD): Ditto.
2207         (IX86_BUILTIN_VFNMADDPS): Ditto.
2208         (IX86_BUILTIN_VFNMADDPD): Ditto.
2209         (IX86_BUILTIN_VFNMSUBSS): Ditto.
2210         (IX86_BUILTIN_VFNMSUBSD): Ditto.
2211         (IX86_BUILTIN_VFNMSUBPS): Ditto.
2212         (IX86_BUILTIN_VFNMSUBPD): Ditto.
2213         (IX86_BUILTIN_VFMADDPS256): Ditto.
2214         (IX86_BUILTIN_VFMADDPD256): Ditto.
2215         (IX86_BUILTIN_VFMSUBPS256): Ditto.
2216         (IX86_BUILTIN_VFMSUBPD256): Ditto.
2217         (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
2218         (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
2219         (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
2220         (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
2221         (IX86_BUILTIN_VFNMADDPS256): Ditto.
2222         (IX86_BUILTIN_VFNMADDPD256): Ditto.
2223         (IX86_BUILTIN_VFNMSUBPS256): Ditto.
2224         (IX86_BUILTIN_VFNMSUBPD256): Ditto.
2225         (enum multi_arg_type): New enum for describing the various FMA4
2226         intrinsic argument types.
2227         (bdesc_multi_arg): New table for FMA4 intrinsics.
2228         (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
2229         (ix86_expand_multi_arg_builtin): New function for creating FMA4
2230         intrinsics.
2231         (ix86_expand_builtin): Add FMA4 intrinsic support.
2232         (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
2233         operand instructions.
2234         (ix86_expand_fma4_multiple_memory): New function to split the
2235         second memory reference from FMA4 instructions.
2236         * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
2237         (ssemodesuffixf2s): Ditto.
2238         (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
2239         instructions.
2240         (fma4_fmsub<mode>4): Ditto.
2241         (fma4_fnmadd<mode>4): Ditto.
2242         (fma4_fnmsub<mode>4): Ditto.
2243         (fma4_vmfmadd<mode>4): Ditto.
2244         (fma4_vmfmsub<mode>4): Ditto.
2245         (fma4_vmfnmadd<mode>4): Ditto.
2246         (fma4_vmfnmsub<mode>4): Ditto.
2247         (fma4_fmadd<mode>4256): Ditto.
2248         (fma4_fmsub<mode>4256): Ditto.
2249         (fma4_fnmadd<mode>4256): Ditto.
2250         (fma4_fnmsub<mode>4256): Ditto.
2251         (fma4_fmaddsubv8sf4): Ditto.
2252         (fma4_fmaddsubv4sf4): Ditto.
2253         (fma4_fmaddsubv4df4): Ditto.
2254         (fma4_fmaddsubv2df4): Ditto.
2255         (fma4_fmsubaddv8sf4): Ditto.
2256         (fma4_fmsubaddv4sf4): Ditto.
2257         (fma4_fmsubaddv4df4): Ditto.
2258         (fma4_fmsubaddv2df4): Ditto.
2259         (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
2260         instructions for intrinsics.
2261         (fma4i_fmsub<mode>4): Ditto.
2262         (fma4i_fnmadd<mode>4): Ditto.
2263         (fma4i_fnmsub<mode>4): Ditto.
2264         (fma4i_vmfmadd<mode>4): Ditto.
2265         (fma4i_vmfmsub<mode>4): Ditto.
2266         (fma4i_vmfnmadd<mode>4): Ditto.
2267         (fma4i_vmfnmsub<mode>4): Ditto.
2268         (fma4i_fmadd<mode>4256): Ditto.
2269         (fma4i_fmsub<mode>4256): Ditto.
2270         (fma4i_fnmadd<mode>4256): Ditto.
2271         (fma4i_fnmsub<mode>4256): Ditto.
2272         (fma4i_fmaddsubv8sf4): Ditto.
2273         (fma4i_fmaddsubv4sf4): Ditto.
2274         (fma4i_fmaddsubv4df4): Ditto.
2275         (fma4i_fmaddsubv2df4): Ditto.
2276         (fma4i_fmsubaddv8sf4): Ditto.
2277         (fma4i_fmsubaddv4sf4): Ditto.
2278         (fma4i_fmsubaddv4df4): Ditto.
2279         (fma4i_fmsubaddv2df4): Ditto.
2280
2281         * doc/invoke.texi (-mfma4): Add documentation.
2282         * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
2283
2284 2009-09-29  Richard Henderson  <rth@redhat.com>
2285
2286         * tree-eh.c (unsplit_eh): Do not unsplit if there's already
2287         an edge to the new destination block.
2288
2289 2009-09-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2290
2291         PR target/41393
2292         * pa.c (hppa_profile_hook): Use
2293         make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
2294
2295 2009-09-29  Steve Ellcey  <sje@cup.hp.com>
2296             Alexander Monakov  <amonakov@ispras.ru>
2297
2298         PR target/41365
2299         * config/ia64/predicates.md (not_postinc_destination_operand): New.
2300         (not_postinc_memory_operand): New.
2301         (not_postinc_move_operand): New.
2302         * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
2303         (*cmovsi_internal): Ditto.
2304
2305 2009-09-29  Pat Haugen  <pthaugen@us.ibm.com>
2306
2307         * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
2308         restrict issue_rate in first pass when scheduling for register
2309         pressure.
2310
2311 2009-09-29  Basile Starynkevitch  <basile@starynkevitch.net>
2312             Rafael Avila de Espindola  <espindola@google.com>
2313
2314         * gengtype.c (plugin_output): New.
2315         (get_output_file_with_visibility): Return plugin_output for plugins.
2316         (main): Parse and use the -P option.
2317         * gty.texi: Update the command line format.
2318
2319 2009-09-29  Jakub Jelinek  <jakub@redhat.com>
2320
2321         PR debug/41438
2322         * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
2323         functions.
2324         (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
2325         out if !const_ok_for_output.
2326
2327         PR debug/41474
2328         * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
2329         case VAR_LOCATION>: Remove gcc_unreachable ().
2330
2331 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
2332
2333         * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
2334         (x86_64-*-*): Ditto.
2335         * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
2336         back to smmintrin.h.
2337         * config/i386/cpuid.h (bit_SSE5): Remove SSE5 bit.
2338         * config/i386/x86intrin.h: Remove SSE5.
2339         * config/i386/mmintrin-common.h: Delete file.
2340         * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
2341
2342 2009-09-29  Richard Guenther  <rguenther@suse.de>
2343
2344         * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
2345         resulting from stack temporaries on STRICT_ALIGNMENT targets.
2346
2347 2009-09-29  Nick Clifton  <nickc@redhat.com>
2348
2349         * function.c (current_function_name): If there is no current
2350         function just return "<none>".
2351
2352 2009-09-28  Sriraman Tallam  <tmsriram@google.com>
2353
2354         * tree-pass.h (register_pass_info): New structure.
2355         (pass_positioning_ops): Move enum from gcc-plugin.h.
2356         (register_pass): New function.
2357         * gcc-plugin.h (plugin_pass): Delete structure.
2358         (pass_positioning_ops): Delete enum.
2359         * plugin.c (regsiter_pass): Delete function.
2360         (position_pass): Delete function.
2361         (added_pass_nodes): Delete variable.
2362         (prev_added_pass_nodes): Delete variable.
2363         (pass_list_node): Delete structure.
2364         * passes.c (make_pass_instance): New function.
2365         (next_pass_1): Change to call make_pass_instance.
2366         (pass_list_node): Move structure from gcc-plugin.h.
2367         (added_pass_nodes): Move variable from plugin.c.
2368         (prev_added_pass_nodes): Move variable from plugin.c.
2369         (position_pass): New function.
2370         (register_pass): New function.
2371
2372 2009-09-28  Easwaran Raman  <eraman@google.com>
2373
2374         * ifcvt.c (noce_try_abs): Recognize pattern and call
2375         expand_one_cmpl_abs_nojump.
2376         * optabs.c (expand_one_cmpl_abs_nojump): New function.
2377         * optabs.h (expand_one_cmpl_abs_nojump): Declare.
2378
2379 2009-09-28  Ian Lance Taylor  <iant@google.com>
2380
2381         PR middle-end/40500
2382         * c-opts.c (c_common_handle_option): Don't set
2383         warn_jump_misses_init for -Wall.
2384         * doc/invoke.texi (Warning Options): Update documentation.
2385
2386 2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2387
2388         * Makefile.in ($(out_object_file)): Depend on
2389         gt-$(basename $(notdir $(out_file))).h.
2390
2391 2009-09-28  Richard Henderson  <rth@redhat.com>
2392
2393         * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
2394         * except.c (gen_eh_region): Set it.
2395         (duplicate_eh_regions_1): Copy it.
2396         * tree-eh.c (lower_resx): Use it to determine which function
2397         to call to resume.
2398
2399         * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
2400         * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
2401         * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
2402         * tree.c (build_common_builtin_nodes): Remove parameter.  Build
2403         BUILT_IN_CXA_END_CLEANUP if necessary.
2404
2405         * c-common.c (c_define_builtins): Update call to
2406         build_common_builtin_nodes.
2407
2408 2009-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2409
2410         * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
2411
2412 2009-09-28  Michael Matz  <matz@suse.de>
2413
2414         * builtins.c (interclass_mathfn_icode): New helper.
2415         (expand_builtin_interclass_mathfn): Use it here, and split folding
2416         into ...
2417         (fold_builtin_interclass_mathfn): ... this new folder.
2418         (build_call_nofold_loc): New static helper.
2419         (build_call_nofold): New wrapper macro for above.
2420         (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
2421         (expand_builtin_pow): Ditto.
2422         (expand_builtin_memset_args): Ditto.
2423         (expand_builtin_printf): Ditto.
2424         (expand_builtin_fprintf): Ditto.
2425         (expand_builtin_sprintf): Ditto.
2426         (expand_builtin_memory_chk): Ditto.
2427         (expand_builtin_mempcpy_args): Ditto and don't call folders.
2428         (expand_builtin_stpcpy): Ditto.
2429         (expand_builtin_strcmp): Ditto.
2430         (expand_builtin_strncmp): Ditto.
2431         (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
2432         (expand_builtin_strcpy_args): Don't call folders.
2433         (expand_builtin_memcmp): Ditto.
2434         (expand_builtin_strncpy): Ditto, and use target.
2435         (expand_builtin_memcpy): Ditto.
2436         (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
2437         expand_builtin_strpbrk, expand_builtin_memmove,
2438         expand_builtin_memmove_args, expand_builtin_bcopy,
2439         expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
2440         expand_builtin_strspn, expand_builtin_strcspn,
2441         expand_builtin_fputs): Remove these.
2442         (expand_builtin): Don't call the above, change calls to other
2443         expanders that changed prototype.
2444         (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
2445         (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
2446         fold_builtin_interclass_mathfn.
2447         (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
2448         (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
2449
2450         * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
2451         * passes.c (init_optimization_passes): Move pass_fold_builtins
2452         after last phiopt pass.
2453         * tree-inline.c (fold_marked_statements): When folding builtins
2454         iterate over all instruction potentially generated.
2455         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
2456         earlier.
2457         (fold_gimple_call): Use it to always fold calls (into potentially
2458         multiple instructions).
2459         * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
2460         calls into zero at this time.
2461         * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
2462         statements generated by builtin folding.
2463
2464 2009-09-28  Nick Clifton  <nickc@redhat.com>
2465
2466         * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
2467
2468 2009-09-28  Duncan Sands  <baldrick@free.fr>
2469
2470         * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
2471         * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
2472         (register_callback): Dispatch it.
2473         (invoke_plugin_callbacks): Incorporate in sanity check.
2474         * ggc.h (ggc_register_cache_tab): Add declaration.
2475         * ggc-common.c (ggc_register_root_tab): Simplify.
2476         (const_ggc_cache_tab_t): New typedef.
2477         (extra_cache_vec): New vector of dynamically added cache tables.
2478         (ggc_register_cache_tab): New function.
2479         (ggc_scan_cache_tab): New function.
2480         (ggc_mark_roots): Simplify dynamic roots.  Handle dynamic caches.
2481         * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
2482
2483 2009-09-27  Richard Henderson  <rth@redhat.com>
2484
2485         * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
2486         which we remove __builtin_stack_restore.
2487
2488 2009-09-27  Bernd Schmidt  <bernd.schmidt@analog.com>
2489
2490         * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
2491         to test for GRD_INVARIANT.
2492         (simple_rhs_p): Anything that's function_invariant_p is fine.
2493
2494 2009-09-27  Rafael Avila de Espindola  <espindola@google.com>
2495
2496         * gengtype.c (main): Use plunge_files instead of plugin_output.
2497
2498 2009-09-27  Basile Starynkevitch  <basile@starynkevitch.net>
2499             Rafael Avila de Espindola  <espindola@google.com>
2500
2501         * gengtype.c (write_root, write_roots): Add a emit_pch argument.
2502         Don't print pch related info if it is false.
2503         (main): Don't print pch info in plugin mode.
2504
2505 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
2506
2507         * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
2508         with dw_val_class_const_double.
2509         (struct dw_val_struct): Replace val_long_long with val_double and
2510         adjust for above change.
2511         (output_loc_operands): Likewise.
2512         (add_AT_long_long): Rename into...
2513         (add_AT_double): ...this.
2514         (print_die): Replace dw_val_class_long_long with
2515         dw_val_class_const_double and adjust.
2516         (attr_checksum): Likewise.
2517         (same_dw_val_p): Likewise.
2518         (size_of_die): Likewise.
2519         (value_format): Likewise.
2520         (output_die): Likewise.
2521         (loc_descriptor) <CONST_DOUBLE>: Likewise.
2522         (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
2523         instead of add_AT_long_long.
2524         (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
2525         value with the precision of its type.
2526
2527 2009-09-27  Andreas Schwab  <schwab@linux-m68k.org>
2528
2529         PR c/41476
2530         * c-typeck.c (build_conditional_expr): Use the readonly and
2531         volatile flags of the operand types, not of the operands itself.
2532
2533 2009-09-27  Peter O'Gorman  <pogma@thewrittenword.com>
2534
2535         * collect2.c (main): Look for -brtl before adding libraries.
2536
2537 2009-09-27  Jonathan Gray  <jsg@openbsd.org>
2538
2539         * config.gcc: Update OpenBSD targets.
2540         * config/openbsd-stdint.h: New file.
2541         * config/openbsd-libpthread.h: New file.
2542         * config/openbsd.h: Update and break out LIB_SPEC definition.
2543         * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
2544         * config/i386/openbsdelf.h: Correct types.
2545         * config/m68k/openbsd.h: Likewise.
2546         * config/mips/openbsd.h: Likewise.
2547         * config/vax/openbsd.h: Likewise.
2548
2549 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
2550
2551         * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
2552         (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
2553         * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
2554         of the length and zero.
2555
2556 2009-09-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2557
2558         * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
2559         (FLAGS_H): Add options.h $(REAL_H).
2560         (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
2561         (TREE_VECTORIZER_H): New.
2562         (EBITMAP_H): Renamed from EBIMAP_H.
2563         (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
2564         (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
2565         (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
2566         (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
2567         (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
2568         (graphite-clast-to-gimple.o, graphite-dependences.o)
2569         (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
2570         (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
2571         (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
2572         (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
2573         (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
2574         (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
2575         (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
2576         (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
2577         (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
2578         updated and fixed as per above changes and per
2579         check_makefile_deps.sh output.
2580
2581         PR bootstrap/40928
2582         * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
2583         * configure: Regenerate.
2584
2585 2009-09-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2586
2587         * doc/install.texi: Update minimum MPC version to 0.7.
2588
2589 2009-09-26  Gerald Pfeifer  <gerald@pfeifer.com>
2590
2591         * doc/install.texi (Binaries): Remove reference to the binary
2592         distribution CD-ROM from the FSF.
2593
2594 2009-09-26  Michael Matz  <matz@suse.de>
2595
2596         PR lto/40758
2597         PR middle-end/41470
2598         * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
2599         that are mentioned in the body.
2600
2601 2009-09-26  Michael Matz  <matz@suse.de>
2602
2603         PR tree-optimization/41454
2604         * tree-ssa-dom (stmts_to_rescan): Remove variable.
2605         (tree_ssa_dominator_optimize): Don't allocate and free it.
2606         (dom_opt_leave_block): Don't iterate over it.
2607         (eliminate_redundant_computations): Don't return a value.
2608         (cprop_operand, cprop_into_stmt): Ditto.
2609         (optimize_stmt): Don't defer updating stmts.
2610
2611 2009-09-25  Dodji Seketeli  <dodji@redhat.com>
2612
2613         * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
2614         generic_parameter_die, template_parameter_pack_die,
2615         gen_formal_parameter_die, gen_subprogram_die): Adjust after
2616         renaming DW_TAG_formal_parameter_pack and
2617         DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
2618         and DW_TAG_GNU_template_parameter_pack.
2619
2620 2009-09-25  Anatoly Sokolov  <aesok@post.ru>
2621
2622         * config/v850/v850.h (FUNCTION_VALUE): Remove.
2623         * config/v850/v850.c (v850_function_value): New function.
2624         (TARGET_FUNCTION_VALUE): Define.
2625
2626 2009-09-25  Jakub Jelinek  <jakub@redhat.com>
2627
2628         * tree-vect-stmts.c (vectorizable_call): Call
2629         mark_symbols_for_renaming after vect_finish_stmt_generation.
2630
2631         * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
2632         to loc_descriptor_from_tree.
2633         (add_location_or_const_value_attribute): Pass 0 instead of 2
2634         for decl_by_reference_p decls.
2635
2636 2009-09-25  Richard Guenther  <rguenther@suse.de>
2637
2638         PR middle-end/41463
2639         * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
2640         arrays again.
2641
2642 2009-09-25  Ben Elliston  <bje@au.ibm.com>
2643
2644         * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
2645         after `power7'.
2646
2647 2009-09-25  Alan Modra  <amodra@bigpond.net.au>
2648
2649         * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
2650         form of instruction.
2651
2652 2009-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2653
2654         PR middle-end/41435
2655         * fold-const.c (const_binop): Handle complex int division.
2656         * tree-complex.c (expand_complex_div_straight,
2657         expand_complex_div_wide): Update comments.
2658
2659 2009-09-24  DJ Delorie  <dj@redhat.com>
2660
2661         PR target/41456
2662         * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
2663         (reg_class): Likewise.
2664         (REG_CLASS_NAMES): Likewise.
2665         * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
2666         (m32c_override_options): Disable -fivopts for M32C.
2667
2668 2009-09-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
2669
2670         * config/rs6000/predicates.md (indexed_or_indirect_operand):
2671         Delete VSX load/store with update support.
2672         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
2673         * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
2674         (vsx_movti): Ditto.
2675         (VSX_U): Delete.
2676         (VSbit): Ditto.
2677         (VStype_load_update): Ditto.
2678         (VStype_store_update): Ditto.
2679         (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
2680         (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
2681
2682         * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
2683         load/store with update builtins.
2684
2685 2009-09-24  Kai Tietz  <kai.tietz@onevision.com>
2686
2687         * libgcc2.c (L_trampoline): Prototype for getpagesize
2688         and mprotect in WINNT case.
2689
2690 2009-09-24  Anatoly Sokolov  <aesok@post.ru>
2691
2692         * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
2693         * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
2694         * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
2695         'outgoing' argument.
2696         (TARGET_FUNCTION_VALUE): Define.
2697
2698 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
2699
2700         * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
2701
2702 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
2703
2704         PR bootstrap/41405
2705         * common.opt: Initialize dwarf_strict to -1.
2706         * toplev.c (process_options): Catch unset dwarf_strict
2707         and set to 0 for all targets not overriding.
2708         * config/darwin.c (darwin_override_options): Catch unset
2709         dwarf_strict and override to 1.
2710
2711 2009-09-24  Jeff Law  <law@redhat.com>
2712
2713         * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
2714
2715 2009-09-24  Richard Guenther  <rguenther@suse.de>
2716
2717         PR tree-optimization/36143
2718         PR tree-optimization/38747
2719         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
2720         create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
2721
2722 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
2723
2724         PR bootstrap/41457
2725         * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
2726         return false instead of gcc_unreachable ().  For CONST return the
2727         value returned by recursive call instead of always returning true.
2728         (tree_add_const_value_attribute): Return the value returned by
2729         add_const_value_attribute instead of always returning true if rtl
2730         is non-NULL.
2731
2732 2009-09-23  Justin Seyster  <jrseys@gmail.com>
2733
2734         * Makefile.in (PLUGIN_HEADERS): Include real.h.
2735
2736 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
2737
2738         * cgraphunit.c (cgraph_lower_function): Revert last change.
2739         * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
2740         instead of DECL_NO_STATIC_CHAIN.
2741         * tree-cfg.c (verify_gimple_call): Likewise.
2742         * tree-nested.c (get_chain_decl, get_chain_field,
2743         convert_tramp_reference_op, convert_gimple_call): Likewise.
2744         (convert_all_function_calls): Likewise.  Always set or clear
2745         DECL_STATIC_CHAIN initially, for !n->outer clear it.
2746         (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
2747         * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
2748         if nested.
2749         * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
2750         DECL_NO_STATIC_CHAIN.
2751         * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
2752         instead of DECL_NO_STATIC_CHAIN.
2753         (ix86_function_regparm, find_drap_reg): Likewise.  Don't test
2754         decl_function_context.
2755         * varasm.c (initializer_constant_valid_p): Likewise.
2756         * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
2757         (DECL_STATIC_CHAIN): ... this.
2758         * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
2759         instead of DECL_NO_STATIC_CHAIN.
2760
2761 2009-09-23  Basile Starynkevitch  <basile@starynkevitch.net>
2762             Rafael Avila de Espindola  <espindola@google.com>
2763
2764         * gengtype.c (nb_plugin_files): Make it unsigned to match
2765         num_gt_files. Adjust other variables to avoid warnings.
2766         (main): Allocate an all zero lang_bitmap before each plugin file name
2767         to match regular file names.
2768
2769 2009-09-23  Richard Henderson  <rth@redhat.com>
2770
2771         * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
2772         (TARGET_STATIC_CHAIN): Mention that this hook must be used for
2773         static chain passed in memory.
2774         * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
2775         * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
2776         STATIC_CHAIN_INCOMING.  Issue a sorry if there's no
2777         STATIC_CHAIN_REGNUM defined.
2778
2779         * config/picochip/picochip-protos.h: s/class/klass/.
2780         * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
2781         (picochip_static_chain): New.
2782         * config/picochip/picochip.h (STATIC_CHAIN): Remove.
2783         (STATIC_CHAIN_INCOMING): Remove.
2784
2785         * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
2786         (xtensa_static_chain): New.
2787         * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
2788         (STATIC_CHAIN_INCOMING): Remove.
2789
2790 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
2791
2792         * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
2793         * config/pa/pa-protos.h (function_value): Remove.
2794         * config/pa/pa.c (pa_function_value): Rename from function_value.
2795         Make static, add 'outgoing' argument.
2796         (TARGET_FUNCTION_VALUE): Define.
2797
2798 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
2799
2800         * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
2801         instead of cfun->machine->is_leaf.
2802         * config/avr/avr.h (machine_function): Remove is_leaf field.
2803
2804 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
2805
2806         PR debug/41439
2807         * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
2808         DW_OP_piece after DW_OP_stack_value, adjust size calculations
2809         for it, when DW_OP_stack_value and DW_OP_implicit_value has
2810         the same size, prefer DW_OP_stack_value.
2811         (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
2812         loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
2813
2814 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
2815
2816         PR debug/41353
2817         * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
2818
2819 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
2820
2821         PR debug/41248
2822         * cfgexpand.c (convert_debug_memory_address): New.
2823         (expand_debug_expr): Convert base address and offset to the same
2824         mode.  Use it to convert addresses to other modes.  Accept
2825         ptr_mode addresses.
2826
2827 2009-09-23  Richard Guenther  <rguenther@suse.de>
2828
2829         * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
2830         produced for bigendian targets with promoted subregs.
2831
2832 2009-09-23  Richard Guenther  <rguenther@suse.de>
2833
2834         * value-prof.c (gimple_ic): Purge old EH edges only after building
2835         the new ones.
2836
2837 2009-09-23  Nick Clifton  <nickc@redhat.com>
2838
2839         * config/arc/arc.c (arc_trampoline_init): Fix typo.
2840
2841 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
2842
2843         PR bootstrap/41405
2844         * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
2845
2846         PR bootstrap/41436
2847         * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
2848         on non-nested functions.
2849
2850 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
2851             Jan Hubicka  <jh@suse.cz>
2852
2853         * dwarf2out.c (loc_list_plus_const): Only define if
2854         DWARF2_DEBUGGING_INFO.
2855         (address_of_int_loc_descriptor): Likewise.
2856
2857         PR debug/41411
2858         * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
2859
2860 2009-09-23  Uros Bizjak  <ubizjak@gmail.com>
2861
2862         PR c/39779
2863         * c-typeck.c (build_binary_op) <short_shift>: Check that integer
2864         constant is more than zero.
2865
2866 2009-09-23  Alan Modra  <amodra@bigpond.net.au>
2867
2868         PR target/40473
2869         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
2870         call final to emit non-scheduled prologue, instead insert at entry.
2871
2872 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
2873             Joseph S. Myers  <joseph@codesourcery.com>
2874
2875         * doc/install.texi (*-*-freebsd*): Add proper format codes.
2876
2877 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
2878             Rafael Avila de Espindola  <espindola@google.com>
2879
2880         * gengtype.c (is_file_equal): New function.
2881         (close_output_files): Use is_file_equal. Free of->buf.
2882
2883 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
2884             Rafael Avila de Espindola  <espindola@google.com>
2885
2886         * gengtype.c (write_types, write_local): Add the output_header
2887         argument. Update all callers.
2888
2889 2009-09-22  Dodji Seketeli  <dodji@redhat.com>
2890
2891         * dwarf2out.c (template_parameter_pack_die,
2892         gen_formal_parameter_pack_die ): New functions.
2893         (make_ith_pack_parameter_name): Remove this function.
2894         (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
2895         DW_TAG_formal_parameter_pack.
2896         (gen_generic_params_dies): Represent each template parameter pack
2897         by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
2898         represented by usual DW_TAG_template_*_parameter DIEs that are
2899         children of the DW_TAG_template_parameter_pack element DIE.
2900         (generic_parameter_die): This doesn't deal with parameter pack
2901         names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
2902         of parameter pack DIEs.
2903         (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
2904         in certain cases, e.g. for pack elements.
2905         (gen_formal_types_die, gen_decl_die): Adjust usage of
2906         gen_formal_parameter_die.
2907         (gen_subprogram_die): Represent each function parameter pack by a
2908         DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
2909         represented by usual DW_TAG_formal_parameter DIEs that are children
2910         of the DW_TAG_formal_parameter_pack DIE. Remove references to
2911         ____builtin_va_alist decls as no part of the compiler uses those
2912         anymore.
2913         * langhooks.h (struct lang_hooks_for_decls): Add
2914         function_parm_expanded_from_pack_p, get_generic_function_decl
2915         and function_parameter_pack_p hooks.  Fix comment for
2916         get_innermost_generic_parms hook.
2917         * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
2918         LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
2919         macros and use them to initialize lang_hook.
2920
2921 2009-09-22  Richard Henderson  <rth@redhat.com>
2922
2923         * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
2924         (TRAMPOLINE_ADJUST_ADDRESS): Poison.
2925         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
2926         on TRAMPOLINE_TEMPLATE.
2927         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
2928         TRAMPOLINE_ADJUST_ADDRESS.
2929         * targhooks.c (default_asm_trampoline_template): Remove.
2930         (default_trampoline_adjust_address): Remove.
2931         (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
2932         * targhooks.h: Update decls.
2933
2934 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
2935
2936         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
2937         * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
2938         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
2939
2940 2009-09-22  Alexandre Oliva  <aoliva@redhat.com>
2941
2942         PR debug/41295
2943         * reload1.c (reload): Reset debug insns with pseudos without
2944         equivalences.
2945
2946 2009-09-22  Janis Johnson  <janis187@us.ibm.com>
2947
2948         * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
2949         unconditional true for decimal float modes.
2950         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
2951         * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
2952
2953 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
2954
2955         * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
2956         Enable a new case for __FreeBSD__ >= 7.
2957         * crtstuff.c:  Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
2958         * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
2959         * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
2960         and USE_LD_AS_NEEDED.
2961
2962         * doc/install.texi (*-*-freebsd*): Update target information.
2963
2964 2009-09-22  Richard Guenther  <rguenther@suse.de>
2965
2966         PR middle-end/41395
2967         * tree-dfa.c (get_ref_base_and_extent): Handle trailing
2968         arrays really properly.
2969
2970 2009-09-22  Richard Henderson  <rth@redhat.com>
2971
2972         PR target/41246
2973         * target.h (struct gcc_target): Add asm_out.trampoline_template,
2974         calls.static_chain, calls.trampoline_init,
2975         calls.trampoline_adjust_address.
2976         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2977         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
2978         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2979         * builtins.c (expand_builtin_setjmp_receiver): Use
2980         targetm.calls.static_chain; only clobber registers.
2981         (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
2982         set up memory attributes properly for the trampoline block.
2983         (expand_builtin_adjust_trampoline): Use
2984         targetm.calls.trampoline_adjust_address.
2985         * calls.c (prepare_call_address): Add fndecl argument.  Use
2986         targetm.calls.static_chain.
2987         * df-scan.c (df_need_static_chain_reg): Remove.
2988         (df_get_entry_block_def_set): Use targetm.calls.static_chain;
2989         consolodate static chain handling.
2990         * doc/tm.texi: Document new hooks.
2991         * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
2992         (init_emit_regs): Don't initialize them.
2993         * expr.h (prepare_call_address): Update decl.
2994         * final.c (profile_function): Use targetm.calls.static_chain.
2995         * function.c (expand_function_start): Likewise.
2996         * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
2997         * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
2998         only clobber registers.
2999         * targhooks.c (default_static_chain): New.
3000         (default_asm_trampoline_template, default_trampoline_init): New.
3001         (default_trampoline_adjust_address): New.
3002         * targhooks.h: Declare them.
3003         * varasm.c (assemble_trampoline_template): Use
3004         targetm.asm_out.trampoline_template.  Make the memory block const
3005         and set its size.
3006
3007         * config/alpha/alpha.c (alpha_trampoline_init): Rename from
3008         alpha_initialize_trampoline.  Make static.  Merge VMS parameter
3009         differences into the TARGET_ABI_OPEN_VMS code block.
3010         (TARGET_TRAMPOLINE_INIT): New.
3011         * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
3012         (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
3013         * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
3014         (INITIALIZE_TRAMPOLINE): Remove.
3015
3016         * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
3017         (TRAMPOLINE_TEMPLATE): Merge with ...
3018         (INITIALIZE_TRAMPOLINE): ... this and move ...
3019         * config/arc/arc.c (arc_trampoline_init): ... here.
3020         (TARGET_TRAMPOLINE_INIT): New.
3021
3022         * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3023         (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
3024         (arm_asm_trampoline_template): New.
3025         (arm_trampoline_init, arm_trampoline_adjust_address): New.
3026         * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
3027         THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
3028         code to arm_asm_trampoline_template.
3029         (TRAMPOLINE_ADJUST_ADDRESS): Move code to
3030         arm_trampoline_adjust_address.
3031         (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
3032         adjust for target hook parameters.
3033
3034         * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
3035         Remove.
3036
3037         * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
3038         * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
3039         (bfin_trampoline_init): Rename from initialize_trampoline;
3040         make static; update for target hook parameters.
3041         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
3042         * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
3043         bfin_asm_trampoline_template.
3044         (INITIALIZE_TRAMPOLINE): Remove.
3045
3046         * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3047         TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
3048         cris_trampoline_init): New.
3049         * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
3050         cris_asm_trampoline_template.
3051         (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
3052         adjust for target hook parameters.
3053
3054         * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
3055
3056         * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3057         TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
3058         fr30_trampoline_init): New.
3059         * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
3060         fr30_asm_trampoline_template.
3061         (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
3062         adjust for target hook parameters.
3063
3064         * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
3065         (frv_trampoline_init): Rename from frv_initialize_trampoline;
3066         make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
3067         * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
3068         * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
3069
3070         * config/h8300/h8300.c (h8300_trampoline_init): New.
3071         (TARGET_TRAMPOLINE_INIT): New.
3072         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
3073         to h8300_trampoline_init and adjust for hook parameters.
3074
3075         * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
3076         * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
3077         (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
3078         make static; adjust for hook parameters.
3079         * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
3080
3081         * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3082         (TARGET_TRAMPOLINE_INIT): New.
3083         (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
3084         * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
3085         iq2000_asm_trampoline_template.
3086         (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
3087         (TRAMPOLINE_CODE_SIZE): New.
3088         (TRAMPOLINE_SIZE): Use it.
3089         (TRAMPOLINE_ALIGNMENT): Follow Pmode.
3090
3091         * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
3092         * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
3093         (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
3094         adjust for hook parameters.
3095         * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
3096
3097         * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
3098         (m32r_trampoline_init): New.
3099         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
3100         m32r_trampoline_init.
3101
3102         * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
3103         (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
3104         make static; update for hook parameters.
3105         * config/m68hc11/m68hc11-protos.h: Update.
3106         * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
3107
3108         * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3109         (TARGET_TRAMPOLINE_INIT): New.
3110         (mcore_function_value): Fix typo.
3111         (mcore_asm_trampoline_template, mcore_trampoline_init): New.
3112         * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
3113         to mcore_asm_trampoline_template.
3114         (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
3115
3116         * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
3117         * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
3118         (mep_trampoline_init): Rename from mep_init_trampoline; make static;
3119         update for hook parameters.
3120         * config/mep/mep-protos.h (mep_init_trampoline): Remove.
3121
3122         * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3123         mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
3124         mips_trampoline_init): New.
3125         * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
3126         mips_asm_trampoline_template.
3127         (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
3128         update for hook parameters.
3129
3130         * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3131         (TARGET_TRAMPOLINE_INIT): New.
3132         (mmix_trampoline_size): Remove.
3133         (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
3134         make static.  Remove out-of-date tetra vs octa comment.
3135         (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
3136         make static; update for hook parameters.
3137         * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
3138         (INITIALIZE_TRAMPOLINE): Remove.
3139         (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
3140         (TRAMPOLINE_ALIGNMENT): New.
3141         * gcc/config/mmix/mmix-protos.h: Update.
3142
3143         * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3144         mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
3145         mn10300_trampoline_init): New.
3146         * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
3147         mn10300_asm_trampoline_template.
3148         (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
3149
3150         * config/moxie/moxie.c (moxie_static_chain,
3151         moxie_asm_trampoline_template, moxie_trampoline_init,
3152         TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
3153         TARGET_TRAMPOLINE_INIT): New.
3154         * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
3155         moxie_trampoline_init.
3156         (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
3157         (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
3158
3159         * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3160         pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
3161         pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
3162         pa_trampoline_adjust_address): New.
3163         * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
3164         pa_asm_trampoline_template.
3165         (TRAMPOLINE_ALIGNMENT): New.
3166         (TRAMPOLINE_CODE_SIZE): Move to pa.c.
3167         (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
3168         adjust for hook parameters.
3169         (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
3170
3171         * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
3172         (TARGET_TRAMPOLINE_INIT): New.
3173         * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
3174         (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
3175
3176         * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
3177
3178         * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
3179         * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
3180         (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
3181         make static; adjust parameters for the hook.
3182         * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
3183
3184         * config/s390/s390.c (s390_asm_trampoline_template): Rename from
3185         s390_trampoline_template; make static.
3186         (s390_trampoline_init): Rename from s390_initialize_trampoline;
3187         make static; adjust for target hook.
3188         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
3189         * config/s390/s390-protos.h: Remove trampoline decls.
3190         * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
3191         (TRAMPOLINE_TEMPLATE): Remove.
3192         (TRAMPOLINE_ALIGNMENT): New.
3193
3194         * config/score/score-protos.h (score_initialize_trampoline): Remove.
3195         * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3196         (TARGET_TRAMPOLINE_INIT): New.
3197         (score_asm_trampoline_template): New.
3198         (score_trampoline_init): Rename from score_initialize_trampoline;
3199         make static; adjust for hook parameters.
3200         * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
3201         score[37]_asm_trampoline_template.
3202         (INITIALIZE_TRAMPOLINE): Remove.
3203         * config/score/score3.c (score3_asm_trampoline_template): New.
3204         (score3_trampoline_init): Rename from score3_initialize_trampoline;
3205         adjust for target hook.
3206         * config/score/score7.c (score7_asm_trampoline_template): New.
3207         (score7_trampoline_init): Rename from score7_initialize_trampoline;
3208         adjust for target hook.
3209         * config/score/score3.h, config/score/score7.h: Update.
3210
3211         * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
3212         * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
3213         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
3214         (sh_trampoline_init): Rename from sh_initialize_trampoline;
3215         make static; adjust for target hook parameters.
3216         (sh_trampoline_adjust_address): New.
3217         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
3218         (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
3219
3220         * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
3221         (sparc32_initialize_trampoline): Rename from
3222         sparc_initialize_trampoline; make static; replace tramp parameter
3223         with m_tramp and update memory accesses.
3224         (sparc64_initialize_trampoline): Similarly.
3225         (sparc_trampoline_init): New.
3226         * config/sparc/sparc-protos.h: Remove trampoline decls.
3227         * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
3228         * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
3229
3230         * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
3231         (array_to_constant): Make ARR parameter const.
3232         (spu_trampoline_init): Rename from spu_initialize_trampoline;
3233         make static; update for hook parameters.
3234         * config/spu/spu-protos.h: Update decls.
3235         * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
3236
3237         * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
3238         from xstormy16_initialize_trampoline; make static; update for
3239         hook parameters.
3240         (TARGET_TRAMPOLINE_INIT): New.
3241         * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
3242
3243         * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3244         (TARGET_TRAMPOLINE_INIT): New.
3245         (v850_can_eliminate): Make static.
3246         (v850_asm_trampoline_template, v850_trampoline_init): New.
3247         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
3248         v850_asm_trampoline_template.
3249         (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
3250         and adjust for target hook parameters.
3251
3252         * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3253         (TARGET_TRAMPOLINE_INIT): New.
3254         (vax_asm_trampoline_template, vax_trampoline_init): New.
3255         * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
3256         vax_asm_trampoline_template.
3257         (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
3258
3259         * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3260         (TARGET_TRAMPOLINE_INIT): New.
3261         (xtensa_asm_trampoline_template): Rename from
3262         xtensa_trampoline_template; make static.
3263         (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
3264         make static; update for hook parameters.
3265         * config/xtensa/xtensa-protos.h: Remove trampoline decls.
3266         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
3267         (INITIALIZE_TRAMPOLINE): Remove.
3268
3269         * config/i386/i386.c (ix86_function_regparm): Do not issue an
3270         error for nested functions with regparm=3.
3271         (ix86_compute_frame_layout): Adjust frame pointer offset for
3272         ix86_static_chain_on_stack.
3273         (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
3274         (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
3275         don't reset to UNITS_PER_WORD.
3276         (ix86_emit_leave): Adjust ix86_cfa_state.
3277         (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
3278         (ix86_static_chain): New.
3279         (ix86_trampoline_init): Rename from x86_initialize_trampoline;
3280         make static; update for target hook parameters; use ix86_static_chain.
3281         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
3282         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
3283         (INITIALIZE_TRAMPOLINE): Remove.
3284         (TRAMPOLINE_SIZE): Use 24 for 64-bit.
3285         (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
3286         to the end.  Add static_chain_on_stack.
3287         (ix86_static_chain_on_stack): New.
3288
3289         * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
3290         (m68k_output_mi_thunk): Don't use static_chain_rtx.
3291         (m68k_trampoline_init): New.
3292         * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
3293         m68k_trampoline_init and adjust for hook parameters.
3294         * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
3295         (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
3296
3297 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
3298
3299         * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
3300         for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
3301
3302         * reload1.c (reload): Call wrap_constant when substituting
3303         reg for equiv inside of DEBUG_INSNs.
3304
3305         PR bootstrap/41405
3306         * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
3307         add_call_src_coords_attributes, add_high_low_attributes,
3308         gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
3309         gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
3310         dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
3311         when -gdwarf-2 -gstrict-dwarf.
3312         (loc_list_from_tree): Likewise.  Avoid using DWARF4 additions when
3313         -gdwarf-[23] -gstrict-dwarf.
3314         (address_of_int_loc_descriptor, loc_descriptor,
3315         loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
3316         DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
3317         * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
3318
3319 2009-09-22  Richard Guenther  <rguenther@suse.de>
3320
3321         PR tree-optimization/41428
3322         * tree-ssa-ccp.c (ccp_fold_stmt): New function.
3323         (ccp_finalize): Pass it to substitute_and_fold.
3324
3325 2009-09-22  Richard Guenther  <rguenther@suse.de>
3326
3327         * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
3328         (substitute_and_fold): Adjust prototype.
3329         * tree-vrp.c (vrp_evaluate_conditional): Make static.
3330         (simplify_stmt_using_ranges): Likewise.
3331         (fold_predicate_in): Move here from tree-ssa-propagate.c.
3332         (vrp_fold_stmt): New function.
3333         (vrp_finalize): Pass it to substitute_and_fold.
3334         * tree-flow.h (vrp_evaluate_conditional): Remove.
3335         (simplify_stmt_using_ranges): Likewise.
3336         * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
3337         * tree-ssa-copy.c (fini_copy_prop): Likewise.
3338         * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
3339         member.
3340         (fold_predicate_in): Move to tree-vrp.c.
3341         (substitute_and_fold): Use the callback instead of calling into
3342         tree-vrp.c functions directly.
3343
3344 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
3345
3346         * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
3347         comparison warning on rs6000.
3348
3349         PR middle-end/41429
3350         * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
3351         GIMPLE_EH_MUST_NOT_THROW cleanup.
3352         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
3353
3354 2009-09-22  Jack Howarth  <howarth@bromo.med.uc.edu>
3355
3356         PR middle-end/41260
3357         * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
3358         * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
3359         LIB_SPEC for darwin10 and later since it always uses the unwinder in
3360         libSystem which is derived from the gcc 4.2.1 unwinder.
3361
3362 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
3363
3364         PR middle-end/41357
3365         * varasm.c (default_encode_section_info): Copy TLS model into
3366         sym_ref flags regardless of backend support for TLS, for all
3367         model types except TLS_MODEL_EMULATED.
3368
3369 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
3370
3371         PR bootstrap/41404
3372         * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
3373         we can handle it correctly.
3374
3375 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
3376
3377         * doc/install.texi (os2): Remove section.
3378
3379 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
3380
3381         * doc/standards.texi (Objective-C): Adjust two URLs.
3382
3383 2009-09-21  Giuseppe Scrivano <gscrivano@gnu.org>
3384
3385         * tree-tailcall.c (process_assignment): Don't check if a
3386         multiplication or an addition are already present.
3387         (find_tail_calls): Combine multiple additions and multiplications.
3388         (adjust_accumulator_values): Emit accumulators.
3389
3390 2009-09-21  Kai Tietz  <kai.tietz@onevision.com>
3391
3392         * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
3393         xmm register restore.
3394
3395 2009-09-21  Jan Hubicka  <jh@suse.cz>
3396
3397         * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
3398         (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
3399         restore at the end.
3400
3401 2009-09-21  Eric Botcazou  <ebotcazou@adacore.com>
3402
3403         * stor-layout.c (layout_type): Remove obsolete code.
3404
3405 2009-09-20  H.J. Lu  <hongjiu.lu@intel.com>
3406
3407         PR middle-end/41395
3408         * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
3409
3410 2009-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3411
3412         PR middle-end/30789
3413         * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
3414         (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
3415         (fold_builtin_2, do_mpc_arg1): Update accordingly.
3416         * fold-const.c (const_binop): Likewise.
3417         * real.h (do_mpc_arg2): Update prototype.
3418
3419 2009-09-20  Jan Hubicka  <jh@suse.cz>
3420
3421         * dwarf2out.c (add_const_value_attribute): Return true if successful.
3422         (add_location_or_const_value_attribute): Rewrite using
3423         loc_list_from_tree.
3424         (tree_add_const_value_attribute): Return true if successful.
3425         (tree_add_const_value_attribute_for_decl): Likewise.
3426
3427         * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
3428         (loc_descriptor): ... here;
3429         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
3430         (cst_pool_loc_descr): Break out from ...; do not reffer constant
3431         pool items that was not marked for output.
3432         (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
3433         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
3434         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
3435         handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
3436         IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
3437         CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
3438         DW_OP_stack_value to get address of items that are not available
3439         as addresses.
3440         (dw_loc_list): Handle single element lists correctly.
3441
3442 2009-09-20  Kai Tietz  <kai.tietz@onevision.com>
3443             Pascal Obry  <obry@adacore.com>
3444
3445         * unwind-dw2-fde.c (classify_object_over_fdes):
3446         Cast the constant 1 to _Unwind_Ptr.
3447         (add_fdes): Likewise.
3448         (linear_search_fdes): Likewise.
3449
3450 2009-09-20  Eric Botcazou  <ebotcazou@adacore.com>
3451
3452         * stor-layout.c (set_sizetype): Avoid useless type copy.
3453
3454 2009-09-20  Richard Sandiford  <rdsandiford@googlemail.com>
3455
3456         * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
3457         feature check.
3458         (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
3459         * configure, config.in: Regenerate.
3460         * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
3461         DW_EH_PE_absptr.
3462         * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
3463         (ASM_PREFERRED_EH_DATA_FORMAT): Define.  Use MIPS_EH_INDIRECT
3464         for global data if the output could be used in a shared library.
3465         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
3466         to 0 if TARGET_WRITABLE_EH_FRAME.
3467
3468 2009-09-20  Paolo Bonzini <bonzini@gnu.org>
3469
3470         PR rtl-optimization/39886
3471         * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
3472         just when insn is equal to BB_END (bb).
3473
3474 2009-09-19  Adam Nemet  <anemet@caviumnetworks.com>
3475
3476         * config/mips/mips.opt (mrelax-pic-calls): New option.
3477         * config/mips/mips.c (mips_strip_unspec_address): Move it up in
3478         the file.
3479         (mips_unspec_call): Change "unspec_call" expander into this.
3480         (mips_strip_unspec_call): New function.
3481         (mips_got_load): Call mips_unspec_call instead of
3482         gen_unspec_call<mode>.
3483         (mips16_build_call_stub): Fix comment for fp_code.  Adjust call to
3484         MIPS_CALL.
3485         (mips_cfg_in_reorg): New function.
3486         (mips16_lay_out_constants): Use it to decide whether to call
3487         CFG-aware insn splitting.
3488         (r10k_insert_cache_barriers): Move CFG set-up code from here to
3489         mips_reorg.  Move DF set-up code from here ...
3490         (mips_df_reorg): ... to here.  Call r10k_insert_cache_barriers
3491         from here.
3492         (mips_reorg): Call mips_df_reorg instead of
3493         r10k_insert_cache_barriers.  Move CFG set-up code here from
3494         r10k_insert_cache_barriers.
3495         (mips_call_expr_from_insn): New function.
3496         (mips_pic_call_symbol_from_set): Likewise.
3497         (mips_find_pic_call_symbol): Likewise.
3498         (mips_annotate_pic_call_expr): Likewise.
3499         (mips_get_pic_call_symbol): Likewise.
3500         (mips_annotate_pic_calls): Likewise.
3501         (mips_override_options): Disable -mrelax-pic-calls unless PIC
3502         calls are used.
3503         (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
3504         * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
3505         * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
3506         directive.
3507         * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
3508         (unspec_call<mode>): Remove it.
3509         (sibcall_internal, sibcall_value_internal,
3510         sibcall_value_multiple_internal, call_internal, call_split,
3511         call_value_internal, call_value_split,
3512         call_value_multiple_internal, call_value_multiple_split): Pass
3513         SIZE_OPNO to MIPS_CALL.
3514         (call_internal_direct, call_direct_split,
3515         call_value_internal_direct, call_value_direct_split): Pass -1 as
3516         SIZE_OPNO to MIPS_CALL.
3517         * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
3518         * configure: Regenerate.
3519         * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
3520         and -mno-relax-pic-calls.
3521         (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
3522
3523 2009-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3524
3525         PR bootstrap/35619
3526         * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
3527         in the directory this rule is called from, rather than the
3528         toplevel 'gcc' directory, to fix in-tree build.
3529
3530 2009-09-19  Chris Demetriou  <cgd@google.com>
3531
3532         PR preprocessor/28435:
3533         * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
3534         to cpplib that the preprocessor output is needed.
3535
3536 2009-09-19  Jakub Jelinek  <jakub@redhat.com>
3537
3538         * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
3539         *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
3540         *return_and_restore_fpregs_<mode>,
3541         *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
3542
3543         PR bootstrap/41397
3544         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
3545         instead of assuming it has always a REG inside of it.
3546
3547 2009-09-18  Gerald Pfeifer  <gerald@pfeifer.com>
3548
3549         * config/freebsd.h: Update comment on types.
3550         (WINT_TYPE): Define.
3551
3552 2009-09-18  Jason Merrill  <jason@redhat.com>
3553
3554         * c.opt: Add -fno-deduce-init-list.
3555
3556 2009-09-18  Neil Vachharajani  <nvachhar@google.com>
3557
3558         * value-prof.c (interesting_stringop_to_profile_p): Added output
3559         argument to indicate which parameter is the size parameter.
3560         * value-prof.c (gimple_stringop_fixed_value): Use
3561         INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
3562         * value-prof.c (gimple_stringops_transform): Update call sites to
3563         INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
3564
3565 2009-09-18  Uros Bizjak  <ubizjak@gmail.com>
3566
3567         PR target/38288
3568         From David Binderman <dcb314@hotmail.com>:
3569         * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
3570         local variable f.  Remove stale comments.
3571         (ix86_compute_frame_layout): Remove useless local variable total_size.
3572         Remove #if 0'd code.
3573         (legitimate_address_p): Remove useless local variables
3574         reason_rtx and reason.
3575         (ix86_split_copysign_const): Remove useless local variable op1.
3576         (scale_counter): Remove useless local variable piece_size_mask.
3577
3578 2009-09-18  Jakub Jelinek  <jakub@redhat.com>
3579
3580         * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
3581         output decl.
3582
3583 2009-09-17  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
3584
3585         PR target/40913
3586         * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
3587
3588 2009-09-17  Jakub Jelinek  <jakub@redhat.com>
3589
3590         * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
3591         TYPE_STUB_DECL.
3592
3593 2009-09-17  Alexandre Oliva  <aoliva@redhat.com>
3594
3595         * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
3596         DW_OP_implicit_value even without dwarf_version 4.
3597
3598 2009-09-17  Jan Hubicka  <jh@suse.cz>
3599
3600         * dwarf2out.c: Include tree-pass.h and gimple.h.
3601         (loc_list_plus_const): New function.
3602         (loc_descriptor_from_tree_1): Rename to ...
3603         (loc_descriptor_from_tree): ... remove original.
3604         (loc_list_from_tree): New function.
3605         (add_AT_location_description): Accept location list.
3606         (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
3607         (concatn_mem_loc_descriptor): Remove.
3608         (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
3609         returning NULL.
3610         (secname_for_decl): Move up.
3611         (hidden_reference_p): New function; break out from ...
3612         (loc_by_refernece): ... here; move up.
3613         (dw_loc_list): New function.
3614         (single_element_loc_list): New function.
3615         (single_element_loc_list_p): New function.
3616         (add_loc_descr_to_each): New function.
3617         (add_loc_list): New function.
3618         (loc_descr_from_tree): Make wraper of loc_list_from_tree.
3619         (loc_list_from_tree): Reroganized from loc_descr_from_tree;
3620         add diagnostics why expansion failed.
3621         (add_location_or_const_value_attribute): Support location lists.
3622         (add_bound_info): Likewise.
3623         (descr_info_loc): Update call of loc_descriptor_from_tree.
3624         (gen_variable_die): Work on location lists.
3625         * final.c (pass_final): Add dump file.
3626         * Makefile.in (dwarf2out.o): Add new dependencies.
3627
3628 2009-09-17  Janis Johnson  <janis187@us.ibm.com>
3629
3630         PR c/41049
3631         * real.c decimal_from_integer, decimal_integer_string): New.
3632         (real_from_integer): Use them as special case for decimal float.
3633         * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
3634         (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
3635         Do not append zero after the decimal point in string to convert.
3636
3637 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
3638
3639         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
3640         for ARRAY_REFs.  Use array_ref_{low,up}_bound to determine bounds.
3641
3642 2009-09-17  Martin Jambor  <mjambor@suse.cz>
3643
3644         * common.opt (fipa-sra): New switch.
3645         * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
3646         * timevar.def (TV_IPA_SRA): New timevar.
3647         * params.def (ipa-sra-ptr-growth-factor): New parameter.
3648         * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
3649         * tree-sra.c: Include cgraph.c.
3650         (enum sra_mode): Added SRA_MODE_EARLY_IPA.
3651         (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
3652         and grp_not_necessarilly_dereferenced.
3653         (func_param_count): New variable.
3654         (encountered_apply_args): New variable.
3655         (bb_dereferences): New variable.
3656         (final_bbs): New variable.
3657         (no_accesses_representant): New variable.
3658         (no_accesses_p): New function.
3659         (dump_access): Dump the new fields.
3660         (sra_initialize): Set encountered_apply_args to false.
3661         (get_ssa_base_param): New function.
3662         (mark_parm_dereference): New function.
3663         (create_access): Caring for INIDRECT_REFs and different handling of
3664         varialble length accesses in early IPA SRA.  Store the stmt - a new
3665         parameter - to the new access.
3666         (build_access_from_expr_1): New parameter stmt, passed to
3667         create_access.  Handle INDIRECT_REFs.
3668         (build_access_from_expr): Pass the current statement to
3669         build_access_from_expr_1.
3670         (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
3671         passes.
3672         (build_accesses_from_assign): Pass the current statement to
3673         build_access_from_expr_1.  Do not create assign links in IPA-SRA.
3674         (scan_function): Call handle_ssa_defs on phi nodes.  Set bits in
3675         final_bbs when necessary.  Check for calls to __builtin_apply_args.
3676         Fixup EH info if anythng was changed.
3677         (is_unused_scalar_param): New function.
3678         (ptr_parm_has_direct_uses): New function.
3679         (find_param_candidates): New function.
3680         (mark_maybe_modified): New function.
3681         (analyze_modified_params): New function.
3682         (propagate_dereference_distances): New function.
3683         (dump_dereferences_table): New function.
3684         (analyze_caller_dereference_legality): New function.
3685         (unmodified_by_ref_scalar_representative): New function.
3686         (splice_param_accesses): New function.
3687         (decide_one_param_reduction): New function.
3688         (enum ipa_splicing_result): New type.
3689         (splice_all_param_accesses): New function.
3690         (get_param_index): New function.
3691         (turn_representatives_into_adjustments): New function.
3692         (analyze_all_param_acesses): New function.
3693         (get_replaced_param_substitute): New function.
3694         (get_adjustment_for_base): New function.
3695         (replace_removed_params_ssa_names): New function.
3696         (sra_ipa_reset_debug_stmts): New function.
3697         (sra_ipa_modify_expr): New function.
3698         (sra_ipa_modify_assign): New function.
3699         (convert_callers): New function.
3700         (modify_function): New function.
3701         (ipa_sra_preliminary_function_checks): New function.
3702         (ipa_early_sra): New function.
3703         (ipa_early_sra_gate): New function.
3704         (pass_early_ipa_sra): New variable.
3705         * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
3706
3707 2009-09-17  Michael Matz  <matz@suse.de>
3708
3709         PR middle-end/41347
3710         * tree.c (build_type_attribute_qual_variant): Export.
3711         * tree.h (build_type_attribute_qual_variant): Declare.
3712         * tree-inline.c (remap_type_1): Use it to build variants with
3713         the original qualifiers and attributes.
3714
3715 2009-09-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3716
3717         * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
3718         without a fallthrough edge.
3719
3720 2009-09-16  DJ Delorie  <dj@redhat.com>
3721
3722         * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
3723         chip and ignore the "fast_interrupt" attribute if so.
3724
3725 2009-09-16  Richard Henderson  <rth@redhat.com>
3726
3727         PR middle-end/41360
3728         * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
3729         barrier fix.
3730
3731 2009-09-16  Richard Henderson  <rth@redhat.com>
3732
3733         PR target/41246
3734         * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
3735         is set only if DECL_NO_STATIC_CHAIN is unset.
3736         * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
3737         (FOR_EACH_NEST_INFO): New.
3738         (walk_all_functions): Use it.
3739         (finalize_nesting_tree): Likewise.
3740         (unnest_nesting_tree): Likewise.
3741         (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
3742         (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
3743         (convert_gimple_call): Early out if gimple_call_chain already set.
3744         (convert_all_function_calls): Iterate until no new functions
3745         require a static chain.
3746         (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
3747         when building a trampoline.  Use dump_function_to_file instead
3748         of dump_function.
3749         (lower_nested_functions): Open dump_file.  Validate that decls
3750         that have DECL_NO_STATIC_CHAIN from the front end don't have that
3751         bit reset by this pass.
3752
3753 2009-09-16  Michael Matz  <matz@suse.de>
3754
3755         PR fortran/41212
3756         * tree.h (struct tree_decl_common): Add decl_restricted_flag,
3757         shorten decl_common_unused.
3758         (DECL_RESTRICTED_P): New accessor.
3759         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
3760         to disambiguate marked decls and restrict pointers.
3761
3762 2009-09-16  Richard Henderson  <rth@redhat.com>
3763
3764         PR middle-end/41360
3765         * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
3766
3767 2009-09-16  Jakub Jelinek  <jakub@redhat.com>
3768
3769         * integrate.c (set_block_abstract_flags): Call
3770         set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
3771
3772 2009-09-16  Richard Guenther  <rguenther@suse.de>
3773
3774         PR middle-end/34011
3775         * tree-flow-inline.h (may_be_aliased): Compute readonly variables
3776         as non-aliased.
3777
3778 2009-09-16  DJ Delorie  <dj@redhat.com>
3779             Kaz Kojima  <kkojima@gcc.gnu.org>
3780
3781         * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
3782         (sh_expand_prologue): Update calls to output_stack_adjust.
3783         (sh_expand_epilogue): Likewise.
3784
3785 2009-09-15  Adam Nemet  <anemet@caviumnetworks.com>
3786
3787         PR bootstrap/41349
3788         * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
3789         trying to limit the extent of searches in the insn stream.
3790
3791 2009-09-15  Nathan Froyd  <froydnj@codesourcery.com>
3792             Jakub Jelinek  <jakub@redhat.com>
3793
3794         PR target/41175
3795         PR target/40677
3796         * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
3797         problem.
3798         (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
3799         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
3800         (rs6000_savres_strategy): Always save FP registers inline if the
3801         target doesn't support hardware double-precision.  Set the above
3802         bits in return value when needed.
3803         (rs6000_savres_routine_sym): Fix computation for cache selector.
3804         Mark the generated symbol as a function.  Rename exitp argument to
3805         lr.  Move code for determining the name of the symbol...
3806         (rs6000_savres_routine_name): ...here.  New function.  Add cases for
3807         getting the names right on AIX and 64-bit Linux.
3808         (savres_routine_name): New variable.
3809         (rs6000_make_savres_rtx): Rename exitp argument to lr.  Don't assert
3810         lr isn't set when savep.  Use r12 resp. r1 instead of r11 depending
3811         on what the target routine uses as a base register.  If savep && lr
3812         describe saving of r0 into memory slot.
3813         (rs6000_emit_prologue): Correct use of call_used_regs.  Fix out of
3814         line calls for AIX ABI.
3815         (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
3816         determine FP save/restore functions.
3817         (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
3818         frame_reg_rtx != sp_reg_rtx.  Use gen_add3_insn instead of
3819         gen_addsi3.
3820         (rs6000_emit_epilogue): Adjust computation of restore_lr.
3821         Duplicate restoration of LR and execute the appropriate one
3822         depending on whether GPRs are being restored inline.  Set r11 from
3823         offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
3824         r11, adjust sp_offset.  Use gen_add3_insn instead of gen_addsi3.
3825         Fix out of line calls for AIX ABI.
3826         * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
3827         New insn.
3828         * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
3829         register 11.
3830         (*restore_gpregs_spe): Likewise.
3831         (*return_and_restore_gpregs_spe): Likewise.
3832         * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
3833         Define to empty string unconditionally.
3834         * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
3835         Define to empty string unconditionally.
3836         (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
3837         !TARGET_64BIT.
3838
3839 2009-09-15  Jan Hubicka  <jh@suse.cz>
3840
3841         * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
3842         * params.def (inline-insns-auto): Likewise.
3843
3844 2009-09-15  Martin Jambor  <mjambor@suse.cz>
3845
3846         * ipa-inline.c (estimate_function_body_sizes): Dump info about
3847         individual statements only at TDF_DETAILS dump level.  Format
3848         source for 80 characters per line.
3849
3850 2009-09-15  Christian Bruel  <christian.bruel@st.com>
3851
3852         * regrename.c (do_replace): Update REG_DEAD notes.
3853
3854 2009-09-15  Revital Eres  <eres@il.ibm.com>
3855
3856         * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
3857         * targhooks.c (default_builtin_support_vector_misalignment):
3858         New builtin function.
3859         * targhooks.h (default_builtin_support_vector_misalignment):
3860         Declare.
3861         * target.h (builtin_support_vector_misalignment):
3862         New field in struct gcc_target.
3863         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
3864         new builtin function.
3865         * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
3866         Define.
3867         * config/rs6000/rs6000.c
3868         (rs6000_builtin_support_vector_misalignment): New function.
3869         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
3870
3871 2009-09-15  Jie Zhang  <jie.zhang@analog.com>
3872
3873         * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
3874         instead of INSN_P.
3875         (bfin_optimize_loop): Likewise.
3876         (bfin_gen_bundles): Likewise.
3877         (workaround_speculation): Likewise.
3878         (find_load): Return NULL_RTX for debug_insn.
3879
3880 2009-09-15  Uros Bizjak  <ubizjak@gmail.com>
3881
3882         * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
3883         (sminsf3): Ditto.
3884
3885 2009-09-14  DJ Delorie  <dj@redhat.com>
3886
3887         * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
3888         * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
3889         VLIW mode.
3890
3891 2009-09-14  Richard Henderson  <rth@redhat.com>
3892             Jakub Jelinek  <jakub@redhat.com>
3893
3894         * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
3895         * cfgbuild.c (make_edges): Handle asm goto.
3896         * cfglayout.c (fixup_reorder_chain): Likewise.
3897         * cfgrtl.c (patch_jump_insn): Likewise.
3898         * gimple-pretty-print.c (dump_gimple_asm): Likewise.
3899         * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
3900         (gimple_build_asm_vec): Add and use labels parameter.
3901         (gimple_build_asm): Remove.
3902         (walk_gimple_asm): Walk labels too.
3903         * gimple.def (GIMPLE_ASM): Update docs.
3904         * gimple.h: Update decls.
3905         (struct gimple_statement_asm): Change nc to use unsigned char;
3906         add nl member.
3907         (gimple_asm_nlabels): New.
3908         (gimple_asm_label_op, gimple_asm_set_label_op): New.
3909         * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
3910         into gimple_build_asm_vec.
3911         * jump.c (mark_jump_label_asm): New.
3912         (mark_jump_label): Use it.
3913         (redirect_jump_1): Handle asm goto.
3914         (invert_jump_1): Soft fail if X is null.
3915         * recog.c (extract_asm_operands): New.
3916         (asm_noperands): Use it; handle asm labels.
3917         (decode_asm_operands): Use extract_asm_operands.
3918         (asm_operand_ok): Properly handle empty string.
3919         * reg-stack.c (get_asm_operands_in_out): Rename from
3920         get_asm_operand_n_inputs; use extract_asm_operands; return both
3921         inputs and outputs by reference; update all callers.
3922         * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
3923         * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
3924         (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
3925         (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
3926         (extract_asm_operands): Declare.
3927         * stmt.c (expand_asm_operands): Add and use labels parameter.
3928         (check_unique_operand_names): Likewise.
3929         (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
3930         (expand_asm_stmt): Handle asm labels.
3931         * tree-cfg.c (make_gimple_asm_edges): New.
3932         (make_edges): Use it.
3933         (cleanup_dead_labels): Handle asm labels.
3934         (is_ctrl_altering_stmt): Likewise.
3935         (gimple_redirect_edge_and_branch): Likewise.
3936         * tree.def (ASM_EXPR): Add 5th operand.
3937         * tree.h (ASM_LABELS): New.
3938         (resolve_asm_operand_names): Update decl.
3939
3940         * c-parser.c (c_parser_asm_statement): Parse asm goto.
3941         (c_parser_asm_goto_operands): New.
3942         * c-tree.h (build_asm_expr): Update decl.
3943         * c-typeck.c (build_asm_expr): Add and use labels parameter.
3944         * doc/extend.texi: Document asm goto.
3945
3946 2009-09-14  Richard Henderson  <rth@redhat.com>
3947
3948         * except.h: Update declarations.
3949         (struct pointer_map_t): Forward declare.
3950         (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
3951         (struct eh_landing_pad_d, eh_landing_pad): New.
3952         (struct eh_catch_d, eh_catch): New.
3953         (struct eh_region_d): Remove next_region_sharing_label, aka,
3954         label, tree_label, landing_pad, post_landing_pad, resume,
3955         may_contain_throw.  Rename region_number to index.  Remove
3956         u.eh_catch, u.eh_throw.  Rename u.eh_try.eh_catch to first_catch.
3957         Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
3958         (VEC(eh_landing_pad,gc)): New.
3959         (struct eh_status): Remove last_region_number.  Add lp_array,
3960         throw_stmt_table, ttype_data, ehspec_data.
3961         (ehr_next, FOR_ALL_EH_REGION_AT): New.
3962         (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
3963         * except.c (lang_protect_cleanup_actions): Return tree.
3964         (struct ehl_map_entry): Remove.
3965         (init_eh_for_function): Push zero entries for region and lp_array.
3966         (gen_eh_region): Add to region_array immediately.
3967         (gen_eh_region_catch): Operate on eh_catch objects.
3968         (gen_eh_landing_pad): New.
3969         (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
3970         (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
3971         (get_eh_region_from_number, get_eh_region_from_number_fn): New.
3972         (get_eh_landing_pad_from_number_fn): New.
3973         (get_eh_landing_pad_from_number): New.
3974         (get_eh_region_from_lp_number_fn): New.
3975         (get_eh_region_from_lp_number): New.
3976         (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
3977         (get_exception_pointer, get_exception_filter): Remove.
3978         (collect_eh_region_array, can_be_reached_by_runtime): Remove.
3979         (current_function_has_exception_handlers): Simplify.
3980         (bring_to_root, eh_region_replaceable_by_p): Remove.
3981         (replace_region, hash_type_list, hash_eh_region): Remove.
3982         (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
3983         (label_to_region_map, num_eh_regions): Remove.
3984         (get_next_region_sharing_label, must_not_throw_labels): Remove.
3985         (find_exception_handler_labels): Remove.
3986         (duplicate_eh_regions_0, find_prev_try): Remove.
3987         (struct duplicate_eh_regions_data): New.
3988         (duplicate_eh_regions_1): Rewrite.
3989         (duplicate_eh_regions): Return a pointer map instead of an
3990         integer offset.
3991         (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
3992         (redirect_eh_edge_to_label): Remove.
3993         (eh_region_outermost): Rewrite using eh_region pointers
3994         instead of integers.
3995         (add_ttypes_entry): Update for ttype_data move to eh_status.
3996         (add_ehspec_entry): Rewrite with VEC instead of varray.
3997         (assign_filter_values): Likewise.  Export.
3998         (build_post_landing_pads, connect_post_landing_pads): Remove.
3999         (dw2_build_landing_pads): Rewrite to use lp_array.
4000         (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
4001         (sjlj_assign_call_site_values): Rewrite to use lp_array.
4002         (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
4003         (sjlj_mark_call_sites): Update for landing pad numbers.
4004         (finish_eh_generation): Rewrite.
4005         (gate_handle_eh): Do nothing for no eh tree.
4006         (pass_rtl_eh): Move up near finish_eh_generation.
4007         (remove_eh_landing_pad): New.
4008         (remove_eh_handler): Export.
4009         (remove_eh_region, remove_eh_handler_and_replace): Remove.
4010         (for_each_eh_label): Rewrite to use lp_array.
4011         (make_reg_eh_region_note): New.
4012         (make_reg_eh_region_note_nothrow_nononlocal): New.
4013         (insn_could_throw_p): New.
4014         (copy_reg_eh_region_note_forward): New.
4015         (copy_reg_eh_region_note_backward): New.
4016         (check_handled, add_reachable_handler): Remove.
4017         (reachable_next_level, foreach_reachable_handler): Remove.
4018         (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
4019         (get_eh_region_and_lp_from_rtx): New.
4020         (get_eh_region_from_rtx): New.
4021         (can_throw_internal_1, can_throw_external_1): Remove.
4022         (can_throw_internal): Use get_eh_region_from_rtx.
4023         (can_throw_external): Use get_eh_region_and_lp_from_rtx.
4024         (insn_nothrow_p, can_nonlocal_goto): New.
4025         (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
4026         (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
4027         (add_action_record): Use VEC not varray.
4028         (collect_one_action_chain): Update for eh_region changes.
4029         (convert_to_eh_region_ranges): Make static.  Use VEC not varray.
4030         Use get_eh_region_and_lp_from_rtx.
4031         (gate_convert_to_eh_region_ranges): New.
4032         (pass_convert_to_eh_region_ranges): Use it.
4033         (push_uleb128, push_sleb128): Use VEC not varray.
4034         (output_one_function_exception_table): Likewise.
4035         (dump_eh_tree): Update for eh_region changes.
4036         (verify_eh_tree): Likewise.
4037         (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
4038         * tree-eh.c: Include target.h.
4039         (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
4040         Don't disallow GIMPLE_RESX; adjust argument check.
4041         (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
4042         (record_stmt_eh_region): Update for landing pad numbers;
4043         generate a landing pad if necessary.
4044         (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
4045         (remove_stmt_from_eh_lp_fn): Similarly.
4046         (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
4047         Update for lp numbers; don't special case missing throw_stmt_table.
4048         (lookup_expr_eh_lp): Similarly.
4049         (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
4050         (eh_seq, eh_region_may_contain_throw): New.
4051         (struct leh_state): Add ehp_region.
4052         (struct leh_tf_state): Remove eh_label.
4053         (emit_post_landing_pad): New.
4054         (emit_resx, emit_eh_dispatch): New.
4055         (note_eh_region_may_contain_throw): New.
4056         (frob_into_branch_around): Take eh_region not eh label;
4057         emit eh code into eh_seq.
4058         (honor_protect_cleanup_actions): Early exit for no actions.  Don't
4059         handle EXC_PTR_EXPR, FILTER_EXPR.  Use gimple_build_eh_must_not_throw,
4060         lower_eh_must_not_throw.  Emit code to eh_seq.
4061         (lower_try_finally_nofallthru): Emit eh code to eh_seq.
4062         (lower_try_finally_onedest): Likewise.
4063         (lower_try_finally_copy): Likewise.
4064         (lower_try_finally_switch): Likewise.
4065         (lower_try_finally): Initialize ehp_region.
4066         (lower_catch): Update for eh_catch objects.
4067         (lower_eh_filter): Don't handle must_not_throw.
4068         (lower_eh_must_not_throw): New.
4069         (lower_cleanup): Don't set eh_label.
4070         (lower_eh_constructs_2): Resolve eh builtins.
4071         Handle GIMPLE_EH_MUST_NOT_THROW.
4072         (lower_eh_constructs): Initialize eh_region_may_contain_throw.
4073         Add eh_seq to the end of the function body.
4074         (make_eh_dispatch_edges): New.
4075         (make_eh_edge): Remove.
4076         (make_eh_edges): Simplify for landing pads.
4077         (redirect_eh_edge_1): New.
4078         (redirect_eh_edge): Use it.
4079         (redirect_eh_dispatch_edge): New.
4080         (stmt_could_throw_p): Use a switch.  Allow RESX.
4081         (stmt_can_throw_external): Use lookup_stmt_eh_lp.
4082         (stmt_can_throw_internal): Likewise.
4083         (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
4084         (maybe_clean_or_replace_eh_stmt): Update for landing pads.
4085         (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
4086         (gate_refactor_eh): New.
4087         (pass_refactor_eh): Use it.
4088         (lower_resx, execute_lower_resx, pass_lower_resx): New.
4089         (lower_eh_dispatch, execute_lower_eh_dispatch): New.
4090         (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
4091         (remove_unreachable_handlers): Rename from
4092         tree_remove_unreachable_handlers; rewrite for landing pads;
4093         call remove_eh_handler directly.
4094         (remove_unreachable_handlers_no_lp): New.
4095         (unsplit_eh, unsplit_all_eh): New.
4096         (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
4097         (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
4098         (cleanup_empty_eh_unsplit): New.
4099         (cleanup_empty_eh): Rewrite.
4100         (cleanup_all_empty_eh): New.
4101         (execute_cleanup_eh): Rename from cleanup_eh.  Remove unreachable
4102         handlers first.  Use unsplit_all_eh, cleanup_all_empty_eh.
4103         (gate_cleanup_eh): New.
4104         (pass_cleanup_eh): Use it.
4105         (verify_eh_edges): Move later in file.  Expect one EH edge.
4106         (verify_eh_dispatch_edge): New.
4107
4108         * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
4109         (gtype-desc.o): Add TARGET_H.
4110         (tree.o): Use EXCEPT_H, not except.h.
4111         (cfgbuild.o): Add EXPR_H.
4112         (GTFILES): Add vecprim.h.
4113         * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
4114         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
4115         * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
4116         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
4117         * calls.c (emit_call_1): Use make_reg_eh_region_note.
4118         * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
4119         calls to can_throw_internal.
4120         (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
4121         (make_edges): Don't handle RESX; use can_nonlocal_goto.
4122         * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
4123         (expand_gimple_stmt): Use make_reg_eh_region_note.
4124         (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
4125         (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
4126         or find_exception_handler_labels.
4127         * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX.  Assert
4128         there is exacly one EH edge.  Use can_nonlocal_goto and
4129         can_throw_internal.
4130         * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
4131         (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
4132         * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
4133         * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
4134         * dce.c (deletable_insn_p_1): Don't test may_trap_p.
4135         (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
4136         * dse.c (scan_insn): Use insn_could_throw_p.
4137         * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
4138         * expr.c (expand_expr_real): Use make_reg_eh_region_note.
4139         (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
4140         * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
4141         EXC_PTR_EXPR or FILTER_EXPR.
4142         (tree_expr_nonzero_warnv_p): Likewise.
4143         * function.h: Include vecprim.h, not varray.h
4144         (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
4145         move ttype_data and ehspec_data members to struct eh_status; change
4146         action_record_data member to a VEC.
4147         * gcse.c (hash_scan_set): Use can_throw_internal.
4148         * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
4149         * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
4150         * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
4151         (block_may_fallthru): Don't handle RESX_EXPR.
4152         * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
4153         (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
4154         (dump_gimple_stmt): Dump landing pad information with TDF_EH;
4155         handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
4156         * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
4157         GIMPLE_EH_DISPATCH, GIMPLE_RESX.
4158         (gimple_size): Likewise.
4159         (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
4160         (gimple_build_resx): Use gimple_build_with_ops.
4161         (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
4162         (is_gimple_val): Likewise.
4163         (is_gimple_stmt): Remove RESX_EXPR.
4164         * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
4165         (GIMPLE_RESX): Reorder with other EH constructs.
4166         * gimple.h (struct gimple_statement_eh_mnt): New.
4167         (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
4168         (gimple_eh_filter_must_not_throw): Remove.
4169         (gimple_eh_filter_set_must_not_throw): Remove.
4170         (gimple_eh_must_not_throw_fndecl): New.
4171         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
4172         (is_gimple_resx): New.
4173         * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
4174         Don't copy EH_FILTER_MUST_NOT_THROW.
4175         * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
4176         * ipa-inline.c (estimate_function_body_sizes): Don't try to
4177         handle must_not_throw_labels specially.
4178         * ipa-pure-const.c (check_call): Update debug statement for LP.
4179         * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
4180         * ipa-utils.c (get_base_var): Likewise.
4181         * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
4182         * lower-subreg.c (move_eh_region_note): Remove.
4183         (resolve_simple_move): Use copy_reg_eh_region_note_forward.
4184         * omp-low.c (new_omp_context): Update for eh_lp_nr.
4185         (create_task_copyfn): Likewise.
4186         (maybe_catch_exception): Use gimple_build_eh_filter.
4187         * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
4188         REG_EH_REGION.  Use make_reg_eh_region_note_nothrow_nononlocal.
4189         * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
4190         and pass_lower_resx.
4191         * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
4192         * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
4193         can_throw_internal, can_nonlocal_goto.
4194         * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
4195         copy_reg_eh_region_note_forward.
4196         (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
4197         (emit_output_reload_insns): Likewise.
4198         (copy_eh_notes): Remove.
4199         * rtl.def (RESX): Remove.
4200         * rtl.h: Update declarations.
4201         * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
4202         * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
4203         (update_eh_label): Remove.
4204         (cleanup_dead_labels_eh): New.
4205         (cleanup_deal_labels): Use it instead of update_eh_label.
4206         (gimple_merge_blocks): Update landing pad data structure when
4207         removing a landing pad label.
4208         (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
4209         test; handle GIMPLE_EH_MUST_NOT_THROW.
4210         (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
4211         (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
4212         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
4213         (verify_stmt): Likewise.  Verify landing pads.
4214         (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
4215         (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
4216         (struct move_stmt_d): Add eh_map.
4217         (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
4218         (move_stmt_r): Remap eh region numbers in builtin calls,
4219         resx and eh_dispatch.
4220         (move_block_to_fn): Remove eh_offset parameter.  Use
4221         maybe_duplicate_eh_stmt_fn.
4222         (find_outermost_region_in_block): Operate on eh_region pointers
4223         instead of region numbers.
4224         (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
4225         duplicate_eh_regions.
4226         * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
4227         test earlier.  Disallow EH landing pads.
4228         * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
4229         * tree-flow.h: Update declarations.
4230         (struct tree_ann_common_d): Replace rn with lp_nr.
4231         * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
4232         (remap_eh_region_nr, remap_eh_region_tree_nr): New.
4233         (remap_gimple_stmt): Remap eh region numbers in builtin calls,
4234         resx and eh_dispatch.
4235         (copy_bb): Use maybe_duplicate_eh_stmt_fn.
4236         (copy_edges_for_bb): Use make_eh_dispatch_edges.
4237         (copy_cfg_body): Expect eh_map instead of eh_region_offset
4238         from duplicate_eh_regions.
4239         (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
4240         update RESX; handle EH_DISPATCH.
4241         (expand_call_inline): Set eh_lp_nr, not eh_region.
4242         (maybe_inline_call_in_expr): Likewise.
4243         * tree-inline.h (struct copy_body_data): Replace eh_region with
4244         eh_lp_nr, eh_region_offset with eh_map.
4245         * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
4246         * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
4247         * tree-pretty-print.c (dump_generic_node): Don't handle
4248         EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
4249         * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
4250         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
4251         EXC_PTR_EXPR, FILTER_EXPR.
4252         * tree-ssa-operands.c (get_expr_operands): Likewise.
4253         * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
4254         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
4255         (ao_ref_init_from_vn_reference): Likewise.
4256         * tree-ssa-sink.c (statement_sink_location): Likewise.
4257         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
4258         (mark_virtual_phi_result_for_renaming): Export.  Tidy.
4259         * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
4260         EXC_PTR_EXPR, FILTER_EXPR.
4261         (is_exception_related): Remove.
4262         (compute_avail): Don't call it.
4263         * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
4264         * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
4265         (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
4266         (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
4267         Build EH builtins.
4268         (build_resx): Remove.
4269         * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
4270         * tree.h: Update declarations.
4271         (EH_FILTER_MUST_NOT_THROW): Remove.
4272         (struct tree_label_decl): Add eh_landing_pad_nr.
4273         (EH_LANDING_PAD_NR): New.
4274         * value-prof.c (gimple_ic): Tidy variable names.  Update for
4275         landing pad numbers.
4276         (gimple_stringop_fixed_value): Tidy variable names.  Assert
4277         that neither call stmt can throw.
4278         * vecprim.h (uchar): New.
4279         (VEC(uchar,heap), VEC(uchar,gc)): New.
4280
4281         * c-common.c (c_define_builtins): Update call to
4282         build_common_builtin_nodes.
4283         * c-parser.c (c_parse_file): Don't call
4284         default_init_unwind_resume_libfunc.
4285
4286 2009-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
4287
4288         * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
4289         (mips_cprestore_address_p): Likewise.
4290         (mips_save_gp_to_cprestore_slot): Likewise.
4291         (mips_restore_gp): Rename to...
4292         (mips_restore_gp_from_cprestore_slot): ...this.
4293         (mips_must_initialize_gp_p): Declare.
4294         (mips_emit_save_slot_move): Likewise.
4295         (mips_output_load_label): Return nothing.
4296         (mips_eh_uses): Declare.
4297         * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
4298         (TARGET_CPRESTORE_DIRECTIVE): New macro.
4299         (TARGET_ABSOLUTE_JUMPS): Likewise.
4300         (EH_USES): Likewise.
4301         (FIRST_PSEUDO_REGISTER): Update comment.
4302         (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
4303         (MIPS_CALL): ...here.
4304         (REGISTER_NAMES): Add $cprestore.
4305         * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
4306         Add load_label_length, has_inflexible_gp_insn_p,
4307         has_flexible_gp_insn_p, must_initialize_gp_p and
4308         must_restore_gp_when_clobbered_p.
4309         (mips_expand_call): Don't generate split instructions here.
4310         (mips_split_call): Update the call to mips_restore_gp after
4311         the above name change.
4312         (mips16_cfun_returns_in_fpr_p): Move earlier in file.
4313         (mips_find_gp_ref): New function.
4314         (mips_insn_has_inflexible_gp_ref_p): Likewise.
4315         (mips_cfun_has_inflexible_gp_ref_p): Likewise.
4316         (mips_insn_has_flexible_gp_ref_p): Likewise.
4317         (mips_cfun_has_flexible_gp_ref_p): Likewise.
4318         (mips_function_has_gp_insn): Delete.
4319         (mips_global_pointer): Drop the df_regs_ever_live_p check.
4320         Use the new functions above.  Only return INVALID_REGNUM
4321         for TARGET_ABSOLUTE_JUMPS.
4322         (mips_must_initialize_gp_p): New function.
4323         (mips_get_cprestore_base_and_offset): New function, extracted from...
4324         (mips_cprestore_slot): ...here.  Take a bool parameter.
4325         (mips_cfun_has_cprestore_slot_p): New function.
4326         (mips_cprestore_address_p): Likewise.
4327         (mips_save_gp_to_cprestore_slot): Likewise.
4328         (mips_restore_gp): Rename to...
4329         (mips_restore_gp_from_cprestore_slot): ...this.  Assert
4330         epilogue_completed.  Update the call to mips_cprestore_slot.
4331         Test cfun->machine->must_restore_gp_when_clobbered_p.
4332         (mips_direct_save_slot_move_p): New function.
4333         (mips_emit_save_slot_move): Likewise.
4334         (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
4335         of cfun->machine->global_pointer.
4336         (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
4337         (mips_save_reg): Use mips_emit_save_slot_move.
4338         (mips_expand_prologue): Set must_initialize_gp_p.
4339         Use mips_cfun_has_cprestore_slot_p.  Use gen_potential_cprestore
4340         for all cprestore saves.  Emit a use_cprestore instruction after
4341         setting up the cprestore slot.
4342         (mips_restore_reg): Use mips_emit_save_slot_move.
4343         (mips_process_load_label): New function.
4344         (mips_load_label_length): Likewise.
4345         (mips_output_load_label): Don't return asm: output it here instead.
4346         Use mips_process_load_label.
4347         (mips_adjust_insn_length): Adjust the length of branch instructions
4348         that have length MAX_PIC_BRANCH_LENGTH.
4349         (mips_output_conditional_branch): Update the call to
4350         mips_output_load_label.  Assume the branch target is OPERANDS[0]
4351         rather than OPERANDS[1].  Use MIPS_ABSOLUTE_JUMP for absolute jumps.
4352         (mips_output_order_conditional_branch): Swap the meaning of
4353         OPERANDS[0] and OPERANDS[1].
4354         (mips_variable_issue): Don't count ghost instructions.
4355         (mips_expand_ghost_gp_insns): New function.
4356         (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
4357         (mips_output_mi_thunk): Set must_initialize_gp_p.
4358         (mips_eh_uses): New function.
4359         * config/mips/predicates.md (cprestore_save_slot_operand)
4360         (cprestore_load_slot_operand): New predicates.
4361         * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
4362         (UNSPEC_MOVE_GP): Likewise.
4363         (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
4364         (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
4365         (CPRESTORE_SLOT_REGNUM): New register.
4366         (MAX_PIC_BRANCH_LENGTH): New constant.
4367         (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
4368         (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
4369         branches.  Fix commentary.
4370         (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
4371         Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
4372         Change type to "ghost".
4373         (loadgp_absolute_<mode>): Likewise.
4374         (loadgp_rtp_<mode>): Likewise.
4375         (copygp_mips16): Likewise.
4376         (loadgp_blockage): Remove redundant mode attribute.
4377         (potential_cprestore): New instruction.
4378         (cprestore): Turn into an unspec set.
4379         (use_cprestore): New instruction.
4380         (*branch_fp): Swap operands 0 and 1.  Remove redundant mode attribute.
4381         (*branch_fp_inverted): Likewise.
4382         (*branch_order<mode>): Likewise.
4383         (*branch_order<mode>_inverted): Likewise.
4384         (*branch_equality<mode>): Likewise.
4385         (*branch_equality<mode>_inverted): Likewise.
4386         (*branch_bit<bbv><mode>): Likewise.
4387         (*branch_bit<bbv><mode>_inverted): Likewise.
4388         (*branch_equality<mode>_mips16): Remove redundant mode.
4389         (jump): Turn into a define_expand.
4390         (*jump_absolute): New instruction.
4391         (*jump_pic): Likewise.
4392         (*jump_mips16): Rename previously-unnamed pattern.  Remove
4393         redundant mode attribute.
4394         (restore_gp): Split on epilogue_completed rather than
4395         reload_completed.  Change type to "ghost".
4396         (move_gp<mode>): New instruction.
4397         * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
4398         Remove redundant mode attribute.
4399         * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
4400         (bc1any4f, bc1any2t, bc1any2f): Likewise.
4401         (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
4402
4403 2009-09-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
4404
4405         PR target/41210
4406         * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
4407         are returned in the same register (vs34 or v2) that Altivec vector
4408         types are returned in.
4409         (rs6000_libcall_value): Ditto.
4410
4411         PR target/41331
4412         * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
4413         instead of explicit addsi3/adddi3 calls.
4414         (rs6000_split_multireg_move): Ditto.
4415         (rs6000_emit_allocate_stack): Ditto.
4416         (rs6000_emit_prologue): Ditto.
4417         (rs6000_output_mi_thunk): Ditto.
4418
4419         * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
4420         size is 64 bits if we can use 64-bit registers.
4421
4422 2009-09-14  Bernd Schmidt  <bernd.schmidt@analog.com>
4423
4424         * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
4425         symbols.
4426
4427         From Jie Zhang <jie.zhang@analog.com>:
4428         * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
4429         save FP and RETS with saveall attribute.
4430         (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
4431         with saveall attribute.
4432
4433         * config/bfin/bfin.c (bfin_expand_builtin,
4434         case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
4435         operands.
4436
4437         From Jie Zhang <jie.zhang@analog.com>:
4438         * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
4439         before use in two places.
4440         * config/bfin/bfin.md (AREG): Define mode iterator.
4441         (reload_in, reload_out): Use mode iterator AREG.
4442
4443 2009-09-14  Richard Guenther  <rguenther@suse.de>
4444
4445         PR middle-end/41350
4446         * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
4447         EH personality path.
4448
4449 2009-09-13  Richard Guenther  <rguenther@suse.de>
4450             Rafael Avila de Espindola  <espindola@google.com>
4451
4452         * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
4453         (LANG_HOOKS_EH_PERSONALITY): Likewise.
4454         (LANG_HOOKS_INITIALIZER): Adjust.
4455         (lhd_pass_through_t): Declare.
4456         * langhooks.h (struct lang_hooks): Add eh_runtime_type and
4457         eh_personality.
4458         * langhooks.c (lhd_pass_through_t): New function.
4459         * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
4460         dwarf2out_begin_prologue): Use personality from current_function_decl.
4461         * expr.h (get_personality_function): Declare.
4462         * expr.c (get_personality_function): New function.
4463         (build_personality_function): Likewise.
4464         * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
4465         (eh_personality_libfunc): Remove.
4466         * optabs.c (build_libfunc_function): New function split out from ...
4467         (init_one_libfunc): ... here.
4468         * tree.h (DECL_FUNCTION_PERSONALITY): New.
4469         (tree_function_decl): Add personality.
4470         (lhd_gcc_personality): Declare.
4471         (build_personality_function): Likewise.
4472         * tree.c (gcc_eh_personality_decl): New.
4473         (lhd_gcc_personality): New function.
4474         * except.h (lang_eh_runtime_type): Remove.
4475         (enum eh_personality_kind): New.
4476         (build_personality_function): Declare.
4477         (function_needs_eh_personality): Declare.
4478         * except.c (lang_eh_runtime_type): Remove.
4479         (function_needs_eh_personality): New function.
4480         (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
4481         (sjlj_emit_function_enter, output_function_exception_table):
4482         Use personality from current_function_decl.
4483         * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
4484         * tree-inline.c (tree_can_inline_p): Do not inline across different
4485         EH personalities.
4486         (expand_call_inline): Likewise.  Adjust the callers EH personality.
4487         (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
4488         * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
4489         * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
4490         (c-parser.o): Likewise
4491         * c-tree.h (c_eh_initialized_p): Remove.
4492         (c_maybe_initialize_eh): Likewise.
4493         * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
4494         (finish_decl): Don't call c_maybe_initialize_eh.
4495         (c_eh_initialized_p): Remove.
4496         (c_maybe_initialize_eh): Likewise.
4497         * c-parser.c (c_parser_omp_construct): Likewise.
4498         (c_parse_file): Initialize exception handling.
4499
4500 2009-09-13  Kai Tietz  <kai.tietz@onevision.com>
4501
4502         * config.gcc (tm_file): Remove i386/biarch32.h
4503         for i?86-w64-mingw* case.
4504         (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
4505         support.
4506         * config.host: Set for x64 mingw the option
4507         use_long_long_for_widest_fast_int to yes.
4508
4509 2009-09-13  Eric Botcazou  <ebotcazou@adacore.com>
4510
4511         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
4512         * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
4513         (dbxout_begin_function): Likewise.
4514         * final.c (dwarf2_debug_info_emitted_p): New predicate.
4515         (final_start_function): Do not emit debug info if DECL_IGNORED_P is
4516         set on the function.
4517         (final_end_function): Likewise.
4518         (final_scan_insn): Likewise.
4519         (rest_of_handle_final): Likewise.
4520         * varasm.c (assemble_start_function): Likewise.
4521         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
4522
4523 2009-09-12  Jason Merrill  <jason@redhat.com>
4524
4525         * dbgcnt.c (dbg_cnt_process_single_pair): constify.
4526         * opts.c (common_handle_option): constify.
4527
4528 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
4529
4530         * doc/install.texi (avr): Remove obsolete reference site.
4531
4532 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
4533
4534         * doc/install.texi (Binaries): Adjust AIX link.
4535
4536 2009-09-12  Akim Demaille  <demaille@gostai.com>
4537
4538         * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
4539         Use an imperative sentence.
4540
4541 2009-09-11  Richard Henderson  <rth@redhat.com>
4542
4543         * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
4544         structure-name and has-tree-operands arguments; update all entries.
4545         * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
4546         update all entries.
4547         * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
4548         (gsstruct_code_size): New.
4549         (gss_for_code_): New.
4550         (gss_for_code): Remove.
4551         (gimple_size): Rewrite using gsstruct_code_size.
4552         (gimple_statement_structure): Move to gimple.h.
4553         * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
4554         (gss_for_code, gimple_statement_structure): New.
4555         (gimple_ops): Use new arrays; tidy.
4556
4557 2009-09-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4558
4559         * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
4560         operand to be a PLUS expression.
4561         * config/pa/pa.c (pa_secondary_reload): Likewise.
4562
4563 2009-09-11  Jakub Jelinek  <jakub@redhat.com>
4564
4565         * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
4566
4567         * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
4568         XEXP (in_rtx, 8).
4569
4570 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
4571
4572         From Jie Zhang <jie.zhang@analog.com>:
4573         * doc/extend.texi (node Function Attributes): Document l2
4574         function attribute.
4575         (node Blackfin Variable Attributes): Document l2 variable attributes.
4576
4577 2009-09-11  Loren J. Rittle  <ljrittle@acm.org>
4578
4579         * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
4580         to match the system compiler's configuration at inflection point.
4581         Add comment to remark a remaining difference with system compiler.
4582
4583         * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
4584         * configure: Regenerate.
4585
4586 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
4587
4588         From Jie Zhang <jie.zhang@analog.com>:
4589         * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
4590         (bfin_handle_l2_attribute): New.
4591         (bfin_attribute_table): Add l2 attribute.
4592
4593 2009-09-11  Michael Matz  <matz@suse.de>
4594
4595         PR middle-end/41275
4596         * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
4597         on the local_decls list.
4598
4599 2009-09-11  Alexandre Oliva  <aoliva@redhat.com>
4600
4601         PR debug/41276
4602         PR debug/41307
4603         * cselib.c (cselib_expand_value_rtx_cb): Document callback
4604         interface.
4605         (cselib_expand_value_rtx_1): Use callback for SUBREGs.  Adjust
4606         for VALUEs, to implement the documented interface.
4607         * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
4608         Adjust for VALUEs and anything else, to implement the
4609         documented interface.
4610
4611 2009-09-10  Nathan Froyd  <froydnj@codesourcery.com>
4612
4613         * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
4614         with actual SPE/paired vector modes before using 64-bit alignment.
4615         Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
4616
4617 2009-09-10  DJ Delorie  <dj@redhat.com>
4618
4619         * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
4620         emitted.
4621
4622         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
4623         * config/mep/mep.c (mep_legitimate_constant_p): New.
4624         * config/mep/mep-protos.h: Prototype it.
4625
4626 2009-09-10  Richard Henderson  <rth@redhat.com>
4627
4628         * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
4629
4630 2009-09-10  Jason Merrill  <jason@redhat.com>
4631
4632         * tree.c (chain_index): New fn.
4633         * tree.h: Declare it.
4634
4635 2009-09-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4636
4637         * config/sol2-c.c (cmn_err_length_specs): Initialize
4638         scalar_identity_flag.
4639
4640 2009-09-10  Richard Henderson  <rth@redhat.com>
4641
4642         * tree.h (struct tree_decl_common): Move align member earlier;
4643         move label_decl_uid member ...
4644         (struct tree_label_decl): ... here.
4645         (LABEL_DECL_UID): Update to match.
4646
4647         * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
4648         not TDF_DETAILS.
4649
4650         * tree-cfg.c (gimple_redirect_edge_and_branch): Do
4651         gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
4652
4653         * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
4654         dest_prev if the edge is complex.
4655
4656         * tree-cfg.c (is_ctrl_stmt): Use a switch.
4657
4658         * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
4659         loop latch tests earlier.
4660
4661         * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
4662         before GIMPLE_RETURN, not after its predecessor; insert
4663         before GIMPLE_RESX.
4664
4665         * gimple-iterator.c (gimple_find_edge_insert_loc): Use
4666         gimple_seq_empty_p to test for no PHI nodes.
4667         * tree-cfg.c (split_critical_edges): Likewise.
4668
4669         * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
4670
4671 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
4672
4673         * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
4674         introduced by the VTA branch merge.
4675
4676 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
4677
4678         * ira-conflicts.c: Use fputs or putc instead of fprintf
4679         where appropriate.
4680         * cfg.c: Ditto.
4681         * toplev.c: Ditto.
4682         * tree-switch-conversion.c: Ditto.
4683
4684 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
4685
4686         * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
4687         introduced by the VTA branch merge.
4688
4689 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
4690
4691         Revert:
4692         2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
4693
4694         PR rtl-optimization/39779
4695         * expr.c (convert_modes): Return when mode == oldmode after
4696         CONST_INTs are processed.
4697
4698 2009-09-10  Nick Clifton  <nickc@redhat.com>
4699
4700         * config/mep/mep.c (mep_encode_section_info): Copy weakness
4701         attribute and referring decl when creating renamed symbol.
4702
4703 2009-09-10  Richard Guenther  <rguenther@suse.de>
4704
4705         PR middle-end/41257
4706         * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
4707         reachable nodes.
4708         (cgraph_finalize_compilation_unit): Compute reachability
4709         before emitting thunks.  Properly process aliases before
4710         possibly removing unreachable nodes.
4711
4712 2009-09-10  Richard Guenther  <rguenther@suse.de>
4713
4714         PR middle-end/41254
4715         * tree.c (struct free_lang_data_d): Add worklist member.
4716         (find_decls_types_r): Push onto the worklist instead of recursing.
4717         Handle TREE_BINFOs properly.
4718         (find_decls_types): New function wrapped around find_decls_types_r
4719         to process the worklist.
4720         (find_decls_types_in_eh_region): Use it.
4721         (find_decls_types_in_node): Likewise.
4722         (find_decls_types_in_var): Likewise.
4723         (free_lang_data_in_cgraph): Likewise.  Free the worklist.
4724         * tree.h (RECORD_OR_UNION_TYPE_P): New.
4725         (AGGREGATE_TYPE_P): Adjust.
4726
4727 2009-09-09  Jason Merrill  <jason@redhat.com>
4728
4729         * configure.ac: Check glibc version even if we have an in-tree
4730         assembler.
4731
4732 2009-09-09  Anthony Green  <green@moxielogic.com>
4733
4734         * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
4735         the constant 0 when appropriate.
4736         * config/moxie/constraints.md: Add constraint O.
4737
4738         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
4739         to pass up to 6 32-bit argument values in registers.
4740         (moxie_function_arg): Ditto.
4741         (moxie_arg_partial_bytes): Ditto.
4742         * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
4743         (REG_PARM_STACK_SPACE): Ditto.
4744         (FUNCTION_ARG_REGNO_P): Ditto.
4745
4746         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
4747         instruction to allocate stack space.
4748
4749 2009-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
4750
4751         * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
4752         unnecessarily stringent constraints.  Fix address
4753         calculation in the splitters.
4754
4755 2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
4756
4757         PR rtl-optimization/39779
4758         * expr.c (convert_modes): Return when mode == oldmode after
4759         CONST_INTs are processed.
4760
4761 2009-09-09  Kai Tietz  <kai.tietz@onevision.com>
4762
4763         PR/41315
4764         * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
4765         (ix86_expand_prologue): Take frame.padding0 into logic of
4766         to_allocate checks.
4767         (ix86_expand_epilogue): Likewise.
4768
4769 2009-09-09  Jakub Jelinek  <jakub@redhat.com>
4770
4771         * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
4772         New variables.
4773         (SHLIB_LINK, SHLIB_INSTALL): Use them.
4774         * config/t-slibgcc-libgcc: New file.
4775         * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
4776
4777 2009-09-09  Martin Jambor  <mjambor@suse.cz>
4778
4779         PR tree-optimization/41089
4780         * tree-sra.c (find_var_candidates): Do not consider va_lists in
4781         early SRA.
4782
4783 2009-09-09  Richard Henderson  <rth@redhat.com>
4784
4785         * gimple.h (CASE_GIMPLE_OMP): New.
4786         (is_gimple_omp): Use it.
4787         * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
4788         (verify_gimple_debug): Likewise.
4789
4790 2009-09-09  Richard Guenther  <rguenther@suse.de>
4791
4792         PR tree-optimization/41101
4793         * tree-ssa-pre.c (maximal_set): Remove.
4794         (compute_antic_aux): Treat the maximal set as implicitly all ones.
4795         Defer all blocks we didn't visit at least one successor.
4796         (add_to_exp_gen): Do not add to the maximal set.
4797         (make_values_for_phi): Likewise.
4798         (compute_avail): Likewise.
4799         (init_pre): Do not allocate the maximal set.
4800         (execute_pre): Do not dump it.
4801
4802 2009-09-09  Martin Jambor  <mjambor@suse.cz>
4803
4804         * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
4805         an SSA_NAME rather than a is_gimple_variable.
4806
4807 2009-09-09  Richard Guenther  <rguenther@suse.de>
4808
4809         PR middle-end/41317
4810         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
4811         code dealing with plain pointer bases.
4812         (maybe_fold_offset_to_reference): Likewise.
4813         (maybe_fold_stmt_addition): Adjust.
4814
4815 2009-09-09  Richard Guenther  <rguenther@suse.de>
4816
4817         * tree.c (free_lang_data_in_type): Do not free the type variant
4818         chains.
4819         (free_lang_data): Merge char_type_node with its properly signed
4820         variant.
4821         (pass_ipa_free): Collect after freeing language specific data.
4822
4823 2009-09-09  Michael Matz  <matz@suse.de>
4824
4825         PR middle-end/41268
4826         * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
4827         SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
4828         * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
4829         to reflect reality.
4830
4831 2009-09-08  DJ Delorie  <dj@redhat.com>
4832
4833         * config/mep/mep.c (conversions[]): Add "ml" pattern.
4834
4835 2009-09-04  Jason Merrill  <jason@redhat.com>
4836
4837         * tree.c (tree_find_value): Remove.
4838         * tree.h: Remove prototype.
4839         * varasm.c (assemble_external): Use value_member instead.
4840
4841 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
4842
4843         * toplev.c (process_options): Choose default debugging type when
4844         gtoggle enables debug info and type is unset.
4845
4846 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
4847
4848         PR debug/41276
4849         PR debug/41307
4850         * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
4851         invalid subreg.
4852
4853 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
4854
4855         * configure: Rebuilt with modified libtool.m4.
4856
4857 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
4858
4859         PR debug/41229
4860         PR debug/41291
4861         PR debug/41300
4862         * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
4863
4864 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
4865
4866         * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
4867         (remove_statement): Likewise.
4868         (rewrite_use_nonlinear_expr): Adjust.
4869         (remove_unused_ivs): Collect SSA NAMEs to remove and call...
4870         * tree-ssa.c (release_defs_bitset): ... this.  New.
4871         * tree-flow.h (release_defs_bitset): Declare.
4872
4873 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
4874
4875         PR debug/41232
4876         * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
4877         in the middle block.
4878
4879 2009-09-08  Kai Tietz  <kai.tietz@onevision.com>
4880
4881         * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
4882         via intptr_t to long type.
4883         (insert_operand_rank): Cast long type via intptr_t to
4884         pointer type.
4885         * genattrtab.c (RTL_HASH): Use intptr_t to cast from
4886         pointer to scalar.
4887         * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
4888         from pointer to unsigned via uintptr_t.
4889
4890         * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
4891         uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
4892         and HAVE_INTPTR_T.
4893         * configure: Regenerated.
4894         * config.in: Regenerated
4895         * system.h (stdint.h): Add include.
4896         (inttypes.h): Likewise.
4897         * Makefile.in (aclocal): Add config/stdint.m4.
4898         * aclocal.m4: Regenerated.
4899
4900 2009-09-08  Bernd Schmidt  <bernd.schmidt@analog.com>
4901
4902         * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
4903         variables.
4904         (note_np_check_stores): New function.
4905         (harmless_null_pointer_p): New function.
4906         (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH.  Callers
4907         changed.  Take into account whether we're in the shadow of a condjump
4908         that tested NP_REG for NULL.
4909         Lose all code that tested for SEQUENCEs.
4910         (workaround_speculation): Avoid inserting NOPs for loads that are
4911         either always executed or a NULL pointer.
4912
4913 2009-09-08  Jan Hubicka  <jh@suse.cz>
4914
4915         * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
4916         * params.def (early-inlining-insns): Likewise.
4917
4918 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
4919
4920         PR rtl-optimization/41239
4921         * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
4922         * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
4923         lists.
4924         * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
4925         across calls, as the calls might not always return normally.
4926         (call_may_noreturn_p): New function.
4927         (deps_analyze_insn): Update last_function_call_may_noreturn list.
4928         (init_deps): Initialize it.
4929         (remove_from_deps): Also remove calls from
4930         last_function_call_may_noreturn list.
4931
4932 2009-09-07  Richard Henderson  <rth@redhat.com>
4933
4934         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
4935         more VR->OPERANDS than LHS operands.  Free LHS before returning.
4936
4937 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
4938
4939         * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
4940         (attr "addrtype"): New member "spreg".
4941         Use it if mem_spfp_address_operand is true for the address.
4942         (attr "type"): New entry "stall".
4943         (cpu_unit "load"): New.
4944         (insn_reservations "load32", "loadp", "loadi"): Add reservation of
4945         "load".
4946         (insn_reservation "loadsp"): New.
4947         (insn_reservation "load_stall1"): New.
4948         (insn_reservation "load_stall3"): New.
4949         (stall): New insn.
4950         * config/bfin/predicates.md (const1_operand, const3_operand): New.
4951         (mem_p_address_operand): Exclude stack and frame pointer based
4952         addresses.
4953         (mem_spfp_address_operand): New; match them here.
4954         * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
4955         (bfin_reorg): Call it if scheduling insns.
4956         (bfin_gen_bundles): Remove dummy insns created by
4957         add_sched_insns_for_speculation.
4958
4959         From Jie Zhang <jie.zhang@analog.com>:
4960         * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
4961         bfin_si_revision, bfin_workarounds): Move these ...
4962         * config/bfin/bfin.h: ... here.
4963
4964         From Mike Frysinger  <michael.frysinger@analog.com>
4965         * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
4966         BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
4967         * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
4968         bf547m, bf548m, and bf549m.
4969         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
4970         for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
4971         __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
4972         BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
4973         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
4974         bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
4975         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
4976         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
4977         * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
4978         bf542m, bf544m, bf547m, bf548m, and bf549m.
4979
4980         From Jie Zhang <jie.zhang@analog.com>:
4981         * config/bfin/predicates.md (p_register_operand): New predicate.
4982         (dp_register_operand): New predicate.
4983         * config/bfin/bfin-protos.h (WA_05000074): Define.
4984         (ENABLE_WA_05000074): Define.
4985         * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
4986         (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
4987         * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
4988         (define_attr addrtype): Allow load/store register to be P register.
4989         (define_attr storereg): New.
4990         (define_cpu_unit anomaly_05000074): New.
4991         (define_insn_reservation dsp32shiftimm): New.
4992         (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
4993         (define_insn_reservation loadp): Cannot use slot2.
4994         (define_insn_reservation loadsp): Cannot use slot2.
4995         (define_insn_reservation storep): Cannot use slot2. Does not
4996         apply when working around 05000074.
4997         (define_insn_reservation storep_anomaly_05000074): New.
4998         (define_insn_reservation storei): Does not apply when working
4999         around 05000074.
5000         (define_insn_reservation storei_anomaly_05000074): New.
5001         (define_attr length): Add dsp32shiftimm case.
5002         (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
5003         ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
5004         movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
5005         ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
5006         Set type as dsp32shiftimm for dsp32shiftimm alternatives.
5007
5008 2009-09-07  Martin Jambor  <mjambor@suse.cz>
5009
5010         PR middle-end/41282
5011         * tree-sra.c (create_artificial_child_access): Return NULL if
5012         build_ref_for_offset fails.
5013         (propagate_subacesses_accross_link): Allow build_ref_for_offset
5014         and create_artificial_child_access to fail.
5015
5016 2009-09-06  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
5017
5018         PR c++/41214
5019         * unwind-dw2.c (uw_init_context_1): Mark noinline.
5020         * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
5021         * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
5022
5023 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
5024
5025         * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
5026         block, ensure it has an exit edge.  Emit a barrier after a jump.
5027
5028 2009-09-07  Nick Clifton  <nickc@redhat.com>
5029
5030         * gcc.c (this_is_linker_script): New variable.  Like
5031         this_is_library_file but for the %T constructor.
5032         (end_going_arg): If this_is_linker_script is set then locate the
5033         script and insert a --script switch before it
5034         (do_spec_2): Initialise this_is_linker_script.
5035         (do_spec_1): Likewise.  Handle %T construct.
5036         (eval_spec_function): Preserve this_is_linker_script.
5037         * doc/invoke.texi: Document %T construct in spec files.
5038         * config/m32c/m32c.h (LIB_SPEC): Use it.
5039
5040 2009-09-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5041
5042         * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
5043         * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
5044         when volatile flag is set.
5045         * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
5046
5047 2009-09-06  Eric Botcazou  <ebotcazou@adacore.com>
5048
5049         PR bootstrap/41241
5050         * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
5051         (combine_stack_adjustments_for_block): Allow insns between stack
5052         adjustments and stores with corresponding pre-(dec|inc)rement or
5053         pre-modify operation.
5054
5055 2009-09-06  Jakub Jelinek  <jakub@redhat.com>
5056
5057         PR bootstrap/41241
5058         * combine-stack-adj.c (struct csa_memlist): Rename to...
5059         (struct csa_reflist): ... this.  Rename mem field to ref.
5060         (free_csa_memlist): Rename to...
5061         (free_csa_reflist): ... this.
5062         (record_one_stack_memref): Rename to...
5063         (record_one_stack_ref): ... this.  Handle also REG_P.
5064         (try_apply_stack_adjustment): Handle also REG_P.
5065         (struct record_stack_memrefs_data): Rename to...
5066         (struct record_stack_refs_data): ... this.  Rename memlist field to
5067         reflist.
5068         (record_stack_memrefs): Rename to...
5069         (record_stack_refs): ... this.  For DEBUG_INSNs keep traversing
5070         subexpressions instead of failing when a MEM contains SP references.
5071         For SP itself in DEBUG_INSNs queue it also onto reflist chain.
5072         (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
5073
5074 2009-09-06  Richard Guenther  <rguenther@suse.de>
5075
5076         PR middle-end/41144
5077         * tree.c (build_array_type): Do not record types marked
5078         with structural equality in the canonical type hashtable.
5079
5080 2009-09-06  Richard Guenther  <rguenther@suse.de>
5081
5082         PR middle-end/41261
5083         * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
5084
5085 2009-09-05  Richard Guenther  <rguenther@suse.de>
5086
5087         PR middle-end/41181
5088         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
5089
5090 2009-09-05  Richard Guenther  <rguenther@suse.de>
5091
5092         PR debug/41273
5093         * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
5094
5095 2009-09-05  Richard Guenther  <rguenther@suse.de>
5096
5097         PR middle-end/41271
5098         * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
5099         before comparing function argument types.
5100
5101 2009-09-05  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5102
5103         PR target/41024
5104         * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
5105         the assembler.
5106
5107 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
5108
5109         Revert:
5110         2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
5111
5112         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
5113         locators before emit_insn is called.
5114
5115 2009-09-04  Vladimir Makarov  <vmakarov@redhat.com>
5116
5117         PR bootstrap/41241
5118         * ira.c (update_equiv_reg): Revert my previous patch for the PR.
5119         * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
5120         (reginfo_init): Don't call allocate_reg_info.
5121
5122 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
5123
5124         PR target/41262
5125         * config/alpha/alpha.c (alpha_does_function_need_gp): Use
5126         NONDEBUG_INSN_P instead of INSN_P.
5127
5128 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
5129
5130         PR debug/41225
5131         * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
5132
5133 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
5134
5135         PR target/41252
5136         * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
5137         pattern of the split.
5138
5139 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
5140
5141         * toplev.c (process_options): Move setter of flag_var_tracking
5142         before other tests that depend on it.  Move down setter of
5143         flag_rename_registers.  Don't enable var-tracking-assignments
5144         by default if selective scheduling is enabled.  Warn if both
5145         are enabled.
5146
5147 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
5148
5149         * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
5150         comment.  Use switch statement to catch overlaps between rtx
5151         and tree codes.  Accept FUNCTION_DECLs in addition to those in...
5152         (IS_DECL_CODE): ... here. Remove.
5153         (check_value_is_not_decl): Remove.
5154         (dv_from_decl, dv_from_value): Check after conversion.
5155
5156 2009-09-04  Richard Guenther  <rguenther@suse.de>
5157
5158         PR middle-end/41257
5159         * (cgraph_finalize_compilation_unit): Move finalizing aliases
5160         after emitting tunks.  Move emitting thunks and ctors from ...
5161         (cgraph_optimize): ... here.  Remove redundant
5162         cgraph_analyze_functions.
5163         * varasm.c (find_decl_and_mark_needed): Remove no longer
5164         necessary check.
5165         (finish_aliases_1): Adjust check for thunk aliases.
5166
5167 2009-09-04  Daniel Gutson  <dgutson@codesourcery.com>
5168
5169         * config/arm/arm.md (ctzsi2): Added braces
5170         to avoid warning that broke booststrap.
5171
5172 2009-09-04  Martin Jambor  <mjambor@suse.cz>
5173
5174         PR tree-optimization/41112
5175         * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
5176         handle variable-bounded arrays.
5177         (expr_with_var_bounded_array_refs_p): New function.
5178         (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
5179
5180 2009-09-04  Wolfgang Gellerich  <gellerich@de.ibm.com>
5181
5182         * config/s390/2097.md: Removed two incorrect bypasses.
5183         (z10_fsimpdf): Fixed latency.
5184         (z10_fhex): New insn_reservation.
5185         (z10_floaddf): Fixed latency.
5186         (z10_floadsf): Fixed latency.
5187         (z10_ftrunctf): Fixed latency.
5188         (z10_ftruncdf): Fixed latency.
5189         * config/s390/s390.c (z10_cost): Fixed values.
5190         (s390_adjust_priority): Added z10 path.
5191         * config/s390/s390.md (type): Added fhex.
5192         (*mov<mode>_64dfp): Updated type attribute.
5193         (*mov<mode>_64): Updated type attribute.
5194         (*mov<mode>_31): Updated type attribute.
5195         (*mov<mode>"): Likewise.
5196         * config/s390/2084.md (x_fsimpdf): Updated condition.
5197
5198 2009-09-04  Andreas Krebbel  <krebbel1@de.ibm.com>
5199
5200         * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
5201         RTXs in the predicate for operand 1.
5202
5203 2009-09-03  Daniel Gutson  <dgutson@codesourcery.com>
5204
5205         * config/arm/arm.md (UNSPEC_RBIT): New constant.
5206         (rbitsi2): New insn.
5207         (ctzsi2): New expand.
5208         * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
5209
5210 2009-09-03  Martin Jambor  <mjambor@suse.cz>
5211
5212         * tree-sra.c (duplicate_expr_for_different_base): Removed.
5213         (create_artificial_child_access): Use build_ref_for_offset instead
5214         of duplicate_expr_for_different_base.
5215         (propagate_subacesses_accross_link): Likewise.
5216
5217 2009-09-03  Richard Sandiford  <rdsandiford@googlemail.com>
5218
5219         * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
5220         of INSN_P.
5221         (mips16e_collect_argument_saves): Skip debug instructions.
5222         (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
5223         (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
5224         (r10k_insert_cache_barriers): Likewise.
5225         (mips_reorg_process_insns): Likewise.
5226
5227 2009-09-03  Vladimir Makarov  <vmakarov@redhat.com>
5228
5229         PR bootstrap/41241
5230         * ira.c (update_equiv_reg): Remove check on class likely spill.
5231
5232 2009-09-03  Jakub Jelinek  <jakub@redhat.com>
5233
5234         PR debug/41236
5235         * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
5236         SIGN_EXTEND or ZERO_EXTEND.  Don't assume there is a REG inside of
5237         it or SUBREG.
5238
5239         PR debug/41238
5240         * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
5241         the stack slot if it is passed by invisible reference.
5242         * var-tracking.c (vt_add_function_parameters): Handle arguments passed
5243         by invisible reference.
5244
5245 2009-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
5246
5247         * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
5248         * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
5249         * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
5250         0.
5251         * config/bfin/sync.md: New file.
5252         * config/bfin/bfin.md: Include it.
5253         (UNSPEC_ATOMIC): New.
5254         (UNSPEC_ONES): Provide a unique number.
5255
5256         From Jie Zhang <jie.zhang@analog.com>:
5257         * config/bfin/bfin.c (ret_regs): New.
5258         (must_save_fp_p): Don't return true because of frame_pointer_needed.
5259         (must_save_rets_p): New.
5260         (n_regs_saved_by_prologue): Use must_save_rets_p instead of
5261         current_function_is_leaf.
5262         (do_link): Likewise.
5263         (do_unlink): Likewise.
5264         (expand_interrupt_handler_prologue): Use ret_regs array.
5265         (expand_interrupt_handler_epilogue): Use ret_regs array and
5266         pass return register to gen_return_internal.
5267         (bfin_expand_epilogue): Pass return register to
5268         gen_return_internal.
5269         (bfin_expand_call): Explicitly clobber RETS.
5270         * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
5271         * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
5272         call_insn_fdpic, call_value_insn_fdpic, call_symbol,
5273         call_value_symbol, call_insn, call_value_insn): Explicitly clobber
5274         RETS.
5275         (return_internal): Take a reg rtx rather than the register number.
5276
5277 2009-09-03  H.J. Lu  <hongjiu.lu@intel.com>
5278
5279         * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
5280         when comparing against estimated_loop_iterations_int return.
5281
5282 2009-09-03  Richard Guenther  <rguenther@suse.de>
5283
5284         * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
5285         eh_personality_libfunc.
5286
5287 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
5288
5289         * tree-parloops.c (separate_decls_in_region): Add space.
5290
5291 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
5292
5293         * tree-parloops.c (separate_decls_in_region): Change the condition
5294         checking if there are reductions in the loop.
5295
5296 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
5297
5298         PR tree-optimization/38275
5299         * tree-parloops.c (parallelize_loops): Replace profitability condition
5300         for expected number of iterations.
5301
5302 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
5303
5304         * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
5305         (bootstrap-debug): Explain conditions in which it becomes default.
5306         (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
5307         make it add to it.
5308
5309 2009-09-03  Namhyung Kim  <namhyung@gmail.com>
5310
5311         * doc/invoke.texi (Optimize Options): Move
5312         -finline-small-functions to the -O2 list.
5313
5314 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
5315
5316         * toplev.c (process_options): Enable var-tracking-assignments
5317         by default if var-tracking is enabled.
5318
5319 2009-09-02  David Daney  <ddaney@caviumnetworks.com>
5320
5321         * cfgbuild.c (find_bb_boundaries): Split blocks containing a
5322         barrier.
5323         * emit-rtl.c (prev_nonnote_insn_bb): New function.
5324         * rtl.h (prev_nonnote_insn_bb): Declare it.
5325
5326 2009-09-03  Diego Novillo  <dnovillo@google.com>
5327
5328         * cgraph.c (cgraph_node_for_decl): New.
5329         * cgraph.h (cgraph_node_for_decl): Declare.
5330         * tree.c (host_integerp): Return 0 if T is NULL.
5331
5332 2009-09-03  Diego Novillo  <dnovillo@google.com>
5333
5334         * tree.h (struct alias_pair): Move from varasm.c.
5335         (alias_pairs): Likewise.
5336         (TYPE_MAXVAL): Define.
5337         (TYPE_MINVAL): Define.
5338         (iterative_hash_host_wide_int): Declare.
5339         (remove_unreachable_alias_pairs): Declare.
5340         * tree-pass.h (pass_ipa_free_lang_data): Declare.
5341         * diagnostic.c (default_diagnostic_starter): Make extern.
5342         (default_diagnostic_finalizer): Make extern.
5343         * diagnostic.h (default_diagnostic_starter): Declare.
5344         (default_diagnostic_finalizer): Declare.
5345         (default_tree_printer): Declare.
5346         * toplev.c (default_tree_printer): Make extern.
5347
5348 2009-09-03  Richard Guenther  <rguenther@suse.de>
5349             Diego Novillo  <dnovillo@google.com>
5350
5351         * cgraph.c (cgraph_add_new_function): Remove gimplification.
5352         * cgraphunit.c (cgraph_expand_function): Do not emit
5353         associated thunks from here.
5354         (cgraph_emit_thunks): New.
5355         (cgraph_optimize): Call it.
5356         Return if any IPA pass finds an error.
5357         * varasm.c (finish_aliases_1): Ignore errorneous aliases used
5358         by thunks.
5359
5360 2009-09-03  Simon Baldwin  <simonb@google.com>
5361             Rafael Espindola  <espindola@google.com>
5362             Richard Guenther  <rguenther@suse.de>
5363             Doug Kwan  <dougkwan@google.com>
5364             Diego Novillo  <dnovillo@google.com>
5365
5366         * tree.c: Include tree-pass.h, langhooks-def.h,
5367         diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
5368         (free_lang_data_in_type): New.
5369         (need_assembler_name_p): New.
5370         (free_lang_data_in_block): New.
5371         (free_lang_data_in_decl): New.
5372         (struct free_lang_data_d): New.
5373         (add_tree_to_fld_list): New.
5374         (find_decls_types_r): New.
5375         (get_eh_types_for_runtime): New.
5376         (find_decls_types_in_eh_region): New.
5377         (find_decls_types_in_node): New.
5378         (find_decls_types_in_var): New.
5379         (free_lang_data_in_cgraph): New.
5380         (free_lang_data): New.
5381         (gate_free_lang_data): New.
5382         (pass_ipa_free_lang_data): New.
5383
5384 2009-09-03  Diego Novillo  <dnovillo@google.com>
5385
5386         * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
5387         * langhooks.h (struct lang_hooks): Add field free_lang_data.
5388         (lang_hooks): Remove const qualifier.
5389         * ipa.c (cgraph_remove_unreachable_nodes): Call
5390         remove_unreachable_alias_pairs.
5391         * except.c (add_type_for_runtime): Check if TYPE has
5392         already been converted.
5393         (lookup_type_for_runtime): Likewise.
5394         (check_handled): Handle converted types.
5395         * varasm.c (remove_unreachable_alias_pairs): New.
5396         * gimple.c: Include demangle.h.
5397         (gimple_decl_printable_name): New.
5398         (gimple_fold_obj_type_ref): New.
5399         * gimple.h (gimple_decl_printable_name): Declare.
5400         (gimple_fold_obj_type_ref): Declare.
5401         * passes.c (init_optimization_passes): Add pass
5402         pass_ipa_free_lang_data.
5403         * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
5404         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
5405
5406 2009-09-03  Diego Novillo  <dnovillo@google.com>
5407
5408         * c-lang.c (lang_hooks): Remove const qualifier.
5409
5410 2009-09-02  Loren James Rittle  <ljrittle@acm.org>
5411
5412         * doc/install.texi (*-*-freebsd*): Update target information.
5413
5414 2009-09-02  Anatoly Sokolov  <aesok@post.ru>
5415
5416         * hard-reg-set.h (call_fixed_regs): Remove.
5417         * reginfo.c (call_fixed_regs): Remove.
5418         (init_reg_sets_1): Remove initialization of call_fixed_regs.
5419         (globalize_reg): Don't use call_fixed_regs.
5420         * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
5421         call_fixed_regs.
5422
5423 2009-09-01  Michael Matz  <matz@suse.de>
5424
5425         * expr.h (emit_storent_insn, expand_expr_real_1,
5426         expand_expr_real_2): Declare.
5427         * expr.c (emit_storent_insn, expand_expr_real_1,
5428         expand_expr_real_2): Export.
5429         (store_expr): Setting and evaluating dont_return_target is useless.
5430         (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
5431         LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
5432         * except.c (expand_resx_expr): Rename to ...
5433         (expand_resx_stmt): ... this.  Rewrite to take gimple statement.
5434         * except.h (expand_resx_stmt): Declare.
5435         * stmt.c: Add include gimple.h
5436         (expand_asm_expr): Rename to ...
5437         (expand_asm_stmt): ... this. Rewrite to take gimple statement.
5438         (expand_case): Rewrite to take gimple statement.
5439         * tree.h (expand_asm_stmt): Declare.
5440         (expand_case): Change prototype.
5441         * Makefile.in (stmt.o): Depend on gimple.h.
5442         * builtins.c (expand_builtin_synchronize): Build gimple asm
5443         statement, not an ASM_EXPR.
5444         * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
5445         gimple_to_tree, release_stmt_tree): Remove.
5446         (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
5447         ggc_free, but hold comparison code and operands separately.
5448         Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
5449         (expand_call_stmt, expand_gimple_stmt_1,
5450         expand_gimple_stmt): New helpers.
5451         (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
5452         release_stmt_tree.  Call expand_gimple_stmt instead.
5453         (expand_gimple_basic_block): Ditto.
5454
5455         * calls.c (emit_call_1): Don't look at EH regions here, make
5456         fntree parameter useless.
5457         (expand_call): New local rettype for TREE_TYPE(exp), use it
5458         throughout.  Remove local p, use addr instead.
5459         Don't look at EH regions here.
5460
5461 2009-09-02  Vladimir Makarov  <vmakarov@redhat.com>
5462
5463         * doc/invoke.texi (-fsched-pressure): Document it.
5464         (-fsched-reg-pressure-heuristic): Remove it.
5465
5466         * reload.c (ira.h): Include.
5467         (find_reloads): Add choosing reload on number of small spilled
5468         classes.
5469
5470         * haifa-sched.c (ira.h): Include.
5471         (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
5472         saved_reg_pressure, curr_reg_live, saved_reg_live,
5473         region_ref_regs): New variables.
5474         (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
5475         initiate_reg_pressure_info, setup_ref_regs,
5476         initiate_bb_reg_pressure_info, save_reg_pressure,
5477         restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
5478         functions.
5479         (setup_insn_reg_pressure_info): New function.
5480         (rank_for_schedule): Add pressure checking and insn issue time.
5481         Remove comparison of insn reg weights.
5482         (ready_sort): Set insn reg pressure info.
5483         (update_register_pressure, setup_insn_max_reg_pressure,
5484         update_reg_and_insn_max_reg_pressure,
5485         sched_setup_bb_reg_pressure_info): New functions.
5486         (schedule_insn): Add code for printing and updating reg pressure info.
5487         (find_set_reg_weight, find_insn_reg_weight): Remove.
5488         (ok_for_early_queue_removal): Do nothing if pressure_only_p.
5489         (debug_ready_list): Print reg pressure info.
5490         (schedule_block): Ditto.  Check insn issue time.
5491         (sched_init): Set up sched_pressure_p.  Allocate and set up some
5492         reg pressure related info.
5493         (sched_finish): Free some reg pressure related info.
5494         (fix_tick_ready): Make insn always ready if pressure_p.
5495         (init_h_i_d): Don't call find_insn_reg_weight.
5496         (haifa_finish_h_i_d): Free insn reg pressure info.
5497
5498         * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
5499         ira_memory_move_cost, ira_class_hard_regs,
5500         ira_class_hard_regs_num, ira_no_alloc_regs,
5501         ira_available_class_regs, ira_reg_class_cover_size,
5502         ira_reg_class_cover, ira_class_translate): Move to ira.h.
5503
5504         * ira-lives.c (single_reg_class): Check mode to find how many
5505         registers are necessary for operand.
5506         (ira_implicitly_set_insn_hard_regs): New.
5507
5508         * common.opt (fsched-pressure): New options.
5509         (fsched-reg-pressure-heuristic): Remove.
5510
5511         * ira.c (setup_eliminable_regset): Rename to
5512         ira_setup_eliminable_regset.  Make it external.
5513         (expand_reg_info): Pass cover class to setup_reg_classes.
5514         (ira): Call resize_reg_info instead of allocate_reg_info.
5515
5516         * sched-deps.c: Include ira.h.
5517         (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
5518         (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
5519         reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
5520         mark_insn_hard_regno_birth, mark_insn_reg_birth,
5521         mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
5522         mark_insn_reg_store, mark_insn_reg_clobber,
5523         setup_insn_reg_pressure_info): New.
5524         (sched_analyze_1): Update implicit_reg_pending_uses.
5525         (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
5526         Use them to create dependencies.  Set insn reg uses and pressure
5527         info.  Process reg_pending_uses in one place.
5528         (free_deps): Free implicit sets.
5529         (remove_from_deps): Remove implicit sets if necessary.  Check
5530         implicit sets when clearing reg_last_in_use.
5531         (init_deps_global): Clear implicit_reg_pending_clobbers and
5532         implicit_reg_pending_uses.
5533
5534         * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
5535         ira_memory_move_cost, ira_class_hard_regs,
5536         ira_class_hard_regs_num, ira_no_alloc_regs,
5537         ira_available_class_regs, ira_reg_class_cover_size,
5538         ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
5539         (ira_setup_eliminable_regset, ira_set_pseudo_classes,
5540         ira_implicitly_set_insn_hard_regs): New prototypes.
5541
5542         * ira-costs.c (pseudo_classes_defined_p, allocno_p,
5543         cost_elements_num): New variables.
5544         (allocno_costs, total_costs): Rename to costs and
5545         total_allocno_costs.
5546         (COSTS_OF_ALLOCNO): Rename to COSTS.
5547         (allocno_pref): Rename to pref.
5548         (allocno_pref_buffer): Rename to pref_buffer.
5549         (common_classes): Rename to regno_cover_class.
5550         (COST_INDEX): New.
5551         (record_reg_classes): Set allocno attributes only if allocno_p.
5552         (record_address_regs): Ditto.  Use COST_INDEX instead of ALLOCNO_NUM.
5553         (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
5554         and COSTS_OF_ALLOCNO.
5555         (print_costs): Rename to print_allocno_costs.
5556         (print_pseudo_costs): New.
5557         (process_bb_node_for_costs): Split into 2 functions with new
5558         function process_bb_for_costs.  Pass BB to process_bb_for_costs.
5559         (find_allocno_class_costs): Rename to find_costs_and_classes.  Add
5560         new parameter dump_file.  Use cost_elements_num instead of
5561         ira_allocnos_num.  Make one iteration if preferred classes were
5562         already calculated for scheduler.  Make 2 versions of code
5563         depending on allocno_p.
5564         (setup_allocno_cover_class_and_costs): Check allocno_p.  Use
5565         regno_cover_class and COSTS instead of common_classes and
5566         COSTS_OF_ALLOCNO.
5567         (init_costs, finish_costs): New.
5568         (ira_costs): Set up allocno_p and cost_elements_num.  Call
5569         init_costs and finish_costs.
5570         (ira_set_pseudo_classes): New.
5571
5572         * rtl.h (allocate_reg_info): Remove.
5573         (resize_reg_info): Change return type.
5574         (reg_cover_class): New.
5575         (setup_reg_classes): Add new parameter.
5576
5577         * sched-int.h (struct deps_reg): New member implicit_sets.
5578         (sched_pressure_p, sched_regno_cover_class): New external definitions.
5579         (INCREASE_BITS): New macro.
5580         (struct reg_pressure_data, struct reg_use_data): New.
5581         (struct _haifa_insn_data): Remove reg_weight.  Add members
5582         reg_pressure, reg_use_list, reg_set_list, and
5583         reg_pressure_excess_cost_change.
5584         (struct deps): New member implicit_sets.
5585         (pressure_p): New variable.
5586         (COVER_CLASS_BITS, INCREASE_BITS): New macros.
5587         (struct reg_pressure_data, struct reg_use_data): New.
5588         (INSN_REG_WEIGHT): Remove.
5589         (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
5590         INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
5591         (sched_init_region_reg_pressure_info,
5592         sched_setup_bb_reg_pressure_info): New prototypes.
5593
5594         * reginfo.c (struct reg_pref): New member coverclass.
5595         (reg_cover_class): New function.
5596         (reginfo_init, pass_reginfo_init): Move after free_reg_info.
5597         (reg_info_size): New variable.
5598         (allocate_reg_info): Make static.  Setup reg_info_size.
5599         (resize_reg_info): Use reg_info_size.  Return flag of resizing.
5600         (setup_reg_classes): Add a new parameter.  Setup cover class too.
5601
5602         * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
5603         the dependencies.
5604
5605         * sched-rgn.c (deps_join): Set up implicit_sets.
5606         (schedule_region): Set up region and basic blocks pressure
5607         relative info.
5608
5609         * passes.c (init_optimization_passes): Move
5610         pass_subregs_of_mode_init before pass_sched.
5611
5612 2009-09-02  Martin Jambor  <mjambor@suse.cz>
5613
5614         * tree-sra.c (struct access): New field grp_hint.
5615         (dump_access): Dump grp_hint.
5616         (sort_and_splice_var_accesses): Set grp_hint if a group is read
5617         multiple times.
5618         (analyze_access_subtree): Only scalarize accesses with grp_hint set or
5619         those which have been specifically read and somehow written to.
5620         (propagate_subacesses_accross_link): Set grp_hint of right child and
5621         also possibly of the left child.
5622
5623 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
5624
5625         * tree-object-size.c (addr_object_size): Always use object_size_type
5626         0 or 2 when determining the pointer pointed object size.
5627
5628 2009-09-02  Richard Guenther  <rguenther@suse.de>
5629
5630         Revert
5631         2009-08-31  Richard Guenther  <rguenther@suse.de>
5632
5633         * builtins.c (fold_builtin_memory_op): Use the alias oracle
5634         to query if the memory regions for memmove overlap.
5635         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
5636         asserts on pointers, instead deal with odd trees.
5637         (ptr_derefs_may_alias_p): Likewise.
5638         (refs_may_alias_p_1): Constructor bases also never alias.
5639
5640 2009-08-01  Christian Bruel  <christian.bruel@st.com>
5641
5642         Revert:
5643         2009-07-31  Christian Bruel  <christian.bruel@st.com>
5644         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
5645
5646 2009-09-01  Alexandre Oliva  <aoliva@redhat.com>
5647
5648         * doc/invoke.texi (-fvar-tracking-assignments): New.
5649         (-fvar-tracking-assignments-toggle): New.
5650         (-fdump-final-insns=file): Mark filename as optional.
5651         (--param min-nondebug-insn-uid): New.
5652         (-gdwarf-@{version}): Mention version 4.
5653         * opts.c (common_handle_option): Accept it.
5654         * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
5655         * regrename.c (regrename_optimize): Drop last.  Don't count debug
5656         insns as uses.  Don't reject change because of debug insn.
5657         (do_replace): Reject DEBUG_INSN as chain starter.  Take base_regno
5658         from the chain starter, and check for inexact matches in DEBUG_INSNS.
5659         (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
5660         (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
5661         * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
5662         * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
5663         * doc/gimple.texi (is_gimple_debug): New.
5664         (gimple_debug_bind_p): New.
5665         (is_gimple_call, gimple_assign_cast_p): End sentence with period.
5666         * doc/install.texi (bootstrap-debug): More details.
5667         (bootstrap-debug-big, bootstrap-debug-lean): Document.
5668         (bootstrap-debug-lib): More details.
5669         (bootstrap-debug-ckovw): Update.
5670         (bootstrap-time): New.
5671         * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
5672         (insert_phi_nodes_for): Insert debug stmts.
5673         (rewrite_stmt): Take iterator.  Insert debug stmts.
5674         (rewrite_enter_block): Adjust.
5675         (maybe_replace_use_in_debug_stmt): New.
5676         (rewrite_update_stmt): Use it.
5677         (mark_use_interesting): Return early for debug stmts.
5678         * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
5679         stmts before replacing stmt.
5680         (move_computations_stmt): Likewise.
5681         * ira-conflicts.c (add_copies): Skip debug insns.
5682         * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
5683         (regstat_bb_compute_ri): Skip debug insns.
5684         * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
5685         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
5686         check_loop_closed_ssa_stmt): Skip debug stmts.
5687         * tree-tailcall.c (find_tail_calls): Likewise.
5688         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
5689         * tree.h (MAY_HAVE_DEBUG_STMTS): New.
5690         (build_var_debug_value_stat): Declare.
5691         (build_var_debug_value): Define.
5692         (target_for_debug_bind): Declare.
5693         * reload.c (find_equiv_reg): Skip debug insns.
5694         * rtlanal.c (reg_used_between_p): Skip debug insns.
5695         (side_effects_p): Likewise.
5696         (canonicalize_condition): Likewise.
5697         * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
5698         insns never depend on debug insns.
5699         (create_ddg_dep_no_link): Likewise.
5700         (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
5701         Don't add inter-loop dependencies for debug insns.
5702         (build_intra_loop_deps): Likewise.
5703         (create_ddg): Count debug insns.
5704         * ddg.h (struct ddg::num_debug): New.
5705         (num_backargs): Pair up with previous int field.
5706         * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
5707         -fcompare-debug-second.
5708         * final.c (get_attr_length_1): Skip debug insns.
5709         (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
5710         * gcc.c (invoke_as): Call compare-debug-dump-opt.
5711         (driver_self_specs): Map -fdump-final-insns to
5712         -fdump-final-insns=..
5713         (get_local_tick): New.
5714         (compare_debug_dump_opt_spec_function): Test for . argument and
5715         compute output name.  Compute temp output spec without flag name.
5716         Compute -frandom-seed.
5717         (OPT): Undef after use.
5718         * cfgloopanal.c (num_loop_insns): Skip debug insns.
5719         (average_num_loop_insns): Likewise.
5720         * params.h (MIN_NONDEBUG_INSN_UID): New.
5721         * gimple.def (GIMPLE_DEBUG): New.
5722         * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
5723         * auto-inc-dec.c (merge_in_block): Skip debug insns.
5724         (merge_in_block): Fix whitespace.
5725         * toplev.c (flag_var_tracking): Update comment.
5726         (flag_var_tracking_assignments): New.
5727         (flag_var_tracking_assignments_toggle): New.
5728         (process_options): Don't open final insns dump file if we're not
5729         going to write to it.  Compute defaults for var_tracking.
5730         * df-scan.c (df_insn_rescan_debug_internal): New.
5731         (df_uses_record): Handle debug insns.
5732         * haifa-sched.c (ready): Initialize n_debug.
5733         (contributes_to_priority): Skip debug insns.
5734         (dep_list_size): New.
5735         (priority): Use it.
5736         (rank_for_schedule): Likewise.  Schedule debug insns as soon as
5737         they're ready.  Disregard previous debug insns to make decisions.
5738         (queue_insn): Never queue debug insns.
5739         (ready_add, ready_remove_first, ready_remove): Count debug insns.
5740         (schedule_insn): Don't reject debug insns because of issue rate.
5741         (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
5742         (queue_to_ready): Skip and discount debug insns.
5743         (choose_ready): Let debug insns through.
5744         (schedule_block): Check boundary debug insns.  Discount debug
5745         insns, schedule them early.  Adjust whitespace.
5746         (set_priorities): Check for boundary debug insns.
5747         (add_jump_dependencies): Use dep_list_size.
5748         (prev_non_location_insn): New.
5749         (check_cfg): Use it.
5750         * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
5751         stmts.
5752         (remove_unused_ivs): Reset debug stmts.
5753         * modulo-sched.c (const_iteration_count): Skip debug insns.
5754         (res_MII): Discount debug insns.
5755         (loop_single_full_bb_p): Skip debug insns.
5756         (sms_schedule): Likewise.
5757         (sms_schedule_by_order): Likewise.
5758         (ps_has_conflicts): Likewise.
5759         * caller-save.c (refmarker_fn): New.
5760         (save_call_clobbered_regs): Replace regs with saved mem in
5761         debug insns.
5762         (mark_referenced_regs): Take pointer, mark and arg.  Adjust.
5763         Call refmarker_fn mark for hardregnos.
5764         (mark_reg_as_referenced): New.
5765         (replace_reg_with_saved_mem): New.
5766         * ipa-pure-const.c (check_stmt): Skip debug stmts.
5767         * cse.c (cse_insn): Canonicalize debug insns.  Skip them when
5768         searching back.
5769         (cse_extended_basic_block): Skip debug insns.
5770         (count_reg_usage): Likewise.
5771         (is_dead_reg): New, split out of...
5772         (set_live_p): ... here.
5773         (insn_live_p): Use it for debug insns.
5774         * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
5775         (execute_optimize_stdarg): Likewise.
5776         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
5777         * tree-ssa-propagate.c (substitute_and_fold): Don't regard
5778         changes in debug stmts as changes.
5779         * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
5780         (moveup_expr): Don't move across debug insns.  Don't move
5781         debug insn if it would create a bookkeeping block.
5782         (moveup_expr_cached): Don't use cache for debug insns that
5783         are heads of blocks.
5784         (compute_av_set_inside_bb): Skip debug insns.
5785         (sel_rank_for_schedule): Schedule debug insns first.  Remove
5786         dead code.
5787         (block_valid_for_bookkeeping_p); Support lax searches.
5788         (create_block_for_bookkeeping): Adjust block numbers when
5789         encountering debug-only blocks.
5790         (find_place_for_bookkeeping): Deal with debug-only blocks.
5791         (generate_bookkeeping_insn): Accept no place to insert.
5792         (remove_temp_moveop_nops): New argument full_tidying.
5793         (prepare_place_to_insert): Deal with debug insns.
5794         (advance_state_on_fence): Debug insns don't start cycles.
5795         (update_boundaries): Take fence as argument.  Deal with
5796         debug insns.
5797         (schedule_expr_on_boundary): No full_tidying on debug insns.
5798         (fill_insns): Deal with debug insns.
5799         (track_scheduled_insns_and_blocks): Don't count debug insns.
5800         (need_nop_to_preserve_insn_bb): New, split out of...
5801         (remove_insn_from_stream): ... this.
5802         (fur_orig_expr_not_found): Skip debug insns.
5803         * rtl.def (VALUE): Move up.
5804         (DEBUG_INSN): New.
5805         * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
5806         (nearest_common_dominator_of_uses): Take debug_stmts argument.
5807         Set it if debug stmts are found.
5808         (statement_sink_location): Skip debug stmts.  Propagate
5809         moving defs into debug stmts.
5810         * ifcvt.c (first_active_insn): Skip debug insns.
5811         (last_active_insns): Likewise.
5812         (cond_exec_process_insns): Likewise.
5813         (noce_process_if_block): Likewise.
5814         (check_cond_move_block): Likewise.
5815         (cond_move_convert_if_block): Likewise.
5816         (block_jumps_and_fallthru_p): Likewise.
5817         (dead_or_predicable): Likewise.
5818         * dwarf2out.c (debug_str_hash_forced): New.
5819         (find_AT_string): Add comment.
5820         (gen_label_for_indirect_string): New.
5821         (get_debug_string_label): New.
5822         (AT_string_form): Use it.
5823         (mem_loc_descriptor): Handle non-TLS symbols.  Handle MINUS , DIV,
5824         MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING.  Accept but
5825         discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
5826         several operations that cannot be represented with DWARF opcodes.
5827         (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND.  Require
5828         dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
5829         (dwarf2out_var_location): Take during-call mark into account.
5830         (output_indirect_string): Update comment.  Output if there are
5831         label and references.
5832         (prune_indirect_string): New.
5833         (prune_unused_types): Call it if debug_str_hash_forced.
5834         More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
5835         (dw_long_long_const): Remove.
5836         (struct dw_val_struct): Change val_long_long type to rtx.
5837         (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
5838         val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
5839         (output_die): Likewise.  Use HOST_BITS_PER_WIDE_INT size of each
5840         component instead of HOST_BITS_PER_LONG.
5841         (output_loc_operands): Likewise.  For const8* assert
5842         HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
5843         (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
5844         rather than HOST_BITS_PER_LONG is >= 64.
5845         (add_AT_long_long): Remove val_hi and val_lo arguments, add
5846         val_const_double.
5847         (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
5848         HOST_BITS_PER_LONG for dw_val_class_long_long.
5849         (add_const_value_attribute): Adjust add_AT_long_long caller.  Don't
5850         handle TLS SYMBOL_REFs.  If CONST wraps a constant, tail recurse.
5851         (dwarf_stack_op_name): Handle DW_OP_implicit_value and
5852         DW_OP_stack_value.
5853         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
5854         Handle DW_OP_implicit_value.
5855         (extract_int): Move prototype earlier.
5856         (mem_loc_descriptor): For SUBREG punt if inner
5857         mode size is wider than DWARF2_ADDR_SIZE.  Handle SIGN_EXTEND
5858         and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}.  Handle
5859         EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
5860         UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
5861         (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
5862         instead of Pmode size.
5863         (loc_descriptor): Add MODE argument.  Handle CONST_INT, CONST_DOUBLE,
5864         CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
5865         attempt to handle other expressions.  Don't handle TLS SYMBOL_REFs.
5866         (concat_loc_descriptor, concatn_loc_descriptor,
5867         loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
5868         (add_location_or_const_value_attribute): Likewise.  For single
5869         location loc_lists attempt to use add_const_value_attribute
5870         for constant decls.  Add DW_AT_const_value even if
5871         NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
5872         in its expression.
5873         * cfgbuild.c (inside_basic_block_p): Handle debug insns.
5874         (control_flow_insn_p): Likewise.
5875         * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
5876         (separate_decls_in_region_debug_bind): New.
5877         (separate_decls_in_region): Process debug bind stmts afterwards.
5878         * recog.c (verify_changes): Handle debug insns.
5879         (extract_insn): Likewise.
5880         (peephole2_optimize): Skip debug insns.
5881         * dse.c (scan_insn): Skip debug insns.
5882         * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
5883         Pass it on.
5884         (setup_id_for_insn): Handle debug insns.
5885         (maybe_tidy_empty_bb): Adjust whitespace.
5886         (tidy_control_flow): Skip debug insns.
5887         (sel_remove_insn): Adjust for debug insns.
5888         (sel_estimate_number_of_insns): Skip debug insns.
5889         (create_insn_rtx_from_pattern): Handle debug insns.
5890         (create_copy_of_insn_rtx): Likewise.
5891         * sel-sched-.h (sel_bb_end): Declare.
5892         (sel_bb_empty_or_nop_p): New.
5893         (get_all_loop_exits): Use it.
5894         (_eligible_successor_edge_p): Likewise.
5895         (return_nop_to_pool): Adjust.
5896         * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
5897         * ira-lives.c (process_bb_node_lives): Skip debug insns.
5898         * gimple-pretty-print.c (dump_gimple_debug): New.
5899         (dump_gimple_stmt): Use it.
5900         (dump_bb_header): Skip gimple debug stmts.
5901         * regmove.c (optimize_reg_copy_1): Discount debug insns.
5902         (fixup_match_2): Likewise.
5903         (regmove_backward_pass): Likewise.  Simplify combined
5904         replacement.  Handle debug insns.
5905         * function.c (instantiate_virtual_regs): Handle debug insns.
5906         * function.h (struct emit_status): Add x_cur_debug_insn_uid.
5907         * print-rtl.h: Include cselib.h.
5908         (print_rtx): Print VALUEs.  Split out and recurse for VAR_LOCATIONs.
5909         * df.h (df_inns_rescan_debug_internal): Declare.
5910         * gcse.c (alloc_hash_table): Estimate n_insns.
5911         (cprop_insn): Don't regard debug insns as changes.
5912         (bypass_conditional_jumps): Skip debug insns.
5913         (one_pre_gcse_pass): Adjust.
5914         (one_code_hoisting_pass): Likewise.
5915         (compute_ld_motion_mems): Skip debug insns.
5916         (one_cprop_pass): Adjust.
5917         * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
5918         (if_convertible_stmt_p): Handle debug stmts.
5919         * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
5920         * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
5921         * ira-build.c (create_bb_allocnos): Skip debug insns.
5922         * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
5923         (has_single_use): Likewise.
5924         (single_imm_use): Likewise.
5925         (num_imm_uses): Likewise.
5926         * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
5927         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
5928         (create_outofssa_var_map): Likewise.
5929         * lower-subreg.c (adjust_decomposed_uses): New.
5930         (resolve_debug): New.
5931         (decompose_multiword_subregs): Use it.
5932         * tree-dfa.c (find_referenced_vars): Skip debug stmts.
5933         * emit-rtl.c: Include params.h.
5934         (cur_debug_insn_uid): Define.
5935         (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
5936         (copy_rtx_if_shared_1): Handle debug insns.
5937         (reset_used_flags): Likewise.
5938         (set_used_flags): LIkewise.
5939         (get_max_insn_count): New.
5940         (next_nondebug_insn): New.
5941         (prev_nondebug_insn): New.
5942         (make_debug_insn_raw): New.
5943         (emit_insn_before_noloc): Handle debug insns.
5944         (emit_jump_insn_before_noloc): Likewise.
5945         (emit_call_insn_before_noloc): Likewise.
5946         (emit_debug_insn_before_noloc): New.
5947         (emit_insn_after_noloc): Handle debug insns.
5948         (emit_jump_insn_after_noloc): Likewise.
5949         (emit_call_insn_after_noloc): Likewise.
5950         (emit_debug_insn_after_noloc): Likewise.
5951         (emit_insn_after): Take loc from earlier non-debug insn.
5952         (emit_jump_insn_after): Likewise.
5953         (emit_call_insn_after): Likewise.
5954         (emit_debug_insn_after_setloc): New.
5955         (emit_debug_insn_after): New.
5956         (emit_insn_before): Take loc from later non-debug insn.
5957         (emit_jump_insn_before): Likewise.
5958         (emit_call_insn_before): Likewise.
5959         (emit_debug_insn_before_setloc): New.
5960         (emit_debug_insn_before): New.
5961         (emit_insn): Handle debug insns.
5962         (emit_debug_insn): New.
5963         (emit_jump_insn): Handle debug insns.
5964         (emit_call_insn): Likewise.
5965         (emit): Likewise.
5966         (init_emit): Take min-nondebug-insn-uid into account.
5967         Initialize cur_debug_insn_uid.
5968         (emit_copy_of_insn_after): Handle debug insns.
5969         * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
5970         location of single rhs in place.
5971         (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
5972         (floor_sdiv_adjust): New.
5973         (cell_sdiv_adjust): New.
5974         (cell_udiv_adjust): New.
5975         (round_sdiv_adjust): New.
5976         (round_udiv_adjust): New.
5977         (wrap_constant): Moved from cselib.
5978         (unwrap_constant): New.
5979         (expand_debug_expr): New.
5980         (expand_debug_locations): New.
5981         (expand_gimple_basic_block): Drop hiding redeclaration.  Expand
5982         debug bind stmts.
5983         (gimple_expand_cfg): Expand debug locations.
5984         * cselib.c: Include tree-pass.h.
5985         (struct expand_value_data): New.
5986         (cselib_record_sets_hook): New.
5987         (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
5988         (cselib_clear_table): Move, and implemnet in terms of...
5989         (cselib_reset_table_with_next_value): ... this.
5990         (cselib_get_next_unknown_value): New.
5991         (discard_useless_locs): Don't discard preserved values.
5992         (cselib_preserve_value): New.
5993         (cselib_preserved_value_p): New.
5994         (cselib_preserve_definitely): New.
5995         (cselib_clear_preserve): New.
5996         (cselib_preserve_only_values): New.
5997         (new_cselib_val): Take rtx argument.  Dump it in details.
5998         (cselib_lookup_mem): Adjust.
5999         (expand_loc): Take regs_active in struct.  Adjust.  Silence
6000         dumps unless details are requested.
6001         (cselib_expand_value_rtx_cb): New.
6002         (cselib_expand_value_rtx): Rename and reimplment in terms of...
6003         (cselib_expand_value_rtx_1): ... this.  Adjust.  Silence dumps
6004         without details.  Copy more subregs.  Try to resolve values
6005         using a callback.  Wrap constants.
6006         (cselib_subst_to_values): Adjust.
6007         (cselib_log_lookup): New.
6008         (cselib_lookup): Call it.
6009         (cselib_invalidate_regno): Don't count preserved values as useless.
6010         (cselib_invalidate_mem): Likewise.
6011         (cselib_record_set): Likewise.
6012         (struct set): Renamed to cselib_set, moved to cselib.h.
6013         (cselib_record_sets): Adjust.  Call hook.
6014         (cselib_process_insn): Reset table when it would be cleared.
6015         (dump_cselib_val): New.
6016         (dump_cselib_table): New.
6017         * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
6018         (remove_forwarder_block): Support moving debug stmts.
6019         * cselib.h (cselib_record_sets_hook): Declare.
6020         (cselib_expand_callback): New type.
6021         (cselib_expand_value_rtx_cb): Declare.
6022         (cselib_reset_table_with_next_value): Declare.
6023         (cselib_get_next_unknown_value): Declare.
6024         (cselib_preserve_value): Declare.
6025         (cselib_preserved_value_p): Declare.
6026         (cselib_preserve_only_values): Declare.
6027         (dump_cselib_table): Declare.
6028         * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
6029         (try_crossjump_to_edge): Likewise.
6030         (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
6031         dominated blocks when debug stmts are present.
6032         * simplify-rtx.c (delegitimize_mem_from_attrs): New.
6033         * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
6034         (set_var_live_on_entry): Likewise.
6035         * loop-invariant.c (find_invariants_bb): Skip debug insns.
6036         * cfglayout.c (curr_location, last_location): Make static.
6037         (set_curr_insn_source_location): Don't avoid bouncing.
6038         (get_curr_insn_source_location): New.
6039         (get_curr_insn_block): New.
6040         (duplicate_insn_chain): Handle debug insns.
6041         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
6042         into debug stmts.
6043         * common.opt (fcompare-debug): Move to sort order.
6044         (fdump-unnumbered-links): Likewise.
6045         (fvar-tracking-assignments): New.
6046         (fvar-tracking-assignments-toggle): New.
6047         * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
6048         because of debug stmts.
6049         (mark_stmt_if_obviously_necessary): Mark debug stmts.
6050         (eliminate_unnecessary_stmts): Walk dominated blocks before
6051         dominators.
6052         * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
6053         * ira.c (memref_used_between_p): Skip debug insns.
6054         (update_equiv_regs): Likewise.
6055         * sched-deps.c (sd_lists_size): Accept empty list.
6056         (sd_init_insn): Mark debug insns.
6057         (sd_finish_insn): Unmark them.
6058         (sd_add_dep): Reject non-debug deps on debug insns.
6059         (fixup_sched_groups): Give debug insns group treatment.
6060         Skip debug insns.
6061         (sched_analyze_reg): Don't mark debug insns for sched before call.
6062         (sched_analyze_2): Handle debug insns.
6063         (sched_analyze_insn): Compute next non-debug insn.  Handle debug
6064         insns.
6065         (deps_analyze_insn): Handle debug insns.
6066         (deps_start_bb): Skip debug insns.
6067         (init_deps): Initialize last_debug_insn.
6068         * tree-ssa.c (target_for_debug_bind): New.
6069         (find_released_ssa_name): New.
6070         (propagate_var_def_into_debug_stmts): New.
6071         (propagate_defs_into_debug_stmts): New.
6072         (verify_ssa): Skip debug bind stmts without values.
6073         (warn_uninialized_vars): Skip debug stmts.
6074         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
6075         * rtl.c (rtx_equal_p_cb): Handle VALUEs.
6076         (rtx_equal_p): Likewise.
6077         * ira-costs.c (scan_one_insn): Skip debug insns.
6078         (process_bb_node_for_hard_reg_moves): Likewise.
6079         * rtl.h (DEBUG_INSN_P): New.
6080         (NONDEBUG_INSN_P): New.
6081         (MAY_HAVE_DEBUG_INSNS): New.
6082         (INSN_P): Accept debug insns.
6083         (RTX_FRAME_RELATED_P): Likewise.
6084         (INSN_DELETED_P): Likewise
6085         (PAT_VAR_LOCATION_DECL): New.
6086         (PAT_VAR_LOCATION_LOC): New.
6087         (PAT_VAR_OCATION_STATUS): New.
6088         (NOTE_VAR_LOCATION_DECL): Reimplement.
6089         (NOTE_VAR_LOCATION_LOC): Likewise.
6090         (NOTE_VAR_LOCATION_STATUS): Likewise.
6091         (INSN_VAR_LOCATION): New.
6092         (INSN_VAR_LOCATION_DECL): New.
6093         (INSN_VAR_LOCATION_LOC): New.
6094         (INSN_VAR_LOCATION_STATUS): New.
6095         (gen_rtx_UNKNOWN_VAR_LOC): New.
6096         (VAR_LOC_UNKNOWN_P): New.
6097         (NOTE_DURING_CALL_P): New.
6098         (SCHED_GROUP_P): Accept debug insns.
6099         (emit_debug_insn_before): Declare.
6100         (emit_debug_insn_before_noloc): Declare.
6101         (emit_debug_insn_beore_setloc): Declare.
6102         (emit_debug_insn_after): Declare.
6103         (emit_debug_insn_after_noloc): Declare.
6104         (emit_debug_insn_after_setloc): Declare.
6105         (emit_debug_insn): Declare.
6106         (make_debug_insn_raw): Declare.
6107         (prev_nondebug_insn): Declare.
6108         (next_nondebug_insn): Declare.
6109         (delegitimize_mem_from_attrs): Declare.
6110         (get_max_insn_count): Declare.
6111         (wrap_constant): Declare.
6112         (unwrap_constant): Declare.
6113         (get_curr_insn_source_location): Declare.
6114         (get_curr_insn_block): Declare.
6115         * tree-inline.c (insert_debug_decl_map): New.
6116         (processing_debug_stmt): New.
6117         (remap_decl): Don't create new mappings in debug stmts.
6118         (remap_gimple_op_r): Don't add references in debug stmts.
6119         (copy_tree_body_r): Likewise.
6120         (remap_gimple_stmt): Handle debug bind stmts.
6121         (copy_bb): Skip debug stmts.
6122         (copy_edges_for_bb): Likewise.
6123         (copy_debug_stmt): New.
6124         (copy_debug_stmts): New.
6125         (copy_body): Copy debug stmts at the end.
6126         (insert_init_debug_bind): New.
6127         (insert_init_stmt): Take id.  Skip and emit debug stmts.
6128         (setup_one_parameter): Remap variable earlier, register debug mapping.
6129         (estimate_num_insns): Skip debug stmts.
6130         (expand_call_inline): Preserve debug_map.
6131         (optimize_inline_calls): Check for no debug_stmts left-overs.
6132         (unsave_expr_now): Preserve debug_map.
6133         (copy_gimple_seq_and_replace_locals): Likewise.
6134         (tree_function_versioning): Check for no debug_stmts left-overs.
6135         Init and destroy debug_map as needed.  Split edges unconditionally.
6136         (build_duplicate_type): Init and destroy debug_map as needed.
6137         * tree-inline.h: Include gimple.h instead of pointer-set.h.
6138         (struct copy_body_data): Add debug_stmts and debug_map.
6139         * sched-int.h (struct ready_list): Add n_debug.
6140         (struct deps): Add last_debug_insn.
6141         (DEBUG_INSN_SCHED_P): New.
6142         (BOUNDARY_DEBUG_INSN_P): New.
6143         (SCHEDULE_DEBUG_INSN_P): New.
6144         (sd_iterator_cond): Accept empty list.
6145         * combine.c (create_log_links): Skip debug insns.
6146         (combine_instructions): Likewise.
6147         (cleanup_auto_inc_dec): New.  From Jakub Jelinek: Make sure the
6148         return value is always unshared.
6149         (struct rtx_subst_pair): New.
6150         (auto_adjust_pair): New.
6151         (propagate_for_debug_subst): New.
6152         (propagate_for_debug): New.
6153         (try_combine): Skip debug insns.  Propagate removed defs into
6154         debug insns.
6155         (next_nonnote_nondebug_insn): New.
6156         (distribute_notes): Use it.  Skip debug insns.
6157         (distribute_links): Skip debug insns.
6158         * tree-outof-ssa.c (set_location_for_edge): Likewise.
6159         * resource.c (mark_target_live_regs): Likewise.
6160         * var-tracking.c: Include cselib.h and target.h.
6161         (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
6162         MO_VAL_SET.
6163         (micro_operation_type_name): New.
6164         (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
6165         (struct micro_operation_def): Update comments.
6166         (decl_or_value): New type.  Use instead of decls.
6167         (struct emit_note_data_def): Add vars.
6168         (struct attrs_def): Use decl_or_value.
6169         (struct variable_tracking_info_def): Add permp, flooded.
6170         (struct location_chain_def): Update comment.
6171         (struct variable_part_def): Use decl_or_value.
6172         (struct variable_def): Make var_part a variable length array.
6173         (valvar_pool): New.
6174         (scratch_regs): New.
6175         (cselib_hook_called): New.
6176         (dv_is_decl_p): New.
6177         (dv_is_value_p): New.
6178         (dv_as_decl): New.
6179         (dv_as_value): New.
6180         (dv_as_opaque): New.
6181         (dv_onepart_p): New.
6182         (dv_pool): New.
6183         (IS_DECL_CODE): New.
6184         (check_value_is_not_decl): New.
6185         (dv_from_decl): New.
6186         (dv_from_value): New.
6187         (dv_htab_hash): New.
6188         (variable_htab_hash): Use it.
6189         (variable_htab_eq): Support values.
6190         (variable_htab_free): Free from the right pool.
6191         (attrs_list_member, attrs_list_insert): Use decl_or_value.
6192         (attrs_list_union): Adjust.
6193         (attrs_list_mpdv_union): New.
6194         (tie_break_pointers): New.
6195         (canon_value_cmp): New.
6196         (unshare_variable): Return possibly-modified slot.
6197         (vars_copy_1): Adjust.
6198         (var_reg_decl_set): Adjust.  Split out of...
6199         (var_reg_set): ... this.
6200         (get_init_value): Adjust.
6201         (var_reg_delete_and_set): Adjust.
6202         (var_reg_delete): Adjust.
6203         (var_regno_delete): Adjust.
6204         (var_mem_decl_set): Split out of...
6205         (var_mem_set): ... this.
6206         (var_mem_delete_and_set): Adjust.
6207         (var_mem_delete): Adjust.
6208         (val_store): New.
6209         (val_reset): New.
6210         (val_resolve): New.
6211         (variable_union): Adjust.  Speed up merge of 1-part vars.
6212         (variable_canonicalize): Use unshared slot.
6213         (VALUED_RECURSED_INTO): New.
6214         (find_loc_in_1pdv): New.
6215         (struct dfset_merge): New.
6216         (insert_into_intersection): New.
6217         (intersect_loc_chains): New.
6218         (loc_cmp): New.
6219         (canonicalize_loc_order_check): New.
6220         (canonicalize_values_mark): New.
6221         (canonicalize_values_star): New.
6222         (variable_merge_over_cur): New.
6223         (variable_merge_over_src): New.
6224         (dataflow_set_merge): New.
6225         (dataflow_set_equiv_regs): New.
6226         (remove_duplicate_values): New.
6227         (struct dfset_post_merge): New.
6228         (variable_post_merge_new_vals): New.
6229         (variable_post_merge_perm_vals): New.
6230         (dataflow_post_merge_adjust): New.
6231         (find_mem_expr_in_1pdv): New.
6232         (dataflow_set_preserve_mem_locs): New.
6233         (dataflow_set_remove_mem_locs): New.
6234         (dataflow_set_clear_at_call): New.
6235         (onepart_variable_different_p): New.
6236         (variable_different_p): Use it.
6237         (dataflow_set_different_1): Adjust.  Make detailed dump more verbose.
6238         (track_expr_p): Add need_rtl parameter.  Don't generate rtl
6239         if not needed.
6240         (track_loc_p): Pass it true.
6241         (struct count_use_info): New.
6242         (find_use_val): New.
6243         (replace_expr_with_values): New.
6244         (log_op_type): New.
6245         (use_type): New, partially split out of...
6246         (count_uses): ... this.  Count new micro-ops.
6247         (count_uses_1): Adjust.
6248         (count_stores): Adjust.
6249         (count_with_sets): New.
6250         (VAL_NEEDS_RESOLUTION): New.
6251         (VAL_HOLDS_TRACK_EXPR): New.
6252         (VAL_EXPR_IS_COPIED): New.
6253         (VAL_EXPR_IS_CLOBBERED): New.
6254         (add_uses): Adjust.  Generate new micro-ops.
6255         (add_uses_1): Adjust.
6256         (add_stores): Generate new micro-ops.
6257         (add_with_sets): New.
6258         (find_src_status): Adjust.
6259         (find_src_set_src): Adjust.
6260         (compute_bb_dataflow): Use dataflow_set_clear_at_call.
6261         Handle new micro-ops.  Canonicalize value equivalances.
6262         (vt_find_locations): Compute total size of hash tables for
6263         dumping.  Perform merge for var-tracking-assignments.  Don't
6264         disregard single-block loops.
6265         (dump_attrs_list): Handle decl_or_value.
6266         (dump_variable): Take variable.  Deal with decl_or_value.
6267         (dump_variable_slot): New.
6268         (dump_vars): Use it.
6269         (dump_dataflow_sets): Adjust.
6270         (set_slot_part): New, extended to support one-part variables
6271         after splitting out of...
6272         (set_variable_part): ... this.
6273         (clobber_slot_part): New, split out of...
6274         (clobber_variable_part): ... this.
6275         (delete_slot_part): New, split out of...
6276         (delete_variable_part): .... this.
6277         (check_wrap_constant): New.
6278         (vt_expand_loc_callback): New.
6279         (vt_expand_loc): New.
6280         (emit_note_insn_var_location): Adjust.  Handle values.  Handle
6281         EMIT_NOTE_AFTER_CALL_INSN.
6282         (emit_notes_for_differences_1): Adjust.  Handle values.
6283         (emit_notes_for_differences_2): Likewise.
6284         (emit_notes_for_differences): Adjust.
6285         (emit_notes_in_bb): Take pointer to set.  Emit AFTER_CALL_INSN notes.
6286         Adjust.  Handle new micro-ops.
6287         (vt_add_function_parameters): Adjust.  Create and bind values.
6288         (vt_initialize): Adjust.  Initialize scratch_regs and
6289         valvar_pool, flooded and perm..  Initialize and use cselib.  Log
6290         operations.  Move some code to count_with_sets and add_with_sets.
6291         (delete_debug_insns): New.
6292         (vt_debug_insns_local): New.
6293         (vt_finalize): Release permp, valvar_pool, scratch_regs.  Finish
6294         cselib.
6295         (var_tracking_main): If var-tracking-assignments is enabled
6296         but var-tracking isn't, delete debug insns and leave.  Likewise
6297         if we exceed limits or fail the stack adjustments tests, and
6298         after all var-tracking processing.
6299         More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
6300         (dataflow_set): Add traversed_vars.
6301         (value_chain, const_value_chain): New typedefs.
6302         (value_chain_pool, value_chains): New variables.
6303         (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
6304         add_value_chains, add_cselib_value_chains, remove_value_chain,
6305         remove_value_chains, remove_cselib_value_chains): New functions.
6306         (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
6307         shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
6308         static inlines.
6309         (shared_hash_find_slot_unshare, shared_hash_find_slot,
6310         shared_hash_find_slot_noinsert, shared_hash_find): Update.
6311         (dst_can_be_shared): New variable.
6312         (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
6313         Clear dst_can_be_shared.  If set->traversed_vars is non-NULL and
6314         different from set->vars, look up slot again instead of using the
6315         passed in slot.
6316         (dataflow_set_init): Initialize traversed_vars.
6317         (variable_union): Use shared_hash_*.  Use initially NO_INSERT
6318         lookup if set->vars is shared.  Don't keep slot cleared before
6319         calling unshare_variable.  Unshare set->vars if needed.  Adjust
6320         unshare_variable callers.  Clear dst_can_be_shared if needed.
6321         Even ->refcount == 1 vars must be unshared if set->vars is shared
6322         and var needs to be modified.
6323         (dataflow_set_union): Set traversed_vars during canonicalization.
6324         (VALUE_CHANGED, DECL_CHANGED): Define.
6325         (set_dv_changed, dv_changed_p): New static inlines.
6326         (track_expr_p): Clear DECL_CHANGED.
6327         (dump_dataflow_sets): Set it.
6328         (variable_was_changed): Call set_dv_changed.
6329         (emit_note_insn_var_location): Likewise.
6330         (changed_variables_stack): New variable.
6331         (check_changed_vars_1, check_changed_vars_2): New functions.
6332         (emit_notes_for_changes): Do nothing if changed_variables is
6333         empty.  Traverse changed_variables with check_changed_vars_1,
6334         call check_changed_vars_2 on each changed_variables_stack entry.
6335         (emit_notes_in_bb): Add SET argument.  Just clear it at the
6336         beginning, use it instead of local &set, don't destroy it at the end.
6337         (vt_emit_notes): Call dataflow_set_clear early on all
6338         VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
6339         computed set, dataflow_set_clear also VTI(bb)->in when we are
6340         done with the basic block.  Initialize changed_variables_stack,
6341         free it afterwards.  If ENABLE_CHECKING verify that after noting
6342         differences to an empty set value_chains hash table is empty.
6343         (vt_initialize): Initialize value_chains and value_chain_pool.
6344         (vt_finalize): Delete value_chains htab, free value_chain_pool.
6345         (variable_tracking_main): Call dump_dataflow_sets before calling
6346         vt_emit_notes, not after it.
6347         * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
6348         (propagate_var_def_into_debug_stmts): Declare.
6349         * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
6350         (df_set_note): Reject debug insns.
6351         (df_whole_mw_reg_dead_p): Take added_notes_p argument.  Don't
6352         add notes to debug insns.
6353         (df_note_bb_compute): Adjust.  Likewise.
6354         (df_simulate_uses): Skip debug insns.
6355         (df_simulate_initialize_backwards): Likewise.
6356         * reg-stack.c (subst_stack_regs_in_debug_insn): New.
6357         (subst_stack_regs_pat): Reject debug insns.
6358         (convert_regs_1): Handle debug insns.
6359         * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
6360         (print-rtl.o): Depend on cselib.h.
6361         (cselib.o): Depend on TREE_PASS_H.
6362         (var-tracking.o): Depend on cselib.h and TARGET_H.
6363         * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
6364         (init_ready_list): Skip boundary debug insns.
6365         (add_branch_dependences): Skip debug insns.
6366         (free_block_dependencies): Check for blocks with only debug insns.
6367         (compute_priorities): Likewise.
6368         * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
6369         (gimple_build_with_ops_stat): Take subcode as unsigned.  Adjust
6370         all callers.
6371         (gimple_build_debug_bind_stat): New.
6372         (empty_body_p): Skip debug stmts.
6373         (gimple_has_side_effects): Likewise.
6374         (gimple_rhs_has_side_effects): Likewise.
6375         * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
6376         (gimple_build_debug_bind_stat): Declare.
6377         (gimple_build_debug_bind): Define.
6378         (is_gimple_debug): New.
6379         (gimple_debug_bind_p): New.
6380         (gimple_debug_bind_get_var): New.
6381         (gimple_debug_bind_get_value): New.
6382         (gimple_debug_bind_get_value_ptr): New.
6383         (gimple_debug_bind_set_var): New.
6384         (gimple_debug_bind_set_value): New.
6385         (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
6386         (gimple_debug_bind_reset_value): New.
6387         (gimple_debug_bind_has_value_p): New.
6388         (gsi_next_nondebug): New.
6389         (gsi_prev_nondebug): New.
6390         (gsi_start_nondebug_bb): New.
6391         (gsi_last_nondebug_bb): New.
6392         * sched-vis.c (print_pattern): Handle VAR_LOCATION.
6393         (print_insn): Handle DEBUG_INSN.
6394         * tree-cfg.c (remove_bb): Walk stmts backwards.  Let loc
6395         of first insn prevail.
6396         (first_stmt): Skip debug stmts.
6397         (first_non_label_stmt): Likewise.
6398         (last_stmt): Likewise.
6399         (has_zero_uses_1): New.
6400         (single_imm_use_1): New.
6401         (verify_gimple_debug): New.
6402         (verify_types_in_gimple_stmt): Handle debug stmts.
6403         (verify_stmt): Likewise.
6404         (debug_loop_num): Skip debug stmts.
6405         (remove_edge_and_dominated_blocks): Remove dominators last.
6406         * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
6407         (linearize_expr): Likewise.
6408         * config/i386/i386.c (ix86_delegitimize_address): Call
6409         default implementation.
6410         * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
6411         (group_barrier_needed): Skip debug insns.
6412         (emit_insn_group_barriers): Likewise.
6413         (emit_all_insn_group_barriers): Likewise.
6414         (ia64_variable_issue): Handle debug insns.
6415         (ia64_dfa_new_cycle): Likewise.
6416         (final_emit_insn_group_barriers): Skip debug insns.
6417         (ia64_dwarf2out_def_steady_cfa): Take frame argument.  Don't
6418         def cfa without frame.
6419         (process_set): Likewise.
6420         (process_for_unwind_directive): Pass frame on.
6421         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
6422         (rs6000_delegitimize_address): New.
6423         (rs6000_debug_adjust_cost): Handle debug insns.
6424         (is_microcoded_insn): Likewise.
6425         (is_cracked_insn): Likewise.
6426         (is_nonpipeline_insn): Likewise.
6427         (insn_must_be_first_in_group): Likewise.
6428         (insn_must_be_last_in_group): Likewise.
6429         (force_new_group): Likewise.
6430         * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
6431         contains only debug insns.
6432         (rtl_merge_blocks): Skip debug insns.
6433         (purge_dead_edges): Likewise.
6434         (rtl_block_ends_with_call_p): Skip debug insns.
6435         * dce.c (deletable_insn_p): Handle VAR_LOCATION.
6436         (mark_reg_dependencies): Skip debug insns.
6437         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
6438         * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
6439         * tree-ssa-threadedge.c
6440         (record_temporary_equivalences_from_stmts): Skip debug stmts.
6441         * regcprop.c (replace_oldest_value_addr): Skip debug insns.
6442         (replace_oldest_value_mem): Use ALL_REGS for debug insns.
6443         (copyprop_hardreg_forward_1): Handle debug insns.
6444         * reload1.c (reload): Skip debug insns.  Replace unassigned
6445         pseudos in debug insns with their equivalences.
6446         (eliminate_regs_in_insn): Skip debug insns.
6447         (emit_input_reload_insns): Skip debug insns at first, adjust
6448         them later.
6449         * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
6450         (get_indirect_ref_operands): Pass opf_no_vops on.
6451         (get_expr_operands): Likewise.  Skip debug stmts.
6452         (parse_ssa_operands): Scan debug insns with opf_no_vops.
6453
6454 2009-09-01  Richard Henderson  <rth@redhat.com>
6455
6456         * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
6457         stmt_ends_pp_p statements at least once.
6458         * tree-vrp.c (vrp_initialize): Likewise.
6459         (vrp_visit_stmt): Be prepared for non-interesting stmts.
6460
6461 2009-09-01  Dodji Seketeli  <dodji@redhat.com>
6462
6463         PR bootstrap/41205
6464         Fix AIX bootstrap after PR debug/30161
6465         * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
6466         that is a GNU extension.
6467         (tmpl_value_parm_die_table): Move the definition of this global
6468         outside #ifdef DWARF2_DEBUGGING_INFO region.
6469
6470 2009-09-01  Richard Guenther  <rguenther@suse.de>
6471
6472         * tree.c (tree_expr_size): New function.
6473         * tree.h (tree_expr_size): Declare.
6474         * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
6475         * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
6476         * langhooks.c (lhd_expr_size): Remove.
6477         * langhooks.h (struct lang_hooks): Remove expr_size.
6478         * explow.c (expr_size): Use tree_expr_size.
6479         (int_expr_size): Likewise.
6480         * langhooks-def.h (lhd_expr_size): Remove.
6481         (LANG_HOOKS_EXPR_SIZE): Likewise.
6482         (LANG_HOOKS_INITIALIZER): Adjust.
6483
6484 2009-09-01  Richard Guenther  <rguenther@suse.de>
6485
6486         * tree-flow.h (mark_addressable): Move declaration ...
6487         * tree.h (mark_addressable): ... here.
6488         * stmt.c (expand_asm_operands): Use mark_addressable, not
6489         lang_hooks.mark_addressable.
6490         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
6491         LANG_HOOKS_MARK_ADDRESSABLE.
6492         * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
6493         * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
6494
6495 2009-08-31  Chris Demetriou  <cgd@google.com>
6496
6497         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
6498         vectorize if not TARGET_SSE2.
6499
6500 2009-08-31  DJ Delorie  <dj@redhat.com>
6501
6502         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
6503         registers if no coprocessor is enabled.
6504
6505 2009-08-31  Dodji Seketeli  <dodji@redhat.com>
6506
6507         PR debug/30161
6508         * cgraph.h (cgraph_get_node): Declare ...
6509         * cgraph.c (cgraph_get_node): ... new function.
6510         * dwarf2out.c (gen_generic_params_dies,
6511         generic_parameter_die, tree_add_const_value_attribute_for_decl,
6512         make_ith_pack_parameter_name,
6513         append_entry_to_tmpl_value_parm_die_table,
6514         gen_remaining_tmpl_value_param_die_attribute): New functions.
6515         (gen_subprogram_die): Generate debug info for template parameters
6516         if debug info level is higher than DINFO_LEVEL_TERSE.
6517         Use tree_add_const_value_attribute_for_decl instead of
6518         tree_add_const_value_attribute.
6519         (gen_const_die): Use tree_add_const_value_attribute_for_decl
6520         instead of tree_add_const_value_attribute.
6521         (gen_struct_or_union_type_die): Generate debug
6522         info for template parameters if debug info level is higher than
6523         DINFO_LEVEL_TERSE.
6524         (tree_add_const_value_attribute): Handle integral and pointer
6525         constants. Update comment.
6526         (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
6527         (dwarf_attr_name): Support DW_AT_GNU_template_name.
6528         (reference_to_unused): Fix thinko. Remove redundant predicates from
6529         tests.
6530         (tree_add_const_value_attribute): Make this work for constant
6531         expressions only.
6532         tree_add_const_value_attribute_for_decl is to be used for variable
6533         DECLs now.
6534         (add_location_or_const_value_attribute): Use
6535         tree_add_const_value_attribute_for_decl now.
6536         (dwarf2out_finish): Emit the DW_AT_const_value attribute of
6537         DW_TAG_template_value_param DIEs after function DIEs have been
6538         emitted.
6539         * langhooks.h (lang_hooks_for_types): Add
6540         get_argument_pack_elems.
6541         (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
6542         (lang_hooks): Added get_innermost_generic_parms,
6543         get_innermost_generic_args.
6544         * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
6545         LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
6546         LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
6547         LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
6548
6549 2009-08-31  DJ Delorie  <dj@redhat.com>
6550
6551         * config/mep/mep.c (machine_function): Add frame_locked flag.  Set
6552         it once we start generating the prologue or epilogue.
6553         (mep_call_saves_register): If the frame is locked, re-use
6554         cached values.
6555         (mep_assign_save_slots): New, broken out from mep_expand_prologue.
6556         (mep_expand_prologue): Call it.
6557         (mep_expand_epilogue): Likewise.
6558         (mep_start_function): Use the same logic as mep_expand_prologue.
6559         (mep_pass_by_reference): Make logic more readable.
6560         (mep_return_in_memory): Zero-sized objects are passed in memory.
6561         (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
6562
6563 2009-08-31  Richard Guenther  <rguenther@suse.de>
6564
6565         * builtins.c (fold_builtin_memory_op): Use the alias oracle
6566         to query if the memory regions for memmove overlap.
6567         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
6568         asserts on pointers, instead deal with odd trees.
6569         (ptr_derefs_may_alias_p): Likewise.
6570         (refs_may_alias_p_1): Constructor bases also never alias.
6571
6572 2009-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
6573
6574         * doc/install.texi (Final install): Adjust reference on where to
6575         order printed manuals.
6576
6577 2009-08-30  Olivier Hainque  <hainque@adacore.com>
6578
6579         * dwarf2out.c (switch_to_frame_table_section): Move
6580         definition prior to first use.
6581
6582 2009-08-30  Richard Guenther  <rguenther@suse.de>
6583
6584         PR tree-optimization/41186
6585         * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
6586         (ao_ref_init_from_ptr_and_size): New function.
6587         (ref_maybe_used_by_call_p_1): Be more precise tracking
6588         used ranges for builtin functions.
6589         (ref_maybe_used_by_call_p): Adjust.
6590         (call_may_clobber_ref_p_1): Be more precise tracking clobbered
6591         ranges for builtin functions.
6592         * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
6593
6594 2009-08-30  Alan Modra  <amodra@bigpond.net.au>
6595
6596         PR target/41081
6597         * fwprop.c (get_reg_use_in): Delete.
6598         (free_load_extend): New function.
6599         (forward_propagate_subreg): Use it.
6600
6601 2009-08-29  Kaz Kojima  <kkojima@gcc.gnu.org>
6602
6603         * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
6604
6605 2009-08-29  Kai Tietz<kai.tietz@onevision.com>
6606
6607         PR/41184
6608         * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
6609         padding.
6610
6611 2009-08-29  Douglas B Rupp  <rupp@gnat.com>
6612
6613         * crtstuff.c (__do_global_dtors_aux): Use atexit if no
6614         fini or fini_array section.
6615
6616 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6617
6618         * graphite-dependences.c (graphite_legal_transform_bb): Call
6619         pbb_remove_duplicate_pdrs.
6620         * graphite-poly.c (can_collapse_pdr): Removed.
6621         (pdr_find_duplicate): Removed.
6622         (can_collapse_pdrs): New.
6623         (pbb_remove_duplicate_pdrs): New.
6624         (new_poly_dr): Do not look for duplicates.
6625         * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
6626         (PBB_PDR_DUPLICATES_REMOVED): New.
6627         (pbb_remove_duplicate_pdrs): Declared.
6628
6629 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6630
6631         * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
6632         the strides by multiplying by PDR_NB_REFS.
6633         * graphite-poly.c (can_collapse_pdr): New.
6634         (pdr_find_duplicate): New.
6635         (new_poly_dr): Call pdr_find_duplicate.  Collapse duplicate PDRs.
6636         Initialize PDR_NB_REFS.
6637         * graphite-poly.h (struct poly_dr): Add field nb_refs.
6638         (PDR_NB_REFS): New.
6639         (new_poly_dr): Number of subscripts is a graphite_dim_t.
6640
6641 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6642
6643         PR middle-end/40965
6644         * graphite-poly.c (apply_poly_transforms): Remove legality test before
6645         any transform.
6646
6647 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6648
6649         * graphite-dependences.c (pddr_original_scattering): Return NULL
6650         for read-read dependence relations.
6651         * graphite-poly.h (enum poly_dr_type): Fix comment.
6652         (pdr_read_p): New.
6653         (pdr_write_p): New.
6654         (pdr_may_write_p): New.
6655
6656 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6657
6658         * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
6659         (struct poly_dr): Same.
6660         (new_poly_dr): Same.
6661         * graphite-poly.c (new_poly_dr): Same.
6662         * graphite-dependences.c (dot_deps): Disable call to system.
6663
6664 2009-08-28  Cary Coutant  <ccoutant@google.com>
6665
6666         PR debug/41063
6667         * dwarf2out.c (gen_type_die_with_usage): Use proper context for
6668         struct/union/enum types local to a function.
6669
6670 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
6671             Sebastian Pop  <sebastian.pop@amd.com>
6672
6673         * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
6674         pbb_strip_mine_time_depth.  Changed the implementation so that
6675         transformation is expressed as a transformation on
6676         time (scatttering) dimensions.  Also, ensures that the 2d+1
6677         scheduling format is preserved.
6678         (pbb_strip_mine_profitable_p): Profitability is based on the
6679         iteration number of a given time (scattering) dimension,
6680         and not on a original loop depth dimension.
6681         (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
6682         (pbb_do_strip_mine): Call psct_dynamic_dim.
6683         * graphite-poly.c (pbb_number_of_iterations_at_time): New.
6684         * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
6685         (pbb_nb_dynamic_scattering_transform): New.
6686         (psct_dynamic_dim): New.
6687
6688 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
6689
6690         * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
6691         * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
6692         * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
6693         * graphite-interchange.c (build_linearized_memory_access): Same.
6694         (memory_stride_in_loop): Same.
6695
6696 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6697
6698         * graphite-dependences.c (pddr_original_scattering): New.
6699         (graphite_legal_transform_dr): Call pddr_original_scattering.
6700         (dot_deps_1): New.
6701         (dot_deps): New.
6702         * graphite-dependences.h (dot_deps): Declared.
6703         * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
6704         (print_pdr): Print PDR_ID.
6705         * graphite-poly.h (struct poly_dr): Add field id.
6706         (PDR_ID): New.
6707         (pbb_index): New.
6708         * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
6709
6710 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6711
6712         * graphite-dependences.c (graphite_carried_dependence_level_k): Do
6713         not delete the original dependence relation.
6714
6715 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6716
6717         * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
6718         (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
6719         (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
6720         (free_poly_ddr): New.
6721         (pddr_is_empty): New.
6722         (dependence_polyhedron_1): Now returns a poly_ddr_p.
6723         (dependence_polyhedron): Same.  Remove useless gcc_assert.
6724         Remove fprintfs.
6725         (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
6726         (graphite_carried_dependence_level_k): Call pddr_is_empty.
6727         * graphite-dependences.h (enum poly_dependence_kind): New.
6728         (poly_dr_pair): Renamed poly_ddr.  Added a field kind.
6729         (PDRP_SOURCE): Renamed PDDR_SOURCE.
6730         (PDRP_SINK): Renamed PDDR_SINK.
6731         (PDRP_DDP): Renamed PDDR_DDP.
6732         (PDDR_KIND): New.
6733         (free_poly_ddr): Declared.
6734         * graphite-poly.c (new_scop): Use the new hash function names.
6735         * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
6736         into original_pddrs.
6737         (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
6738
6739 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6740
6741         * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
6742         bounds with LT_EXPR to make niter analysis more precise on code
6743         generated by Graphite.
6744
6745 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6746
6747         * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
6748         (graphite_legal_transform_bb): Same.
6749         (poly_drs_may_alias_p): Same.
6750
6751 2009-08-28  Richard Guenther  <rguenther@suse.de>
6752
6753         * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
6754
6755 2009-08-28  Jan Beulich  <jbeulich@novell.com>
6756
6757         * config/i386/netware.c: Include langhooks.h.
6758         (i386_nlm_encode_section_info): Simplify.
6759         (netware_override_options): Delete.
6760         * config/i386/netware.h (netware_override_options): Delete
6761         declaration.
6762         (OVERRIDE_OPTIONS): Delete definition.
6763         (SUBTARGET_OVERRIDE_OPTIONS): Define.
6764         (ASM_COMMENT_START): Define.
6765         * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
6766
6767 2009-08-28  Jan Beulich  <jbeulich@novell.com>
6768
6769         * configure.ac: For in-tree ld, do a plain version check to
6770         determine whether comdat groups are supported.
6771         * configure: Regenerate.
6772
6773 2009-08-28  Olivier Hainque  <hainque@adacore.com>
6774
6775         * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
6776         always defined.  Reflect definition or absence of such for
6777         COLLECT_EXPORT_LIST.  Readability helper.
6778         (scanfilter): New enum, to help control what symbols
6779         are to be considered or ignored by scan_prog_file.
6780         (enum pass): Rename as "scanpass", moved together with scanfilter
6781         prior to scan_prog_file's prototype.
6782         (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
6783         Group prototype with the scanpass/scanfilter definitions, factorize
6784         head comments for the several implementations at the prototype.
6785         (main): Reorganize the first pass link control to let AIX
6786         drag only the needed frame tables in executables.  Prevent
6787         frame tables collection during the scan aimed at static ctors.
6788         Pre-link and scan for frame tables later to compensate.
6789         * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
6790         A C statement to issue assembly directives that create a reference
6791         to the given DWARF table identifier label from the current function
6792         section.
6793         * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
6794         to differentiate first time section entry.  Only emit a .data
6795         tables start identifier label the first time around.
6796         (switch_to_frame_table_section): New function.  Helper for
6797         output_call_frame_info to switch possibly BACK into the eh_frame
6798         or the debug_frame section depending on FOR_EH.
6799         (output_call_frame_info): Use helper to first enter the proper
6800         frame section.
6801         (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
6802         emit a link to the frame table start label from each function
6803         section.
6804         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
6805         New function.  Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
6806         * config/rs6000/rs6000-protos.h: Declare it.
6807         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
6808
6809 2009-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
6810
6811         * config/sh/sh.c (split_branches): Check the result of
6812         next_active_insn.
6813
6814 2009-08-27  Steve Ellcey  <sje@cup.hp.com>
6815
6816         * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
6817         using -pthread -fopenmp
6818
6819 2009-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
6820
6821         * doc/service.texi (service directory): Update URL.
6822
6823 2009-08-27  Uros Bizjak  <ubizjak@gmail.com>
6824
6825         PR rtl-optimization/40861
6826         * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
6827         extract word from a multi-word subreg for negative byte positions.
6828
6829 2009-08-27  Tristan Gingold  <gingold@adacore.com>
6830             Douglas B Rupp  <rupp@gnat.com>
6831
6832         * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
6833         (SECTION_VMS_OVERLAY): Define.
6834         (ia64_vms_common_object_attribute): Added.  Handle the "common_object"
6835         attribute.
6836         (ia64_vms_elf_asm_named_section): Added.  Generate .section pseudo-op
6837         for common_object.
6838         (ia64_vms_output_aligned_decl_common): Added.  Generate pseudo-op for
6839         common_object declarations.
6840         (ia64_section_type_flags): Set section flag for common_object.
6841         * config/ia64/ia64-protos.h
6842         (ia64_vms_output_aligned_decl_common): Declare.
6843         (ia64_vms_elf_asm_named_section): Declare.
6844
6845 2009-08-27  Michael Matz  <matz@suse.de>
6846
6847         * expr.c (expand_expr_real_2): New function taking exploded
6848         unary or binary expression, split out from ...
6849         (expand_expr_real_1): ... here.  Move over all unary/binary
6850         switch parts to above function, in particular these codes:
6851         PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
6852         MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
6853         ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
6854         FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
6855         FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
6856         BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
6857         BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
6858         LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
6859         NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
6860         UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
6861         WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
6862         VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
6863         VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
6864         VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
6865         VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
6866         VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
6867         VEC_PACK_FIX_TRUNC_EXPR.
6868         (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
6869         full expression.
6870
6871 2009-08-27  Richard Guenther  <rguenther@suse.de>
6872
6873         * gengtype.c (main): Handle uint64_t.
6874         * ipa-utils.c (get_base_var): Indent properly.
6875         * tree-ssa-live.c (debug_scope_block): New function.
6876         * tree-flow.h (debug_scope_block): Declare.
6877         * tree-ssa-copy.c (replace_exp_1): Add vertical space.
6878         * basic-block.h (enum profile_status): Rename to
6879         enum profile_status_d.
6880         (x_profile_status): Adjust type.
6881
6882 2009-08-27  Dodji Seketeli  <dodji@redhat.com>
6883
6884         PR debug/41170
6885         * dwarf2out.c (get_context_die): Declare this static function.
6886         (gen_type_die_with_usage): Make sure a DIE is a generated for
6887         the context of a typedef.
6888
6889 2009-08-26  Anatoly Sokolov  <aesok@post.ru>
6890
6891         * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
6892         switch.
6893
6894 2009-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
6895
6896         * config/mips/mips-protos.h (mips_output_sync): Declare.
6897         (mips_sync_loop_insns): Likewise.
6898         (mips_output_sync_loop): Replace first two parameters with an rtx.
6899         * config/mips/mips.c (mips_multi_member): New structure.
6900         (mips_multi_members): New variable.
6901         (mips_multi_start): New function.
6902         (mips_multi_add): Likewise.
6903         (mips_multi_add_insn): Likewise.
6904         (mips_multi_add_label): Likewise.
6905         (mips_multi_last_index): Likewise.
6906         (mips_multi_copy_insn): Likewise.
6907         (mips_multi_set_operand): Likewise.
6908         (mips_multi_write): Likewise.
6909         (mips_print_operand_punctuation): Remove '%|' and '%-'.
6910         (mips_init_print_operand_punct): Update accordingly.
6911         (mips_start_ll_sc_sync_block): New function.
6912         (mips_end_ll_sc_sync_block): Likewise.
6913         (mips_output_sync): Likewise.
6914         (mips_sync_insn1_template): Likewise.
6915         (mips_sync_insn2_template): Likewise.
6916         (mips_get_sync_operand): Likewise.
6917         (mips_process_sync_loop): Likewise.
6918         (mips_output_sync_loop): Use mips_process_sync_loop.
6919         (mips_sync_loop_insns): New function.
6920         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
6921         (MIPS_COMPARE_AND_SWAP_12): Likewise.
6922         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
6923         (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
6924         (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
6925         (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
6926         (MIPS_SYNC_OLD_OP_12): Likewise.
6927         (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
6928         (MIPS_SYNC_NEW_OP_12): Likewise.
6929         (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
6930         (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
6931         (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
6932         (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
6933         (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
6934         (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
6935         * config/mips/mips.md (sync_mem): New attribute.
6936         (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
6937         (sync_exclusive_mask, sync_required_oldval): Likewise.
6938         (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
6939         (sync_release_barrier): Likewise.
6940         (length): Handle sync loops.
6941         (sync): Use mips_output_sync.
6942         * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
6943         (sync_compare_and_swap<mode>): Set the new sync_* attributes
6944         and use mips_output_sync_loop.
6945         (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
6946         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
6947         (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
6948         (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
6949         (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
6950         (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
6951         (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
6952         (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
6953         (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
6954
6955 2009-08-26  Richard Guenther  <rguenther@suse.de>
6956
6957         PR middle-end/41163
6958         * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
6959         the types to not match.
6960         * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
6961         verification.
6962         * tree-ssa.c (useless_type_conversion_p): Conversions to
6963         pointers to unprototyped functions are useless.
6964
6965 2009-08-26  Richard Guenther  <rguenther@suse.de>
6966
6967         * tree-ssa-structalias.c (create_variable_info_for): Remove strange
6968         whole-program condition, prepare to be called for non-globals.
6969         (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
6970         params build a representative with known type and track its fields.
6971
6972 2009-08-26  Uros Bizjak  <ubizjak@gmail.com>
6973
6974         * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
6975         clearing by a taken branch.
6976         (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
6977         effectively after bbro pass.
6978         (sync_nand<mode>): Ditto.
6979         (sync_old_<fetchop_name><mode>): Ditto.
6980         (sync_old_nand<mode>): Ditto.
6981         (sync_new_<fetchop_name><mode>): Dito.
6982         (sync_new_nand<mode>): Ditto.
6983         (sync_compare_and_swap<mode>_1): Ditto.
6984         (*sync_compare_and_swap<mode>): Ditto.
6985         (sync_lock_test_and_set<mode>_1): Ditto.
6986         ("sync_lock_test_and_set<mode>): Ditto.
6987
6988 2009-08-25  Douglas B Rupp  <rupp@gnat.com>
6989
6990         * hwint.h (HOST_LONG_FORMAT): New macro
6991         * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
6992         Use HOST_PTR_PRINTF.
6993         * system.h (HOST_PTR_PRINTF): Resurrect old macro
6994         * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
6995         (HOST_PTR_PRINTF): Document.
6996
6997 2009-08-25 Jan Hubicka  <jh@suse.cz>
6998
6999         * config/i386/bmmintrin.h: Replace by #error.
7000
7001         Revert:
7002         Michael Meissner  <michael.meissner@amd.com>
7003         Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
7004         Tony Linthicum  <tony.linthicum@amd.com>
7005
7006         * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
7007         (TARGET_ROUND): New macro for the round/ptest instructions which
7008         are shared between SSE4.1 and SSE5.
7009         (OPTION_MASK_ISA_ROUND): Ditto.
7010         (OPTION_ISA_ROUND): Ditto.
7011         (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
7012         (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
7013
7014         * config/i386/i386.opt (-msse5): New switch for SSE5 support.
7015         (-mfused-madd): New switch to give users control over whether the
7016         compiler optimizes to use the multiply/add SSE5 instructions.
7017
7018         * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
7019         (ix86_handle_option): Turn off 3dnow if -msse5.
7020         (override_options): Add SSE5 support.
7021         (print_operand): %Y prints comparison codes for SSE5 com/pcom
7022         instructions.
7023         (ix86_expand_sse_movcc): Add SSE5 support.
7024         (ix86_expand_sse5_unpack): New function to use pperm to unpack a
7025         vector type to the next largest size.
7026         (ix86_expand_sse5_pack): New function to use pperm to pack a
7027         vector type to the next smallest size.
7028         (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
7029         (IX86_BUILTIN_FMADDSD): Ditto.
7030         (IX86_BUILTIN_FMADDPS): Ditto.
7031         (IX86_BUILTIN_FMADDPD): Ditto.
7032         (IX86_BUILTIN_FMSUBSS): Ditto.
7033         (IX86_BUILTIN_FMSUBSD): Ditto.
7034         (IX86_BUILTIN_FMSUBPS): Ditto.
7035         (IX86_BUILTIN_FMSUBPD): Ditto.
7036         (IX86_BUILTIN_FNMADDSS): Ditto.
7037         (IX86_BUILTIN_FNMADDSD): Ditto.
7038         (IX86_BUILTIN_FNMADDPS): Ditto.
7039         (IX86_BUILTIN_FNMADDPD): Ditto.
7040         (IX86_BUILTIN_FNMSUBSS): Ditto.
7041         (IX86_BUILTIN_FNMSUBSD): Ditto.
7042         (IX86_BUILTIN_FNMSUBPS): Ditto.
7043         (IX86_BUILTIN_FNMSUBPD): Ditto.
7044         (IX86_BUILTIN_PCMOV_V2DI): Ditto.
7045         (IX86_BUILTIN_PCMOV_V4SI): Ditto.
7046         (IX86_BUILTIN_PCMOV_V8HI): Ditto.
7047         (IX86_BUILTIN_PCMOV_V16QI): Ditto.
7048         (IX86_BUILTIN_PCMOV_V4SF): Ditto.
7049         (IX86_BUILTIN_PCMOV_V2DF): Ditto.
7050         (IX86_BUILTIN_PPERM): Ditto.
7051         (IX86_BUILTIN_PERMPS): Ditto.
7052         (IX86_BUILTIN_PERMPD): Ditto.
7053         (IX86_BUILTIN_PMACSSWW): Ditto.
7054         (IX86_BUILTIN_PMACSWW): Ditto.
7055         (IX86_BUILTIN_PMACSSWD): Ditto.
7056         (IX86_BUILTIN_PMACSWD): Ditto.
7057         (IX86_BUILTIN_PMACSSDD): Ditto.
7058         (IX86_BUILTIN_PMACSDD): Ditto.
7059         (IX86_BUILTIN_PMACSSDQL): Ditto.
7060         (IX86_BUILTIN_PMACSSDQH): Ditto.
7061         (IX86_BUILTIN_PMACSDQL): Ditto.
7062         (IX86_BUILTIN_PMACSDQH): Ditto.
7063         (IX86_BUILTIN_PMADCSSWD): Ditto.
7064         (IX86_BUILTIN_PMADCSWD): Ditto.
7065         (IX86_BUILTIN_PHADDBW): Ditto.
7066         (IX86_BUILTIN_PHADDBD): Ditto.
7067         (IX86_BUILTIN_PHADDBQ): Ditto.
7068         (IX86_BUILTIN_PHADDWD): Ditto.
7069         (IX86_BUILTIN_PHADDWQ): Ditto.
7070         (IX86_BUILTIN_PHADDDQ): Ditto.
7071         (IX86_BUILTIN_PHADDUBW): Ditto.
7072         (IX86_BUILTIN_PHADDUBD): Ditto.
7073         (IX86_BUILTIN_PHADDUBQ): Ditto.
7074         (IX86_BUILTIN_PHADDUWD): Ditto.
7075         (IX86_BUILTIN_PHADDUWQ): Ditto.
7076         (IX86_BUILTIN_PHADDUDQ): Ditto.
7077         (IX86_BUILTIN_PHSUBBW): Ditto.
7078         (IX86_BUILTIN_PHSUBWD): Ditto.
7079         (IX86_BUILTIN_PHSUBDQ): Ditto.
7080         (IX86_BUILTIN_PROTB): Ditto.
7081         (IX86_BUILTIN_PROTW): Ditto.
7082         (IX86_BUILTIN_PROTD): Ditto.
7083         (IX86_BUILTIN_PROTQ): Ditto.
7084         (IX86_BUILTIN_PROTB_IMM): Ditto.
7085         (IX86_BUILTIN_PROTW_IMM): Ditto.
7086         (IX86_BUILTIN_PROTD_IMM): Ditto.
7087         (IX86_BUILTIN_PROTQ_IMM): Ditto.
7088         (IX86_BUILTIN_PSHLB): Ditto.
7089         (IX86_BUILTIN_PSHLW): Ditto.
7090         (IX86_BUILTIN_PSHLD): Ditto.
7091         (IX86_BUILTIN_PSHLQ): Ditto.
7092         (IX86_BUILTIN_PSHAB): Ditto.
7093         (IX86_BUILTIN_PSHAW): Ditto.
7094         (IX86_BUILTIN_PSHAD): Ditto.
7095         (IX86_BUILTIN_PSHAQ): Ditto.
7096         (IX86_BUILTIN_FRCZSS): Ditto.
7097         (IX86_BUILTIN_FRCZSD): Ditto.
7098         (IX86_BUILTIN_FRCZPS): Ditto.
7099         (IX86_BUILTIN_FRCZPD): Ditto.
7100         (IX86_BUILTIN_CVTPH2PS): Ditto.
7101         (IX86_BUILTIN_CVTPS2PH): Ditto.
7102         (IX86_BUILTIN_COMEQSS): Ditto.
7103         (IX86_BUILTIN_COMNESS): Ditto.
7104         (IX86_BUILTIN_COMLTSS): Ditto.
7105         (IX86_BUILTIN_COMLESS): Ditto.
7106         (IX86_BUILTIN_COMGTSS): Ditto.
7107         (IX86_BUILTIN_COMGESS): Ditto.
7108         (IX86_BUILTIN_COMUEQSS): Ditto.
7109         (IX86_BUILTIN_COMUNESS): Ditto.
7110         (IX86_BUILTIN_COMULTSS): Ditto.
7111         (IX86_BUILTIN_COMULESS): Ditto.
7112         (IX86_BUILTIN_COMUGTSS): Ditto.
7113         (IX86_BUILTIN_COMUGESS): Ditto.
7114         (IX86_BUILTIN_COMORDSS): Ditto.
7115         (IX86_BUILTIN_COMUNORDSS): Ditto.
7116         (IX86_BUILTIN_COMFALSESS): Ditto.
7117         (IX86_BUILTIN_COMTRUESS): Ditto.
7118         (IX86_BUILTIN_COMEQSD): Ditto.
7119         (IX86_BUILTIN_COMNESD): Ditto.
7120         (IX86_BUILTIN_COMLTSD): Ditto.
7121         (IX86_BUILTIN_COMLESD): Ditto.
7122         (IX86_BUILTIN_COMGTSD): Ditto.
7123         (IX86_BUILTIN_COMGESD): Ditto.
7124         (IX86_BUILTIN_COMUEQSD): Ditto.
7125         (IX86_BUILTIN_COMUNESD): Ditto.
7126         (IX86_BUILTIN_COMULTSD): Ditto.
7127         (IX86_BUILTIN_COMULESD): Ditto.
7128         (IX86_BUILTIN_COMUGTSD): Ditto.
7129         (IX86_BUILTIN_COMUGESD): Ditto.
7130         (IX86_BUILTIN_COMORDSD): Ditto.
7131         (IX86_BUILTIN_COMUNORDSD): Ditto.
7132         (IX86_BUILTIN_COMFALSESD): Ditto.
7133         (IX86_BUILTIN_COMTRUESD): Ditto.
7134         (IX86_BUILTIN_COMEQPS): Ditto.
7135         (IX86_BUILTIN_COMNEPS): Ditto.
7136         (IX86_BUILTIN_COMLTPS): Ditto.
7137         (IX86_BUILTIN_COMLEPS): Ditto.
7138         (IX86_BUILTIN_COMGTPS): Ditto.
7139         (IX86_BUILTIN_COMGEPS): Ditto.
7140         (IX86_BUILTIN_COMUEQPS): Ditto.
7141         (IX86_BUILTIN_COMUNEPS): Ditto.
7142         (IX86_BUILTIN_COMULTPS): Ditto.
7143         (IX86_BUILTIN_COMULEPS): Ditto.
7144         (IX86_BUILTIN_COMUGTPS): Ditto.
7145         (IX86_BUILTIN_COMUGEPS): Ditto.
7146         (IX86_BUILTIN_COMORDPS): Ditto.
7147         (IX86_BUILTIN_COMUNORDPS): Ditto.
7148         (IX86_BUILTIN_COMFALSEPS): Ditto.
7149         (IX86_BUILTIN_COMTRUEPS): Ditto.
7150         (IX86_BUILTIN_COMEQPD): Ditto.
7151         (IX86_BUILTIN_COMNEPD): Ditto.
7152         (IX86_BUILTIN_COMLTPD): Ditto.
7153         (IX86_BUILTIN_COMLEPD): Ditto.
7154         (IX86_BUILTIN_COMGTPD): Ditto.
7155         (IX86_BUILTIN_COMGEPD): Ditto.
7156         (IX86_BUILTIN_COMUEQPD): Ditto.
7157         (IX86_BUILTIN_COMUNEPD): Ditto.
7158         (IX86_BUILTIN_COMULTPD): Ditto.
7159         (IX86_BUILTIN_COMULEPD): Ditto.
7160         (IX86_BUILTIN_COMUGTPD): Ditto.
7161         (IX86_BUILTIN_COMUGEPD): Ditto.
7162         (IX86_BUILTIN_COMORDPD): Ditto.
7163         (IX86_BUILTIN_COMUNORDPD): Ditto.
7164         (IX86_BUILTIN_COMFALSEPD): Ditto.
7165         (IX86_BUILTIN_COMTRUEPD): Ditto.
7166         (IX86_BUILTIN_PCOMEQUB): Ditto.
7167         (IX86_BUILTIN_PCOMNEUB): Ditto.
7168         (IX86_BUILTIN_PCOMLTUB): Ditto.
7169         (IX86_BUILTIN_PCOMLEUB): Ditto.
7170         (IX86_BUILTIN_PCOMGTUB): Ditto.
7171         (IX86_BUILTIN_PCOMGEUB): Ditto.
7172         (IX86_BUILTIN_PCOMFALSEUB): Ditto.
7173         (IX86_BUILTIN_PCOMTRUEUB): Ditto.
7174         (IX86_BUILTIN_PCOMEQUW): Ditto.
7175         (IX86_BUILTIN_PCOMNEUW): Ditto.
7176         (IX86_BUILTIN_PCOMLTUW): Ditto.
7177         (IX86_BUILTIN_PCOMLEUW): Ditto.
7178         (IX86_BUILTIN_PCOMGTUW): Ditto.
7179         (IX86_BUILTIN_PCOMGEUW): Ditto.
7180         (IX86_BUILTIN_PCOMFALSEUW): Ditto.
7181         (IX86_BUILTIN_PCOMTRUEUW): Ditto.
7182         (IX86_BUILTIN_PCOMEQUD): Ditto.
7183         (IX86_BUILTIN_PCOMNEUD): Ditto.
7184         (IX86_BUILTIN_PCOMLTUD): Ditto.
7185         (IX86_BUILTIN_PCOMLEUD): Ditto.
7186         (IX86_BUILTIN_PCOMGTUD): Ditto.
7187         (IX86_BUILTIN_PCOMGEUD): Ditto.
7188         (IX86_BUILTIN_PCOMFALSEUD): Ditto.
7189         (IX86_BUILTIN_PCOMTRUEUD): Ditto.
7190         (IX86_BUILTIN_PCOMEQUQ): Ditto.
7191         (IX86_BUILTIN_PCOMNEUQ): Ditto.
7192         (IX86_BUILTIN_PCOMLTUQ): Ditto.
7193         (IX86_BUILTIN_PCOMLEUQ): Ditto.
7194         (IX86_BUILTIN_PCOMGTUQ): Ditto.
7195         (IX86_BUILTIN_PCOMGEUQ): Ditto.
7196         (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
7197         (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
7198         (IX86_BUILTIN_PCOMEQB): Ditto.
7199         (IX86_BUILTIN_PCOMNEB): Ditto.
7200         (IX86_BUILTIN_PCOMLTB): Ditto.
7201         (IX86_BUILTIN_PCOMLEB): Ditto.
7202         (IX86_BUILTIN_PCOMGTB): Ditto.
7203         (IX86_BUILTIN_PCOMGEB): Ditto.
7204         (IX86_BUILTIN_PCOMFALSEB): Ditto.
7205         (IX86_BUILTIN_PCOMTRUEB): Ditto.
7206         (IX86_BUILTIN_PCOMEQW): Ditto.
7207         (IX86_BUILTIN_PCOMNEW): Ditto.
7208         (IX86_BUILTIN_PCOMLTW): Ditto.
7209         (IX86_BUILTIN_PCOMLEW): Ditto.
7210         (IX86_BUILTIN_PCOMGTW): Ditto.
7211         (IX86_BUILTIN_PCOMGEW): Ditto.
7212         (IX86_BUILTIN_PCOMFALSEW): Ditto.
7213         (IX86_BUILTIN_PCOMTRUEW): Ditto.
7214         (IX86_BUILTIN_PCOMEQD): Ditto.
7215         (IX86_BUILTIN_PCOMNED): Ditto.
7216         (IX86_BUILTIN_PCOMLTD): Ditto.
7217         (IX86_BUILTIN_PCOMLED): Ditto.
7218         (IX86_BUILTIN_PCOMGTD): Ditto.
7219         (IX86_BUILTIN_PCOMGED): Ditto.
7220         (IX86_BUILTIN_PCOMFALSED): Ditto.
7221         (IX86_BUILTIN_PCOMTRUED): Ditto.
7222         (IX86_BUILTIN_PCOMEQQ): Ditto.
7223         (IX86_BUILTIN_PCOMNEQ): Ditto.
7224         (IX86_BUILTIN_PCOMLTQ): Ditto.
7225         (IX86_BUILTIN_PCOMLEQ): Ditto.
7226         (IX86_BUILTIN_PCOMGTQ): Ditto.
7227         (IX86_BUILTIN_PCOMGEQ): Ditto.
7228         (IX86_BUILTIN_PCOMFALSEQ): Ditto.
7229         (IX86_BUILTIN_PCOMTRUEQ): Ditto.
7230         (enum multi_arg_type): New enum for describing the various SSE5
7231         intrinsic argument types.
7232         (bdesc_multi_arg): New table for SSE5 intrinsics.
7233         (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
7234         (ix86_expand_multi_arg_builtin): New function for creating SSE5
7235         intrinsics.
7236         (ix86_expand_builtin): Add SSE5 intrinsic support.
7237         (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
7238         operand instructions.
7239         (ix86_expand_sse5_multiple_memory): New function to split the
7240         second memory reference from SSE5 instructions.
7241         (type_has_variadic_args_p): Delete in favor of stdarg_p.
7242         (ix86_return_pops_args): Use stdarg_p to determine if the function
7243         has variable arguments.
7244         (ix86_setup_incoming_varargs): Ditto.
7245         (x86_this_parameter): Ditto.
7246
7247         * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
7248         declaration.
7249         (ix86_expand_sse5_pack): Ditto.
7250         (ix86_sse5_valid_op_p): Ditto.
7251         (ix86_expand_sse5_multiple_memory): Ditto.
7252
7253         * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
7254         constant for SSE5 support.
7255         (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
7256         (UNSPEC_SSE5_TRUEFALSE): Ditto.
7257         (UNSPEC_SSE5_PERMUTE): Ditto.
7258         (UNSPEC_SSE5_ASHIFT): Ditto.
7259         (UNSPEC_SSE5_LSHIFT): Ditto.
7260         (UNSPEC_FRCZ): Ditto.
7261         (UNSPEC_CVTPH2PS): Ditto.
7262         (UNSPEC_CVTPS2PH): Ditto.
7263         (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
7264         (PCOM_TRUE): Ditto.
7265         (COM_FALSE_S): Ditto.
7266         (COM_FALSE_P): Ditto.
7267         (COM_TRUE_S): Ditto.
7268         (COM_TRUE_P): Ditto.
7269         (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
7270         (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
7271         types.
7272         (memory attribute): Ditto.
7273         (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
7274         Use SSE4_1_ROUND_* constants instead of hard coded numbers.
7275         (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
7276         (floor<mode>2): Ditto.
7277         (ceil<mode>2): Ditto.
7278         (btrunc<mode>2): Ditto.
7279         (nearbyintdf2): Ditto.
7280         (nearbyintsf2): Ditto.
7281         (sse_setccsf): Disable if SSE5.
7282         (sse_setccdf): Ditto.
7283         (sse5_setcc<mode>): New support for SSE5 conditional move.
7284         (sse5_pcmov_<mode>): Ditto.
7285
7286         * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
7287         (SSEMODEF4): Ditto.
7288         (SSEMODEF2P): Ditto.
7289         (ssemodesuffixf4): New mode attribute for SSE5.
7290         (ssemodesuffixf2s): Ditto.
7291         (ssemodesuffixf2c): Ditto.
7292         (sserotatemax): Ditto.
7293         (ssescalarmode): Ditto.
7294         (sse_maskcmpv4sf3): Disable if SSE5.
7295         (sse_maskcmpv2df3): Ditto.
7296         (sse_vmmaskcmpv4sf3): Ditto.
7297         (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
7298         (sse5_vmfmadd<mode>4): Ditto.
7299         (sse5_fmsub<mode>4): Ditto.
7300         (sse5_vmfmsub<mode>4): Ditto.
7301         (sse5_fnmadd<mode>4): Ditto.
7302         (sse5_vmfnmadd<mode>4): Ditto.
7303         (sse5_fnmsub<mode>4): Ditto.
7304         (sse5_vmfnmsub<mode>4): Ditto.
7305         (sse5i_fmadd<mode>4): Ditto.
7306         (sse5i_fmsub<mode>4): Ditto.
7307         (sse5i_fnmadd<mode>4): Ditto.
7308         (sse5i_fnmsub<mode>4): Ditto.
7309         (sse5i_vmfmadd<mode>4): Ditto.
7310         (sse5i_vmfmsub<mode>4): Ditto.
7311         (sse5i_vmfnmadd<mode>4): Ditto.
7312         (sse5i_vmfnmsub<mode>4): Ditto.
7313         (mulv16qi3): Add SSE5 support.
7314         (mulv4si3): Ditto.
7315         (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
7316         (sse2_mulv4si3): Disable if SSE5.
7317         (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
7318         (sse4_1_roundps): Ditto.
7319         (sse4_1_roundsd): Ditto.
7320         (sse4_1_roundss): Ditto.
7321         (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
7322         be generated.
7323         (sse_maskcmpsf3): Ditto.
7324         (sse_vmmaskcmpv4sf3): Ditto.
7325         (sse2_maskcmpv2df3): Ditto.
7326         (sse2_maskcmpdf3): Ditto.
7327         (sse2_vmmaskcmpv2df3): Ditto.
7328         (sse2_eq<mode>3): Ditto.
7329         (sse2_gt<mode>3): Ditto.
7330         (sse5_pcmov_<mode>): Add SSE5 support.
7331         (vec_unpacku_hi_v16qi): Ditto.
7332         (vec_unpacks_hi_v16qi): Ditto.
7333         (vec_unpacku_lo_v16qi): Ditto.
7334         (vec_unpacks_lo_v16qi): Ditto.
7335         (vec_unpacku_hi_v8hi): Ditto.
7336         (vec_unpacks_hi_v8hi): Ditto.
7337         (vec_unpacku_lo_v8hi): Ditto.
7338         (vec_unpacks_lo_v8hi): Ditto.
7339         (vec_unpacku_hi_v4si): Ditto.
7340         (vec_unpacks_hi_v4si): Ditto.
7341         (vec_unpacku_lo_v4si): Ditto.
7342         (vec_unpacks_lo_v4si): Ditto.
7343         (sse5_pmacsww): New SSE5 intrinsic insn.
7344         (sse5_pmacssww): Ditto.
7345         (sse5_pmacsdd): Ditto.
7346         (sse5_pmacssdd): Ditto.
7347         (sse5_pmacssdql): Ditto.
7348         (sse5_pmacssdqh): Ditto.
7349         (sse5_pmacsdqh): Ditto.
7350         (sse5_pmacsswd): Ditto.
7351         (sse5_pmacswd): Ditto.
7352         (sse5_pmadcsswd): Ditto.
7353         (sse5_pmadcswd): Ditto.
7354         (sse5_pcmov_<move>): Conditional move support on SSE5.
7355         (sse5_phaddbw): New SSE5 intrinsic insn.
7356         (sse5_phaddbd): Ditto.
7357         (sse5_phaddbq): Ditto.
7358         (sse5_phaddwd): Ditto.
7359         (sse5_phaddwq): Ditto.
7360         (sse5_phadddq): Ditto.
7361         (sse5_phaddubw): Ditto.
7362         (sse5_phaddubd): Ditto.
7363         (sse5_phaddubq): Ditto.
7364         (sse5_phadduwd): Ditto.
7365         (sse5_phadduwq): Ditto.
7366         (sse5_phaddudq): Ditto.
7367         (sse5_phsubbw): Ditto.
7368         (sse5_phsubwd): Ditto.
7369         (sse5_phsubdq): Ditto.
7370         (sse5_pperm): Ditto.
7371         (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
7372         (sse5_pperm_zero_v16qi_v8hi): Ditto.
7373         (sse5_pperm_sign_v8hi_v4si): Ditto.
7374         (sse5_pperm_zero_v8hi_v4si): Ditto.
7375         (sse5_pperm_sign_v4si_v2di): Ditto.
7376         (sse5_pperm_sign_v4si_v2di): Ditto.
7377         (sse5_pperm_pack_v2di_v4si): Ditto.
7378         (sse5_pperm_pack_v4si_v8hi): Ditto.
7379         (sse5_pperm_pack_v8hi_v16qi): Ditto.
7380         (sse5_perm<mode>): New SSE5 intrinsic insn.
7381         (rotl<mode>3): Ditto.
7382         (sse5_rotl<mode>3): Ditto.
7383         (sse5_ashl<mode>3): Ditto.
7384         (sse5_lshl<mode>3): Ditto.
7385         (sse5_frcz<mode>2): Ditto.
7386         (sse5s_frcz<mode>2): Ditto.
7387         (sse5_cvtph2ps): Ditto.
7388         (sse5_cvtps2ph): Ditto.
7389         (sse5_vmmaskcmp<mode>3): Ditto.
7390         (sse5_com_tf<mode>3): Ditto.
7391         (sse5_maskcmp<mode>3): Ditto.
7392         (sse5_maskcmp_uns<mode>3): Ditto.
7393         (sse5_maskcmp_uns2<mode>3): Ditto.
7394         (sse5_pcom_tf<mode>3): Ditto.
7395
7396         * config/i386/predicates.md (sse5_comparison_float_operator):
7397         New predicate to match the comparison operators supported by
7398         the SSE5 com instruction.
7399         (ix86_comparison_int_operator): New predicate to match just the
7400         signed int comparisons.
7401         (ix86_comparison_uns_operator): New predicate to match just the
7402         unsigned int comparisons.
7403
7404         * doc/invoke.texi (-msse5): Add documentation.
7405         (-mfused-madd): Ditto.
7406
7407         * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
7408
7409         * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
7410         mmintrin-common.h.
7411         (x86_64-*-*): Ditto.
7412
7413         * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
7414
7415         * config/i386/bmmintrin.h: New file, provide common x86 compiler
7416         intrinisics for SSE5.
7417
7418         * config/i386/smmintrin.h: Move instructions shared with SSE5 to
7419         mmintrin-common.h.
7420
7421         * config/i386/mmintrin-common.h: New file, to contain common
7422         instructions between SSE4.1 and SSE5.
7423
7424         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
7425         FOREACH_FUNCTION_ARGS to iterate over the argument list.
7426         (gen_regparm_prefix): Ditto.
7427
7428         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
7429         FOREACH_FUNCTION_ARGS to iterate over the argument list.  Use
7430         prototype_p to determine if a function is prototyped.
7431
7432 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
7433
7434         * c-common.c (c_common_reswords) add the alignof keyword,
7435         with same RID as __alignof and __alignof__
7436
7437 2009-08-25  Anatoly Sokolov  <aesok@post.ru>
7438
7439         * hooks.h (hook_bool_const_int_const_int_true): Declare.
7440         * hooks.c (hook_bool_const_int_const_int_true): New function.
7441         * target.h (struct gcc_target): Add can_eliminate field.
7442         * target-def.h (TARGET_CAN_ELIMINATE): Define.
7443         (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
7444         * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
7445         * reload1.c (update_eliminables, init_elim_table): (Ditto.).
7446         (elim_table): Revise comment.
7447         * system.h (CAN_ELIMINATE): Poison.
7448         * defaults.h (CAN_ELIMINATE): Remove.
7449         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
7450
7451         * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
7452         * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
7453         Define macro.
7454         (alpha_vms_can_eliminate): Declare as static, change return type to
7455         bool.
7456         * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
7457
7458         * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
7459         * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
7460         (arm_can_eliminate): New function.
7461
7462         * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
7463         * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
7464         (avr_can_eliminate): Declare as static.
7465         * config/avr/avr-protos.h (avr_can_eliminate): Remove.
7466
7467         * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
7468         * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
7469         (bfin_can_eliminate): New function.
7470
7471         * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
7472         * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
7473         (crx_can_eliminate): New function.
7474
7475         * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
7476         * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
7477         (fr30_can_eliminate): New function.
7478
7479         * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
7480         * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
7481         (frv_can_eliminate): New function.
7482
7483         * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
7484         * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
7485         (h8300_can_eliminate): New function.
7486
7487         * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
7488         * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
7489         (i386_can_eliminate): Declare as static, change return type to bool.
7490         * config/i386/i386-protos.h (i386_can_eliminate): Remove.
7491
7492         * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
7493         * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
7494         (ia64_can_eliminate): New function.
7495
7496         * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
7497         * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
7498         (iq2000_can_eliminate): New function.
7499
7500         * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
7501         * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
7502         (m32r_can_eliminate): New function.
7503
7504         * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
7505         * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
7506         (m68hc11_can_eliminate): New function.
7507
7508         * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
7509         * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
7510         (m68k_can_eliminate): New function.
7511
7512         * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
7513         * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
7514         (mep_can_eliminate): New function.
7515
7516         * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
7517         * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
7518         (mips_can_eliminate): New function.
7519
7520         * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
7521         * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
7522         (rs6000_can_eliminate): New function.
7523
7524         * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
7525         * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
7526         (s390_can_eliminate): Declare as static.
7527         * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
7528
7529         * config/score/score.h (CAN_ELIMINATE): Remove macro.
7530         * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
7531         (score_can_eliminate): New function.
7532
7533         * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
7534         * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
7535         (sparc_can_eliminate): Declare as static.
7536         * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
7537
7538         * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
7539         * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
7540         (xstormy16_can_eliminate): New function.
7541
7542         * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
7543         * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
7544         (v850_can_eliminate): New function.
7545
7546 2009-08-25  Uros Bizjak  <ubizjak@gmail.com>
7547
7548         * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
7549         (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
7550         (*movdfcc_ext[1234]): Disable for IEEE mode.
7551
7552 2009-08-25  Eric Botcazou  <ebotcazou@adacore.com>
7553
7554         * gimplify.c (prepare_gimple_addressable): New static function.
7555         (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
7556         it addressable.
7557         (gimplify_addr_expr): Invoke it similarly on the operand instead of
7558         manually fiddling with it.
7559
7560 2009-08-25  Michael Matz  <matz@suse.de>
7561
7562         * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
7563         * dojump.c (do_jump_by_parts_greater): Take two operands instead of
7564         full expression.
7565         (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
7566         (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
7567         (do_jump): Split out code for simple binary comparisons into ...
7568         (do_jump_1): ... this, taking the individual operands and code.
7569         Change callers to helper function above accordingly.
7570         * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
7571         comparisons.
7572
7573 2009-08-25  Michael Matz  <matz@suse.de>
7574
7575         * expr.h (struct separate_ops, sepops): New type for passing
7576         around an exploded simple expression.
7577         * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
7578         Use this structure instead of expression tree.
7579         (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
7580         expression, only its type.
7581         (expand_vec_cond_expr): Take type and individual operands instead
7582         of full expression.
7583         * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
7584         expand_vec_shift_expr): Change prototype accordingly.
7585         * tree-vect-stmts.c (vectorizable_condition): Change call of
7586         expand_vec_cond_expr_p to pass only type.
7587         * expr.c (do_store_flags): Change prototype and implementation
7588         to take an exploded expression.
7589         (expand_expr_real_1): New local ops initialized with details
7590         of the full expression.  Use it instead of full
7591         expression in calls to do_store_flags, expand_vec_cond_expr,
7592         expand_widen_pattern_expr and expand_vec_shift_expr.
7593
7594 2009-08-25  Michael Matz  <matz@suse.de>
7595
7596         * expr.c (expand_expr_real_1): New local treeop0, treeop1,
7597         treeop2 initialized with first three operands of the full expression.
7598         Substitute all TREE_OPERAND (exp, [012]) calls with them.
7599
7600 2009-08-25  Kai Tietz  <kai.tietz@onevision.com>
7601
7602         * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
7603         (__gthread_objc_condition_allocate): Mark arguments as unused.
7604         (__gthread_objc_condition_deallocate): Likewise.
7605         (__gthread_objc_condition_wait): Likewise.
7606         (__gthread_objc_condition_broadcast): Likewise.
7607         (__gthread_objc_condition_signal): Likewise.
7608         (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
7609         (__gthread_objc_thread_id): Likewise.
7610
7611 2009-08-25  Janus Weil  <janus@gcc.gnu.org>
7612
7613         PR middle-end/41149
7614         * tree-pretty-print.c (print_call_name): Print the correct call name
7615         for procedure pointer components.
7616
7617 2009-08-24  Steve Ellcey  <sje@cup.hp.com>
7618
7619         * config/ia64/ia64.c (ia64_promote_function_mode): Call
7620         default_promote_function_mode when not VMS.
7621
7622 2009-08-24  Olivier Hainque  <hainque@adacore.com>
7623
7624         * convert.c (convert_to_integer): Don't assume an input pointer is
7625         POINTER_SIZE wide.  Fetch from the type instead.
7626
7627 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7628
7629         * configure.ac (AC_PREREQ): Bump to 2.64.
7630
7631 2009-08-24  Rafael Avila de Espindola  <espindola@google.com>
7632
7633         * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
7634         (process_command): Don't search standard_exec_prefix_1 and
7635         standard_exec_prefix_2.
7636
7637 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7638
7639         * config/arm/arm.c (output_return_instruction): Handle for
7640         unified syntax.
7641
7642 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7643
7644         * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
7645
7646 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7647
7648         * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
7649         (*arm_movdf_vfp): Likewise.
7650
7651 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7652
7653         * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
7654         (vashr<mode>3): Rename from ashr<mode>3.
7655         (vlshr<mode>3): Rename from lshr<mode>3.
7656
7657 2009-08-24  Kai Tietz  <kai.tietz@onevision.com>
7658
7659         PR/40786
7660         * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
7661         (check_format_info_main): Use scalar_identify_flag.
7662         (check_format_types): Check for scalar size identity if
7663         scalar_identify_flag is set.
7664         (printf_length_specs): Extend by new field.
7665         (asm_fprintf_length_specs): Likewise.
7666         (gcc_diag_length_specs): Likewise.
7667         (scanf_length_specs): Likewise.
7668         (strfmon_length_specs): Likewise.
7669         (gcc_gfc_length_specs): Likewise.
7670         * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
7671         (ms_printf_flag_specs): Likewise.
7672         * c-format.h (format_length_info): Add new member scalar_identity_flag.
7673
7674 2009-08-23  Uros Bizjak  <ubizjak@gmail.com>
7675
7676         PR target/40718
7677         * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
7678         (*call_value_pop_1): Ditto.
7679         (*sibcall_pop_1): New insn pattern.
7680         (*sibcall_value_pop_1): Ditto.
7681
7682 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
7683
7684         PR target/41081
7685         * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
7686         ashrsi3_64): New.
7687
7688 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
7689
7690         PR target/41081
7691         * fwprop.c (try_fwprop_subst): Allow multiple sets.
7692         (get_reg_use_in): New function.
7693         (forward_propagate_subreg): Propagate through subreg of zero_extend
7694         or sign_extend.
7695
7696 2009-08-22  Kaz Kojima  <kkojima@gcc.gnu.org>
7697
7698         * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
7699         * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
7700
7701 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7702
7703         * configure.ac: Remove --with-datarootdir, --with-docdir,
7704         --with-htmldir switches.  No need to call AC_SUBST for
7705         datarootdir, docdir, htmldir any more.
7706         * configure: Regenerate.
7707         * doc/install.texi (Configuration): Document --datarootdir,
7708         --docdir, --htmldir, --pdfdir; update documentation for
7709         --infodir, --mandir.
7710         (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
7711         M4 to 1.4.6.
7712
7713         * aclocal.m4: Regenerate.
7714         * config.in: Regenerate.
7715         * configure: Regenerate.
7716
7717 2009-08-21  Douglas B Rupp  <rupp@gnat.com>
7718             Olivier Hainque  <hainque@adacore.com>
7719
7720         * config/ia64/ia64.c: Include libfuncs.h.
7721         (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
7722         (ia64_expand_call): Use reg 25 on VMS.
7723         (ia64_initialize_trampoline): Fix for VMS ABI.
7724         (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
7725         (ia64_function_arg): Initialize reg 25 on VMS.
7726         Fix OpenVMS ABI issues for varargs.
7727         For OpenVMS, emit the Argument Information register set in the
7728         incoming/sibcall case as well.
7729         (ia64_arg_type): New function.
7730         (ia64_function_arg_advance): Keep track of cum->words.
7731         Fix OpenVMS ABI issues for varargs.
7732         (ia64_function_value): On VMS, promote mode of non-aggregate types.
7733         (ia64_override_options): Set flag_no_common on VMS.
7734         (ia64_init_builtins): Disable FWRITE builtin.
7735         (ia64_asm_output_external): Call DO_CRTL_NAMES.
7736         (ia64_vms_init_libfuncs): Add decc$ routines.
7737         (ia64_vms_valid_pointer_mode): New function.
7738         (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
7739         (ia64_promote_function_mode): New function
7740         * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
7741         (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
7742         (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
7743         (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
7744         (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
7745         (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
7746         Suppress trailing '#' if VALUE is numeric.
7747         * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
7748         ia64_promote_function_mode.
7749         (TARGET_VALID_POINTER_MODE): Define.
7750
7751 2009-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
7752
7753         PR target/40671
7754         * config/rs6000/rs6000.c (rs6000_override_options): Use
7755         TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
7756
7757         PR target/41145
7758         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
7759         reporting of vector + decimal/boolean/complex error.
7760
7761 2009-08-21  Jakub Jelinek  <jakub@redhat.com>
7762
7763         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
7764         __vector double TYPE_DECL.
7765
7766 2009-08-21  Richard Earnshaw  <rearnsha@arm.com>
7767
7768         * arm.h (MACHMODE): New define.  Include insn-modes.h if available.
7769         (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
7770         * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
7771         to pointer to enum machine_mode.  Update all callers as needed.
7772
7773 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
7774
7775         * config/alpha/alpha.md (exception_receiver): Emit alternative
7776         GP load sequence if flag_reorder_blocks_and_partition is set.
7777         (*exception_receiver_2): Also enable when
7778         flag_reorder_blocks_and_partition is set.
7779
7780 2009-08-20  Matt Rice  <ratmice@gmail.com>
7781             Diego Novillo  <dnovillo@google.com>
7782
7783         * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
7784         tree-ssa-sccvn.h.
7785
7786 2009-08-20  Richard Guenther  <rguenther@suse.de>
7787
7788         * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
7789         * c-tree.h (c_dup_lang_specific_decl): Remove.
7790         (struct lang_decl, struct lang_type): Move definitions ...
7791         * c-lang.h: ... here.  New file.
7792         * c-decl.c: Include c-lang.h.
7793         (c_dup_lang_specific_decl): Remove.
7794         * c-typeck.c: Include c-lang.h.
7795         * Makefile.in (c-decl.o): Add c-lang.h dependency.
7796         (c-typeck.o): Likewise.
7797         * c-config-lang.in (gtfiles): Add c-lang.h.
7798         * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
7799         like c-tree.h.
7800
7801 2009-08-20  Uros Bizjak  <ubizjak@gmail.com>
7802
7803         * config/alpha/alpha.c (alpha_end_function): Do not clear
7804         crtl->emit structure and free insn locators if cfun->is_thunk is true,
7805         this is now handled in generic code.
7806
7807 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
7808
7809         * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
7810         (s390_z10_fix_long_loop_prediction): New function.
7811         (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
7812         (s390_reorg): Walk over the INSNs and invoke
7813         s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
7814
7815 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
7816
7817         * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
7818         "*brx_64bit", "*brx_31bit"): New patterns.
7819         * config/s390/s390.c ('E'): New output modifier.
7820
7821 2009-08-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7822             Richard Earnshaw  <richard.earnshaw@arm.com>
7823
7824         * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
7825         * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
7826
7827 2009-08-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7828
7829         * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
7830         patterns.
7831         * pa.c (emit_move_sequence): Check if address of operand1 is valid
7832         for mode mode of operand0 when doing secondary reload for SAR.
7833
7834 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
7835
7836         PR middle-end/41123
7837         * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
7838         of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
7839
7840 2009-08-19  Jason Merrill  <jason@redhat.com>
7841
7842         * doc/invoke.texi (C++ Dialect Options): Note change of minimum
7843         supported template depth in C++0x.
7844
7845 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
7846
7847         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
7848         free_after_compilation.
7849         * config/score/score7.c (score7_output_mi_thunk): Likewise.
7850         * config/score/score3.c (score3_output_mi_thunk): Likewise.
7851         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
7852         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
7853         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
7854         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
7855         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
7856
7857 2009-08-19  Ian Lance Taylor  <iant@google.com>
7858
7859         * doc/md.texi (Insn Canonicalizations): Correct canonicalization
7860         of (plus (mult (neg B) C) A).
7861
7862 2009-08-18  Michael Matz  <matz@suse.de>
7863
7864         * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
7865         instead of comparing TYPE_MAIN_VARIANT for equality.
7866         * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
7867         vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
7868         * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
7869         * gimplify.c (goa_lhs_expr_p): Ditto and use
7870         STRIP_USELESS_TYPE_CONVERSION.
7871
7872 2009-08-18  Michael Matz  <matz@suse.de>
7873
7874         * tree-ssa-structalias.c (create_variable_info_for): Also mark
7875         first field in a struct.
7876         (intra_create_variable_infos): Don't deal with flag_argument_noalias.
7877
7878 2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
7879
7880         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
7881         locators before emit_insn is called.  Remove assert that
7882         cfun->is_thunk.
7883         (alpha_end_function): Clear crtl->emit structure and free insn
7884         locators if cfun->is_thunk is true.
7885
7886 2009-08-18  Jason Merrill  <jason@redhat.com>
7887
7888         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
7889         type if available.
7890         * configure.ac: Test for it.
7891         * configure, config.in: Regenerate.
7892         * doc/install.texi: Document --enable-gnu-unique-object.
7893
7894 2009-08-18  Richard Guenther  <rguenther@suse.de>
7895
7896         PR middle-end/41094
7897         * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
7898         pow(x,y*z) only if x is nonnegative.
7899
7900 2009-08-18  Jakub Jelinek  <jakub@redhat.com>
7901
7902         * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
7903         on jumps.
7904
7905         PR target/40971
7906         * config/rs6000/rs6000.c (rs6000_legitimize_address): For
7907         [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
7908
7909 2009-08-17  DJ Delorie  <dj@redhat.com>
7910
7911         * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
7912         * config/m32c/prologue.md (epilogue_freit): New.
7913         (fset_b): New.
7914         * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
7915         (bank_switch_p): Likewise.
7916         (fast_interrupt_p): Likewise.
7917         (interrupt_p): Likewise.
7918         (m32c_conditional_register_usage): Round memregs size up.
7919         (need_to_save): We only need to save $a0 when we use ENTER.
7920         (interrupt_p): Check for fast_interrupt too.
7921         (bank_switch_p): New.
7922         (fast_interrupt_p): New.
7923         (m32c_attribute_table): Add bank_switch and fast_interrupt.
7924         (m32c_emit_prolog): Support bank switching and fast interrupts.
7925         * doc/extend.texi (Function Attributes): Add bank_switch and
7926         fast_interrupt.
7927
7928 2009-08-17  Douglas B Rupp  <rupp@gnat.com>
7929
7930         * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
7931         * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
7932
7933 2009-08-16  Douglas B Rupp  <rupp@gnat.com>
7934
7935         * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
7936         (menu): Add IA-64/VMS Options.
7937         (IA-64/VMS Options): Likewise.
7938
7939 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
7940
7941         PR target/38599
7942         * config/mips/mips.md (*lwxs): Use :P for pointer values.
7943
7944 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
7945
7946         * config/mips/mips-protos.h (mips_push_asm_switch): New function.
7947         (mips_pop_asm_switch): Likewise.
7948         * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
7949         with...
7950         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
7951         (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
7952         (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
7953         (mips_print_operand_punctuation): Use them.  Check mips_noreorder
7954         instead of set_noreorder.
7955         (mips_output_function_prologue): Use the new functions.
7956         (mips_output_function_epilogue): Likewise.
7957         (mips_need_noat_wrapper_p): New function, split out from...
7958         (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
7959         Use mips_push_asm_switch and mips_pop_asm_switch.
7960         * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
7961         and mips_pop_asm_switch.
7962         (ASM_OUTPUT_REG_POP): Likewise.
7963         (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
7964         Use mips_pop_asm_switch.
7965         (mips_asm_switch): New structure.
7966         (set_noreorder, set_nomacro): Replace with...
7967         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
7968         * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
7969         instead of set_nomacro.
7970         (fix_truncsfsi2_macro): Likewise.
7971         (cprestore): Likewise.
7972         (hazard): Use mips_noreorder instead of set_noreorder.
7973         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
7974
7975 2009-08-16  Uros Bizjak  <ubizjak@gmail.com>
7976
7977         * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
7978         from prev_active_insn.
7979
7980 2009-08-16  Anatoly Sokolov  <aesok@post.ru>
7981
7982         * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
7983         * config/avr/avr.c (avr_override_options): Initialize
7984         avr_current_arch variable.
7985         (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
7986         __AVR_HAVE_16BIT_SP__ according to the device type.
7987         (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
7988         TARGET_TINY_STACK.
7989         (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
7990         Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
7991
7992 2009-08-16  Dodji Seketeli  <dodji@redhat.com>
7993
7994         PR debug/37801
7995         * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
7996         generating inlined subroutine die only. We shouldn't be
7997         called for anything else.
7998         (gen_block_die): Don't generate inline subroutine debug info for
7999         abstract blocks.
8000
8001 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
8002
8003         * graphite-poly.c (print_pbb): Print PBB index.
8004
8005 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
8006
8007         PR middle-end/40981
8008         * graphite-interchange.c (ppl_max_for_le): Moved...
8009         * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
8010         * graphite-ppl.c (ppl_max_for_le): ... here.  Correct the use of
8011         ppl_Pointset_Powerset_C_Polyhedron_maximize.
8012         * graphite-ppl.h (ppl_max_for_le): Declared.
8013
8014 2009-08-14  Olatunji Ruwase <tjruwase@google.com>
8015
8016         * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
8017         supported on all platforms.
8018         * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
8019         * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
8020         * c-pragma.c: Likewise.
8021         * target-def.h (TARGET_INITIALIZER): Remove
8022         TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
8023         * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
8024
8025 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
8026
8027         * config/ia64/fde-vms.c: New file.
8028         * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
8029         * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
8030         (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
8031         (uw_frame_state_for): Only register a personality routine if it is
8032         known to be compatible with our expectations.
8033         (_Unwind_FindEnclosingFunction, uw_frame_state_for):
8034         Declare unw_table_entry stack variable and
8035         mod all calls to _Unwind_FindTableEntry to add arg.
8036         * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
8037         (_Unwind_FindTableEntry): Add arg to prototype.
8038
8039 2009-08-14  Eric Botcazou  <ebotcazou@adacore.com>
8040
8041         * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
8042         field 'signal_pfs_loc'.
8043         (uw_frame_state_for): Remove duplicate code dealing with leaf
8044         procedures without unwind info.
8045         If in the frame after unwinding through a signal handler, restore
8046         the AR.PFS register instead of the CFM if AR.PFS has not been saved.
8047         * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
8048         'pfs_loc' to the AR.PFS location in the signal context; instead
8049         set 'signal_pfs_loc'.
8050         Manually generate the unwind info for the AR.PFS register.
8051         (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
8052         ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
8053         (ia64_handle_unwabi): Test 'fs->unwabi' against them.
8054         Do not set 'pfs_loc' to the AR.PFS location in the signal context;
8055         instead set 'signal_pfs_loc'.
8056         Remove code preventing the AR.PFS register from being restored
8057         from the signal context.
8058
8059 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
8060             Tristan Gingold  <gingold@adacore.com>
8061
8062         * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
8063         * config/ia64/t-vms: New file.
8064         * config/ia64/vms64.h: New file.
8065         * config/ia64/vms.h: New file.
8066         * config/ia64/vms-crtinit.asm: New file.
8067         * config/ia64/vms_symvec_libgcc_s.opt: New file.
8068         * config/ia64/vms-unwind.h: New file.
8069
8070 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
8071
8072         * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
8073         TFmode compares.
8074
8075 2009-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8076
8077         PR middle-end/30789
8078         * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
8079         Move declaration...
8080         * real.h (do_mpc_arg2): ... here.
8081         * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
8082         and RDIV_EXPR.
8083
8084 2009-08-14  Rafael Avila de Espindola  <espindola@google.com>
8085
8086         * final.c (add_debug_prefix_map): Don't use GC memory for
8087         old_prefix and new_prefix.
8088
8089 2009-08-14  Richard Guenther  <rguenther@suse.de>
8090
8091         * ipa-prop.c (compute_complex_pass_through): If we cannot
8092         compute a non-varying offset for IPA_JF_ANCESTOR punt.
8093
8094 2009-08-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8095
8096         * c-lex.c (c_lex_with_flags): Increase size of local variable
8097         to avoid memory clobber.
8098
8099 2009-08-14  Paolo Bonzini  <bonzini@gnu.org>
8100
8101         PR target/40934
8102         * config/i386/i386.c (ix86_fp_comparison_strategy):
8103         Only enable/disable sahf at function granularity.
8104
8105 2009-08-14  Hans-Peter Nilsson  <hp@axis.com>
8106
8107         PR rtl-optimization/41064
8108         * reload1.c (reload_as_needed): Don't call extract_insn
8109         for known invalid replacements after calling
8110         validate_replace_rtx_group and verify_changes.
8111
8112 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
8113
8114         PR target/41019
8115         * config/i386/sse.md (SSEMODE124C8): New mode iterator.
8116         (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
8117         ix86_expand_fp_vcond.
8118         (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
8119         Assert that operation is supported by ix86_expand_int_vcond.
8120         (vcondu<SSEMODE124C8:mode>): Ditto.
8121
8122 2009-08-13  DJ Delorie  <dj@redhat.com>
8123
8124         * config/i386/djgpp-stdint.h: New.
8125         * config.gcc (djgpp): Use it.
8126
8127 2009-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
8128
8129         * config/sh/sh.c (sh_override_options): When flag_exceptions or
8130         flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
8131
8132 2009-08-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
8133
8134         * tree-ssa-loop-prefetch.c
8135         (prune_ref_by_group_reuse): Enhance probabilistic analysis
8136         for long-stride pruning.
8137         (compute_miss_rate): New function to compute the probability
8138         that two memory references access different cache lines.
8139
8140 2009-08-13  Dave Korn  <dave.korn.cygwin@gmail.com>
8141
8142         * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
8143
8144 2009-08-13  Richard Guenther  <rguenther@suse.de>
8145
8146         PR middle-end/41047
8147         * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
8148         use the constant pointer type.
8149         * gimplify.c (canonicalize_addr_expr): Canonicalize independent
8150         of CV qualifiers on the target pointer type.
8151         * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
8152         conversion check before restrict check.
8153
8154 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
8155
8156         PR target/41029
8157         * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
8158
8159 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
8160
8161         * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
8162
8163 2009-08-12  Richard Guenther  <rguenther@suse.de>
8164
8165         PR tree-optimization/41011
8166         * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
8167         and reference constructing.
8168
8169 2009-08-12  Xinliang David Li  <davidxl@google.com>
8170
8171         PR tree-optimization/41012
8172         * tree-flow.h : New external interface.
8173         * gimple-low.c (check_call_arg): Change to public function.
8174         Remove argument mismatch check in lowering.
8175         * tree-inline.h (tree_can_inline_p): Interface change.
8176         * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
8177         into this function.
8178         * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
8179         Call change to tree_can_inline_p function.
8180         (cgraph_decide_inlining_incrementally): Ditto.
8181
8182 2009-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
8183
8184         PR tree-optimization/41031
8185         * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
8186         on the partition variable rather than promote_mode on the source
8187         type.  Assert that the partition variable's type has the same
8188         mode as the source value's.
8189
8190 2009-08-12  Paolo Bonzini  <bonzini@gnu.org>
8191
8192         * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
8193         for for_return == 2.
8194         * function.c (assign_parm_setup_reg): Use for_return == 2, improve
8195         comments.
8196         * calls.c (expand_call): Fix typo.
8197         * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
8198         and PARM_DECL.
8199         * stmt.c (expand_value_return): Use promote_function_mode to copy out
8200         of pseudo.
8201         * targhooks.c (default_promote_function_mode): Handle for_return == 2.
8202         * config/cris/cris.c (cris_promote_function_mode): Likewise.
8203         * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
8204         * config/pa/pa.c (pa_promote_function_mode): Likewise.
8205
8206 2009-08-12  Andrew Haley  <aph@redhat.com>
8207
8208         * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
8209
8210 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
8211
8212         PR bootstrap/40103
8213         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
8214
8215 2009-08-12  Richard Guenther  <rguenther@suse.de>
8216
8217         * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
8218         * gimplify.c (gimplify_modify_expr): Do not use
8219         lang_hooks.types_compatible_p.
8220         * tree-ssa.c (useless_type_conversion_p): For aggregates
8221         just return false if the canonical types differ.
8222
8223 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
8224
8225         PR middle-end/40980
8226         * sese.c (convert_for_phi_arg): New.
8227         (add_guard_exit_phis): Use convert_for_phi_arg.
8228
8229 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
8230
8231         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
8232         unknown subscript upper bounds.
8233
8234 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
8235             Pranav Garg  <pranav.garg2107@gmail.com>
8236
8237         * graphite-interchange.c (gather_access_strides): Removed.
8238         (ppl_max_for_le): New.
8239         (build_linearized_memory_access): New.
8240         (memory_stride_in_loop): New.
8241         (pbb_interchange_profitable_p): Reimplemented.
8242         * graphite-ppl.h (ppl_new_id_map): New.
8243         (ppl_interchange): New.
8244
8245 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
8246
8247         * graphite-interchange.c (compute_subscript): Removed.
8248         (compute_array_size_cstr): Removed.
8249         (compute_array_size_poly): Removed.
8250         (compute_array_size): Removed.
8251         (gather_access_strides_poly): Removed.
8252         (gather_access_strides): Empty.
8253
8254 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
8255
8256         * graphite-dependences.c (dependence_polyhedron_1): Replace
8257         pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
8258         (graphite_legal_transform_dr): Same.
8259         (graphite_carried_dependence_level_k): Same.
8260         * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
8261         Initialize PDR_NB_SUBSCRIPTS.
8262         (print_pdr_access_layout): Replace pdr_nb_subscripts with
8263         PDR_NB_SUBSCRIPTS.
8264         * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
8265         (PDR_NB_SUBSCRIPTS): New.
8266         (pdr_nb_subscripts): Removed.
8267         (pdr_dim): Simplified.
8268         * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
8269         with PDR_NB_SUBSCRIPTS.
8270
8271 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
8272
8273         * graphite-interchange.c (compute_array_size): Remove use of
8274         PDR_DATA_CONTAINER.
8275         * graphite-poly.c (new_poly_dr): Remove argument data_container.
8276         Do not initialize PDR_DATA_CONTAINER.
8277         (print_pdr): Do not print PDR_DATA_CONTAINER.
8278         * graphite-poly.h (struct poly_dr): Remove data_container field.
8279         (PDR_DATA_CONTAINER): Removed.
8280         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
8281         PDR_DATA_CONTAINER.
8282         (build_poly_dr): Same.
8283
8284 2009-08-12  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
8285             Sebastian Pop  <sebastian.pop@amd.com>
8286
8287         * graphite-dependences.c (graphite_legal_transform_dr): Work on a
8288         copy of the dependence polyhedron.  Free the temporary objects.
8289         (graphite_carried_dependence_level_k): Free unused objects before
8290         returning.
8291
8292 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
8293
8294         * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
8295         Early return without analyzing the data dependences if no
8296         transform has been done.  Call restore_scattering if the transform
8297         is not legal.
8298         (graphite-interchange.c): Same.
8299         * graphite-poly.c (print_scattering_function): Test for
8300         PBB_TRANSFORMED.
8301         (graphite_read_transforms): Initialize PBB_TRANSFORMED.
8302         (apply_poly_transforms): Do not gcc_assert that
8303         the transform is legal.
8304         (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
8305         Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
8306         PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
8307         (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
8308         * graphite-poly.h (struct poly_scattering): New.
8309         (struct poly_bb): Add original, transformed, and saved fields.
8310         Remove transformed_scattering, original_scattering,
8311         nb_local_variables and nb_scattering_transform fields.
8312         (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
8313         (poly_scattering_new): New.
8314         (poly_scattering_free): New.
8315         (poly_scattering_copy): New.
8316         (store_scattering_pbb): New.
8317         (store_scattering): New.
8318         (restore_scattering_pbb): New.
8319         (restore_scattering): New.
8320         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
8321         Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
8322
8323 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
8324
8325         * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
8326         (print_scop): Same.
8327
8328 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
8329
8330         * Makefile.in (graphite.o): Depends on PREDICT_H.
8331         * graphite.c: Include predict.h.
8332         (graphite_finalize): Call tree_estimate_probability.
8333         * predict.c (predict_loops): Do not call scev_initialize and
8334         scev_finalize.
8335         (tree_estimate_probability_bb): New.
8336         (tree_estimate_probability): Do not initialize loops: move that
8337         code to the driver.  Call tree_estimate_probability_bb.
8338         (tree_estimate_probability_driver): New.
8339         (pass_profile): Use tree_estimate_probability_driver.
8340         * predict.h (tree_estimate_probability): Declared.
8341
8342 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
8343
8344         * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
8345         * graphite-dependences.c (graphite_legal_transform): Add time to
8346         TV_GRAPHITE_DATA_DEPS.
8347         (dependency_between_pbbs_p): Same.
8348         * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
8349
8350 2009-08-12  Andrey Belevantsev  <abel@ispras.ru>
8351
8352         PR rtl-optimization/41033
8353         * alias.c (nonoverlapping_component_refs_p): Punt when strict
8354         aliasing is disabled.
8355
8356 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
8357
8358         * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
8359         si_mask_operand, and_load_operand, low_bitmask_operand,
8360         and_reg_operand, and_operand): New predicates.
8361         * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
8362         * config/mips/mips.c (and_operands_ok): New function.
8363         * config/mips/mips-protos.h (and_operands_ok): Declare it.
8364         * config/mips/mips.md (move_type): Add ext_ins and logical.
8365         (type): Handle them.
8366         (and<mode>3): Use and_reg_operand as the second operand's predicate.
8367         (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
8368         shift_shift.  Remove commutative constraint modifier.
8369         (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
8370         shift_shift.
8371         (*clear_upper32_dext): Remove define_insn_and_split.
8372         (*clear_upper32): Turn this define_insn_and_split ...
8373         (splitter for ANDing register with 0xffff_ffff): .. into this.
8374
8375 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
8376
8377         * combine.c (try_widen_shift_mode): Factor out code to check if an
8378         integer constant is a low-order bitmask from here ...
8379         * rtlanal.c (low_bitmask_len): ... to here.
8380         * rtl.h (low_bitmask_len): Declare.
8381
8382 2009-08-11  Uros Bizjak  <ubizjak@gmail.com>
8383
8384         PR target/8603
8385         * config/alpha/alpha.md (addsi3): Remove expander.
8386         (addsi3): Rename from *addsi3_internal insn pattern.
8387         (subsi3): Remove expander.
8388         (subsi3): Rename from *subsi3_internal insn pattern.
8389
8390 2009-08-11  Douglas B Rupp  <rupp@gnat.com>
8391
8392         * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
8393         FWRITE_UNLOCKED.
8394
8395 2009-08-11  Vasiliy Fofanov  <fofanov@adacore.com>
8396             Eric Botcazou  <botcazou@adacore.com>
8397             Douglas B Rupp  <rupp@gnat.com>
8398
8399         * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
8400         that records that fit in 64 bits are returned by immediate value,
8401         as required by OpenVMS Calling Standard.
8402         (function_value): Adjust for above modification.
8403         (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
8404         virtual_incoming_args_rtx as base object, not next_arg.
8405         * config/alpha/vms.h (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
8406
8407 2009-08-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8408
8409         * reload.c (find_reloads_subreg_address): Check the original
8410         req_equiv_mem address to detect the case where an address is
8411         not valid in the outer mode.
8412
8413 2009-08-11  Richard Guenther  <rguenther@suse.de>
8414
8415         PR bootstrap/40788
8416         * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
8417
8418 2009-08-10  Douglas B Rupp  <rupp@gnat.com>
8419
8420         * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
8421         (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
8422
8423 2009-08-10  Olivier Hainque  <hainqueu@adacore.com>
8424             Douglas B Rupp  <rupp@gnat.com>
8425
8426         * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
8427         PT_STACK when frame_pointer_needed on OpenVMS.
8428         (alpha_pv_save_size, alpha_using_fp): Remove.
8429         (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
8430         with proper processing for PT_NULL.
8431         (alpha_vms_initial_elimination_offset): New function. Support for
8432         INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
8433         (alpha_sa_size): Force procedure type to PT_STACK when
8434         frame_pointer_needed on OpenVMS.
8435         * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
8436         (alpha_using_fp): Likewise.
8437         (alpha_vms_can_eliminate): Add prototype.
8438         (alpha_vms_initial_elimination_offset): Likewise.
8439         * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
8440         Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
8441
8442 2009-08-10  Eric Botcazou  <botcazou@adacore.com>
8443             Douglas B Rupp  <rupp@gnat.com>
8444
8445         * config/alpha/alpha.c (common_object_handler): New function.
8446         (vms_attribute_table): Declare a single attribute "common_object".
8447         (vms_output_aligned_decl_common): New global function.
8448         (SECTION_VMS_OVERLAY): Delete.
8449         (SECTION_VMS_GLOBAL): Likewise.
8450         (SECTION_VMS_INITIALIZE): Likewise.
8451         (vms_asm_named_section): Remove support for above flags.
8452         (vms_section_type_flags): Delete.
8453         (TARGET_SECTION_TYPE_FLAGS): Likewise.
8454         * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
8455         * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
8456         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
8457
8458 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
8459
8460         PR target/41015
8461         * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
8462         (sub_ddmmss): Likewise.
8463
8464 2009-08-10  Andreas Tobler  <a.tobler@schweiz.org>
8465
8466         PR bootstrap/41018
8467         * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
8468         year.
8469
8470 2009-08-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8471
8472         PR target/37053
8473         * reload1.c (reload_as_needed): Use cancel_changes to completely
8474         undo a failed replacement attempt.
8475
8476 2009-08-10  Richard Guenther  <rguenther@suse.de>
8477
8478         PR middle-end/41006
8479         * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
8480         (useless_type_conversion_p): ... here.  Require pointer targets
8481         to be compatible.
8482
8483 2009-08-10  Dodji Seketeli  <dodji@redhat.com>
8484
8485         PR c++/40866
8486         * tree-inline.c (copy_statement_list): The resulting copy shouldn't
8487         loose the original type of the statement list.
8488
8489 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
8490
8491         * config/alpha/alpha.c: Include libfuncs.h
8492         (avms_asm_output_extern): New function.
8493         (alpha_init_libfuncs): Init some decc libfuncs.
8494         * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
8495         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
8496         (DO_CRTL_NAMES): Define.
8497         (LIB_SPEC): Remove.
8498         * config/alpha/vms64.h (POINTERS_EXTEND_UNSIGNED): Remove undef.
8499         (LONG_TYPE_SIZE): Define.
8500         (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
8501         (SUBTARGET_SWITCHES): Define malloc64 switch.
8502         (TARGET_DEFAULT): Default MASK_MALLOC64 set.
8503         (MASK_RETURN_ADDR): Define.
8504         doc/invoke.texi (mmalloc64): Document switch.
8505
8506 2009-08-09  Olivier Hainque  <hainque@adacore.com>
8507             Douglas B Rupp  <rupp@gnat.com>
8508
8509         * config/alpha/alpha.c (struct machine_function): New flag for VMS,
8510         uses_condition_handler.
8511         (alpha_expand_builtin_establish_vms_condition_handler): New expander.
8512         (alpha_expand_builtin_revert_vms_condition_handler): New expander.
8513         (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
8514         and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
8515         (code_for_builtin): New insn codes for the new alpha_builtins.
8516         (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
8517         (alpha_sa_size): Account for uses_condition_handler.
8518         (alpha_expand_prologue): Likewise.
8519         (alpha_start_function): Likewise.
8520         (alpha_expand_epilogue): Likewise.
8521         * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
8522         establish/revert expanders.
8523         * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
8524         * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
8525         New expander, resorting to the alpha.c associated function.
8526         (builtin_revert_vms_condition_handler): Likewise.
8527         * config/alpha/vms-gcc_shell_handler.c: New file. Implements
8528         __gcc_shell_handler, the static VMS condition handler used as
8529         an indirection wrapper to the current dynamically established
8530         handler.
8531         * config/alpha/vms-unwind.h: Complete rewrite.
8532         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
8533         * config/alpha/vms.h (MD_UNWIND_SUPPORT):
8534
8535 2009-08-09  Eric Botcazou  <botcazou@adacore.com>
8536             Douglas B Rupp  <rupp@gnat.com>
8537
8538         * config/alpha/alpha.c (alpha_links): Add 'target' field.
8539         (alpha_need_linkage): Handle aliases.  Return function symbol.
8540         (alpha_use_linkage): Rename 'linkage' argument to 'func'.
8541         Use ultimate alias target for the linkage name.
8542         * config/alpha/alpha.md (movmemdi): Use the symbol returned
8543         by alpha_need_linkage for the function symbol.
8544         (setmemdi): Likewise.
8545
8546 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
8547
8548         * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
8549         * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
8550         (ASM_WEAKEN_LABEL): Define.
8551         (CRT_CALL_STATIC_FUNCTION): Define.
8552         (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
8553         (ENDFILE_SPEC): Define.
8554         (INIT_SECTION_ASM_OP): Define.
8555         * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
8556         * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
8557         crtend.o crtendS.o.
8558         (MULTILIB_OSDIRNAMES): Define.
8559         (shlib_version): Define.
8560         (SHLIB_EXT): Define.
8561         (SHLIB_OBJS): Define.
8562         (SHLIB_NAME): Define.
8563         (SHLIB_MULTILIB): Define.
8564         (SHLIB_INSTALL): Define.
8565         (SHLIB_SYMVEC): Define.
8566         (SHLIB_SYMVECX2): Define.
8567         (SHLIB_LINK): Define.
8568
8569 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
8570
8571         * config/alpha/alpha.c (alpha_initialize_trampoline):
8572         Initialize VMS trampoline IAW ABI for bounded procedure calls.
8573         (alpha_start_function): Emit transfer address on nested functions
8574         for VMS trampoline call.
8575         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
8576         since no longer used.
8577         * config/alpha/vms-tramp.asm: Remove.
8578         * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
8579         since now only data initialized at runtime.
8580
8581 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
8582
8583         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
8584         (LINK_GCC_C_SEQUENCE_SPEC): Define.
8585         (MD_EXEC_PREFIX): Remove, no longer used.
8586         (MD_STARTFILE_PREFIX): Likewise.
8587         (INCLUDE_DEFAULTS): Likewise.
8588         * config/alpha/t-vms:
8589         (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
8590
8591 2009-08-09  Richard Guenther  <rguenther@suse.de>
8592
8593         PR tree-optimization/41016
8594         * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
8595         (operand_precision): Remove.
8596         (integral_operand_p): Likewise.
8597         (recognize_single_bit_test): Adjust.
8598
8599 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
8600
8601         * c-common.c (c_fully_fold_internal): Issue a warning if a binary
8602         operation overflows.  Likewise non-cast unary arithmetic.
8603         If one arm of a conditional expression is always taken,
8604         inhibit evaluation warnings for the other arm.  Likewise inhibit
8605         evaluation warnings for the second && or || operand if the first
8606         operand is enough to determine the result.
8607         * c-typeck.c (build_conditional_expr): Apply the same inhibition
8608         rules here.
8609         (build_binary_op): Prevent duplicate evaluation warnings.
8610
8611 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
8612
8613         * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
8614         and destination have different modes, Use promote_mode to
8615         determine the signedness of the conversion.  Assert that the
8616         promoted source mode matches the destination mode.  Don't pass
8617         the destination and destination mode to expand_expr if the source
8618         mode is different.  Simplify conversion logic.
8619
8620 2009-08-09  Ira Rosen  <irar@il.ibm.com>
8621
8622         PR tree-optimization/41008
8623         * tree-vect-loop.c (vect_is_simple_reduction): Get operands
8624         from condition only in case it's a comparison. Adjust checks.
8625
8626 2009-08-09  Bernd Schmidt  <bernd.schmidt@analog.com>
8627
8628         * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
8629         * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
8630         * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
8631         (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
8632         (dump_cand): Handle them.
8633         (struct iv_cand): New members COST_STEP and AINC_USE.
8634         (stmt_after_increment): Likewise.
8635         (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos.  All
8636         callers changed.  Use gimple_uid comparison instead of scanning.
8637         (add_candidate_1): When looking for identical candidates, take
8638         AINC_USE into account.  Set it for new candidates.
8639         (force_expr_to_var_cost): Cast target_spill_cost to int.
8640         (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
8641         All callers changed.  Check for availability of autoinc addressing
8642         modes, both in general for a given mode, and in the specific use case.
8643         (get_computation_cost_at): New argument CAN_AUTOINC.  All callers
8644         changed.
8645         (get_computation_cost): Likewise.
8646         (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
8647         add_autoinc_candidates): New static functions.
8648         (add_candidate): Call add_autoinc_candidates for candidates based on
8649         a USE_ADDRESS use.
8650         (find_iv_candidates): Call set_autoinc_for_original_candidates.
8651         (determine_use_iv_cost_address): If we have an autoinc candidate at
8652         the matching use, verify autoinc is possible and subtract the cost
8653         of the candidate's step from the cost.
8654         (determine_iv_cost): Record the cost of the increment in the COST_STEP
8655         member of the candidate.
8656         (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
8657         determine_use_iv_costs.  Call renumber_gimple_stmt_uids_in_blocks.
8658
8659 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
8660
8661         * config.build (ia64-hp-*vms*): New target.
8662         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
8663         with ia64-hp-*vms*.
8664         * config.gcc (ia64-hp-*vms*): New target.
8665         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
8666         with ia64-hp-*vms*.
8667         * config.host (ia64-hp-*vms*): New target.
8668         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
8669         with ia64-hp-*vms*.
8670
8671 2009-08-08  Richard Guenther  <rguenther@suse.de>
8672
8673         PR tree-optimization/40991
8674         * tree-ssa-pre.c (eliminate): Delay purging EH edges.
8675
8676 2009-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
8677
8678         * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
8679         mode check.  Do truncations in an integer mode.
8680         (force_to_mode): Handle subregs for all mode types.  Only do
8681         arithmetic simplifications on integer modes.
8682
8683 2009-08-07  Richard Guenther  <rguenther@suse.de>
8684
8685         PR tree-optimization/40999
8686         * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
8687         (maybe_fold_reference): Lookup constant initializers.
8688         (fold_gimple_assign): Likewise.
8689
8690 2009-08-07  Richard Guenther  <rguenther@suse.de>
8691
8692         * tree-ssa.c (useless_type_conversion_p_1): Only for types
8693         that require structural equality defer to the langhook.
8694
8695 2009-08-07  Martin Jambor  <mjambor@suse.cz>
8696
8697         * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
8698         comments.
8699         (struct ipa_pass_through_data): New type.
8700         (struct ipa_ancestor_jf_data): New type.
8701         (union jump_func_value): Removed field formal_id, added fields
8702         pass_through and ancestor.
8703         (struct ipa_param_call_note): Changed type of formal_id to int from
8704         unsigned.
8705         * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
8706         operations jump functions and ancestor jump functions.
8707         (compute_complex_pass_through): New function.
8708         (compute_scalar_jump_functions): Call compute_complex_pass_through,
8709         reflect changes in the jump function strucutre.
8710         (update_jump_functions_after_inlining): Ignore complex pass-through
8711         and ancestor jump functions.
8712         * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
8713         polynomial pass-through with operation jump functions.
8714
8715 2009-08-07  Jakub Jelinek  <jakub@redhat.com>
8716
8717         * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
8718         fde->dw_fde_begin as begin label instead of hot/cold label.
8719         Use LLSDAC label instead of LLSDA for second section lsda.
8720         (dwarf2out_do_cfi_startproc): Add SECOND argument.  Use LLSDAC
8721         label instead of LLSDA if it is true.
8722         (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
8723         callers.
8724         * except.c (add_call_site, dw2_size_of_call_site_table): Add
8725         SECTION argument.  Use it as index into crtl->eh.call_site_record
8726         array.
8727         (dw2_output_call_site_table): Likewise.  Add CS_FORMAT argument,
8728         use it to determine how to print table entries instead of using
8729         #ifdef HAVE_AS_LEB128.  For SECTION > 0 use hot resp. cold
8730         label instead of normal begin label as base.
8731         (sjlj_assign_call_site_values): Adjust add_call_site caller.
8732         (convert_to_eh_region_ranges): When doing hot/cold partitioning,
8733         ensure no EH range spans between sections and that landing pads
8734         are always in the corresponding section.
8735         (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
8736         for crtl->eh.call_site_record being an array rather than scalar.
8737         (output_one_function_exception_table): New function, copied
8738         from output_function_exception_table.  Adjust
8739         dw2_size_of_call_site_table, dw2_output_call_site_table
8740         callers.  For SECOND section use *C suffixed labels.
8741         (output_function_exception_table): Call
8742         output_one_function_exception_table and, when doing hot/cold
8743         partitioning, also another time for the second section.
8744         * opts.c: Include except.h.
8745         (decode_options): Allow -freorder-blocks-and-partition with
8746         exceptions, unless SJLJ or TARGET_UNWIND_INFO.
8747         * Makefile.in (opts.o): Depend on $(EXCEPT_H).
8748         * function.h (struct rtl_eh): Change call_site_record from
8749         scalar into array of 2 elements.
8750
8751 2009-08-07  Martin Jambor  <mjambor@suse.cz>
8752
8753         * ipa-prop.c (count_formal_params_1): New function.
8754         (ipa_get_vector_of_formal_parms): New function.
8755         (get_vector_of_formal_parm_types): New function.
8756         (ipa_modify_formal_parameters): New function.
8757         (ipa_modify_call_arguments): New function.
8758         (index_in_adjustments_multiple_times_p): New function.
8759         (ipa_combine_adjustments): New function.
8760         (ipa_dump_param_adjustments): New function.
8761         * ipa-prop.h (struct ipa_parm_adjustment): New type.
8762         (ipa_get_vector_of_formal_parms): Declare.
8763         (ipa_modify_formal_parameters): Declare.
8764         (ipa_modify_call_arguments): Declare.
8765         (ipa_combine_adjustments): Declare.
8766         (ipa_dump_param_adjustments): Declare.
8767         (build_ref_for_offset): Declare.
8768         * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
8769         * tree-sra.c: Include ipa-prop.c.
8770         (build_ref_for_offset): Make public.
8771
8772 2009-08-06  Neil Vachharajani  <nvachhar@gmail.com>
8773
8774         * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
8775
8776 2009-08-06  Thomas Schwinge  <tschwinge@gnu.org>
8777
8778         * gcc/doc/extend.texi (__builtin_extract_return_address)
8779         (__builtin_frob_return_address): Document.
8780
8781 2009-08-06  Paul Brook  <paul@codesourcery.com>
8782
8783         * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
8784         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
8785         implementation on ARMv6-M.
8786
8787 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
8788
8789         * doc/extend.texi (pcs): Document new attribute for ARM.
8790
8791 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
8792
8793         * arm.c (pcs_attribute_args): Comment out unsupported attribute
8794         variants.
8795
8796 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
8797
8798         * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
8799         warning ().
8800
8801 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
8802
8803         * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
8804
8805 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
8806
8807         Merge ARM/hard_vfp_branch to trunk.
8808
8809         2009-08-04  Richard Earnshaw  <rearnsha@arm.com>
8810
8811         * arm.c (libcall_eq): New function.
8812         (libcall_hash): New function.
8813         (add_libcall): New function.
8814         (arm_libcall_uses_aapcs_base): New function.
8815         (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
8816         libcalls using the base PCS.
8817         (arm_init_cumulative_args): Likewise.
8818
8819         2009-07-20  Joseph Myers  <joseph@codesourcery.com>
8820
8821         * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
8822         Use base ABI for conversion libfuncs between HFmode and SFmode.
8823
8824         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
8825
8826         * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
8827         V4SImode as representatives of all 64-bit and 128-bit vector
8828         types.  Allow vector types without vector modes.
8829         (aapcs_vfp_is_call_or_return_candidate): Handle vector types
8830         without vector modes like BLKmode.
8831         (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
8832         BLKmode.  Avoid unsupported vector modes or TImode moves for
8833         non-TARGET_NEON.
8834         (aapcs_vfp_allocate_return_reg): Likewise.
8835         (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
8836         V8QImode if TARGET_NEON || TARGET_IWMMXT.
8837
8838         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
8839
8840         * config/arm/arm.c (arm_handle_pcs_attribute): New.
8841         (arm_get_pcs_model): Pass attribute arguments to
8842         arm_pcs_from_attribute.
8843         (arm_init_cumulative_args): Use base AAPCS for conversions from
8844         floating-point types to DImode.
8845         (arm_attribute_table): Add pcs attribute.
8846         (arm_handle_pcs_attribute): New.
8847         * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
8848         conversions from floating-point types to DImode, also declare them
8849         to use base AAPCS and declare functions they call to use base
8850         AAPCS and their RTABI names.
8851
8852         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
8853
8854         * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
8855         -mfloat-abi=hard not being supported for VFP.
8856
8857         2009-05-11  Kazu Hirata  <kazu@codesourcery.com>
8858
8859         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
8860         SYMBOL_REF to hard_libcall_value.
8861
8862         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
8863             Richard Earnshaw  <rearnsha@arm.com>
8864
8865         * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
8866         has been put on the stack, all remaining co-processory arguments for
8867         that co-processor also go on the stack.
8868
8869         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
8870
8871         * config/arm/arm.c (arm_return_in_memory): Handle returning
8872         vectors of suitable size in registers also for AAPCS case.
8873
8874         2009-01-13  Richard Earnshaw <rearnsha@arm.com>
8875
8876         * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
8877
8878         2008-12-09  Richard Earnshaw <rearnsha@arm.com>
8879
8880         ARM Hard-VFP calling convention
8881         * target-def.h (TARGET_LIBCALL_VALUE): New hook.
8882         * target.h (gcc_target): Add libcall_value to table of call hooks.
8883         * targhooks.h (default_libcall_value): Default implementation.
8884         * targhooks.c (default_libcall_value): Likewise.
8885         * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
8886         * optabs.c (expand_unop): Use it.
8887         * expr.h (hard_libcall_value): Pass the function RTX through.
8888         * calls.c (emit_library_call_value_1): Update call to
8889         hard_libcall_value.
8890         * explow.c (hard_libcall_value): Use new target hook.
8891         * testsuite/lib/target-supports.exp
8892         (check_effective_target_arm_hard_vfp_ok): New hook.
8893         (check_effective_target_arm_neon_ok): Improve test for neon
8894         availability.
8895         * testsuite/gcc.target/arm/eabi1.c: Only run test in base variant.
8896         * config/arm/arm.c: Include cgraph.h
8897         (TARGET_FUNCTION_VALUE): Override default hook.
8898         (arm_pcs_default): New variable.
8899         (arm_override_options): Don't fault hard calling convention with VFP.
8900         Add support for AAPCS variants.
8901         (arm_function_value): Make static.  Handle AAPCS variants.
8902         (arm_libcall_value): New function.
8903         (arm_apply_result_size): Handle VFP registers in results.
8904         (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
8905         conventions.
8906         (pcs_attribute_args): New variable.
8907         (arm_pcs_from_attribute): New function.
8908         (arm_get_pcs_model): New function.
8909         (aapcs_vfp_cum_init): New function.
8910         (aapcs_vfp_sub_candidate): New function.
8911         (aapcs_vfp_is_return_candidate): New function.
8912         (aapcs_vfp_is_call_candidate): New function.
8913         (aapcs_vfp_allocate): New function.
8914         (aapcs_vfp_allocate_return_reg): New function.
8915         (aapcs_vfp_advance): New function.
8916         (aapcs_cp_arg_layout): New variable.
8917         (aapcs_select_call_coproc): New function.
8918         (aapcs_select_return_coproc): New function.
8919         (aapcs_allocate_return_reg): New function.
8920         (aapcs_libcall_value): New function.
8921         (aapcs_layout_arg): New function.
8922         (arm_init_cumulative_args): Initialize AAPCS args data.
8923         (arm_function_arg): Handle AAPCS variants using new interface.
8924         (arm_arg_parital_bytes): Likewise.
8925         (arm_function_arg_advance): New function.
8926         (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
8927         calling conventions.
8928         (arm_setup_incoming_varargs): Handle new AAPCS args data.
8929         * arm.h (NUM_VFP_ARG_REGS): Define.
8930         (LIBCALL_VALUE): Update.
8931         (FUNCTION_VALUE): Delete.
8932         (FUNCTION_VALUE_REGNO_P): Add VFP regs.
8933         (arm_pcs): New enum.
8934         (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
8935         (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
8936         (FUNCTION_ARG_REGNO_P): Add VFP regs.
8937         * arm-protos.h (arm_function_arg_advance): Add.
8938         (aapcs_libcall_value): Add.
8939         (arm_function_value): Delete.
8940
8941 2009-08-06  Uros Bizjak  <ubizjak@gmail.com>
8942             H.J. Lu  <hongjiu.lu@intel.com>
8943
8944         PR target/40957
8945         * config/i386/i386.c (standard_sse_mode_p): Remove.
8946         (standard_sse_constant_p): Return 2 for integer mode
8947         vector_all_ones_operand when SSE2 is enabled.
8948         (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
8949         (ix86_expand_vector_move): Do not check for negative values from
8950         standard_sse_constant_p.
8951
8952 2009-08-06  Richard Guenther  <rguenther@suse.de>
8953
8954         * tree-ssa.c (useless_type_conversion_p_1): Make function and
8955         array type comparisons frontend independent.
8956         * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
8957         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
8958         out array reference lower bound and element size operands.
8959         (ao_ref_init_from_vn_reference): Properly compute the offset
8960         for ARRAY_RANGE_REF.
8961         (vn_reference_fold_indirect): Fill out array reference lower
8962         bound and element size operands.
8963         * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
8964         a non gimple valued reference operand which can happen for
8965         array reference lower bound or element size.
8966         (create_component_ref_by_pieces_1): Properly generate the
8967         element size operand for array references.
8968
8969 2009-08-06  Richard Guenther  <rguenther@suse.de>
8970
8971         PR tree-optimization/40964
8972         * tree.c (iterative_hash_host_wide_int): Export.
8973         * tree.h (iterative_hash_host_wide_int): Declare.
8974         * tree-ssa-structalias.c (heapvar_map): New struct.
8975         (heapvar_map_eq): New function.
8976         (heapvar_map_hash): Likewise.
8977         (heapvar_lookup): Adjust.
8978         (heapvar_insert): Likewise.
8979         (make_constraint_from_heapvar): Allow multiple heap variables
8980         per decl at different offsets.
8981         (init_alias_heapvars): Adjust.
8982
8983 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
8984
8985         * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
8986         * mips_output_sync_loop (mips_output_sync_loop): Only emit
8987         trailing sync if TARGET_SYNC_AFTER_SC.
8988
8989 2009-08-05  David Daney  <ddaney@caviumnetworks.com>
8990
8991         * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
8992         compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
8993         sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
8994         sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
8995         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
8996         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
8997         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
8998         sync_new_nand<mode>, sync_lock_test_and_set<mode>,
8999         test_and_set_12): Rewrite calls to mips_output_sync_loop.
9000         * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
9001         the prototype declaration match the definition.
9002         * gcc/config/mips/mips.c (mips_output_sync_loop):  Emit sync
9003         instructions explicitly.  Add barrier_before and operands
9004         parameters.
9005         * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
9006         MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
9007         MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
9008         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
9009         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
9010         MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
9011
9012 2009-08-05  Andrew Pinski  <pinskia@gmail.com>
9013
9014         * tree-ssa-alias.c: Fix intervals to use [) syntax.
9015
9016 2009-08-05  Uros Bizjak  <ubizjak@gmail.com>
9017             Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
9018
9019         PR target/40906
9020         * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
9021         source operand.
9022
9023 2009-08-05  Jakub Jelinek  <jakub@redhat.com>
9024
9025         PR rtl-optimization/40924
9026         * dse.c (canon_address): Before calling cselib_expand_value_rtx
9027         make sure canon_rtx (mem_address) isn't simpler than
9028         canon_rtx (expanded_mem_address).
9029
9030 2009-08-05  Li Feng  <nemokingdom@gmail.com>
9031
9032         * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
9033         for each poly_bb_p.
9034         (build_scop_drs): Build alias set for each SCoP.
9035
9036 2009-08-04  Sandra Loosemore  <sandra@codesourcery.com>
9037
9038         * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
9039         * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
9040         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
9041         (MIPS_ARCH_FLOAT_SPEC): Likewise.
9042         (BASE_DRIVER_SELF_SPECS): Likewise.
9043
9044 2009-08-04  Andrew Pinski  <pinskia@gmail.com>
9045
9046         * tree-ssa-alias.c: Fix some comment typos.
9047
9048 2009-08-04  Kaz Kojima  <kkojima@gcc.gnu.org>
9049
9050         * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
9051         ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
9052
9053 2009-08-03  Janis Johnson  <janis187@us.ibm.com>
9054
9055         PR c/39902
9056         * simplify-rtx.c (simplify_binary_operation_1): Disable
9057         simplifications for decimal float operations.
9058
9059 2009-08-03  Jakub Jelinek  <jakub@redhat.com>
9060
9061         PR middle-end/40943
9062         * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
9063         operand of INDIRECT_REF.
9064
9065 2009-08-03  Uros Bizjak  <ubizjak@gmail.com>
9066
9067         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
9068         constants referencing TLS symbols.
9069
9070 2009-08-03  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
9071
9072         * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
9073         __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
9074
9075 2009-08-03  Richard Guenther  <rguenther@suse.de>
9076
9077         * tree.c (make_vector_type): Build a main variant first,
9078         get the canonical one and then build the variant.
9079         * tree-ssa.c (useless_type_conversion_p_1): Handle
9080         fixed-point types.
9081         (useless_type_conversion_p): Conversions to pointers to
9082         incomplete record types are useless.
9083
9084 2009-08-03  Richard Guenther  <rguenther@suse.de>
9085
9086         * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
9087         file will be created.
9088         * omp-low.c (pass_diagnose_omp_blocks): Likewise.
9089         * toplev.c (compile_file): Adjust comment.
9090
9091 2009-08-03  Kaz Kojima  <kkojima@gcc.gnu.org>
9092
9093         * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
9094         * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
9095         (TARGET_PROMOTE_FUNCTION_MODE): Define.
9096         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
9097         (sh_promote_function_mode): Fix typo.
9098
9099 2009-08-03  Andreas Krebbel  <krebbel1@de.ibm.com>
9100
9101         * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
9102
9103 2009-08-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9104
9105         * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
9106         declaration arguments.
9107
9108 2009-08-02  Uros Bizjak  <ubizjak@gmail.com>
9109
9110         * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
9111         of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
9112         (ix86_split_ashl): Ditto.
9113         (ix86_expand_vector_init_one_nonzero): Ditto.
9114         (ix86_expand_vector_set): Ditto.
9115         (ix86_expand_reduc_v4sf): Ditto.
9116
9117 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
9118
9119         * explow.c (promote_function_mode): Remove assert.
9120         * config/sh/sh.c (sh_promote_function_mode): Declare.
9121
9122 2009-08-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9123
9124         * config/pa/pa.c (pa_promote_function_mode): Declare.
9125         Change to static.  Fix promote_mode call.
9126
9127         * gthr-dce.h (CONST_CAST2): Define if not defined.
9128         (__gthread_setspecific): Use CONST_CAST2 to fix warning.
9129
9130         * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
9131
9132 2009-08-01  Paolo Bonzini  <bonzini@gnu.org>
9133
9134         * expr.c (store_constructor): Use promote_decl_mode.  Remove
9135         now write-only variable unsignedp.
9136         (expand_expr_real_1): Use promote_decl_mode.
9137         * expr.h (promote_function_mode, promote_decl_mode): New.
9138         (promote_mode): Remove last argument.
9139         * function.c (assign_temp): Drop last argument of promote_mode.
9140         (assign_parm_find_data_types): Use promote_function_mode.
9141         (assign_parm_setup_reg): Likewise.
9142         (expand_function_end): Use promote_function_mode.
9143         * calls.c (initialize_argument_information): Use promote_function_mode.
9144         (precompute_arguments): Use promote_mode instead of checking if
9145         only PROMOTE_FUNCTION_MODE is defined.
9146         (expand_call): When making sibcall decisions, use promote_function_mode.
9147         Below, remove an if for targetm.calls.promote_function_return and
9148         and use promote_function_mode.
9149         (emit_library_call_value_1): Use promote_function_mode, fix bug
9150         where promote_mode was passed FOR_CALL == 0 for a return value in an
9151         assertion.
9152         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
9153         * explow.c (promote_function_mode, promote_decl_mode): New.
9154         (promote_mode): Keep only the FOR_CALL == 0 case.
9155         * combine.c (setup_incoming_promotion): Remove test of
9156         promote_function_args.  Use promote_function_mode.
9157         * stmt.c (expand_value_return): Use promote_decl_mode.
9158         (expand_decl): Use promote_decl_mode.
9159
9160         * expr.c (store_constructor): Use promote_decl_mode.  Remove
9161         now write-only variable unsignedp.
9162         (expand_expr_real_1): Use promote_decl_mode.
9163         * expr.h (promote_function_mode, promote_decl_mode): New.
9164         (promote_mode): Remove last argument.
9165         * function.c (assign_temp): Drop last argument of promote_mode.
9166         (assign_parm_find_data_types): Use promote_function_mode.
9167         (assign_parm_setup_reg): Likewise.
9168         (expand_function_end): Use promote_function_mode.
9169         * calls.c (initialize_argument_information): Use promote_function_mode.
9170         (precompute_arguments): Use promote_mode instead of checking if
9171         only PROMOTE_FUNCTION_MODE is defined.
9172         (expand_call): When making sibcall decisions, use promote_function_mode.
9173         Below, remove an if for targetm.calls.promote_function_return and
9174         and use promote_function_mode.
9175         (emit_library_call_value_1): Use promote_function_mode, fix bug
9176         where promote_mode was passed FOR_CALL == 0 for a return value in an
9177         assertion.
9178         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
9179         * explow.c (promote_function_mode, promote_decl_mode): New.
9180         (promote_mode): Keep only the FOR_CALL == 0 case.
9181         * combine.c (setup_incoming_promotion): Remove test of
9182         promote_function_args.  Use promote_function_mode.
9183         * stmt.c (expand_value_return): Use promote_decl_mode.
9184         (expand_decl): Use promote_decl_mode.
9185
9186         * explow.c (promote_function_mode): Just call the target hook.
9187         * targhooks.c (default_promote_function_mode,
9188         default_promote_function_mode_always_promote): New.
9189         * targhooks.h (default_promote_function_mode,
9190         default_promote_function_mode_always_promote): Declare.
9191         * target.h (promote_function_args, promote_function_return): Remove.
9192         (promote_function_mode): New.
9193         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
9194         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9195         (TARGET_PROMOTE_FUNCTION_MODE): New.
9196         (TARGET_CALLS): Adjust.
9197         * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
9198         TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
9199
9200         * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
9201         * config/s390/s390.c (s390_promote_function_mode): ... here,
9202         with pointer handling.
9203         (TARGET_PROMOTE_FUNCTION_MODE): Define.
9204         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9205
9206         * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
9207         * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
9208         with pointer handling.
9209         (TARGET_PROMOTE_FUNCTION_MODE): Define.
9210         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9211
9212         * config/sh/sh-protos.h (sh_promote_function_mode): New.
9213         * config/sh/sh.c (sh_promote_function_mode): New.
9214         (TARGET_PROMOTE_FUNCTION_MODE): Define.
9215         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9216
9217         * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
9218         * config/cris/cris.c (cris_promote_function_mode): ... here.
9219         (TARGET_PROMOTE_FUNCTION_MODE): Define.
9220         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
9221
9222         * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
9223         * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
9224         (TARGET_PROMOTE_FUNCTION_MODE): Define.
9225         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
9226
9227         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
9228         * config/arm/arm.c (arm_promote_function_mode): ... here, without
9229         complex type handling.
9230         (TARGET_PROMOTE_FUNCTION_MODE): Define.
9231         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9232
9233         * config/pa/pa.c (pa_promote_function_mode): New.
9234         (TARGET_PROMOTE_FUNCTION_MODE): Define.
9235         (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9236
9237         * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
9238         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9239         (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
9240         * config/xtensa/xtensa.c: Likewise.
9241         * config/stormy16/stormy16.c: Likewise.
9242         * config/iq2000/iq2000.c: Likewise.
9243         * config/rs6000/rs6000.c: Likewise.
9244         * config/picochip/picochip.c: Likewise.
9245         * config/arc/arc.c: Likewise.
9246         * config/mcore/mcore.c: Likewise.
9247         * config/score/score.c: Likewise.
9248         * config/mips/mips.c: Likewise.
9249         * config/bfin/bfin.c: Likewise.
9250         * config/ia64/ia64.c: Likewise (disabled though).
9251
9252         * config/frv/frv.h: Remove pointless remark.
9253
9254         * doc/tm.texi (PROMOTE_FUNCTION_MODE,
9255         TARGET_PROMOTE_FUNCTION_ARGS,
9256         TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
9257         (TARGET_PROMOTE_FUNCTION_MODE): ... this.
9258
9259 2009-08-01  Sebastian Pop  <sebastian.pop@amd.com>
9260
9261         * doc/invoke.texi (-fgraphite-force-parallel): Renamed
9262         -floop-parallelize-all.
9263         * toplev.c (process_options): Rename flag_graphite_force_parallel to
9264         flag_loop_parallelize_all.
9265         * tree-ssa-loop.c (gate_graphite_transforms): Same.
9266         * graphite.c (graphite_transform_loops): Same.
9267         * common.opt: Same.
9268         * graphite-poly.c (apply_poly_transforms): Same.
9269
9270 2009-07-31  Richard Earnshaw  <rearnsha@arm.com>
9271
9272         PR tree-optimization/40914
9273         * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
9274         if set, then check the delta field of the PMF record.
9275         (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
9276         (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
9277         call is stored in the delta.
9278
9279 2009-07-31  Adam Nemet  <anemet@caviumnetworks.com>
9280
9281         * config/mips/mips.md (*clear_upper32_dext): New pattern.
9282
9283 2009-07-31  Uros Bizjak  <ubizjak@gmail.com>
9284
9285         * config/i386/bsd.h (ASM_BYTE): New define.
9286         * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
9287         * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
9288         .byte.  Use fputs or putc instead of fprintf where appropriate.
9289         * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte.  Use
9290         fputs or putc instead of fprintf where appropriate.
9291         * config/i386/i386elf.h: Ditto.
9292         * config/i386/sysv4.h: Ditto.
9293
9294         * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
9295         * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
9296         (*tls_global_dynamic_64): Ditto.
9297
9298 2009-07-31  Christian Bruel  <christian.bruel@st.com>
9299
9300         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
9301
9302 2009-07-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9303
9304         * config/arm/arm.c (arm_arm_address_cost): Fix typo.
9305         Remove dead code for MINUS.
9306
9307 2009-07-31  Anthony Green  <green@moxielogic.com>
9308
9309         * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
9310         $r12 in prologue.
9311         (moxie_expand_epilogue): Ditto for epilogue.
9312         (moxie_setup_incoming_varargs): ABI change.  Use 5 registers for
9313         incoming arguments.
9314         (moxie_function_arg): Ditto.
9315         (moxie_pass_by_reference): Ditto.
9316         (moxie_arg_partial_bytes): Ditto.
9317         * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
9318         (FUNCTION_ARG_ADVANCE) Ditto.
9319         (REG_PARM_STACK_SPACE) Ditto.
9320         (FUNCTION_ARG_REGNO_P) Dito.
9321
9322         * config.gcc: Add moxie linux config support.
9323         * gcc/config/moxie/uclinux.h: New file.
9324
9325 2009-07-31  DJ Delorie  <dj@redhat.com>
9326
9327         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
9328         (UNSPECV_SP_SWITCH_E): New.
9329         (sp_switch_1): Change to an unspec.
9330         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
9331         replace $r15.
9332         * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
9333         reference the new stack's address
9334
9335 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9336
9337         * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
9338         graphite-clast-to-gimple.o, graphite-dependences.o,
9339         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
9340         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
9341         (graphite-blocking.o,
9342         graphite-clast-to-gimple.o, graphite-dependences.o,
9343         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
9344         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
9345         * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
9346         * cfgloop.h (struct loop): Add can_be_parallel field.
9347         * common.opt (fgraphite-identity): Moved up.
9348         (fgraphite-force-parallel): New flag.
9349         * graphite.c: Rewrite.
9350         * graphite.h: Rewrite.
9351         * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
9352         after Graphite.
9353         * toplev.c (graphite_out_file): New file descriptor.
9354         (graphite_in_file): New.
9355         (process_options): flag_graphite_force_parallel cannot be used without
9356         Graphite.
9357         * tree-ssa-loop.c: Include toplev.h.
9358         (gate_graphite_transforms): Enable flag_graphite for
9359         flag_graphite_force_parallel.
9360
9361 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9362
9363         * ChangeLog.graphite: New.
9364         * graphite-blocking.c: New.
9365         * graphite-clast-to-gimple.c: New.
9366         * graphite-clast-to-gimple.h: New.
9367         * graphite-dependences.c: New.
9368         * graphite-dependences.h: New.
9369         * graphite-interchange.c: New.
9370         * graphite-poly.c: New.
9371         * graphite-poly.h: New.
9372         * graphite-ppl.c: New.
9373         * graphite-ppl.h: New.
9374         * graphite-scop-detection.c: New.
9375         * graphite-scop-detection.h: New.
9376         * graphite-sese-to-poly.c: New.
9377         * graphite-sese-to-poly.h: New.
9378         * sese.c: New.
9379         * sese.h: New.
9380
9381 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9382
9383         * tree-chrec.c (evolution_function_right_is_integer_cst): New.
9384         * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
9385
9386 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9387
9388         * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
9389         (scev_is_linear_expression): Return false if the evolution is not
9390         affine multivariate.
9391
9392 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9393
9394         * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
9395         * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
9396
9397 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9398
9399         * tree-data-ref.c (debug_data_references): New.
9400         (debug_data_reference): New.
9401         * tree-data-ref.h (debug_data_references): Declared.
9402         (debug_data_reference): Declared.
9403
9404 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9405
9406         * tree-data-ref.c (stmt_simple_memref_p: Removed.
9407         * tree-data-ref.h (scop_p): Removed.
9408         (struct data_reference): Remove field scop.
9409         (DR_SCOP): Removed.
9410         (stmt_simple_memref_p): Removed.
9411
9412 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9413
9414         * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
9415         * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
9416         basic block empty.
9417
9418 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9419
9420         * doc/invoke.texi (-fgraphite-force-parallel): Documented.
9421
9422 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9423
9424         * doc/invoke.texi (-fgraphite-identity): Documented.
9425
9426 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9427
9428         * tree-scalar-evolution.c: Fix comment.
9429         (instantiate_scev_1): Return unknow from scev instantiation if the
9430         result is not above instantiate_below.
9431
9432 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9433
9434         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
9435         static anymore.  Instantiate the symbols that may have been introduced
9436         by chrec_apply.
9437         * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
9438         Declared.
9439
9440 2009-07-30  DJ Delorie  <dj@redhat.com>
9441
9442         * config/mep/mep.c (mep_asm_init_sections): Add section flags and
9443         .vliw directive to VLIW sections.
9444
9445 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9446
9447         * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
9448         New variables.
9449         ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
9450         (AUTOHEADER): New variable.
9451         ($(srcdir)/cstamp-h.in): Use it.
9452
9453 2009-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
9454             Pat Haugen  <pthaugen@us.ibm.com>
9455             Revital Eres <ERES@il.ibm.com>
9456
9457         * config/rs6000/vector.md (VEC_F): Add VSX support.
9458         (VEC_A): Ditto.
9459         (VEC_N): Ditto.
9460         (mov<mode>): Ditto.
9461         (vector_load_<mode>): Ditto.
9462         (vector_store_<mode>): Ditto.
9463         (vector GPR move split): Ditto.
9464         (vec_reload_and_plus_<mptrsize>): Ditto.
9465         (vec_reload_and_reg_<mptrsize>): Ditto.
9466         (add<mode>3): Ditto.
9467         (sub<mode>3): Ditto.
9468         (mul<mode>3): Ditto.
9469         (neg<mode>2): Ditto.
9470         (abs<mode>2): Ditto.
9471         (smin<mode>3): Ditto.
9472         (smax<mode>3): Ditto.
9473         (vector_eq<mode>): Ditto.
9474         (vector_gt<mode>): Ditto.
9475         (vector_ge<mode>): Ditto.
9476         (vector_gtu<mode>): Ditto.
9477         (vector_select_<mode>_uns): Ditto.
9478         (vector_eq_<mode>_p): Ditto.
9479         (vector_gt_<mode>_p): Ditto.
9480         (vector_ge_<mode>_p): Ditto.
9481         (vector_gtu_<mode>_p): Ditto.
9482         (cr6_test_for_zero): Ditto.
9483         (cr6_test_for_zero_reverse): Ditto.
9484         (cr6_test_for_lt): Ditto.
9485         (cr6_test_for_lt_reverse): Ditto.
9486         (xor<mode>3): Ditto.
9487         (ior<mode>3): Ditto.
9488         (and<mode>3): Ditto.
9489         (one_cmpl<mode>2): Ditto.
9490         (nor<mode>2): Ditto.
9491         (andc<mode>2): Ditto.
9492         (float<VEC_int<mode>2): Ditto.
9493         (unsigned_float<VEC_int><mode>2): Ditto.
9494         (fix_trunc<mode><VEC_int>2): Ditto.
9495         (fixuns_trunc<mode><VEC_int>2): Ditto.
9496         (vec_init<mode>):
9497         (vec_set<mode>): Ditto.
9498         (vec_extract<mode>): Ditto.
9499         (vec_interleave_highv4sf): Ditto.
9500         (vec_interleave_lowv4sf): Ditto.
9501         (vec_realign_load_<mode>): Ditto.
9502         (vec_shl_<mode>): Ditto.
9503         (vec_shr_<mode>): Ditto.
9504         (div<mode>3): New patterns for VSX.
9505         (vec_interleave_highv2df): Ditto.
9506         (vec_interleave_lowv2df): Ditto.
9507         (vec_pack_trunc_v2df): Ditto.
9508         (vec_pack_sfix_trunc_v2df): Ditto.
9509         (vec_pack_ufix_trunc_v2df): Ditto.
9510         (vec_unpacks_hi_v4sf): Ditto.
9511         (vec_unpacks_lo_v4sf): Ditto.
9512         (vec_unpacks_float_hi_v4si): Ditto.
9513         (vec_unpacks_float_lo_v4si): Ditto.
9514         (vec_unpacku_float_hi_v4si): Ditto.
9515         (vec_unpacku_float_lo_v4si): Ditto.
9516         (movmisalign<mode>): Ditto.
9517         (vector_ceil<mode>2): New patterns for vectorizing math library.
9518         (vector_floor<mode>2): Ditto.
9519         (vector_btrunc<mode>2): Ditto.
9520         (vector_copysign<mode>3): Ditto.
9521
9522         * config/rs6000/predicates.md (easy_vector_constant_msb): New
9523         predicate for setting the high bit in each word, used for copysign.
9524
9525         * config/rs6000/ppc-asm.h (f19): Whitespace.
9526         (f32-f63): Define if VSX.
9527         (v0-v31): Define if Altivec.
9528         (vs0-vs63): Define if VSX.
9529
9530         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
9531
9532         * config/rs6000/power7.md: New file, provide tuning parameters for
9533         -mcpu=power7.
9534
9535         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
9536         (rs6000_cpu_cpp_builtins): Ditto.
9537         (altivec_overloaded_builtins): Ditto.
9538         (altivec_resolve_overloaded_builtin): Ditto.
9539
9540         * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
9541         debug switch to disable vectorizing simple math builtin
9542         functions.
9543
9544         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
9545         Vectorize simple math builtin functions.
9546         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
9547         hook to vectorize math builtins.
9548         (rs6000_override_options): Enable -mvsx on -mcpu=power7.
9549         (rs6000_builtin_conversion): Add VSX/power7 support.
9550         (rs6000_builtin_vec_perm): Ditto.
9551         (vsplits_constant): Add support for loading up a vector constant
9552         with just the high bit set in each part.
9553         (rs6000_expand_vector_init): Add VSX/power7 support.
9554         (rs6000_expand_vector_set): Ditto.
9555         (rs6000_expand_vector_extract): Ditto.
9556         (rs6000_emit_move): Ditto.
9557         (bdesc_3arg): Ditto.
9558         (bdesc_2arg): Ditto.
9559         (bdesc_1arg): Ditto.
9560         (rs6000_expand_ternop_builtin): Ditto.
9561         (altivec_expand_builtin): Ditto.
9562         (rs6000_expand_unop_builtin): Ditto.
9563         (rs6000_init_builtins): Ditto.
9564         (altivec_init_builtins): Ditto.
9565         (builtin_function_type): Ditto.
9566         (rs6000_common_init_builtins): Ditto.
9567         (rs6000_handle_altivec_attribute); Ditto.
9568         (rs6000_mangle_type): Ditto.
9569         (rs6000_vector_mode_supported_p): Ditto.
9570         (rs6000_mode_dependent_address): Altivec addresses with AND -16
9571         are mode dependent.
9572
9573         * config/rs6000/vsx.md: New file for VSX support.
9574
9575         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
9576         identifing values with just the most significant bit set.
9577         (enum rs6000_builtins): Add builtins for VSX.  Add simple math
9578         vectorized builtins.
9579
9580         * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
9581         (UNSPEC_VRFIM): Delete.
9582         (splitter for loading up vector with most significant bit): New
9583         splitter for vectorizing copysign.
9584         (altivec_vrfiz): Rename from altivec_fturncv4sf2.  Add support for
9585         vectorizing simple math functions.
9586         (altivec_vrfip): Add support for vectorizing simple math functions.
9587         (altivec_vrfim): Ditto.
9588         (altivec_copysign_v4sf3): New insn for Altivec copysign support.
9589
9590         * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
9591         (power7.md, vsx.md): Include for power7 support.
9592         (copysigndf3): Use VSX instructions if -mvsx.
9593         (negdf2_fpr): Ditto.
9594         (absdf2_fpr): Ditto.
9595         (nabsdf2_fpr): Ditto.
9596         (adddf3_fpr): Ditto.
9597         (subdf3_fpr): Ditto.
9598         (muldf3_fpr): Ditto.
9599         (divdf3_fpr): Ditto.
9600         (fix_truncdfdi2_fpr): Ditto.
9601         (cmpdf_internal1): Ditto.
9602         (fred, fred_fpr): Convert into expander/insn to add VSX support.
9603         (btruncdf2, btruncdf2_fpr): Ditto.
9604         (ceildf2, ceildf2_fpr): Ditto.
9605         (floordf2, floordf2_fpr): Ditto.
9606         (floatdidf2, floatdidf2_fpr): Ditto.
9607         (fmadddf4_fpr): Name insn.  Use VSX instructions if -mvsx.
9608         (fmsubdf4_fpr): Ditto.
9609         (fnmadddf4_fpr_1): Ditto.
9610         (fnmadddf4_fpr_2): Ditto.
9611         (fnmsubdf4_fpr_1): Ditto.
9612         (fnmsubdf4_fpr_2): Ditto.
9613         (fixuns_truncdfdi2): Add expander for VSX support.
9614         (fix_truncdfdi2): Ditto.
9615         (fix_truncdfsi2): Ditto.
9616         (ftruncdf2): Ditto.
9617         (btruncsf2): Whitespace.
9618         (movdf_hardfloat32): Add support for VSX registers.
9619         (movdf_softfloat32): Ditto.
9620         (movdf_hardfloat64): Ditto.
9621         (movdf_hardfloat64_mfpgpr): Ditto.
9622         (movdf_softfloat64): Ditto.
9623         (movti splitters): Add check for vector registers supporting
9624         TImode in the future.
9625         (bpermd): Add power7 bpermd instruction.
9626
9627         * config/rs6000/altivec.h (vec_div): Define if VSX.
9628         (vec_mul): Ditto.
9629         (vec_msub): Ditto.
9630         (vec_nmadd): Ditto.
9631         (vec_nearbyint): Ditto.
9632         (vec_rint): Ditto.
9633         (vec_sqrt): Ditto.
9634         (all predicates): Use the generic builtin function, and not the V4SF
9635         specific function so that the predicates will work with VSX's V2DF.
9636         (vec_all_*): Ditto.
9637         (vec_any_*): Ditto.
9638
9639         * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
9640         Document new VSX functions and types.
9641
9642         * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
9643         switches.
9644
9645         * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
9646         "wa", and "j" constraints.  Modify "v" to talk about Altivec
9647         instead of just vector.
9648
9649 2009-07-30  Andrew MacLeod  <amacleod@redhat.com>
9650
9651         PR debug/26475
9652         * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
9653         location for phi arguments.
9654         (rewrite_update_phi_arguments): Find locations for reaching defs.
9655         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
9656         Add location to add_phi_arg calls.
9657         * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
9658         * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
9659         split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
9660         * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
9661         create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
9662         * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
9663         * tree-phinodes.c (make_phi_node): Initialize location.
9664         (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
9665         (add_phi_arg): Add location parameter.
9666         (remove_phi_arg_num): Move location when moving phi argument.
9667         * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
9668         location.
9669         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
9670         slpeel_update_phi_nodes_for_guard1,
9671         slpeel_update_phi_nodes_for_guard2,
9672         slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
9673         vect_loop_versioning): Set locations.
9674         * tree-parloops.c (create_phi_for_local_result,
9675         transform_to_exit_first_loop, create_parallel_loop): Add locations.
9676         * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
9677         * tree-vect-loop.c (get_initial_def_for_induction,
9678         vect_create_epilog_for_reduction, vect_finalize_reduction): Add
9679         locations.
9680         * tree-flow-inline.h (gimple_phi_arg_location): New.  Return locus.
9681         (gimple_phi_arg_location_from_edge): New.  Return locus from an edge.
9682         (gimple_phi_arg_set_location): New.  Set locus.
9683         (gimple_phi_arg_has_location): New.  Check for locus.
9684         (redirect_edge_var_map_location): New.  Return locus from var_map.
9685         * tree-vect-data-refs.c (vect_setup_realignment): Set location.
9686         * tree-ssa-phiopt.c (conditional_replacement): Set locus when
9687         combining PHI arguments.
9688         (cond_store_replacement): Set location.
9689         * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
9690         * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
9691         scop_add_exit_phis_edge): Add locations.
9692         * tree-cfgcleanup.c (remove_forwarder_block,
9693         remove_forwarder_block_with_phi): Add locations.
9694         * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
9695         * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
9696         locations.
9697         * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
9698         * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
9699         flush_pending_stmts): Add source location.
9700         * lambda-code.c (perfect_nestify): Maintain location stack with argument
9701         stack to preserve locations.
9702         * tree-vect-stmts.c (vectorizable_load): Add location.
9703         * tree-inline.c (copy_phis_for_bb): Copy locus.
9704         (setup_one_parameter): Add call locus to inlined parameter stmts.
9705         (initialize_inlined_parameters): Pass in call location as parameter
9706         assignment locus.
9707         (tree_function_versioning): Pass location to setup_one_parameter.
9708         * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
9709         * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
9710         copy and edge lists.
9711         (insert_partition_copy_on_edge, insert_value_copy_on_edge,
9712         insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
9713         locus parameter and override the stmt default if provided.
9714         (new_elim_graph, clear_elim_graph, delete_elim_graph,
9715         elim_graph_add_edge, elim_graph_remove_succ_edge,
9716         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
9717         elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
9718         eliminate_phi):  Add locus info in elimination graph for each edge and
9719         value copy.
9720         (insert_backedge_copies): Copy locus if present.
9721         * tree-flow.h (struct _edge_var_map): Add locus field.
9722         * tree-switch_conversions.c (fix_phi_nodes): Add locations.
9723         * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
9724         add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
9725         locations.
9726         * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
9727
9728 2009-07-30  Martin Jambor  <mjambor@suse.cz>
9729
9730         PR tree-optimization/40570
9731         * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
9732         use inlining loops.
9733
9734 2009-07-30  Razya Ladelsky <razya@il.ibm.com>
9735
9736         * ssa-loop-manip.c: Include langhooks.h.
9737         (rewrite_phi_with_iv): New.
9738         (rewrite_all_phi_nodes_with_iv): New.
9739         (canonicalize_loop_ivs): Move here from tree-parloops.c.
9740         Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
9741         * tree-parloops.c (loop_parallel_p): Move out all conditions
9742         except dependency check.
9743         (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
9744         (gen_parallel_loop): Call canonicalize_loop_ivs without
9745         reduction_list argument.
9746         (build_new_reduction): New.
9747         (gather_scalar_reductions): New.
9748         (try_get_loop_niter): New.
9749         (try_create_reduction_list): New.
9750         (parallleize_loops): Change the parallel conditions check.
9751         * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
9752         * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
9753
9754 2009-07-30  Dave Korn  <dave.korn.cygwin@gmail.com>
9755
9756         * opt-functions.awk (opt_args): Allow argument to be enclosed in
9757         curly braces.
9758         * doc/options.texi (Option properties):  Mention new quoting syntax.
9759
9760 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
9761
9762         * config/alpha/alpha.c (alpha_start_function):
9763         Handle VMS_DEBUG_MAIN_POINTER
9764         * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
9765         * doc/invoke.texi: Document -mdebug-main switch.
9766
9767 2009-07-29  Richard Henderson  <rth@redhat.com>
9768
9769         * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
9770         (cgraph_create_edge_including_clones): Likewise.
9771         * tree-inline.c (copy_bb): Operate on the correct edges
9772         when updating the callgraph.
9773
9774 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
9775
9776         * config/alpha/vms-cc.c: Deleted.
9777         * config/alpha/vms-ld.c: Deleted.
9778         * config/alpha/t-vms64: Moved to config/vms
9779         * config/alpha/vms-crt0-64.c: Moved to config/vms
9780         * config/alpha/vms-crt0.c: Moved to config/vms
9781         * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
9782         * config/alpha/vms-psxcrt0.c: Moved to config/vms
9783         * config/alpha/xm-vms.h: Moved to config/vms
9784         * config/alpha/x-vms: Moved to config/vms
9785         * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
9786         config/vms/t-vms.
9787         * config/vms/t-vms: Moved here from config/alpha. Alpha specific
9788         parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
9789         (version): Set.
9790         * config/vms/t-vms64: Moved here from config/alpha
9791         * config/vms/vms-crt0-64.c: Moved here from config/alpha.
9792         (argc,argv,envp): Enforce 32bit malloc'ing.
9793         * config/vms/vms-psxcrt0-64.c: Likewise.
9794         * config/vms/vms-crt0.c: Moved here from config/alpha.
9795         * config/vms/vms-psxcrt0.c: Likewise.
9796         * config/vms/vms-crtl-64.h: New file.
9797         * config/vms/vms-crtl.h: New file.
9798         * config/vms/vms.opt: New file.
9799         * config/vms/xm-vms64.h: New file.
9800         * config/vms/xm-vms.h: Moved here from config/alpha.
9801         (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
9802         Set.
9803         * config/vms/x-vms: Moved here from config/alpha.
9804         (version, VMS_EXTRA_PARTS): Moved to t-vms.
9805         (vms-ld.o, vms-cc.o): Removed.
9806         (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
9807
9808 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
9809
9810         * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
9811         correct stack (obvious VMS fix).
9812
9813 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
9814
9815         * dwarf2out.c (output_file_names): Output VMS style file name, size,
9816         date, version info if VMS_DEBUGGING_INFO defined.
9817         * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
9818         size, date calculating code moved here.
9819
9820 2009-07-29  Paul Brook  <paul@codesourcery.com>
9821
9822         * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
9823         do_push/do_pop.
9824
9825 2009-07-29  Uros Bizjak  <ubizjak@gmail.com>
9826
9827         PR target/40577
9828         * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
9829         to DImode when generating insq_le insn.
9830
9831 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
9832
9833         * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
9834         New macro set for VMS_DEBUGGGING_INFO.
9835         (AT_string_form): Use it.
9836
9837 2009-07-28  DJ Delorie  <dj@redhat.com>
9838
9839         * config/mep/mep.c (vtext_section): New.
9840         (vftext_section): New.
9841         (ftext_section): New.
9842         (mep_select_section): Add support for functions.
9843         (mep_unique_section): Likewise.
9844         (mep_asm_init_sections): Likewise.
9845         (mep_encode_section_info): Remove it from here.
9846
9847         * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
9848
9849 2009-07-28  Paolo Bonzini  <bonzinI@gnu.org>
9850
9851         * tree.h (TREE_DEPRECATED): Document it is used for types too.
9852         (TYPE_VECTOR_OPAQUE): Use default_def_flag
9853
9854 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
9855
9856         * dwarf2out.c (output_file_names): Test new macro
9857         DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
9858         (add_comp_dir_attribute): Likewise.
9859
9860 2009-07-28  Kai Tietz  <kai.tietz@onevision.com>
9861
9862         * config/i386/mingw-w64.h (LINK_SPEC): Add
9863         separating space between commands.
9864
9865 2009-07-28  Jan Hubicka  <jh@suse.cz>
9866
9867         PR tree-optimization/40759
9868         * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
9869         for renaming.
9870
9871 2009-07-27  DJ Delorie  <dj@redhat.com>
9872
9873         * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
9874         types are dword-aligned.
9875         (mep_expand_va_start): Likewise.
9876
9877 2009-07-27  Olivier Hainque  <hainque@adacore.com>
9878             Douglas B Rupp  <rupp@gnat.com>
9879
9880         * convert.c (convert_to_pointer): Don't assume the target
9881         pointer type is POINTER_SIZE long. Fetch its precision instead.
9882
9883 2009-07-27  Douglas B Rupp  <rupp@gnat.com>
9884
9885         * system.h (fopen): Undefine if macro.
9886
9887 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
9888
9889         * dwarf2out.c (output_cfi_p): Removed.
9890         (output_cfis): New function.
9891         (output_fde): New function, split from output_call_frame_info.
9892         (output_call_frame_info): Use it.
9893         (dwarf2out_switch_text_section): Use output_cfis.
9894
9895 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
9896
9897         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
9898         TARGET_BI_ARCH is specified without enabling SJLJ.
9899         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
9900         if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
9901
9902 2009-07-26  Mikael Pettersson <mikpe@it.uu.se>
9903
9904         * arm.md (negdi2): Use DImode if forcing a value into a register.
9905
9906 2009-07-26  Ira Rosen  <irar@il.ibm.com>
9907
9908         PR tree-optimization/40801
9909         * tree-vect-stmts.c (vectorizable_call): Get previous copy
9910         of vector operand from the previous copy of vector statement.
9911         Pass the correct definition type value to
9912         vect_get_vec_def_for_stmt_copy().
9913
9914 2009-07-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9915
9916         * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
9917         const char ** conversion.
9918
9919 2009-07-25 David Daney <ddaney@caviumnetworks.com>
9920
9921         * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
9922         fancy_abort() if !ENABLE_ASSERT_CHECKING.
9923         (gcc_unreachable): Invoke __builtin_unreachable() if
9924         !ENABLE_ASSERT_CHECKING.
9925
9926 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
9927
9928         PR rtl-optimization/40445
9929         * emit-rtl.c (next_nonnote_insn_bb): New function.
9930         * rtl.h (next_nonnote_insn_bb): Declare new function.
9931         * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
9932         with no successors that is the successor of the ENTRY_BLOCK.
9933         Continue from the top after removing an empty fallthrough block.
9934         * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
9935         of next_nonnote_insn.
9936
9937 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
9938
9939         * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
9940
9941 2009-07-25  Martin Jambor  <mjambor@suse.cz>
9942
9943         * c-common.c (c_common_attribute_table): New element for noclone.
9944         (handle_noclone_attribute): New function. Forward-declare.
9945         * tree-inline.c (tree_versionable_function_p): Check for noclone
9946         attribute.
9947         * doc/extend.texi (Labels as Values): Document need for noclone.
9948         (Function Attributes): Document noclone attribute.
9949
9950 2009-07-25  Jakub Jelinek  <jakub@redhat.com>
9951
9952         PR rtl-optimization/34999
9953         * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
9954         and dw_fde_switched_cold_to_hot fields.
9955         (output_cfi_p): New function.
9956         (output_call_frame_info): If fde->dw_fde_switched_sections,
9957         output 2 FDEs instead of one with corrupted header.
9958         (dwarf2out_do_cfi_startproc): New function.
9959         (dwarf2out_begin_prologue): Use it.  Initialize fde->dw_fde_switch_cfi
9960         and fde->dw_fde_switched_cold_to_hot.
9961         (dwarf2out_switch_text_section): Compute
9962         fde->dw_fde_switched_cold_to_hot.  Switch to new text section here.
9963         If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
9964         dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
9965         Otherwise, compute fde->dw_fde_switch_cfi.
9966
9967 2009-07-24  Cary Coutant  <ccoutant@google.com>
9968
9969         * tree-cfg.c (assign_discriminator): Add explicit parentheses.
9970
9971 2009-07-24  Cary Coutant  <ccoutant@google.com>
9972
9973         * cfghooks.c (split_block): Copy discriminator to new block.
9974         * tree-cfg.c (assign_discriminator): Check location of last
9975         instruction in block as well as first.
9976
9977 2009-07-24  Uros Bizjak  <ubizjak@gmail.com>
9978
9979         * config/i386/linux.c: Use fputs or putc instead of fprintf
9980         where appropriate.
9981         * config/i386/gas.h: Ditto.
9982         * config/i386/x86-64.h: Ditto.
9983         * config/i386/att.h: Ditto.
9984
9985 2009-07-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9986
9987         * expmed.c (emit_store_flag): Use a recursive call to optimize the
9988         xor case.
9989
9990 2009-07-24  Martin Jambor  <mjambor@suse.cz>
9991
9992         * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
9993         (ipa_push_func_to_list_1): Declare.
9994         (ipa_push_func_to_list): New function.
9995
9996         * ipa-prop.c (ipa_push_func_to_list_1): New function.
9997         (ipa_init_func_list): Call ipa_push_func_to_list_1.
9998         (ipa_push_func_to_list): Removed.
9999         (ipa_pop_func_from_list): Clear node_enqueued flag.
10000
10001 2009-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
10002
10003         * config/s390/s390.c (override_options): Default
10004         max-unrolled-insns to 100 for z10 tuning.
10005
10006 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
10007
10008         * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
10009         tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
10010         tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
10011         tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
10012         tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
10013         tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
10014         lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
10015
10016 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
10017
10018         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
10019         use default set in mingw32.h header.
10020         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
10021         64-bit /mingw/include path.
10022         (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
10023         path.
10024
10025 2009-07-23  Neil Vachharajani  <nvachhar@google.com>
10026
10027         PR rtl-optimization/40209
10028         * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
10029
10030 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
10031
10032         * config/i386/i386.c: Use ASM_LONG instead of .long.  Concatenate
10033         ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
10034         with the rest of string where appropriate.  Use fputs or putc
10035         instead of fprintf where appropriate.
10036
10037 2009-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
10038             Pat Haugen  <pthaugen@us.ibm.com>
10039             Revital Eres <ERES@il.ibm.com>
10040
10041         * config/rs6000/vector.md: New file.  Move most of the vector
10042         expander support here from altivec.md to allow for the VSX vector
10043         unit in the future.  Add support for secondary_reload patterns.
10044         Rewrite the patterns for vector comparison, and vector comparison
10045         predicate instructions so that the RTL expresses the desired
10046         behavior, instead of using unspec.
10047
10048         * config/rs6000/constraints.md ("f" constraint): Use
10049         rs6000_constraints to hold the precalculated register class.
10050         ("d" constraint): Ditto.
10051         ("wd" constraint): New constraint for VSX.
10052         ("wf" constraint): Ditto.
10053         ("ws" constraint): Ditto.
10054         ("wa" constraint): Ditto.
10055         ("wZ" constraint): Ditto.
10056         ("j" constraint): Ditto.
10057
10058         * config/rs6000/predicates.md (vsx_register_operand): New
10059         predicate for VSX.
10060         (vfloat_operand): New predicate for vector.md.
10061         (vint_operand): Ditto.
10062         (vlogical_operand): Ditto.
10063         (easy_fp_constant): If VSX, 0.0 is an easy constant.
10064         (easy_vector_constant): Add VSX support.
10065         (altivec_indexed_or_indirect_operand): New predicate for
10066         recognizing Altivec style memory references with AND -16.
10067
10068         * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
10069         for vector secondary reload support.
10070         (rs6000_vector_reg_class): Delete, replacing it with
10071         rs6000_constraints.
10072         (rs6000_vsx_reg_class): Ditto.
10073         (rs6000_constraints): New array to hold the register classes of
10074         each of the register constraints that can vary at runtime.
10075         (builtin_mode_to_type): New static array for builtin function type
10076         creation.
10077         (builtin_hash_table): New static hash table for builtin function
10078         type creation.
10079         (TARGET_SECONDARY_RELOAD): Define target hook.
10080         (TARGET_IRA_COVER_CLASSES): Ditto.
10081         (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
10082         registers are 128 bits if VSX memory reference instructions are used.
10083         (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
10084         unit is being used.
10085         (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
10086         (rs6000_debug_reg_global): Move -mdebug=reg statements here.
10087         Print several of the scheduling related parameters.
10088         (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
10089         rs6000_constraints instead of rs6000_vector_reg_class.  Move
10090         -mdebug=reg code to rs6000_debug_reg_global.  Add support for
10091         -mvsx-align-128 debug switch.  Drop testing float_p if VSX or
10092         Altivec.  Add VSX support.  Setup for secondary reload support on
10093         Altivec/VSX registers.
10094         (rs6000_override_options): Make power7 set the scheduling groups
10095         like the power5.  Add support for new debug switches to override
10096         the scheduling defaults.  Temporarily disable -mcpu=power7 from
10097         setting -mvsx.  Add support for debug switches -malways-hint,
10098         -msched-groups, and -malign-branch-targets.
10099         (rs6000_buitlin_conversion): Add support for returning unsigned
10100         vector conversion functions to fix regressions due to stricter
10101         type checking.
10102         (rs6000_builtin_mul_widen_even): Ditto.
10103         (rs6000_builtin_mul_widen_odd): Ditto.
10104         (rs6000_builtin_vec_perm): Ditto.
10105         (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
10106         (rs6000_expand_vector_init): Initial VSX support for using xxlxor
10107         to zero a register.
10108         (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
10109         generated upstream.
10110         (bdesc_3arg): Add builtins for unsigned types.  Add builtins for
10111         VSX types for bit operations.  Changes to accomidate vector.md.
10112         (bdesc_2arg): Ditto.
10113         (bdesc_1arg): Ditto.
10114         (struct builtin_description_predicates): Rewrite predicate
10115         handling so that RTL describes the operation, instead of passing
10116         the instruction to be used as a string argument.
10117         (bdesc_altivec_preds): Ditto.
10118         (altivec_expand_predicate_builtin): Ditto.
10119         (altivec_expand_builtin): Ditto.
10120         (rs6000_expand_ternop_builtin): Use a switch instead of an if
10121         statement for vsldoi support.
10122         (altivec_expand_ld_builtin): Change to use new names from vector.md.
10123         (altivec_expand_st_builtin): Ditto.
10124         (paired_expand_builtin): Whitespace changes.
10125         (rs6000_init_builtins): Add V2DF/V2DI types.  Initialize the
10126         builtin_mode_to_type table for secondary reload.  Call
10127         builtin_function_type to build random builtin functions.
10128         (altivec_init_builtins): Change to use builtin_function_type to
10129         create builtin function types dynamically as we need them.
10130         (builtin_hash_function): New support for hashing the tree types
10131         for builtin function as we need it, rather than trying to build
10132         all of the trees that we need.  Add initial preliminary VSX support.
10133         (builtin_function_type): Ditto.
10134         (builtin_function_eq): Ditto.
10135         (builtin_hash_struct): Ditto.
10136         (rs6000_init_builtins): Ditto.
10137         (rs6000_common_init_builtins): Ditto.
10138         (altivec_init_builtins): Ditto.
10139         (rs6000_common_init_builtins): Ditto.
10140         (enum reload_reg_type): New enum for simplifing reg classes.
10141         (rs6000_reload_register_type): Simplify register classes into GPR,
10142         Vector, and other registers.  Altivec and VSX addresses in reload.
10143         (rs6000_secondary_reload_inner): Ditto.
10144         (rs6000_ira_cover_classes): New target hook, that returns the
10145         appropriate cover classes, based on -mvsx being used or not.
10146         (rs6000_secondary_reload_class): Add VSX support.
10147         (get_vec_cmp_insn): Delete, rewrite vector conditionals.
10148         (get_vsel_insn): Ditto.
10149         (rs6000_emit_vector_compare): Rewrite vector conditional support
10150         so that where we can, we use RTL operators, instead of blindly use
10151         UNSPEC.
10152         (rs6000_emit_vector_select): Ditto.
10153         (rs6000_emit_vector_cond_expr): Ditto.
10154         (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
10155         (create_TOC_reference): Add -mdebug=addr support.
10156         (emit_frame_save): VSX loads/stores need register indexed addressing.
10157
10158         * config/rs6000/rs6000.md: Include vector.md.
10159
10160         * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
10161
10162         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10163         support for V2DI, V2DF in logical, permute, select operations.
10164
10165         * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
10166         switch for vsx/power7.
10167         (-mvsx-scalar-memory): Ditto.
10168         (-mvsx-align-128): Ditto.
10169         (-mallow-movmisalign): Ditto.
10170         (-mallow-df-permute): Ditto.
10171         (-msched-groups): Ditto.
10172         (-malways-hint): Ditto.
10173         (-malign-branch-targets): Ditto.
10174
10175         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
10176         hook instead.
10177         (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
10178         (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
10179         (rs6000_vector_reg_class): Delete.
10180         (rs6000_vsx_reg_class): Ditto.
10181         (enum rs6000_reg_class_enum): New enum for the constraints that
10182         vary based on target switches.
10183         (rs6000_constraints): New array to hold the register class for all
10184         of the register constraints that vary based on the switches used.
10185         (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
10186         (enum rs6000_builtins): Add unsigned varients for the builtin
10187         declarations returned by target hooks for expanding multiplies,
10188         select, and permute operations.  Add VSX builtins.
10189         (enum rs6000_builtin_type_index): Add entries for VSX.
10190         (V2DI_type_node): Ditto.
10191         (V2DF_type_node): Ditto.
10192         (unsigned_V2DI_type_node): Ditto.
10193         (bool_long_type_node): Ditto.
10194         (intDI_type_internal_node): Ditto.
10195         (uintDI_type_internal_node): Ditto.
10196         (double_type_internal_node): Ditto.
10197
10198         * config/rs6000/altivec.md (whole file): Move all expanders to
10199         vector.md from altivec.md.  Rename insn matching functions to be
10200         altivec_foo.
10201         (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
10202         (altivec_vcmp*): Ditto.
10203         (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
10204         (VM): New iterator for moves that includes the VSX types.
10205         (altivec_vperm_<mode>): Add VSX types.  Add unsigned types.
10206         (altivec_vperm_<mode>_uns): New, for unsigned types.
10207         (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
10208         (altivec_eq<mode>): Ditto.
10209         (altivec_gt<mode>): Ditto.
10210         (altivec_gtu<mode>): Ditto.
10211         (altivec_eqv4sf): Ditto.
10212         (altivec_gev4sf): Ditto.
10213         (altivec_gtv4sf): Ditto.
10214         (altivec_vcmpbfp_p): Ditto.
10215
10216 2009-07-23  Richard Earnshaw  <rearnsha@arm.com>
10217
10218         * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
10219         unsigned HWI.
10220
10221 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
10222
10223         PR target/40832
10224         * config/i386/i386.c (output_387_ffreep): Rewrite to use
10225         ASM_SHORT instead of .word.
10226         * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
10227         instead of .word in asm template.
10228
10229 2009-07-22  Vladimir Makarov  <vmakarov@redhat.com>
10230
10231         PR target/37488
10232         * ira-lives.c (bb_has_abnormal_call_pred): New function.
10233         (process_bb_node_lives): Use it.
10234
10235         * ira.c (setup_cover_and_important_classes): Don't setup
10236         ira_important_class_nums.  Add cover classes to the end of
10237         important classes.
10238         (cover_class_order, comp_reg_classes_func, reorder_important_classes):
10239         New.
10240         (find_reg_class_closure): Use reorder_important_classes.
10241
10242         * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
10243
10244         * config/i386/i386.c (i386_ira_cover_classes): New function.
10245         (TARGET_IRA_COVER_CLASSES): Redefine.
10246
10247         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
10248         importance of order of cover classes in the array.
10249
10250 2009-07-22  Diego Novillo  <dnovillo@google.com>
10251
10252         * tree-pass.h (TDF_EH): Define.
10253         * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
10254         contains TDF_EH, print the EH region number holding GS.
10255         * tree-dump.c (dump_options): Add "eh".
10256         * doc/invoke.texi: Document it.
10257
10258 2009-07-22  Doug Kwan  <dougkwan@google.com>
10259
10260         * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
10261
10262 2009-07-22  Michael Matz  <matz@suse.de>
10263
10264         PR tree-optimization/35229
10265         PR tree-optimization/39300
10266
10267         * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
10268         (inhibit_phi_insertion): New function.
10269         (insert_into_preds_of_block): Call it for REFERENCEs.
10270         (init_pre): Initialize and finalize scalar evolutions.
10271         * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
10272
10273 2009-07-22  Uros Bizjak  <ubizjak@gmail.com>
10274
10275         * config/i386/predicates.md (zero_extended_scalar_load_operand):
10276         Use CONST_VECTOR_NUNITS to determine number of elements.
10277
10278 2009-07-22  Andreas Krebbel  <krebbel1@de.ibm.com>
10279
10280         * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
10281         (U, W): Constraints are now deprecated and will be removed if we
10282         run out of letters.
10283         * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
10284         the file.
10285         ("prefetch"): Add the stcmh instruction for prefetching.
10286         * config/s390/s390.c (s390_symref_operand_p): Function moved. No
10287         changes.
10288         (s390_short_displacement): Return always true if compiling for
10289         machines not providing the long displacement facility.
10290         (s390_mem_constraint): Support the new constraint letter Z.
10291         (s390_check_qrst_address): New function.
10292
10293 2009-07-21  DJ Delorie  <dj@redhat.com>
10294
10295         * config/mep/mep.c (mep_legitimize_arg): Leave control registers
10296         alone too.
10297
10298 2009-07-21  Jason Merrill  <jason@redhat.com>
10299
10300         * c-common.c (max_tinst_depth): Increase default to 1024.
10301
10302 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
10303
10304         * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
10305         (vec_unpacku_float_lo_v4si): Ditto.
10306
10307 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
10308
10309         PR target/40811
10310         * config/i386/sse.md (sse2_cvtudq2ps): New expander.
10311         (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
10312         (builtin_description): Add __builtin_ia32_cvtudq2ps.
10313         (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
10314
10315 2009-07-21  Jakub Jelinek  <jakub@redhat.com>
10316
10317         PR tree-optimization/40813
10318         * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
10319         it.
10320
10321 2009-07-21  Kaz Kojima  <kkojima@gcc.gnu.org>
10322
10323         * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
10324         with a NOP_EXPR if needed.
10325
10326 2009-07-21  Paul Brook <paul@codesourcery.com>
10327
10328         * tree-vectorizer.c (increase_alignment): Handle nested arrays.
10329         Terminate debug dump with newline.
10330
10331 2009-07-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10332
10333         * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
10334         Cast "1" to unsigned HOST_WIDE_INT.
10335         (compute_zdepdi_operands): Limit maximum length to 64 bits.  Limit
10336         deposit length to the maximum length - lsb.  Extend length if
10337         HOST_BITS_PER_WIDE_INT is 32.
10338
10339 2009-07-20  Olatunji Ruwase <tjruwase@google.com>
10340
10341         * cgraph.h (constant_pool_htab): New function.
10342         (constant_descriptor_tree): Move from varasm.c.
10343         * varasm.c (constant_pool_htab): New function.
10344         (constant_descriptor_tree): Move to cgraph.h.
10345
10346 2009-07-20  Olatunji Ruwase  <tjruwase@google.com>
10347
10348         * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
10349
10350 2009-07-20  Shujing Zhao  <pearly.zhao@oracle.com>
10351
10352         * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
10353         $(VARRAY_H).
10354
10355 2009-07-20  Xinliang David Li  <davidxl@google.com>
10356
10357         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
10358
10359 2009-07-20  Adam Nemet  <anemet@caviumnetworks.com>
10360
10361         * config/mips/mips.md (move_type): Add arith.
10362         (type): Handle arith.
10363         (zero_extendsidi2): Rename this into ...
10364         (*zero_extendsidi2): ... this.  Don't match if ISA_HAS_EXT_INS.
10365         (zero_extendsidi2): New expander.
10366         (*zero_extendsidi2_dext): New pattern.
10367
10368 2009-07-20  Nick Clifton  <nickc@redhat.com>
10369
10370         * config.gcc (mips64-*-*): Add definition of tm_defines in order
10371         to set MIPS_ABI_DEFAULT.
10372         * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
10373
10374 2009-07-20  Jakub Jelinek  <jakub@redhat.com>
10375
10376         * tree-object-size.c (addr_object_size): Handle unions with
10377         array in it as last field of structs in __bos (, 1) as __bos (, 0).
10378
10379         PR tree-optimization/40792
10380         * tree.c (build_function_type_skip_args): Remove bogus assert.
10381
10382 2009-07-20  Jan Hubicka  <jh@suse.cz>
10383             Martin Jambor  <mjambor@suse.cz>
10384
10385         * cgraph.h (combined_args_to_skip): New field.
10386         * cgraph.c (cgraph_create_virtual_clone): Properly handle
10387         combined_args_to_skip and args_to_skip.
10388         * tree-inline.c (update_clone_info): New function.
10389         (tree_function_versioning): Call update_clone_info.
10390         * cgraphunit.c (cgraph_materialize_clone): Dump materialized
10391         functions.
10392         (cgraph_materialize_all_clones): More extensive dumping, working
10393         with combined_args_to_skip rather than args_to_skip.
10394
10395 2009-07-20  Ira Rosen  <irar@il.ibm.com>
10396
10397         * tree-vectorizer.h (vectorizable_condition): Add parameters.
10398         * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
10399         (get_initial_def_for_reduction): Likewise.
10400         (vectorizable_reduction): Skip the check of first operand in case
10401         of COND_EXPR. Add check that it is outer loop vectorization if
10402         nested cycle was detected. Call vectorizable_condition() for
10403         COND_EXPR. If reduction epilogue cannot be created do not fail for
10404         nested cycles (if it is not double reduction). Assert that there
10405         is only one type in the loop in case of COND_EXPR. Call
10406         vectorizable_condition() to vectorize COND_EXPR.
10407         * tree-vect-stmts.c (vectorizable_condition): Update comment.
10408         Add parameters. Allow nested cycles if called from
10409         vectorizable_reduction(). Use reduction vector variable if provided.
10410         (vect_analyze_stmt): Call vectorizable_reduction() before
10411         vectorizable_condition().
10412         (vect_transform_stmt): Update call to vectorizable_condition().
10413
10414 2009-07-20  Christian Bruel  <christian.bruel@st.com>
10415
10416         * config/sh/sh.opt (-mfmovd): Resurrect and document.
10417         * doc/invoke.texi (-mfmovd): Likewise.
10418         * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
10419
10420 2009-07-20  Jan Hubicka  <jh@suse.cz>
10421
10422         * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
10423         when handling SSA name.
10424
10425 2009-07-19  Jan Hubicka  <jh@suse.cz>
10426
10427         PR tree-optimization/40676
10428         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
10429         virtual PHIs in empty BBs.
10430
10431 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
10432
10433         * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
10434         re-expanded the compound use gen_lowpart instead to convert to the
10435         desired mode.
10436
10437 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
10438
10439         * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
10440         OUTER_CONST arguments.
10441         <LSHIFTRT>: Use them to allow widening if the bits shifted in from
10442         the new wider mode will be masked off.
10443         (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
10444
10445 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
10446
10447         * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
10448         high-order bits are zero.
10449
10450 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
10451
10452         * combine.c (simplify_shift_const_1): Split code to determine
10453         shift_mode into ...
10454         (try_widen_shift_mode): ... here.  Allow widening for ASHIFTRT if the
10455         new bits shifted in are identical to the old sign bit.
10456
10457 2009-07-18  Richard Guenther  <rguenther@suse.de>
10458
10459         PR c/40787
10460         * gimplify.c (gimplify_call_expr): Reject code using results from
10461         functions returning void.
10462
10463 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
10464
10465         * doc/md.texi: Document the new PowerPC "es" constraint.
10466         Document that "m" can include automodified addresses on this target,
10467         and explain how %U must be used.  Extend the "Q" and "Z" documentation
10468         to suggest "es" as well as "m".
10469         * config/rs6000/constraints.md (es): New memory constraint.
10470         (Q, Z): Update strings to match new documentation.
10471
10472 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
10473
10474         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
10475         offset from virtual_stack_vars_rtx and arg_pointer_rtx.
10476         * config/rs6000/predicates.md (volatile_mem_operand): Use
10477         offsettable_nonstrict_memref_p.
10478         * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
10479         (*floatunssidf2_internal): Likewise.
10480         (*fix_truncdfsi2_internal): Likewise.
10481         (*fix_trunctfsi2_internal): Likewise.
10482
10483 2009-07-17  Anatoly Sokolov  <aesok@post.ru>
10484
10485         * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
10486         atmega32u2 devices.
10487         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
10488
10489 2009-07-17  Richard Guenther  <rguenther@suse.de>
10490
10491         PR c/40401
10492         * tree-pass.h (pass_diagnose_omp_blocks): Declare.
10493         (pass_warn_unused_result): Likewise.
10494         (TODO_set_props): Remove.
10495         * omp-low.c (diagnose_omp_structured_block_errors): Change to
10496         run as a pass.
10497         (pass_diagnose_omp_blocks): Define.
10498         * c-decl.c (pop_file_scope): Do not finalize the CU here.
10499         (c_gimple_diagnostics_recursively): Remove.
10500         (finish_function): Do not call it.
10501         (c_write_global_declarations): Continue after errors.
10502         Finalize the CU here.
10503         * c-gimplify.c (c_genericize): Do not gimplify here.
10504         * c-common.c (c_warn_unused_result): Move ...
10505         * tree-cfg.c (do_warn_unused_result): ... here.
10506         (run_warn_unused_result): New function.
10507         (gate_warn_unused_result): New function.
10508         (pass_warn_unused_result): New pass.
10509         * c-common.h (c_warn_unused_result): Remove.
10510         * flags.h (flag_warn_unused_result): Declare.
10511         * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
10512         * opts.c (flag_warn_unused_result): Initialize to false.
10513         * toplev.c (compile_file): Add comment.
10514         * omp-low.c (create_omp_child_function): Do not register
10515         the function with the frontend.
10516         (diagnose_omp_structured_block_errors): Prepare to be
10517         called as optimization pass.
10518         (gate_diagnose_omp_blocks): New function.
10519         (pass_diagnose_omp_blocks): New pass.
10520         * cgraph.h (cgraph_optimize): Remove.
10521         (cgraph_analyze_function): Likewise.
10522         * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
10523         * cgraphunit.c (cgraph_lower_function): Lower nested functions
10524         before their parents here.
10525         (cgraph_finalize_function): Not here.
10526         (cgraph_analyze_function): Gimplify functions here.
10527         (cgraph_finalize_compilation_unit): Continue after errors.
10528         Optimize the callgraph from here.
10529         (cgraph_optimize): Make static.
10530         * langhooks.c (write_global_declarations): Finalize the CU.
10531         * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
10532         (gimplify_function_tree): Assert we gimplify only once.
10533         Set PROP_gimple_any property.
10534         * tree-nested.c (gimplify_all_functions): New function.
10535         (lower_nested_functions): Gimplify all nested functions.
10536         * gimple.h (diagnose_omp_structured_block_errors): Remove.
10537         * passes.c (init_optimization_passes): Add pass_warn_unused_result
10538         and pass_diagnose_omp_blocks after gimplification.  Do not
10539         set TODO_set_props on all_lowering_passes.
10540         (execute_one_pass): Do not handle TODO_set_props.
10541         * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
10542         (gimplify.o): Add tree-pass.h dependency.
10543         * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
10544         (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
10545         (unsave_r): Likewise.
10546         * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
10547         temporary variable.
10548
10549 2009-07-17  Sandra Loosemore  <sandra@codesourcery.com>
10550
10551         * doc/service.texi (Service): Restore previously removed link,
10552         which isn't broken after all.
10553
10554 2009-07-17  Richard Guenther  <rguenther@suse.de>
10555
10556         PR tree-optimization/40321
10557         * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
10558         PHI nodes to the maximal set.
10559         (make_values_for_phi): Add PHI arguments to the maximal set.
10560         (execute_pre): Dump PHI_GEN and the maximal set.
10561
10562 2009-07-17  Jakub Jelinek  <jakub@redhat.com>
10563
10564         PR c++/40780
10565         * gimplify.c (gimplify_conversion): Don't change non-conversions into
10566         VIEW_CONVERT_EXPR.
10567
10568 2009-07-16  Sandra Loosemore  <sandra@codesourcery.com>
10569
10570         * doc/extend.texi (Nested Functions): Replace broken link with
10571         textual reference.
10572         * doc/service.texi (Service): Remove broken link.
10573
10574 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
10575
10576         PR bootstrap/40781
10577         * builtins.c (expand_builtin_memcmp): Use loc instead of
10578         EXPR_LOCATION (exp).
10579         (expand_builtin_strncmp): Likewise.
10580
10581 2009-07-17  Aldy Hernandez  <aldyh@redhat.com>
10582             Manuel López-Ibáñez  <manu@gcc.gnu.org>
10583
10584         PR 40435
10585         * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
10586         builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
10587         tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
10588         c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
10589         calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
10590         tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
10591         tree-inline.c, c-common.c, c-common.h, gimple.c,
10592         tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
10593         convert.c: Add location argument to fold_{unary,binary,ternary},
10594         fold_build[123], build_call_expr, build_size_arg,
10595         build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
10596         fold_build1_initializer, fold_build2_initializer,
10597         fold_build3_initializer, fold_build_call_array,
10598         fold_build_call_array_initializer, fold_single_bit_test,
10599         omit_one_operand, omit_two_operands, invert_truthvalue,
10600         fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
10601         combine_comparisons, fold_builtin_*, fold_call_expr,
10602         build_range_check, maybe_fold_offset_to_address, round_up,
10603         round_down.
10604
10605 2009-07-16  Jason Merrill  <jason@redhat.com>
10606
10607         PR libstdc++/37907
10608         * c-common.c (c_common_reswords): Add __is_standard_layout
10609         and __is_trivial.
10610         * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
10611         * doc/implement-cxx.texi: New.
10612         * doc/gcc.texi: Include it.
10613
10614 2009-07-16  DJ Delorie  <dj@redhat.com>
10615
10616         * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
10617         compares that may be indirectly affected by previous instructions.
10618
10619 2009-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10620
10621         * builtins.c (do_mpc_arg2): New.
10622         (fold_builtin_2): Fold builtin cpow.
10623         * real.h (HAVE_mpc_pow): New.
10624
10625 2009-07-16  Bingfeng Mei  <bmei@broadcom.com>
10626
10627         * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
10628         comparison to skip unprofitable schedule
10629
10630 2009-07-16  Simon Baldwin  <simonb@google.com>
10631
10632         * gcc.c (option_map): New flag -no-canonical-prefixes.
10633         * (display_help): Print help text for new flag.
10634         * (process_command): Move options translation and language specifics
10635         and handle new flag early.  Use it to set a function pointer to a
10636         prefix builder.  Replace make_relative_prefix calls with calls to
10637         the function pointed to.  Ignore new flag in regular options handling.
10638         * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
10639
10640 2009-07-15  DJ Delorie  <dj@redhat.com>
10641
10642         * config/mep/mep.md (sibcall_internal): Change register to avoid
10643         argument registers.
10644         (sibcall_value_internal): Likewise.
10645
10646 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
10647
10648         PR rtl-optimization/40710
10649         * resource.c (mark_target_live_regs): Reset DF problem to LR.
10650
10651 2009-07-15  Adam Nemet  <anemet@caviumnetworks.com>
10652
10653         * config/mips/mips.md (*extenddi_truncate<mode>,
10654         *extendsi_truncate<mode>): Change type attribute to move_type
10655         with shift_shift.  Split out code handling exts from here ...
10656         (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
10657         pattern.
10658         (*extendhi_truncateqi): Change type attribute to move_type with
10659         shift_shift.  Split out code handling exts from here ...
10660         (*extendhi_truncateqi_exts): ... to this new pattern.
10661
10662 2009-07-15  Uros Bizjak  <ubizjak@gmail.com>
10663
10664         * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
10665         instead of "and" with inverted sign bit mask value.  Use
10666         "nonimmediate_operand" for operand 1 and operand 2 predicate.
10667         Allocate registers only for operand 4 and operand 5.
10668
10669 2009-07-15  Jakub Jelinek  <jakub@redhat.com>
10670
10671         PR middle-end/40747
10672         * fold-const.c (fold_cond_expr_with_comparison): When folding
10673         < and <= to MIN, make sure the MIN uses the same type as the
10674         comparison's operands.
10675
10676 2009-07-15  Richard Earnshaw  <rearnsha@arm.com>
10677
10678         * arm.md (ior_xor): New code iterator.
10679         (split for ior/xor with shift and zero-extend): New split pattern.
10680         * arm/predicates.md (subreg_lowpart_operator): New special predicate.
10681
10682 2009-07-15  Richard Guenther  <rguenther@suse.de>
10683
10684         * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
10685         offset member.
10686
10687 2009-07-15  Richard Guenther  <rguenther@suse.de>
10688
10689         PR middle-end/40753
10690         * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
10691
10692 2009-07-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
10693
10694         * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
10695         handle 2.6.30 kernel.
10696
10697 2009-07-15  DJ Delorie  <dj@redhat.com>
10698
10699         * config/mep/mep.md (sibcall_internal): Change register to allow
10700         for 24-bit addresses.
10701         (sibcall_value_internal): Likewise.
10702
10703 2009-07-14  Ghassan Shobaki  <ghassan.shobaki@amd.com>
10704
10705         * doc/invoke.texi: Added descriptions of the  scheduling heuristics
10706         that are enabled/disabled by the flags introduced by a previous patch.
10707
10708 2009-07-14  DJ Delorie  <dj@redhat.com>
10709
10710         * config/mep/mep.md (sibcall_internal): Include non-toggling
10711         non-jmp case.
10712         (sibcall_value_internal): Likewise.
10713
10714 2009-07-14  Taras Glek  <tglek@mozilla.com>
10715             Rafael Espindola  <espindola@google.com>
10716
10717         * doc/sourcebuild.texi: Document install-plugin target.
10718         * configure.ac: Added install-plugin target to language makefiles.
10719         * configure: Regenerate.
10720         * Makefile.in (install-plugin): Install more headers,
10721         depend on lang.install-plugin.
10722
10723 2009-07-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10724
10725         * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
10726         translation.
10727
10728 2009-07-14  DJ Delorie  <dj@redhat.com>
10729
10730         * config/mep/mep.c (mep_vliw_jmp_match): New function.
10731         * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
10732         * config/mep/mep.md (sibcall_internal): Change test from
10733         mep_vliw_mode_match to mep_vliw_jmp_match.
10734         (sibcall_value_internal): Likewise.
10735
10736 2009-07-14  Uros Bizjak  <ubizjak@gmail.com>
10737
10738         * config/i386/sse.md (copysign<mode>3): New expander.
10739         * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
10740         * config/i386/i386.c (ix86_build_signbit_mask): Make public.
10741         Use ix86_build_const_vector.
10742         (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
10743         IX86_BUILTIN_CPYSGNPD.
10744         (builtin_description): Add __builtin_ia32_copysignps and
10745         __builtin_ia32_copysignpd.
10746         (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
10747         and BUILT_IN_COPYSIGNF.
10748
10749 2009-07-13  Jason Merrill  <jason@redhat.com>
10750
10751         * builtins.c (can_trust_pointer_alignment): New fn.
10752         (get_pointer_alignment): Factor it out from here.
10753         * tree.h: Declare it.
10754
10755 2009-07-14  David Edelsohn  <edelsohn@gnu.org>
10756
10757         * config/rs6000/predicates.md (offsettable_mem_operand): Test
10758         RTX_AUTOINC class.
10759
10760 2009-07-14  Dodji Seketeli  <dodji@redhat.com>
10761
10762         PR debug/40705
10763         PR c++/403057
10764         * dwarf2.out.c (gen_type_die_with_usage): Added comment.
10765
10766 2009-07-14  Richard Guenther  <rguenther@suse.de>
10767             Andrey Belevantsev <abel@ispras.ru>
10768
10769         PR middle-end/40745
10770         * cfgexpand.c (partition_stack_vars): Do not bother to update
10771         alias information when not optimizing.
10772
10773 2009-07-14  Richard Guenther  <rguenther@suse.de>
10774             Andrey Belevantsev <abel@ispras.ru>
10775
10776         * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
10777         (pt_solution_set): Likewise.
10778         * tree-ssa-alias.c (refs_may_alias_p_1): Export.
10779         * tree-ssa-structalias.c (pt_solution_set): New function.
10780         * final.c (rest_of_clean_state): Free SSA data structures.
10781         * print-rtl.c (print_decl_name): Remove.
10782         (print_mem_expr): Implement in terms of print_generic_expr.
10783         * alias.c (ao_ref_from_mem): New function.
10784         (rtx_refs_may_alias_p): Likewise.
10785         (true_dependence): Query alias-export info.
10786         (canon_true_dependence): Likewise.
10787         (write_dependence_p): Likewise.
10788         * tree-dfa.c (get_ref_base_and_extent): For void types leave
10789         size unknown.
10790         * emit-rtl.c (component_ref_for_mem_expr): Remove.
10791         (mem_expr_equal_p): Use operand_equal_p.
10792         (set_mem_attributes_minus_bitpos): Do not use
10793         component_ref_for_mem_expr.
10794         * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
10795         (update_alias_info_with_stack_vars): Likewise.
10796         (partition_stack_vars): Call update_alias_info_with_stack_vars.
10797         * tree-ssa.c (delete_tree_ssa): Do not release SSA names
10798         explicitly nor clear stmt operands.
10799         Free the decl-to-pointer map.
10800         * tree-optimize.c (execute_free_datastructures): Do not free
10801         SSA data structures here.
10802         * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
10803         * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
10804         (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
10805         dependencies.
10806         (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
10807
10808 2009-07-13  DJ Delorie  <dj@redhat.com>
10809
10810         * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
10811         unrolling at the right iteration count.
10812
10813         * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
10814         calculations.
10815
10816 2009-07-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
10817
10818         * haifa-sched.c (rank_for_schedule): Introduced flags to
10819         enable/disable individual scheduling heuristics.
10820         * common.opt: Introduced flags to enable/disable individual
10821         heuristics in the scheduler.
10822         * doc/invoke.texi: Introduced flags to enable/disable individual
10823         heuristics in the scheduler.
10824
10825 2009-07-13  Kai Tietz  <kai.tietz@onevision.com>
10826
10827         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
10828         config/i386/mingw-tls.c.
10829         * config/i386/mingw-tls.c: Removed.
10830
10831 2009-07-13  Ira Rosen  <irar@il.ibm.com>
10832
10833         * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
10834         checks access only relevant statements.
10835         (vectorizable_reduction): Likewise.
10836
10837 2009-07-12  Kai Tietz  <kai.tietz@onevision.com>
10838
10839         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
10840         just for 32-bit case.
10841
10842 2009-07-12  Jan Hubicka  <jh@suse.cz>
10843
10844         PR tree-optimization/40585
10845         * except.c (expand_resx_expr): When there already is resume
10846         instruction, produce linked list.
10847         (build_post_landing_pads): Assert that resume is empty.
10848         (connect_post_landing_pads): Handle resume lists.
10849         (dump_eh_tree): Dump resume list.
10850
10851 2009-07-12  Ira Rosen  <irar@il.ibm.com>
10852
10853         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
10854         with additional argument.
10855         * tree-vectorizer.h (enum vect_def_type): Add
10856         vect_double_reduction_def.
10857         (vect_is_simple_reduction): Add argument.
10858         * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
10859         indentation.
10860         (vect_analyze_scalar_cycles_1): Detect double reduction. Call
10861         vect_is_simple_reduction with additional argument.
10862         (vect_analyze_loop_operations): Handle exit phi nodes in case of
10863         double reduction.
10864         (reduction_code_for_scalar_code): Handle additional codes by
10865         returning ERROR_MARK for them. Fix comment and indentation.
10866         (vect_is_simple_reduction): Fix comment, add argument to specify
10867         double reduction. Detect double reduction.
10868         (get_initial_def_for_induction): Fix indentation.
10869         (get_initial_def_for_reduction): Fix comment and indentation.
10870         Handle double reduction. Create initial definitions that do not
10871         require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
10872         (vect_create_epilog_for_reduction): Fix comment, add argument to
10873         handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
10874         epilogue result extraction. Create double reduction phi node and
10875         replace relevant uses.
10876         (vectorizable_reduction): Call vect_is_simple_reduction with
10877         additional argument. Fix indentation. Update epilogue code treatment
10878         according to the changes in reduction_code_for_scalar_code. Check
10879         for double reduction. Call vect_create_epilog_for_reduction with
10880         additional argument.
10881         * tree-vect-stmts.c (process_use): Handle double reduction, update
10882         documentation.
10883         (vect_mark_stmts_to_be_vectorized): Handle double reduction.
10884         (vect_get_vec_def_for_operand): Likewise.
10885
10886 2009-07-12  Danny Smith  <dansmister@gmail.com>
10887
10888         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
10889         dllexport if !TREE_PUBLIC.
10890         (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
10891
10892 2009-07-11  Anatoly Sokolov  <aesok@post.ru>
10893
10894         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
10895         (avr_extra_arch_macro) Remove declatation.
10896         * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
10897         (avr_extra_arch_macro) Declare as static.
10898         * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
10899
10900 2009-07-11  Jan Hubicka  <jh@suse.cz>
10901
10902         PR middle-end/48388
10903         * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
10904
10905 2009-07-11  Jakub Jelinek  <jakub@redhat.com>
10906
10907         PR debug/40713
10908         * dwarf2out.c (dw_fde_struct): Add in_std_section and
10909         cold_in_std_section bits.
10910         (dwarf2out_begin_prologue): Initialize them.
10911         (dwarf2out_finish): Don't emit FDE range into .debug_ranges
10912         if already covered by text_section or cold_text_section range.
10913
10914         PR rtl-optimization/40667
10915         * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
10916         * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
10917         * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
10918         * config/i386/i386.c (ix86_minimum_alignment): New function.
10919         * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
10920         * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
10921         * emit-rtl.c (gen_reg_rtx): Likewise.
10922         * function.c (assign_parms): Likewise.  If nominal_type needs
10923         bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
10924         rather than passed_type's alignment.
10925
10926         PR target/40668
10927         * function.c (assign_parm_setup_stack): Adjust
10928         MEM_OFFSET (data->stack_parm) if promoted_mode is different
10929         from nominal_mode on big endian.
10930
10931 2009-07-11  Paolo Bonzini  <bonzini@gnu.org>
10932
10933         * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
10934
10935 2009-07-10  DJ Delorie  <dj@redhat.com>
10936
10937         * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
10938
10939 2009-07-10  Mark Mitchell  <mark@codesourcery.com>
10940
10941         * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
10942         attribute.
10943         (thumb2_cbnz): Likewise.
10944
10945 2009-07-10  David Daney  <ddaney@caviumnetworks.com>
10946
10947         PR target/39079
10948         * config.gcc (supported_defaults): Add synci.
10949         (with_synci): Add validation.
10950         (all_defaults): Add synci.
10951         * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
10952         ISA_HAS_SYNCI.
10953         (synci): Same.
10954         * config/mips/mips.opt (msynci): New option.
10955         * config/mips/mips.c (mips_override_options): Warn on use of
10956         -msynci for targets that do now support it.
10957         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
10958         msynci.
10959         * gcc/doc/invoke.texi (-msynci): Document the new option.
10960         * doc/install.texi (--with-synci): Document the new option.
10961
10962 2009-07-10  Richard Guenther  <rguenther@suse.de>
10963
10964         PR tree-optimization/40496
10965         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
10966         the PHI result with a compatible type.
10967
10968 2009-07-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10969
10970         PR 25509
10971         PR 40614
10972         * c.opt (Wunused-result): New.
10973         * doc/invoke.texi: Document it.
10974         * c-common.c (c_warn_unused_result): Use it.
10975
10976 2009-07-09  DJ Delorie  <dj@redhat.com>
10977
10978         * targhooks.c (default_target_can_inline_p): Rename from
10979         default_target_option_can_inline_p.
10980         * targhooks.h (default_target_can_inline_p): Likewise.
10981         * target-def.h (TARGET_CAN_INLINE_P): Rename from
10982         TARGET_OPTION_CAN_INLINE_P.
10983         * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
10984         * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
10985         (mep_target_can_inline_p): Rename from
10986         mep_target_option_can_inline_p.
10987
10988         PR target/40626
10989         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
10990         registers used to pass vectors.
10991
10992         * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
10993
10994 2009-07-09  Tom Tromey  <tromey@redhat.com>
10995
10996         * unwind-dw2-fde-darwin.c: Include dwarf2.h.
10997         * config/mmix/mmix.c: Include dwarf2.h.
10998         * config/rs6000/darwin-fallback.c: Include dwarf2.h.
10999         * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
11000         * config/sh/sh.c: Include dwarf2.h.
11001         * config/i386/i386.c: Include dwarf2.h.
11002         * Makefile.in (DWARF2_H): Remove 'elf'.
11003         * except.c: Include dwarf2.h.
11004         * unwind-dw2.c: Include dwarf2.h.
11005         * dwarf2out.c: Include dwarf2.h.
11006         * unwind-dw2-fde-glibc.c: Include dwarf2.h.
11007         * unwind-dw2-fde.c: Include dwarf2.h.
11008         * dwarf2asm.c: Include dwarf2.h.
11009
11010 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
11011
11012         * haifa-sched.c (insn_finishes_cycle_p): New static function.
11013         (max_issue): Use it.
11014         * sched-int.h (struct sched_info: insn_finishes_block_p): New
11015         scheduler hook.
11016         * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
11017         (region_sched_info): Update.
11018         * sched-ebb.c (ebb_sched_info): Update.
11019         * modulo-sched.c (sms_sched_info): Update.
11020         * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
11021
11022 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
11023
11024         * varasm.c (build_constant_desc): Don't share RTL in pool entries.
11025
11026 2009-07-09  Basile Starynkevitch  <basile@starynkevitch.net>
11027
11028         * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
11029
11030 2009-07-09  Jakub Jelinek  <jakub@redhat.com>
11031
11032         PR middle-end/40692
11033         * fold-const.c (fold_cond_expr_with_comparison): Don't replace
11034         arg1 with arg01 if arg1 is already INTEGER_CST.
11035
11036 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
11037
11038         * simplify-rtx.c (simplify_binary_operation_1) <AND>:
11039         Transform (and (truncate)) into (truncate (and)).
11040
11041 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
11042
11043         * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
11044         creating LHS paradoxical subregs.  Fix surrounding returns to
11045         use NULL_RTX rather than 0.
11046
11047 2009-07-08  DJ Delorie  <dj@redhat.com>
11048
11049         * config/mep/mep.c (mep_option_can_inline_p): New.
11050         (TARGET_OPTION_CAN_INLINE_P): Define.
11051
11052 2009-07-08  Mark Wielaard  <mjw@redhat.com>
11053
11054         PR debug/40659
11055         * dwarf2out.c (add_data_member_location_attribute): When we have
11056         only a constant offset don't emit a new location description using
11057         DW_OP_plus_uconst, but just add the constant with add_AT_int, when
11058         dwarf_version > 2.
11059
11060 2009-07-08  Richard Henderson  <rth@redhat.com>
11061
11062         PR target/38900
11063         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
11064         (enum reg_class): Add CLOBBERED_REGS.
11065         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
11066         * config/i386/i386.c (ix86_conditional_register_usage): Moved
11067         from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
11068         (ix86_function_ok_for_sibcall): Tidy.  Disallow MS->SYSV sibcalls.
11069         (ix86_expand_call): Use sibcall_insn_operand when needed.  Don't
11070         force 64-bit sibcalls into R11.
11071         * config/i386/constraints.md (U): New constraint.
11072         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
11073         (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
11074         (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
11075
11076 2009-07-08  Shujing Zhao  <pearly.zhao@oracle.com>
11077
11078         * basic-block.h (dump_regset, debug_regset): Remove duplicate
11079         prototypes.
11080         * c-objc-common.h (c_initialize_diagnostics): Ditto.
11081         * ebitmap.h (dump_ebitmap): Ditto.
11082         * optabs.h (optab_libfunc): Ditto.
11083         * tree.h (tree_expr_nonzero_warnv_p): Ditto.
11084         * tree-flow.h (vect_can_force_dr_alignment_p,
11085         get_vectype_for_scalar_type): Ditto.
11086         (vectorize_loops): Move prototype to ...
11087         * tree-vectorizer.h: ... here. Also, adjust comment.
11088         (vect_set_verbosity_level): Remove duplicate prototype.
11089         * tree-ssa-loop.c: Include tree-vectorizer.h.
11090         * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
11091
11092 2009-07-08  Nick Clifton  <nickc@redhat.com>
11093
11094         * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
11095         forward slash.
11096
11097 2009-07-08  DJ Delorie  <dj@redhat.com>
11098
11099         * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
11100         cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
11101         cpmovtocc_P0S_P1): Mark volatile.  Note which registers are
11102         written to.
11103         * config/mep/intrinsics.md: Regenerated.
11104         * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
11105         registers when asm() or calls are detected.
11106
11107 2009-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11108
11109         PR c++/31246
11110         * gimplify.c (gimplify_expr): Propagate no_warning flag when
11111         gimplifying.
11112         * gimple (gimple_build_call_from_tree): Likewise.
11113         * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
11114         no_warning flag before warning.
11115
11116 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11117
11118         * tree.c (set_expr_locus): Remove.
11119         * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
11120         * c-typeck.c (c_finish_stmt_expr):  Replace EXPR_LOCUS by
11121         EXPR_LOCATION.
11122         * gimplify.c (internal_get_tmp_var): Likewise.
11123         (gimplify_call_expr): Likewise.
11124         (gimplify_one_sizepos): Likewise.
11125
11126 2009-07-07  Eric Botcazou  <ebotcazou@adacore.com>
11127
11128         PR debug/40666
11129         * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
11130         to variables for debugging purposes.
11131
11132 2009-06-23  Mark Loeser  <mark@halcy0n.com>
11133
11134         PR build/40010
11135         * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
11136
11137 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11138
11139         * pretty-print.c (pp_base_format): Remove %J.
11140         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
11141         gcc_cxxdiag_char_table): Likewise.
11142         (init_dynamic_diag_info): Likewise.
11143
11144 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11145
11146         * pretty-print.c (pp_base_format): Remove %H.
11147         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
11148         gcc_cxxdiag_char_table): Likewise.
11149         (init_dynamic_diag_info): Likewise.
11150         * config/mep/mep.c (mep_select_section): Likewise.
11151
11152 2009-07-07  Duncan Sands  <baldrick@free.fr>
11153
11154         * final.c (pass_clean_state): Give the pass a name.
11155         * passes.c (pass_rest_of_compilation): Likewise.
11156         * tree-optimize.c (pass_all_optimizations): Likewise.
11157
11158 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
11159
11160         * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
11161         an extra 'decl' for error_at.
11162
11163 2009-07-07  Jakub Jelinek  <jakub@redhat.com>
11164
11165         PR middle-end/40669
11166         * tree-tailcall.c (adjust_return_value_with_ops,
11167         create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
11168         if it has complex or vector type.
11169
11170 2009-07-07  Olivier Hainque  <hainque@adacore.com>
11171
11172         * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
11173         pthread symbols.
11174
11175 2009-07-07  Basile Starynkevitch  <basile@starynkevitch.net>
11176
11177         * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
11178
11179 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11180
11181         * cgraphunit.c: Replace %J by an explicit location.  Update all calls.
11182         * c-decl.c: Likewise.
11183         * function.c: Likewise.
11184         * varasm.c: Likewise.
11185         * tree-ssa.c: Likewise.
11186         * c-common.c: Likewise.
11187         * tree-cfg.c: Likewise.
11188         * config/spu/spu.c: Likewise.
11189         * config/ia64/ia64.c: Likewise.
11190         * config/v850/v850.c: Likewise.
11191
11192 2009-07-06  DJ Delorie  <dj@redhat.com>
11193
11194         * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
11195         * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
11196         unspecified accesses to control registers.
11197         * config/mep/intrinsics.md: Regenerate.
11198         * config/mep/intrinsics.h: Regenerate.
11199         * config/mep/mep-intrin.h: Regenerate.
11200
11201 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11202
11203         * c-lex.c: Replace %H by an explicit location. Update all calls.
11204         * c-common.c: Likewise.
11205         * c-decl.c: Likewise.
11206         * c-typeck.c: Likewise.
11207         * fold-const.c: Likewise.
11208         * gimplify.c: Likewise.
11209         * stmt.c: Likewise.
11210         * tree-cfg.c: Likewise.
11211         * tree-ssa-loop-niter.c: Likewise.
11212         * tree-vrp.c: Likewise.
11213         * value-prof.c: Likewise.
11214
11215 2009-07-06  Diego Novillo  <dnovillo@google.com>
11216
11217         * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
11218         if it has one.  Handle cases where VAR does not have an
11219         annotation or cfun is NULL.
11220
11221 2009-07-06  Diego Novillo  <dnovillo@google.com>
11222
11223         * tree.c: Include debug.h.
11224         (initialize_tree_contains_struct): New.
11225         (init_ttree): Call it.
11226         (tree_node_structure_for_code): Factor out of ...
11227         (tree_node_structure): ... here.
11228         * treestruct.def (TS_PHI_NODE): Remove.
11229         (TS_GIMPLE_STATEMENT): Remove.
11230
11231 2009-07-06  Diego Novillo  <dnovillo@google.com>
11232
11233         * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
11234         (debug_tree_chain): Handle cycles.
11235
11236 2009-07-06  Nick Clifton  <nickc@redhat.com>
11237             DJ Delorie  <dj@redhat.com>
11238
11239         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
11240         __FMOVD_ENABLED__ is defined.
11241         * config/sh/sh.h
11242         (TARGET_FMOVD): Provide a default definition.
11243         (MASK_FMOVD): Likewise.
11244         (TARGET_CPU_CPP_BUILTINS): Define
11245         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
11246         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
11247         two fmov instructions depending upon whether TARGET_FMOVD is enabled.
11248         (split for DF load from memory into register): Also handle
11249         MEMs which consist of REG+DISP addressing.
11250         (split for DF store from register to memory): Likewise.
11251         (movsf_ie): Always use single fp_mode.
11252         * config/sh/sh.c (sh_override_options): Do not automatically
11253         enable TARGET_MOVD for the SH2A when supporting doubles - leave
11254         that to the -mfmovd command line switch.
11255         (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
11256         (fldi_ok): Always allow.
11257         * config/sh/sh.opt (mfmovd): Remove this switch.
11258         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
11259
11260 2009-07-06  J"orn Rennecke  <joern.rennecke@arc.com>
11261             Kaz Kojima  <kkojima@gcc.gnu.org>
11262
11263         PR rtl-optimization/30807
11264         * postreload.c (reload_combine): For every new use of REG_SUM,
11265         record the use of BASE.
11266
11267 2009-07-06  Jan Hubicka  <jh@suse.cz>
11268
11269         * params.def: Revert my accidental commit at 2009-06-30.
11270
11271 2009-07-04  Ian Lance Taylor  <iant@google.com>
11272
11273         PR target/40636
11274         * config/i386/msformat-c.c (mingw_format_attributes): Declare as
11275         EXPORTED_CONST.
11276         (mingw_format_attribute_overrides): Likewise.
11277
11278 2009-07-04  Jakub Jelinek  <jakub@redhat.com>
11279
11280         PR debug/40596
11281         * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
11282         don't check cfa.reg.  Instead of cfa.indirect use
11283         fde && fde->drap_reg != INVALID_REGNUM test.
11284
11285 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
11286
11287         * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
11288
11289 2009-07-03  Vladimir Makarov  <vmakarov@redhat.com>
11290
11291         PR target/40587
11292         * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
11293
11294 2009-07-03  Richard Guenther  <rguenther@suse.de>
11295
11296         PR tree-optimization/40640
11297         * tree-switch-conversion.c (build_arrays): Perform arithmetic
11298         in original type.
11299
11300 2009-07-03  Jan Hubicka  <jh@suse.cz>
11301
11302         * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
11303         for size, reduce amount of inlining.
11304
11305 2009-07-03  Richard Guenther  <rguenther@suse.de>
11306
11307         PR middle-end/34163
11308         * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
11309         if t +- x is known to not overflow and the conversion widens the
11310         operation.
11311         * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
11312
11313 2009-07-03  Jan Hubicka  <jh@suse.cz>
11314
11315         * ipa-pure-const.c (analyze): Update loop optimizer init.
11316         * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
11317         try_remove_empty_loop, remove_empty_loops): Remove.
11318         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
11319         * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
11320         to mark regular loops as neccesary.
11321         (degenerate_phi_p): New function.
11322         (propagate_necessity, remove_dead_phis): Use it.
11323         (forward_edge_to_pdom): Likewise.
11324         (eliminate_unnecessary_stmts): Take care to remove uses of results of
11325         virtual PHI nodes that became unreachable.
11326         (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
11327         * tree-flow.h (remove_empty_loops): Remove.
11328         * passes.c (init_optimization_passes): Remove.
11329
11330 2009-07-03  Uros Bizjak  <ubizjak@gmail.com>
11331
11332         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
11333         can_create_pseudo_p.
11334         (*fix_trunc<mode>_i387_1): Ditto.
11335         (*floathi<mode>2_1): Ditto.
11336         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
11337         (*fistdi2_1): Ditto.
11338         (*fist<mode>2_1): Ditto.
11339         (frndintxf2_floor): Ditto.
11340         (*fist<mode>2_floor_1): Ditto.
11341         (frndintxf2_ceil): Ditto.
11342         (*fist<mode>2_ceil_1): Ditto.
11343         (frndintxf2_trunc): Ditto.
11344         (frndintxf2_mask_pm): Ditto.
11345         (fxam<mode>2_i387_with_temp): Ditto.
11346         * config/i386/sse.md (mulv16qi3): Ditto.
11347         (*sse2_mulv4si3): Ditto.
11348         (mulv2di3): Ditto.
11349         (sse4_2_pcmpestr): Ditto.
11350         (sse4_2_pcmpistr): Ditto.
11351
11352 2009-07-03  Jan Hubicka  <jh@suse.cz>
11353
11354         * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
11355         (mark_stmt_necessary): Set it.
11356         (mark_operand_necessary): Set it.
11357         (mark_control_dependent_edges_necessary): Set it.
11358         (mark_virtual_phi_result_for_renaming): New function.
11359         (get_live_post_dom): New function.
11360         (forward_edge_to_pdom): New function.
11361         (remove_dead_stmt): Fix handling of control dependences.
11362         (tree_dce_init): Init new bitmap.
11363         (tree_dce_done): Free it.
11364
11365 2009-07-02  Richard Guenther  <rguenther@suse.de>
11366
11367         PR bootstrap/40617
11368         * tree-ssa-structalias.c (new_var_info): Initialize
11369         is_restrict_var.
11370
11371 2009-07-02  Jan Hubicka  <jh@suse.cz>
11372
11373         * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
11374         local.
11375
11376 2009-07-02  Paolo Bonzini  <bonzini@gnu.org>
11377
11378         * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
11379         instead of recomputing it.  Adjust calls.
11380         (emit_store_flag): Adjust recursive calls.
11381
11382 2009-07-02  Richard Guenther  <rguenther@suse.de>
11383
11384         * tree-ssa-live.c (remove_unused_locals): Do not remove
11385         heap variables.
11386         * tree-ssa-structalias.c (handle_lhs_call): Delay setting
11387         of DECL_EXTERNAL for HEAP variables.
11388         (compute_points_to_sets): Set DECL_EXTERNAL for escaped
11389         HEAP variables.  Do not adjust RESTRICT vars.
11390         (find_what_var_points_to): Nobody cares if something
11391         points to READONLY.
11392
11393 2009-07-02  Ben Elliston  <bje@au.ibm.com>
11394
11395         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
11396         pc_low and pc_high declarations to the top of the function.
11397
11398 2009-07-01  DJ Delorie  <dj@redhat.com>
11399
11400         * config/mep/mep.c (mep_handle_option): Leave IVC2 control
11401         registers as fixed.
11402         (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
11403         * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
11404         unspecified accesses to control registers.
11405         * config/mep/intrinsics.md: Regenerate.
11406         * config/mep/intrinsics.h: Regenerate.
11407         * config/mep/mep-intrin.h: Regenerate.
11408
11409 2009-07-01  Anthony Green  <green@moxielogic.com>
11410
11411         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
11412         instruction when possible.
11413         (moxie_expand_prologue): Ditto.  Also, save an instruction and
11414         some complexity by popping off of $r12 instead of $sp.
11415         * config/moxie/moxie.md (movsi_pop): Don't assume $sp.  Take two
11416         operands.
11417
11418 2009-07-01  Richard Henderson  <rth@redhat.com>
11419
11420         PR bootstrap/40347
11421         * function.c (reposition_prologue_and_epilogue_notes): If epilogue
11422         contained no insns, reposition note before last insn.
11423
11424 2009-07-01  Richard Henderson  <rth@redhat.com>
11425
11426         PR debug/40431
11427         * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
11428         DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
11429
11430 2009-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
11431
11432         PR bootstrap/40558
11433         * config/rs6000/rs6000.c (print_operand): Undo change that breaks
11434         darwin9 for printing reg addresses with %y.
11435
11436 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
11437
11438         * combine.c (force_to_mode): Handle TRUNCATE.  Factor out
11439         truncation from operands in binary operations.
11440
11441 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
11442
11443         Revert:
11444         2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
11445         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
11446         subreg of op0 to the original op0.
11447
11448         * expmed.c (store_bit_field_1): Use a temporary as the destination
11449         instead of a paradoxical subreg when we need to truncate the result.
11450
11451 2009-07-01  DJ Delorie  <dj@redhat.com>
11452
11453         * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
11454         names to VLIW variants.
11455         (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
11456         * config/mep/intrinsics.md: Regenerate.
11457         * config/mep/intrinsics.h: Regenerate.
11458         * config/mep/mep-intrin.h: Regenerate.
11459
11460 2009-07-01  Jakub Jelinek  <jakub@redhat.com>
11461
11462         PR debug/40462
11463         * jump.c (returnjump_p): Revert last patch.
11464         * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
11465
11466 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11467
11468         PR target/40575
11469         * pa.md (casesi32p): Use jump table label to determine the offset
11470         of the jump table.
11471         (casesi64p): Likewise.
11472
11473         * pa.c (forward_branch_p): Return bool type.  Use instruction
11474         addresses when available.  Assert that INSN has a jump label.
11475         (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
11476         have a jump label.
11477
11478 2009-07-01  Richard Guenther  <rguenther@suse.de>
11479
11480         PR tree-optimization/19831
11481         * tree-ssa-dce.c (propagate_necessity): Calls to functions
11482         that only act as barriers do not make any previous stores necessary.
11483         * tree-ssa-structalias.c (handle_lhs_call): Delay making
11484         HEAP variables global, do not add a constraint from nonlocal.
11485         (find_func_aliases): Handle escapes through return statements.
11486         (compute_points_to_sets): Make escaped HEAP variables global.
11487
11488 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
11489
11490         PR bootstrap/40597
11491         * expmed.c (emit_store_flag): Perform a conversion if necessary,
11492         after reducing a DImode cstore to SImode.
11493
11494 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
11495
11496         * expr.c (expand_expr_real_1): Reinstate fallthrough to
11497         TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
11498
11499 2009-07-01  Maciej W. Rozycki  <macro@linux-mips.org>
11500
11501         * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro.  Set to 1.
11502         * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro.  Redefine the
11503         to 0.
11504         * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
11505         and umod_optab if TARGET_BSD_DIVMOD.
11506         * config/vax/lib1funcs.asm: New file.
11507         * config/vax/t-linux: New file.
11508         * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
11509
11510 2009-06-30  Jakub Jelinek  <jakub@redhat.com>
11511
11512         PR c++/40566
11513         * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
11514         to type arguments that have void type.
11515
11516         PR debug/40573
11517         * dwarf2out.c (gen_formal_parameter_die): Call
11518         equate_decl_number_to_die if node is different from origin.
11519
11520 2009-06-30  Anthony Green  <green@moxielogic.com>
11521
11522         Clean up moxie port for --enable-build-with-cxx.
11523         * config/moxie/moxie.c (moxie_function_value): First two
11524         parameters are const_tree, not tree.
11525         * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
11526         (REG_CLASS_NAMES): Ditto.
11527         (REGNO_REG_CLASS): Ditto.
11528         * config/moxie/moxie-protos.h (moxie_override_options): Declare.
11529         (moxie_function_value): Fix constyness of arguments.
11530
11531 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
11532
11533         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
11534         finalize_size_functions before further processing.
11535         * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
11536         (variable_size): Call self_referential_size on size expressions
11537         that contain a PLACEHOLDER_EXPR.
11538         (size_functions): New static variable.
11539         (copy_self_referential_tree_r): New static function.
11540         (self_referential_size): Likewise.
11541         (finalize_size_functions): New global function.
11542         * tree.c: Include tree-inline.h.
11543         (push_without_duplicates): New static function.
11544         (find_placeholder_in_expr): New global function.
11545         (substitute_in_expr) <tcc_declaration>: Return the replacement object
11546         on equality.
11547         <tcc_expression>: Likewise.
11548         <tcc_vl_exp>: If the replacement object is a constant, try to inline
11549         the call in the expression.
11550         * tree.h (finalize_size_functions): Declare.
11551         (find_placeholder_in_expr): Likewise.
11552         (FIND_PLACEHOLDER_IN_EXPR): New macro.
11553         (substitute_placeholder_in_expr): Update comment.
11554         * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
11555         is true.
11556         (copy_tree_body_r): Likewise.
11557         (copy_tree_body): New static function.
11558         (maybe_inline_call_in_expr): New global function.
11559         * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
11560         (maybe_inline_call_in_expr): Declare.
11561         * Makefile.in (tree.o): Depend on TREE_INLINE_H.
11562         (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
11563         GIMPLE_H.
11564
11565 2009-06-30  Richard Guenther  <rguenther@suse.de>
11566
11567         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
11568         continue walking.
11569         (propagate_necessity): Do not mark reaching defs of stores
11570         as necessary.
11571
11572 2009-06-30  Jan Hubicka  <jh@suse.cz>
11573
11574         * cfgloopanal.c (check_irred): Move into ...
11575         (mark_irreducible_loops): ... here; return true if ireducible
11576         loops was found.
11577         * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
11578         (analyze_function): Try to prove loop finiteness.
11579         * cfgloop.h (mark_irreducible_loops): Update prototype.
11580         * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
11581
11582 2009-06-30  Basile Starynkevitch  <basile@starynkevitch.net>
11583
11584         * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
11585
11586 2009-06-30  Ira Rosen  <irar@il.ibm.com>
11587
11588         PR tree-optimization/40542
11589         * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
11590         types.
11591
11592 2009-06-30  Martin Jambor  <mjambor@suse.cz>
11593
11594         PR tree-optimization/40582
11595         * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
11596         than useless_type_conversion_p.
11597         (generate_subtree_copies): Increment sra_stats.subtree_copies at a
11598         proper place.
11599
11600 2009-06-30  Martin Jambor  <mjambor@suse.cz>
11601
11602         PR middle-end/40554
11603         * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
11604
11605 2009-06-30  Richard Guenther  <rguenther@suse.de>
11606
11607         * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
11608         use ao_ref references.
11609         (walk_aliased_vdefs): Likewise.
11610         * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
11611         * tree-ssa-dce.c (struct ref_data): Remove.
11612         (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
11613         (mark_aliased_reaching_defs_necessary): Adjust.
11614         (mark_all_reaching_defs_necessary_1): Likewise.
11615
11616 2009-06-30  Paolo Bonzini  <bonzini@gnu.org>
11617
11618         PR boostrap/40597
11619         * expmed.c (emit_cstore): New name of emit_store_flag_1.
11620         (emit_store_flag_1): Extract from emit_store_flag, adjust
11621         calls to (what now is) emit_cstore.
11622         (emit_store_flag): Call emit_store_flag_1 and also use it
11623         for what used to be recursive calls.
11624
11625 2009-06-30  Wei Guozhi  <carrot@google.com>
11626
11627         PR/40416
11628         * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
11629         if the target bb post dominates from bb.
11630         * config/i386/i386.c (memory_address_length): Check existence of base
11631         register before using it.
11632
11633 2009-06-30  Nick Clifton  <nickc@redhat.com>
11634             DJ Delorie  <dj@redhat.com>
11635
11636         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
11637         __FMOVD_ENABLED__ is defined.
11638         * config/sh/sh.h
11639         (TARGET_FMOVD): Provide a default definition.
11640         (MASK_FMOVD): Likewise.
11641         (TARGET_CPU_CPP_BUILTINS): Define
11642         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
11643         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
11644         two fmov instructions depending upon whether TARGET_FMOVD is
11645         enabled.
11646         (split for DF load from memory into register): Also handle
11647         MEMs which consist of REG+DISP addressing.
11648         (split for DF store from register to memory): Likewise.
11649         * config/sh/sh.opt (mfmovd): Remove this switch.
11650         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
11651         * config/sh/sh.c (sh_override_options): Do not automatically
11652         enable TARGET_MOVD for the SH2A when supporting doubles - leave
11653         that to the -mfmovd command line switch.
11654
11655         * config/sh/sh.c (broken_move): Do not restrict fldi test to only
11656         the SH4 and SH4A.
11657         (fldi_ok): Always allow.
11658         * config/sh/sh.md (movsf_ie): Always use single fp_mode.
11659
11660 2009-06-29  DJ Delorie  <dj@redhat.com>
11661
11662         * doc/install.texi (mep-x-elf): Correct chip's full name.
11663
11664 2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>
11665
11666         * doc/extend.texi: Fix typo.
11667
11668 2009-06-29  Tom Tromey  <tromey@redhat.com>
11669
11670         * dwarf2.h: Remove.
11671         * Makefile.in (DWARF2_H): New variable.
11672         (except.o): Use it.
11673         (dwarf2out.o): Likewise.
11674         (dwarf2asm.o): Likewise.
11675         * config/i386/t-i386: Use DWARF2_H.
11676         * except.c: Include elf/dwarf2.h.
11677         * unwind-dw2.c: Include elf/dwarf2.h.
11678         * dwarf2out.c: Include elf/dwarf2.h.
11679         (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
11680         <dtprel>: New field.
11681         (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
11682         (size_of_loc_descr): Likewise.
11683         (output_loc_operands_raw): Likewise.
11684         (output_loc_operands): Handle new dtprel field.
11685         (loc_checksum): Update.
11686         (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
11687         * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
11688         * unwind-dw2-fde.c: Include elf/dwarf2.h.
11689         * dwarf2asm.c: Include elf/dwarf2.h.
11690         * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
11691         * config/mmix/mmix.c: Include elf/dwarf2.h.
11692         * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
11693         * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
11694         * config/sh/sh.c: Include elf/dwarf2.h.
11695         * config/i386/i386.c: Include elf/dwarf2.h.
11696
11697 2009-06-29  DJ Delorie  <dj@redhat.com>
11698
11699         * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
11700
11701         * doc/extend.texi: Add MeP attributes and pragmas.
11702         * doc/invoke.text: Add MeP Options.
11703         * doc/contrib.texi: Add MeP contribution.
11704         * doc/md.texi: Add MeP constraints.
11705         * doc/install.texi: Add MeP target.
11706
11707 2009-06-30  Anatoly Sokolov  <aesok@post.ru>
11708
11709         * target.h (struct gcc_target): Add frame_pointer_required field.
11710         * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
11711         (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
11712         * ira.c (setup_eliminable_regset): Use frame_pointer_required target
11713         hook.
11714         * reload1.c (update_eliminables): (Ditto.).
11715         * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
11716         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
11717         (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
11718
11719         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
11720
11721         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
11722         * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11723         (arm_frame_pointer_required): New function.
11724
11725         * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
11726         * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11727         (avr_frame_pointer_required_p): Declare as static.
11728         * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
11729
11730         * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
11731         * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11732         (bfin_frame_pointer_required): Make as static, change return type
11733         to bool.
11734         * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
11735
11736         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
11737         * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11738         (cris_frame_pointer_required): New function.
11739
11740         * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
11741
11742         * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
11743         * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11744         (fr30_frame_pointer_required): New function.
11745
11746         * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
11747         * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11748         (frv_frame_pointer_required): Make as static, change return type
11749         to bool.
11750         * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
11751
11752         * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
11753         * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11754         (ix86_frame_pointer_required): Make as static, change return type to
11755         bool.
11756         * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
11757
11758         * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
11759         * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11760
11761         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
11762
11763         * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
11764
11765         * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
11766
11767         * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
11768         * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11769         (mips_frame_pointer_required): Make as static.
11770         * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
11771
11772         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
11773         * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11774         (mmix_frame_pointer_required): Mew function.
11775
11776         * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
11777         * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11778
11779         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
11780
11781         * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
11782
11783         * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
11784
11785         * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
11786         (CAN_ELIMINATE): Redefine.
11787         * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11788         (sparc_frame_pointer_required): New function.
11789         (sparc_can_eliminate): New function.
11790         * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
11791
11792         * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
11793         * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11794
11795         * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
11796         * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11797         (xtensa_frame_pointer_required): Make as static, change return type
11798         to bool.
11799         * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
11800         Remove.
11801
11802 2009-06-29  Olatunji Ruwase  <tjruwase@google.com>
11803
11804         * doc/plugins.texi: Document PLUGIN_START_UNIT.
11805         * toplev.c (compile_file): Call PLUGIN_START_UNIT.
11806         * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
11807         * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
11808         (register_callback): Handle PLUGIN_START_UNIT.
11809         (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
11810
11811 2009-06-29  Eric Botcazou  <ebotcazou@adacore.com>
11812
11813         * tree.c (process_call_operands): Propagate TREE_READONLY from the
11814         operands.
11815         (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
11816         (build3_stat): Propagate TREE_READONLY for COND_EXPR.
11817
11818 2009-06-29  Daniel Jacobowitz  <dan@codesourcery.com>
11819
11820         * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
11821         move cost.
11822
11823 2009-06-29  Uros Bizjak  <ubizjak@gmail.com>
11824
11825         * doc/extend.texi (Additional Floating Types): __float128 is also
11826         supported on i386 targets.
11827
11828 2009-06-29  Richard Guenther  <rguenther@suse.de>
11829
11830         PR middle-end/14187
11831         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
11832         flag.
11833         (pt_solutions_same_restrict_base): Declare.
11834         * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
11835         flag.
11836         (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
11837         (make_constraint_from, make_copy_constraint): Move earlier.
11838         (make_constraint_from_heapvar): New function.
11839         (make_constraint_from_restrict): Likewise.
11840         (handle_lhs_call): Use it.
11841         (find_func_aliases): Use it to track conversions to restrict
11842         qualified pointers.
11843         (struct fieldoff): Add only_restrict_pointers flag.
11844         (push_fields_onto_fieldstack): Initialize it.
11845         (create_variable_info_for): Track global restrict qualified pointers.
11846         (intra_create_variable_infos): Use make_constraint_from_heapvar.
11847         Track restrict qualified pointer arguments.
11848         (set_uids_in_ptset): Use varinfo is_global_var flag.
11849         (find_what_var_points_to): Set the vars_contains_restrict flag.
11850         Always create the points-to solution for sets including restrict tags.
11851         (pt_solutions_same_restrict_base): New function.
11852         * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
11853         qualified pointers use pt_solutions_same_restrict_base as
11854         additional source for disambiguation.
11855
11856 2009-06-29  Richard Guenther  <rguenther@suse.de>
11857
11858         PR middle-end/38212
11859         * alias.c (find_base_decl): Remove.
11860         (get_deref_alias_set_1): Remove restrict handling.
11861         * c-common.c (c_apply_type_quals_to_decl): Do not set
11862         DECL_POINTER_ALIAS_SET.
11863         * gimplify.c (find_single_pointer_decl_1): Remove.
11864         (find_single_pointer_decl): Likewise.
11865         (internal_get_tmp_var): Remove restrict handling.
11866         (gimple_regimplify_operands): Likewise.
11867         * omp-low.c (expand_omp_atomic_pipeline): Do not set
11868         DECL_POINTER_ALIAS_SET. Use ref-all pointers.
11869         * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
11870         * tree.c (restrict_base_for_decl): Remove.
11871         (init_ttree): Do not allocate it.
11872         (make_node_stat): Do not set DECL_POINTER_ALIAS_SET.  Set
11873         LABEL_DECL_UID for label decls.
11874         (copy_node_stat): Do not copy restrict information.
11875         (decl_restrict_base_lookup): Remove.
11876         (decl_restrict_base_insert): Likewise.
11877         (print_restrict_base_statistics): Likewise.
11878         (dump_tree_statistics): Do not call print_restrict_base_statistics.
11879         * tree.h (DECL_POINTER_ALIAS_SET): Remove.
11880         (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
11881         (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
11882         (LABEL_DECL_UID): Adjust.
11883         (DECL_BASED_ON_RESTRICT_P): Remove.
11884         (DECL_GET_RESTRICT_BASE): Likewise.
11885         (SET_DECL_RESTRICT_BASE): Likewise.
11886         (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
11887
11888         * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
11889         instead of DECL_POINTER_ALIAS_SET.
11890         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
11891         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
11892         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
11893
11894 2009-06-29  Richard Guenther  <rguenther@suse.de>
11895
11896         PR tree-optimization/40579
11897         * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
11898         the IL to simplify has constants that overflowed.
11899
11900 2009-06-28  Uros Bizjak  <ubizjak@gmail.com>
11901
11902         PR tree-optimization/40550
11903         * tree-vect-generic.c (expand_vector_operations_1): Compute in
11904         vector_compute_type only when the size of vector_compute_type is
11905         less than the size of type.
11906
11907 2009-06-28  Eric Botcazou  <ebotcazou@adacore.com>
11908
11909         * fold-const.c (contains_label_1): Fix comments.
11910         (contains_label_p): Do not walk trees multiple time.
11911
11912 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
11913
11914         * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
11915         * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
11916         cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
11917         ix86_fp_comparison_operator.
11918         (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
11919         *fp_jcc_2_sse, *fp_jcc_2_387): Delete
11920         (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
11921         *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
11922         !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
11923         to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
11924         (related splits): Change predicate to ix86_fp_comparison_operator.
11925         * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
11926         instead of ix86_fp_comparison_codes.
11927         (ix86_trivial_fp_comparison_operator,
11928         ix86_fp_comparison_operator): New.
11929         * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
11930         (ix86_expand_compare): Eliminate last two parameters.
11931         (ix86_fp_jump_nontrivial_p): Kill.
11932         * config/i386/i386.c (put_condition_code): Eliminate call to
11933         ix86_fp_comparison_codes and subsequent assertion.
11934         (ix86_fp_comparison_codes): Eliminate.
11935         (ix86_fp_swap_condition): New.
11936         (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
11937         ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
11938         into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
11939         (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
11940         and ix86_fp_swap_condition.
11941         (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
11942         Use ix86_fp_comparison_strategy.
11943         (ix86_expand_compare): Likewise.  Eliminate last two arguments.
11944         (ix86_fp_jump_nontrivial_p): Eliminate.
11945         (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple.  Adjust
11946         call to ix86_expand_compare.
11947         (ix86_split_fp_branch, ix86_expand_setcc,
11948         ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
11949         ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
11950
11951 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
11952
11953         * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
11954         related to jump_clobbers.
11955         * config/arm/arm.md (conds): Remove jump_clob case.
11956         (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
11957         splits): Change comparison_operator to arm_comparison_operator.
11958         (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
11959         Eliminate.
11960
11961 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
11962
11963         * dojump.c (do_compare_rtx_and_jump): Try swapping the
11964         condition for floating point modes.
11965         * expmed.c (emit_store_flag_1): Move here a bigger part
11966         of emit_store_flag.
11967         (emit_store_flag): Try swapping the condition for floating point
11968         modes.
11969         * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
11970
11971 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
11972
11973         * expr.c (expand_expr_real_1): Just use do_store_flag.
11974         (do_store_flag): Drop support for TRUTH_NOT_EXPR.  Use
11975         emit_store_flag_force.
11976         * expmed.c (emit_store_flag_force): Copy here trick
11977         previously in expand_expr_real_1.  Try reversing the comparison.
11978         (emit_store_flag_1): Work if target is NULL.
11979         (emit_store_flag): Work if target is NULL, using the result mode
11980         from the comparison.  Use split_comparison, restructure final part
11981         to simplify conditionals.
11982
11983 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
11984
11985         * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
11986         * dojump.c (do_jump): Change handling of floating-point
11987         ops to use just do_compare_and_jump.
11988         (split_comparison): New.
11989         (do_compare_rtx_and_jump): Add here logic coming previously
11990         in do_jump, using split_comparison.
11991
11992 2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>
11993
11994         PR target/40489
11995         * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
11996
11997 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
11998
11999         * tree-ssa-alias.c: Fix unintentional commit.
12000
12001 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
12002
12003         * passes.c (execute_one_pass): Fix unintentional commit.
12004
12005 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
12006
12007         * df-problems.c (df_set_seen, df_unset_seen): Delete.
12008         (df_rd_local_compute, df_md_local_compute): Inline them.
12009
12010         (df_md_scratch): New.
12011         (df_md_alloc, df_md_free): Allocate/free it.
12012         (df_md_local_compute): Only include live registers in init.
12013         (df_md_transfer_function): Prune the in-set computed by
12014         the confluence function, and the gen-set too.
12015
12016 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
12017
12018         PR rtl-optimization/26854
12019         * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
12020         * df-problems.c (df_rd_add_problem): Fix comment.
12021         (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
12022         df_md_simulate_artificial_defs_at_top,
12023         df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
12024         df_md_bb_local_compute, df_md_local_compute, df_md_reset,
12025         df_md_transfer_function, df_md_init, df_md_confluence_0,
12026         df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
12027         problem_MD, df_md_add_problem): New.
12028         * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
12029         df_md_get_bb_info): New.
12030         (DF_LAST_PROBLEM_PLUS1): Adjust.
12031
12032         * Makefile.in (fwprop.o): Include domwalk.h.
12033         * fwprop.c: Include domwalk.h.
12034         (reg_defs, reg_defs_stack): New.
12035         (bitmap_only_bit_between): Remove.
12036         (process_defs): New.
12037         (process_uses): Use reg_defs and local_md instead of
12038         bitmap_only_bit_between and local_rd.
12039         (single_def_use_enter_block): New, from build_single_def_use_links.
12040         (single_def_use_leave_block): New.
12041         (build_single_def_use_links): Remove code moved to
12042         single_def_use_enter_block, invoke domwalk.
12043         (use_killed_between): Adjust comment.
12044
12045 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
12046
12047         * bitmap.h (bitmap_ior_and_into): New.
12048         * bitmap.c (bitmap_ior_and_into): New.
12049
12050 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
12051
12052         * domwalk.h (struct dom_walk_data): Remove all callbacks except
12053         before_dom_children_before_stmts and after_dom_children_after_stmts.
12054         Rename the two remaining callbacks to just before_dom_children and
12055         after_dom_children. Remove other GIMPLE statement walking bits.
12056         * domwalk.c (walk_dominator_tree): Remove now unsupported features.
12057         * graphite.c: Do not include domwalk.h.
12058         * tree-into-ssa.c (interesting_blocks): New global.
12059         (struct mark_def_sites_global_data): Remove it and names_to_rename.
12060         (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
12061         rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
12062         now that they're not domwalk callbacks.
12063         (rewrite_initialize_block): Rename to...
12064         (rewrite_enter_block): ... this, place after called functions.  Test
12065         interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
12066         (rewrite_finalize_block): Rename to...
12067         (rewrite_leave_block): ... this, place after called functions.
12068         (rewrite_update_init_block): Rename to...
12069         (rewrite_update_enter_block): ... this, place after called functions.
12070         Test interesting_blocks, call rewrite_update_stmt and
12071         rewrite_update_phi_arguments.
12072         (rewrite_update_fini_block): Rename to...
12073         (rewrite_leave_block): ... this, place after called functions.
12074         (rewrite_blocks): Remove last argument, simplify initialization of
12075         walk_data.
12076         (mark_def_sites_initialize_block): Rename to...
12077         (mark_def_sites_block): ... this, call mark_def_sites.
12078         (mark_def_sites_blocks): Remove argument, simplify initialization of
12079         walk_data.
12080         (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
12081         (update_ssa): Likewise.
12082         * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
12083         callback.
12084         (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
12085         (dom_opt_initialize_block): Rename to...
12086         (dom_opt_enter_block): ... this, place after called functions.  Walk
12087         statements here, inline propagate_to_outgoing_edges.
12088         (dom_opt_finalize_block): Rename to...
12089         (dom_opt_leave_block): ... this, place after called functions.
12090         * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
12091         domwalk callback.
12092         (dse_enter_block, dse_record_phi): New.
12093         (dse_record_phis): Delete.
12094         (dse_finalize_block): Rename to...
12095         (dse_leave_block): ... this.
12096         (tree_ssa_dse): Simplify initialization of walk_data.
12097         * tree-ssa-loop-im.c (determine_invariantness, move_computations):
12098         Adjust initialization of walk_data.
12099         * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
12100         * tree-ssa-loop-phiopt.c (get_non_trapping):
12101         Adjust initialization of walk_data.
12102         * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
12103         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
12104         it's not a domwalk callback.
12105         (uncprop_initialize_block): Rename to...
12106         (dse_enter_block): ... this, call uncprop_into_successor_phis.
12107         (dse_finalize_block): Rename to...
12108         (dse_leave_block): ... this.
12109         (tree_ssa_uncprop): Simplify initialization of walk_data.
12110         * Makefile.in: Adjust dependencies.
12111
12112 2009-06-27  Richard Earnshaw  <rearnsha@arm.com>
12113
12114         * arm.md (casesi): Fix test for Thumb1.
12115         (thumb1_casesi_internal_pic): Likewise.
12116         (thumb1_casesi_dispatch): Likewise.
12117
12118 2009-06-26  Daniel Gutson  <dgutson@codesourcery.com>
12119
12120         * config/arm/arm-cores.def: Added core cortex-m0.
12121         * config/arm/arm-tune.md: Regenerated.
12122         * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
12123
12124 2009-06-26  DJ Delorie  <dj@redhat.com>
12125
12126         * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
12127
12128         * config/mep/mep.c (mep_bundle_insns): Account for the fact that
12129         the scheduler doesn't tag jump insns.
12130
12131 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
12132
12133         * c-decl.c (merge_decls): Re-indent.
12134
12135 2009-06-26  Janis Johnson  <janis187@us.ibm.com>
12136
12137         PR c/39902
12138         * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
12139         Special-case decimal float constants.
12140
12141 2009-06-26  Richard Henderson  <rth@redhat.com>
12142
12143         * function.h (struct function): Add cannot_be_copied_reason,
12144         and cannot_be_copied_set.
12145         * tree-inline.c (has_label_address_in_static_1): Rename from
12146         inline_forbidden_p_2; don't set inline_forbidden_reason here.
12147         (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
12148         don't set inline_forbidden_reason.
12149         (copy_forbidden): New function, split out of inline_forbidden_p.
12150         (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
12151         (inline_forbidden_p): Use copy_forbidden.
12152         (tree_versionable_function_p): Likewise.
12153         (inlinable_function_p): Merge into tree_inlinable_function_p.
12154         (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
12155         * ipa-cp.c (ipcp_versionable_function_p): New function.
12156         (ipcp_cloning_candidate_p): Use it.
12157         (ipcp_node_modifiable_p): Likewise.
12158
12159 2009-06-26  Olatunji Ruwase  <tjruwase@google.com>
12160
12161         * builtins.c (expand_builtin_alloca): Handle builtin alloca
12162         that is marked not to be inlined. Remove flag_mudflap use.
12163         * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
12164         (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
12165
12166 2009-06-26  Steve Ellcey  <sje@cup.hp.com>
12167
12168         PR bootstrap/40338
12169         * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
12170         * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
12171
12172 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
12173
12174         * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
12175         shared libgcc.
12176         (__mingwthr_remove_key_dtor): Likewise.
12177
12178 2009-06-26  Richard Guenther  <rguenther@suse.de>
12179
12180         * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
12181
12182 2009-06-26  Steven Bosscher  <steven@gcc.gnu.org>
12183
12184         PR middle-end/40525
12185         * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
12186         try the non-cond_exec path also.
12187
12188 2009-06-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12189
12190         PR target/40468
12191         * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
12192         (output_cbranch): Use new functions.
12193         (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
12194         Likewise.
12195
12196 2009-06-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
12197             Pat Haugen  <pthaugen@us.ibm.com>
12198             Revital Eres <ERES@il.ibm.com>
12199
12200         * config/rs6000/rs6000.c (print_operand): Correct lossage message
12201         for %c error.  Add %x support to print VSX registers as a unified
12202         register set, instead of separate float and altivec registers.
12203         Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
12204         %y case, and add support for VSX pre-modify addresses.
12205         (output_toc): Add assert for CONST containing an integer constant
12206         in the PLUS case.
12207         (rs6000_adjust_cost): Add POWER7 support.
12208         (insn_must_be_first_in_group): Ditto.
12209         (insn_must_be_last_in_group): Ditto.
12210         (rs6000_emit_popcount): Ditto.
12211         (rs6000_vector_mode_supported_p): Ditto.
12212
12213         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
12214         Change some of the functions called by macros to being called
12215         through a pointer, so debug functions can be inserted if
12216         -mdebug=addr or -mdebug=cost.
12217         (rs6000_preferred_reload_class_ptr): Ditto.
12218         (rs6000_secondary_reload_class_ptr): Ditto.
12219         (rs6000_secondary_memory_needed_ptr): Ditto.
12220         (rs6000_cannot_change_mode_class_ptr): Ditto.
12221         (rs6000_secondary_reload_inner): Ditto.
12222         (rs6000_legitimize_reload_address): Ditto.
12223         (rs6000_legitimize_reload_address_ptr): Ditto.
12224         (rs6000_mode_dependent_address): Ditto.
12225         (rs6000_mode_dependent_address_ptr): Ditto.
12226
12227         * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
12228         function to return true if the mode allows reg + integer
12229         addresses.
12230         (virtual_stack_registers_memory_p): New function to return true if
12231         the address refers to a virtual stack register.
12232         (rs6000_legitimate_offset_address_p): Move code to say whether a
12233         mode supports reg+int addressing to reg_offset_addressing_ok_p and
12234         call it.
12235         (rs6000_legitimate_address_p): Add checks for modes that only can
12236         do reg+reg addressing.  Start adding VSX support.
12237         (rs6000_legitimize_reload_address): Ditto.
12238         (rs6000_legitimize_address): Ditto.
12239         (rs6000_debug_legitimate_address_p): New debug functions for
12240         -mdebug=addr and -mdebug=cost.
12241         (rs6000_debug_rtx_costs): Ditto.
12242         (rs6000_debug_address_costs): Ditto.
12243         (rs6000_debug_adjust_cost): Ditto.
12244         (rs6000_debug_legitimize_address): Ditto.
12245         (rs6000_legitimize_reload_address_ptr): Point to call normal
12246         function or debug function.  Make functions called via pointer
12247         static.
12248         (rs6000_mode_dependent_address_ptr): Ditto.
12249         (rs6000_secondary_reload_class_ptr): Ditto.
12250         (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
12251         (rs6000_emit_move): Add -mdebug=addr support.  Change an abort
12252         into a friendlier error.
12253         (rs6000_init_builtins): Add initial VSX support.
12254         (rs6000_adjust_cost): Fix some spacing issues.
12255
12256         * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
12257         (REG_CLASS_NAMES): Ditto.
12258         (REG_CLASS_CONTENTS): Ditto.
12259         (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
12260         pointer, to add -mdebug=addr support.
12261         (CANNOT_CHANGE_MODE_CLASS): Ditto.
12262         (SECONDARY_RELOAD_CLASS): Call through a pointer to add
12263         -mdebug=addr support.
12264         (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
12265         (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
12266         (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
12267
12268         * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
12269         16-bit values.
12270         (bswapsi*): Set attribute types for load/store.  Add combiner
12271         patterns to eliminate zero extend on 64-bit.
12272         (bswapdi*): Add support for swapping 64-bit values.  Use ldbrx and
12273         stdbrx if the hardware supports those instructions.
12274
12275 2009-06-25  Ian Lance Taylor  <iant@google.com>
12276
12277         * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
12278         (Link Options): Document -static-libstdc++.
12279
12280 2009-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12281
12282         PR target/38731
12283         * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
12284         DATA_ALIGNMENT instead.
12285
12286 2009-06-25  Richard Guenther  <rguenther@suse.de>
12287
12288         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
12289         indirect references against the callused/escaped solutions.
12290         (call_may_clobber_ref_p_1): Likewise.
12291
12292 2009-06-25  Martin Jambor  <mjambor@suse.cz>
12293
12294         PR tree-optimization/40493
12295         * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
12296         (enum unscalarized_data_handling): New type.
12297         (handle_unscalarized_data_in_subtree): Return what has been done.
12298         (load_assign_lhs_subreplacements): Handle left flushes differently.
12299         (sra_modify_assign): Use unscalarized_data_handling, simplified
12300         condition determining whether to remove the statement.
12301
12302 2009-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
12303
12304         * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
12305         excerpt - @ should be doubled for texinfo.
12306
12307 2009-06-24  Ian Lance Taylor  <iant@google.com>
12308
12309         * config/arc/arc.c: Include "df.h".
12310         (arc_attribute_table): Make static.  Move higher in file.
12311         (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
12312         (output_shift): Initialize n later to avoid warning.
12313         * config/arm/arm.c (arm_attribute_table): Make static.  Move
12314         higher in file.
12315         * config/avr/avr.c (avr_attribute_table): Make static.  Move
12316         higher in file.
12317         (reg_class_tab): Change array type from int to enum reg_class.
12318         (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
12319         LABEL_REF.
12320         (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
12321         (lshrhi3_out): Likewise.
12322         (class_likely_spilled_p): Change return type to bool.
12323         (avr_rtx_costs): Use local code variable with enum type.
12324         * config/avr/avr.md (movmemhi): Use add_reg_note.
12325         (andhi3, andsi3): Don't use AS2 with "and".
12326         (iorhi3, iorsi3): Don't use AS2 with "or".
12327         * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
12328         * config/crx/crx.c: Include "df.h".
12329         (crx_attribute_table): Make static.
12330         * config/m32r/m32r.c: Include "df.h".
12331         (m32r_attribute_table): Make static.  Move higher in file.
12332         (pop): Use add_reg_note.
12333         (block_move_call): Change 0 to LCT_NORMAL in function call.
12334         * config/m32r/m32r.md (movsi_insn): Remove unused local value.
12335         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
12336         * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
12337         declare, not just when TREE_CODE is defined.
12338         * config/m68hc11/m68hc11.c: Include "expr.h".
12339         (m68hc11_attribute_table): Make static.  Move higher in file.
12340         (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
12341         function call.
12342         (m68hc11_register_indirect_p): Likewise.
12343         (m68hc11_function_arg_padding): Change return type to enum
12344         direction.
12345         (emit_move_after_reload): Use add_reg_note.
12346         (m68hc11_emit_logical): Change code parameter to enum rtx_code.
12347         (m68hc11_split_logical): Likewise.
12348         (m68hc11_rtx_costs): Add local code_and outer_code variables with
12349         enum type.
12350         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
12351         to VOIDmode in function call.
12352         * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
12353         tree is defined.
12354         (m68hc11_split_logical): Update declaration.
12355         (m68hc11_function_arg_padding): Update declaration.
12356         * config/mcore/mcore.c (regno_reg_class): Change form array of int
12357         to array of enum reg_class.
12358         (mcore_attribute_table): Make static.  Move higher in file.
12359         (mcore_rtx_costs): Add cast to enum type.
12360         * config/mcore/mcore.h (regno_reg_class): Update declaration.
12361         (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
12362         * config/sh/sh.c (sh_attribute_table): Make static.  Move higher
12363         in file.
12364         * config/sh/predicates.md (trapping_target_operand): Rename and to
12365         and_expr.
12366         * config/sparc/sparc.c (sparc_attribute_table): Make static.  Move
12367         higher in file.
12368         * config/spu/spu.c (spu_attribute_table): Make static.  Move
12369         higher in file.
12370         * config/v850/v850.c (v850_attribute_table): Make static.  Move
12371         higher in file.
12372         (v850_rtx_costs): Use local code with enum type.
12373         (expand_epilogue): Add cast.
12374         * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
12375
12376 2009-06-23  Takashi YOSHII  <yoshii.takashi@renesas.com>
12377
12378         PR target/40515
12379         * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
12380         -m2a-single-only and -m2a-nofpu.
12381         * config/sh/sh.opt: Document m2a generates FPU code.
12382
12383 2009-06-24  Anatoly Sokolov  <aesok@post.ru>
12384
12385         * defaults.h (CAN_ELIMINATE): Provide default.
12386         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
12387         * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
12388         * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
12389         * config/spu/spu.h (CAN_ELIMINATE): Delete.
12390         * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
12391         * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
12392         * config/cris/cris.h (CAN_ELIMINATE): Delete.
12393         * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
12394         * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
12395         * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
12396
12397 2009-06-24  DJ Delorie  <dj@redhat.com>
12398
12399         * mep-ext-cop.cpu: Fix copyright notice.
12400         * mep-default: Fix copyright notice.
12401         * mep-core: Fix copyright notice.
12402         * mep: Fix copyright notice.
12403         * mep-ivc2: Fix copyright notice.
12404         * mep-c5: Fix copyright notice.
12405
12406 2009-06-24  Denis Chertykov  <chertykov@gmail.com>
12407
12408         * doc/contrib.texi (Contributors):
12409
12410 2009-06-24  Andreas Krebbel  <krebbel1@de.ibm.com>
12411
12412         PR middle-end/40501
12413         * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
12414         src and dst operands if necessary.
12415
12416 2009-06-23  DJ Delorie  <dj@redhat.com>
12417
12418         Add MeP port.
12419         * config.gcc: Add mep support.
12420         * recog.c: Resurrect validate_replace_rtx_subexp().
12421         * recog.h: Likewise.
12422         * config/mep/: Add new port:
12423         * config/mep/constraints.md: New file.
12424         * config/mep/default.h: New file.
12425         * config/mep/intrinsics.h: New file.
12426         * config/mep/intrinsics.md: New file.
12427         * config/mep/ivc2-template.h: New file.
12428         * config/mep/mep-c5.cpu: New file.
12429         * config/mep/mep-core.cpu: New file.
12430         * config/mep/mep-default.cpu: New file.
12431         * config/mep/mep-ext-cop.cpu: New file.
12432         * config/mep/mep-intrin.h: New file.
12433         * config/mep/mep-ivc2.cpu: New file.
12434         * config/mep/mep-lib1.asm: New file.
12435         * config/mep/mep-lib2.c: New file.
12436         * config/mep/mep-pragma.c: New file.
12437         * config/mep/mep-protos.h: New file.
12438         * config/mep/mep-tramp.c: New file.
12439         * config/mep/mep.c: New file.
12440         * config/mep/mep.cpu: New file.
12441         * config/mep/mep.h: New file.
12442         * config/mep/mep.md: New file.
12443         * config/mep/mep.opt: New file.
12444         * config/mep/predicates.md: New file.
12445         * config/mep/t-mep: New file.
12446
12447 2009-06-23  Ian Lance Taylor  <iant@google.com>
12448
12449         * configure.ac: Invoke AC_PROG_CXX.  Separate C specific warnings
12450         from loose_warn into c_loose_warn and from strict_warn into
12451         c_strict_warn.  Set and substitute warn_cxxflags.  Check for
12452         --enable-build-with-cxx.  Set and substitute
12453         ENABLE_BUILD_WITH_CXX.  Set and substitute HOST_LIBS.
12454         * Makefile.in (CXXFLAGS): New variable.
12455         (C_LOOSE_WARN, C_STRICT_WARN): New variables.
12456         (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN).  Add $(C_STRICT_WARN) if
12457         the default is the same as $(STRICT_WARN).
12458         (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
12459         (CXX): New variable.
12460         (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
12461         (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
12462         (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
12463         (HOST_LIBS): New variable.
12464         (GCC_CFLAGS): Add $(C_LOOSE_WARN).
12465         (ALL_CXXFLAGS): New variable.
12466         (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
12467         * doc/install.texi (Configuration): Document
12468         --enable-build-with-cxx, --with-stage1-ldflags,
12469         --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
12470         * configure: Rebuild.
12471
12472 2009-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12473
12474         * config/arm/arm.c (arm_override_options): Fix braces and formatting
12475         from previous commit.
12476
12477 2009-06-23  Ian Lance Taylor  <iant@google.com>
12478
12479         * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
12480
12481 2009-06-23  Ian Lance Taylor  <iant@google.com>
12482
12483         * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
12484         with ATTRIBUTE_UNUSED.
12485
12486 2009-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
12487             Pat Haugen  <pthaugen@us.ibm.com>
12488             Revital Eres  <eres@il.ibm.com>
12489
12490         * config.in (HAVE_AS_POPCNTD): Add default definition.
12491         (HAVE_AS_LWSYNC): Ditto.
12492
12493         * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
12494         release number.
12495         (gcc_cv_as_powerpc_cmpb): Ditto.
12496         (gcc_cv_as_powerpc_dfp): Ditto.
12497         (gcc_cv_as_powerpc_vsx): Ditto.
12498         (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
12499         supporting the popcntd/lwsync instructions.
12500         (gcc_cv_as_powerpc_lwsync): Ditto.
12501         * configure: Regenerate.
12502
12503         * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
12504         -mcpu=native and -mcpu=power7.
12505         * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
12506
12507         * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
12508         a variable instead of a mask to reduce the number of mask bits.
12509         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
12510         (-mbit-word): Ditto.
12511         (-mregnames): Ditto.
12512         * config/rs6000/rs6000.opt (-mupdate): Ditto.
12513         (-mfused-madd): Ditto.
12514
12515         * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
12516         2.06 instructions.
12517         (-mvsx): New switch for VSX instructions.
12518         (-misel): Move from a variable to a mask to allow it to be set by
12519         -mcpu=.
12520
12521         * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
12522         function declaration to an array declaration.
12523         (rs6000_hard_regno_nregs): New external array declaration.
12524
12525         * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
12526         files included by rs6000.md.
12527
12528         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
12529         SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
12530
12531         * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
12532         a target mask.
12533         (rs6000_debug_reg): New -mdebug= variables.
12534         (rs6000_debug_addr): Ditto.
12535         (rs6000_debug_cost): Ditto.
12536         (rs6000_pmode): New variable to hold Pmode.
12537         (rs6000_pointer_size): New variable to hold POINTER_SIZE.
12538         (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
12539         calculated at compiler start.
12540         (rs6000_hard_regno_nregs): Change function to an array which holds
12541         HARD_REGNO_NREGS calculated at compiler start.
12542         (rs6000_explicit_options): Delete isel field.
12543         (rs6000_vector_unit): New array to hold which vector unit
12544         supports arithmetic options for a given type.
12545         (rs6000_vector_mem): New array to hold which vector unit supports
12546         memory reference operations for a given type.
12547         (rs6000_vector_align): New array to given the alignment of each
12548         vector type.
12549         (power7_cost): New basic costs for power7.
12550         (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
12551         (rs6000_hard_regno_nregs_internal): New function, moved from
12552         HARD_REGNO_NREGS, to calculate the number of registers each hard
12553         register takes for each type.
12554         (rs6000_debug_reg_print): New function for -mdebug=reg support.
12555         (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
12556         (+rs6000_init_hard_regno_mode_ok): New function, move calculation
12557         of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
12558         unit information here so it is calculated once at compiler startup
12559         time.
12560         (rs6000_override_options): Make -misel a target mask.  Add more
12561         power7 target masks.  Setup Pmode and POINTER_SIZE.  Add initial
12562         VSX support.  Add support for -mdebug=reg, -mdebug=addr, and
12563         -mdebug=cost.
12564         (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
12565         (rs6000_handle_option): Move -misel from variable to target mask.
12566         (rs6000_builtin_mask_for_load): Add VSX support.
12567         (rs6000_conditional_register_usage): Ditto.
12568         (USE_ALTIVEC_FOR_ARG_P): Ditto.
12569         (function_arg_boundary): Ditto.
12570         (rs6000_expand_builtin): Ditto.
12571         (def_builtin): Make abort message a little friendlier.
12572         (rs6000_emit_int_cmove): Add support for 64-bit isel.
12573
12574         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
12575         assembler support the popcntd instruction instead of a vsx
12576         instruction to enable power7 support.
12577         (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
12578         (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
12579         option to the assembler if -mcpu=native.
12580         (ASM_CPU_NATIVE_SPEC): Ditto.
12581         (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
12582         ISA 2.06 features.
12583         (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
12584         the lwsync instruction.
12585         (enum processor_type): Add PROCESSOR_POWER7.
12586         (rs6000_debug_reg): New -mdebug= options.
12587         (rs6000_debug_addr): Ditto.
12588         (rs6000_debug_cost): Ditto.
12589         (rs6000_isel): Delete.
12590         (enum rs6000_vector): New enum to say what vector unit we have.
12591         (VECTOR_UNIT_*): New macros to say which vector unit has
12592         arithmetic operations for a given type.
12593         (VECTOR_MEM_*): New macros to say which vector unit has memory
12594         operations for a given type.
12595         (TARGET_LDBRX): Whether the machine supports the ldbrx
12596         instruction.
12597         (TARGET_ISEL): Delete, -misel moved to be a mask.
12598         (TARGET_ISEL64): New macro for 64-bit isel support.
12599         (UNITS_PER_VSX_WORD): New macro.
12600         (POINTER_SIZE): Move to be an external variable, rather than
12601         calculating whether we are generating 32 ot 64-bit code.
12602         (Pmode): Ditto.
12603         (STACK_BOUNDARY): Add VSX support.
12604         (LOCAL_ALIGNMENT): Ditto.
12605         (SLOW_UNALIGNED_ACCESS): Ditto.
12606         (VSX_REGNO_P): New macro for VSX support.
12607         (VFLOAT_REGNO_P): Ditto.
12608         (VINT_REGNO_P): Ditto.
12609         (VLOGICAL_REGNO_P): Ditto.
12610         (VSX_VECTOR_MODE): Ditto.
12611         (VSX_SCALAR_MODE): Ditto.
12612         (VSX_MODE): Ditto.
12613         (VSX_MOVE_MODE): Ditto.
12614         (VSX_REG_CLASS_P): Ditto.
12615         (HARD_REGNO_NREGS): Instead of calling a function, use an array
12616         lookup.
12617         (UNITS_PER_SIMD_WORD): Add VSX support.
12618         (MODES_TIEABLE_P): Ditto.
12619         (STARTING_FRAME_OFFSET): Ditto.
12620         (STACK_DYNAMIC_OFFSET): Ditto.
12621         (EPILOGUE_USES): Ditto.
12622         (REGNO_REG_CLASS): Move to array lookup.
12623         (CLASS_MAX_NREGS): Ditto.
12624         (rs6000_vector_reg_class): Add declaration.
12625         (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
12626         overlap with the floating point and Altivec registers.
12627
12628         * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
12629
12630         * config/rs6000/driver-rs6000.c (asm_names): New static array to
12631         give the appropriate asm switches if -mcpu=native.
12632         (host_detect_local_cpu): Add support for "asm".
12633         (host_detect_local_cpu): Follow GNU code guidelines for name.
12634
12635         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
12636         -mbit-word to a variable instead of being a target mask.
12637
12638         * config/rs6000/sync.md (lwsync): If the assembler supports it,
12639         emit the lwsync instruction instead of emitting the instruction as
12640         an integer constant.
12641
12642         * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
12643         fixuns_trundfsi2, move expander into rs6000.md.
12644
12645         * config/rs6000/rs6000.md (cpu): Add power7.
12646         (sel, *ptrsize): New mode attributes for 32/64-bit isel.
12647         (logical predicate patterns): Change the single instruction
12648         primitives that set CR0 to be fast_compare instead of compare.
12649         (norsi*): Ditto.
12650         (popcntwsi2): Add support for ISA 2.06 popcount instructions.
12651         (popcntddi2): Ditto.
12652         (popcount<mode>): Ditto.
12653         (floating multiply/add insns): Name the floating point
12654         multiply/add insns.
12655         (isel_signed_<mode>): Add support for -misel on 64-bit systems.
12656         (isel_unsigned_<mode>): Ditto.
12657         (fixuns_trundfsi2): Move expander here from spe.md.
12658         (smindi3): Define if we have -misel on 64-bit systems.
12659         (smaxdi3): Ditto.
12660         (umindi3): Ditto.
12661         (umaxdi3): Ditto.
12662
12663 2009-06-23  Anatoly Sokolov  <aesok@post.ru>
12664
12665         * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
12666         extra_objs.
12667         * config/avr/avr.c (avr_current_device): New variable.
12668         (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
12669         (avr_arch, mcu_type_s): Move to avr.h.
12670         * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
12671         default_data_section_start fields.
12672         (avr_arch): Moved from avr.c.
12673         (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
12674         library_name fields.
12675         (avr_current_device, avr_mcu_types, avr_arch_types,
12676         avr_device_to_arch, avr_device_to_data_start,
12677         avr_device_to_startfiles, avr_device_to_devicelib): Declare.
12678         (EXTRA_SPEC_FUNCTIONS): Define.
12679         (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
12680         options mapping. Use device_to_arch and device_to_data_start insted.
12681         (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
12682         (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
12683         * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
12684         * config/avr/driver-avr.c: New file.
12685         * config/avr/avr-devices.c: New file.
12686
12687 2009-06-23  Jakub Jelinek  <jakub@redhat.com>
12688
12689         * var-tracking.c (unshare_variable): Force initialized to
12690         be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
12691         (set_variable_part): Likewise.
12692         (struct variable_union_info): Remove pos_src field.
12693         (vui_vec, vui_allocated): New variables.
12694         (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
12695         unconditionally.  Avoid XCVECNEW/free for every sorting, for dst_l
12696         == 1 use a simpler sorting algorithm.  Compute pos field right
12697         away, don't fill in pos_src.  For dst_l == 2 avoid qsort.
12698         Avoid quadratic comparison if !flag_var_tracking_uninit.
12699         (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
12700         unshare_variable unconditionally.
12701         (dataflow_set_different_2): Removed.
12702         (dataflow_set_different): Don't traverse second hash table.
12703         (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
12704         unconditionally to var_reg_set or var_mem_set.
12705         (emit_notes_in_bb): Likewise.
12706         (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
12707         unshare_variable.
12708         (emit_note_insn_var_location): Don't set initialized to
12709         VAR_INIT_STATUS_INITIALIZED early.
12710         (vt_finalize): Free vui_vec if needed, clear vui_vec and
12711         vui_allocated.
12712         * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
12713
12714         * tree-object-size.c (addr_object_size): Instead of checking
12715         for non-NULL TREE_CHAIN of the FIELD_DECL check that there
12716         are no FIELD_DECLs following it.
12717
12718 2009-06-23  Andreas Krebbel  <krebbel1@de.ibm.com>
12719
12720         * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
12721         order to match bswaps with signed source operands.
12722
12723 2009-06-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12724
12725         * sdbout.c (sdbout_one_type): Fix braces in switch.
12726
12727 2009-06-23  Richard Guenther  <rguenther@suse.de>
12728
12729         * tree-ssa-structalias.c (struct variable_info): Add is_global_var
12730         member.
12731         (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
12732         readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
12733         var_callused, callused_tree, var_storedanything, storedanything_tree,
12734         var_integer, integer_tree): Remove global variables.
12735         (new_var_info): Do not pass new id, append the new var to the
12736         global variable vector.
12737         (do_ds_constraint): Use is_global_var member of the variable-info.
12738         (new_scalar_tmp_constraint_exp): Adjust.
12739         (create_function_info_for): Likewise.
12740         (create_variable_info_for): Likewise.
12741         (find_what_var_points_to): Remove dead code.
12742         (init_base_vars): Simplify.
12743         (compute_points_to_sets): Adjust.
12744
12745 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
12746
12747         * combine.c (try_combine): Dump information about the insns we're
12748         combining.
12749
12750 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
12751
12752         * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
12753         check when calling force_to_mode on TRUNCATE's operand.
12754
12755 2009-06-22  Ian Lance Taylor  <iant@google.com>
12756
12757         * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
12758
12759 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
12760
12761         * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
12762
12763 2009-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12764
12765         * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
12766         override library linkage flags such as -static-libgcc or
12767         -shared-libgcc.
12768
12769 2009-06-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
12770
12771         * config/m68k/m68k-devices.def: Add line for MCF5221x.
12772
12773 2009-06-22  Ian Lance Taylor  <iant@google.com>
12774
12775         * config/linux.opt: Put mglibc ahead of muclibc.
12776
12777         * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
12778         for duplicate decls.
12779
12780 2009-06-22  Matthias Klose  <doko@ubuntu.com>
12781
12782         * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
12783
12784 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
12785
12786         PR objc/28050
12787         * c-parser.c (c_parser_objc_message_args): Return error_mark_node
12788         instead of NULL if a parser error occurs.
12789
12790 2009-06-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12791
12792         * dwarf2out.c (dwarf2_debug_hooks): Initialize
12793         non-DWARF2_DEBUGGING_INFO version.
12794
12795 2009-06-22  Kai Tietz  <kai.tietz@onevision.com>
12796
12797         * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
12798         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
12799
12800         * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
12801         (LIBGCC2_TF_CEXT): Define.
12802         (TF_SIZE): Define.
12803
12804 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12805
12806         PR target/40463
12807         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
12808
12809 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12810
12811         * config/arm/arm.c (arm_override_options): Disable
12812         -mcaller-super-interworking and -mcallee-super-interworking.
12813         * doc/invoke.texi (ARM Options): Document this.
12814
12815 2009-06-22  Nathan Sidwell  <nathan@codesourcery.com>
12816
12817         * config/arm/arm.c (arm_print_operand): Deal with HIGH.
12818         * config/arm/constraints.md (j): New constraint for movw operands.
12819         (N): Remove thumb2 meaning.
12820         * config/arm/arm.md (*arm_movw): Delete.
12821         (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
12822         * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
12823         * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
12824
12825 2009-06-22  Martin Jambor  <mjambor@suse.cz>
12826
12827         PR tree-optimization/40492
12828         * tree-sra.c (sra_modify_assign): Pass zero offsets to
12829         build_ref_for_offset.
12830
12831 2009-06-22  Shujing Zhao  <pearly.zhao@oracle.com>
12832
12833         * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
12834         JUMP_TABLE_DATA_P predicates where applicable.
12835         * auto-inc-dec.c: Ditto.
12836         * builtins.c: Ditto.
12837         * caller-save.c: Ditto.
12838         * calls.c: Ditto.
12839         * cfgcleanup.c: Ditto.
12840         * cfglayout.c: Ditto.
12841         * cfgrtl.c: Ditto.
12842         * combine.c: Ditto.
12843         * combine-stack-adj.c: Ditto.
12844         * cse.c: Ditto.
12845         * cselib.c: Ditto.
12846         * dbxout.c: Ditto.
12847         * df-scan.c: Ditto.
12848         * dse.c: Ditto.
12849         * dwarf2asm.c: Ditto.
12850         * dwarf2out.c: Ditto.
12851         * emit-rtl.c: Ditto.
12852         * except.c: Ditto.
12853         * explow.c: Ditto.
12854         * expmed.c: Ditto.
12855         * expr.c: Ditto.
12856         * final.c: Ditto.
12857         * function.c: Ditto.
12858         * fwprop.c: Ditto.
12859         * gcse.c: Ditto.
12860         * genpreds.c: Ditto.
12861         * genrecog.c: Ditto.
12862         * ifcvt.c: Ditto.
12863         * ira-costs.c: Ditto.
12864         * ira-lives.c: Ditto.
12865         * jump.c: Ditto.
12866         * loop-iv.c: Ditto.
12867         * lower-subreg.c: Ditto.
12868         * modulo-sched.c: Ditto.
12869         * optabs.c: Ditto.
12870         * postreload.c: Ditto.
12871         * print-rtl.c: Ditto.
12872         * recog.c: Ditto.
12873         * reginfo.c: Ditto.
12874         * regmove.c: Ditto.
12875         * reload1.c: Ditto.
12876         * reload.c: Ditto.
12877         * reorg.c: Ditto.
12878         * rtlanal.c: Ditto.
12879         * rtl.c: Ditto.
12880         * sched-vis.c: Ditto.
12881         * sdbout.c: Ditto.
12882         * sel-sched-ir.c: Ditto.
12883         * simplify-rtx.c: Ditto.
12884         * targhooks.c: Ditto.
12885         * var-tracking.c: Ditto.
12886         * vmsdbgout.c: Ditto.
12887
12888 2009-06-22  Matthias Klose  <doko@ubuntu.com>
12889
12890         * Makefile.in (install-plugin): Always use DESTDIR.
12891
12892 2009-06-22  Olivier Hainque  <hainque@adacore.com>
12893
12894         * config/pa/pa.c (output_call): Don't optimize post call jumps
12895         into return address adjustments if the call may throw.
12896
12897 2009-06-21  Richard Earnshaw  <rearnsha@arm.com>
12898
12899         * arm.c (thumb1_output_casesi): New function.
12900         * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
12901         optimizing for size or PIC.
12902         (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
12903         * arm.md (UNSPEC_THUMB1_CASESI): New constant.
12904         (casesi): Handle Thumb-1 when optimizing for size or PIC.
12905         (thumb1_casesi_internal_pic): New expand rule.
12906         (thumb1_casesi_dispatch): New pattern.
12907         * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
12908         thumb-1 mode.
12909         * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
12910         in the text seciton when PIC or optimizing for size.
12911         * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
12912         * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
12913         preservation properties of code.
12914         (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
12915         (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
12916         (__gnu_thumb1_case_si): New function.
12917         * t-arm (LIB1ASMSRC): Define here.
12918         (LIB1ASMFUNCS): Add some common functions.
12919         * t-arm-elf (LIB1ASMSRC): Delete.
12920         (LIB1ASMFUNCS): Append to existing set.
12921         * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12922         * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12923         * t-symbian (LIB1ASMFUNCS): Likewise.
12924         * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12925         * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12926
12927 2009-06-21  Richard Guenther  <rguenther@suse.de>
12928
12929         PR tree-optimization/38729
12930         * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
12931         to loops with a single exit if -fno-expensive-optimizations.
12932
12933 2009-06-21  Jakub Jelinek  <jakub@redhat.com>
12934
12935         * var-tracking.c (struct shared_hash_def, shared_hash): New types.
12936         (dataflow_set): Change vars type from htab_t to shared_hash.
12937         (shared_hash_pool, empty_shared_hash): New variables.
12938         (vars_clear): Removed.
12939         (shared_hash_shared, shared_hash_htab, shared_hash_copy,
12940         shared_hash_find_slot_unshare, shared_hash_find_slot,
12941         shared_hash_find_slot_noinsert, shared_hash_find): New
12942         static inlines.
12943         (shared_hash_unshare, shared_hash_destroy): New functions.
12944         (unshare_variable): Unshare set->vars if shared, use
12945         shared_hash_htab.
12946         (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
12947         (get_init_value, find_src_set_src, dump_dataflow_set,
12948         clobber_variable_part, emit_notes_for_differences): Use
12949         shared_hash_htab.
12950         (dataflow_set_init): Remove second argument, set vars to
12951         empty_shared_hash instead of creating a new htab.
12952         (dataflow_set_clear): Call shared_hash_destroy and set vars
12953         to empty_shared_hash instead of calling vars_clear.
12954         (dataflow_set_copy): Don't call vars_copy, instead just share
12955         the src htab with dst.
12956         (variable_union): Use shared_hash_*, use initially NO_INSERT
12957         lookup if set->vars is shared.  Don't keep slot cleared before
12958         calling unshare_variable.  Unshare set->vars if needed.
12959         Even ->refcount == 1 vars must be unshared if set->vars is shared
12960         and var needs to be modified.
12961         (variable_canonicalize): New function.
12962         (dataflow_set_union): If dst->vars is empty, just share src->vars
12963         with dst->vars and traverse with variable_canonicalize to canonicalize
12964         and unshare what is needed.
12965         (dataflow_set_different): If old_set and new_set use the same shared
12966         htab, they aren't different.  If number of htab elements is different,
12967         htabs are different.  Use shared_hash_*.
12968         (dataflow_set_destroy): Call shared_hash_destroy instead of
12969         htab_delete.
12970         (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
12971         second argument to dataflow_set_init.
12972         (vt_initialize): Likewise.  Initialize shared_hash_pool and
12973         empty_shared_hash, move bb in/out initialization afterwards.
12974         Use variable_htab_free instead of NULL as changed_variables del hook.
12975         (variable_was_changed): Change type of second argument to pointer to
12976         dataflow_set.  When inserting var into changed_variables, bump
12977         refcount.  Unshare set->vars if set is shared htab and slot needs to
12978         be cleared.
12979         (set_variable_part): Use shared_hash_*, use initially NO_INSERT
12980         lookup if set->vars is shared.  Unshare set->vars if needed.
12981         Even ->refcount == 1 vars must be unshared if set->vars is shared
12982         and var needs to be modified.  Adjust variable_was_changed caller.
12983         (delete_variable_part): Use shared_hash_*.  Even ->refcount == 1
12984         vars must be unshared if set->vars is shared and var needs to be
12985         modified.  Adjust variable_was_changed caller.
12986         (emit_note_insn_var_location): Don't pool_free var.
12987         (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
12988         instead of 1.
12989         (vt_finalize): Call htab_delete on empty_shared_hash->htab and
12990         free_alloc_pool on shared_hash_pool.
12991
12992 2009-06-20  Anthony Green  <green@moxielogic.com>
12993
12994         * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
12995         * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
12996
12997 2009-06-20  Richard Guenther  <rguenther@suse.de>
12998
12999         * tree-ssa-structalias.c (find_func_aliases): For memset use
13000         a constraint from NULL if we memset to zero.
13001         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
13002         we explicitly handle that do not read from memory.
13003         (call_may_clobber_ref_p_1): Properly handle builtins that may
13004         set errno.
13005
13006 2009-06-20  Richard Guenther  <rguenther@suse.de>
13007
13008         PR tree-optimization/40495
13009         * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
13010         (new_scalar_tmp_constraint_exp): New function.
13011         (process_constraint): Do not create temporary decls.
13012         (process_all_all_constraints): Likewise.
13013         (handle_const_call): Likewise.
13014         (create_function_info_for): Do not set decl.
13015
13016 2009-06-19  Ian Lance Taylor  <iant@google.com>
13017
13018         * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
13019         (rs6000_attribute_table): Make static; move before use.
13020
13021 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
13022
13023         * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
13024         <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
13025         Propagate the TREE_READONLY flag without overwriting it.
13026         (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
13027         Propagate the TREE_READONLY flag onto the result.
13028         (process_call_operands): Move around.  Use correct constant value.
13029
13030 2009-06-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13031
13032         PR target/40482
13033         * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
13034         * config/arm/arm.md: Likewise.
13035
13036 2009-06-19  Ian Lance Taylor  <iant@google.com>
13037
13038         * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
13039         to GIMPLE_ERROR_MARK.
13040
13041         * c-typeck.c (build_conditional_expr): Add op1_original_type and
13042         op2_original_type parameters.  Warn about using different enum types.
13043         * c-parser.c (c_parser_conditional_expression): Pass original
13044         types to build_conditional_expr.
13045         * c-tree.h (build_conditional_expr): Update declaration.
13046
13047 2009-06-19  Ian Lance Taylor  <iant@google.com>
13048
13049         * config/i386/i386.c (ix86_function_specific_save): Test that
13050         fields match values, rather than testing the values are in a
13051         certain range.
13052
13053 2009-06-19  Richard Guenther  <rguenther@suse.de>
13054
13055         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
13056         ADDR_EXPR pointers.
13057         (ptr_derefs_may_alias_p): Likewise.
13058         (ptr_deref_may_alias_ref_p_1): New function.
13059         (ptr_deref_may_alias_ref_p): Likewise.
13060         (ref_maybe_used_by_call_p_1): Handle builtins that are not
13061         covered by looking at the ESCAPED solution.
13062         (call_may_clobber_ref_p_1): Likewise.
13063         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
13064         Handle NULL_TREE offset.  Do not produce redundant constraints.
13065         (process_all_all_constraints): New helper function.
13066         (do_structure_copy): Use it.
13067         (handle_lhs_call): Likewise.
13068         (find_func_aliases): Handle some builtins with pointer arguments
13069         and/or return values explicitly.
13070
13071 2009-06-19  Ian Lance Taylor  <iant@google.com>
13072
13073         * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
13074
13075 2009-06-19  Ian Lance Taylor  <iant@google.com>
13076
13077         * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
13078
13079 2009-06-19  Ian Lance Taylor  <iant@google.com>
13080
13081         * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
13082         * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
13083         version.
13084
13085         * c-decl.c (finish_decl): If -Wc++-compat, warn about
13086         uninitialized const.
13087
13088 2009-06-19  Ian Lance Taylor  <iant@google.com>
13089
13090         * dse.c (struct store_info): Rename bitmap field to bmap.  Change
13091         all uses.
13092
13093         * c-decl.c (in_struct, struct_types): Remove.
13094         (struct c_binding): Add in_struct field.
13095         (c_binding_ptr): Define type, along with VEC.
13096         (struct c_struct_parse_info): Define.
13097         (struct_parse_info): New static variable.
13098         (bind): Initialize in_struct field.
13099         (start_struct): Remove enclosing_in_struct and
13100         enclosing_struct_types parameters.  Add
13101         enclosing_struct_parse_info parameter.  Change all callers.  Set
13102         struct_parse_info rather than in_struct and struct_types.
13103         (grokfield): If -Wc++-compat and there is a symbol binding for the
13104         field name, set the in_struct flag and push it on the
13105         struct_parse_info->fields vector.
13106         (warn_cxx_compat_finish_struct): New static function.
13107         (finish_struct): Remove enclosing_in_struct and
13108         enclosing_struct_types parameters.  Add
13109         enclosing_struct_parse_info parameter.  Change all callers.  Don't
13110         set C_TYPE_DEFINED_IN_STRUCT here.  Call
13111         warn_cxx_compat_finish_struct.  Free struct_parse_info and set to
13112         parameter.  Only push on struct_types if warn_cxx_compat.
13113         (finish_enum): Only push on struct_types if warn_cxx_compat.
13114         (declspecs_add_type): Add loc parameter.  Change all callers.
13115         Change all error calls to error_at.  Pass loc, not input_location,
13116         to pedwarn calls.  Warn if -Wc++-compat and a typedef name is
13117         defined in a struct.  If -Wc++-compat and parsing a struct, record
13118         that a typedef name was used.
13119         * c-parser.c (c_parser_declspecs): Get location to pass to
13120         declspecs_add_type.
13121         (c_parser_struct_or_union_specifier): Update calls to start_struct
13122         and finish_struct.
13123         * c-tree.h (struct c_struct_parse_info): Declare.
13124         (finish_struct, start_struct): Update declarations.
13125         (declspecs_add_type): Update declaration.
13126
13127 2009-06-19  Ian Lance Taylor  <iant@google.com>
13128
13129         * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
13130         variable with an anonymous type.
13131
13132 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
13133
13134         * see.c: Remove for real.
13135
13136 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
13137
13138         * optabs.h (enum optab_index): Add new OTI_significand.
13139         (significand_optab): Define corresponding macro.
13140         * optabs.c (init_optabs): Initialize significand_optab.
13141         * genopinit.c (optabs): Implement significand_optab using
13142         significand?f2 patterns.
13143         * builtins.c (expand_builtin_mathfn): Handle
13144         BUILT_IN_SIGNIFICAND{,F,L}.
13145         (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
13146         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
13147
13148         * config/i386/i386.md (significandxf2, significand<mode>2): New
13149         expanders to implement significandf, significand and significandl
13150         built-ins as inline x87 intrinsics.
13151
13152 2009-06-18  Anatoly Sokolov  <aesok@post.ru>
13153
13154         * config/avr/avr.c (avr_override_options): Remove setting value of
13155         PARAM_INLINE_CALL_COST.
13156
13157 2009-06-18  Richard Henderson  <rth@redhat.com>
13158
13159         PR 40488
13160         * tree-pass.h (TDF_ASMNAME): New.
13161         * tree-dump.c (dump_options): Add asmname.
13162         * doc/invoke.texi: Document it.
13163
13164         * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
13165         (dump_decl_name): ...here.
13166         (dump_function_name): New flags arg; mind TDF_ASMNAME.
13167         (dump_generic_node): Update dump_function_name calls.
13168         (print_call_name): New flags arg; update all dump calls.
13169         * diagnostic.h (print_call_name): Update.
13170         * gimple-pretty-print.c (dump_gimple_call): Update.
13171
13172 2009-06-18  H.J. Lu  <hongjiu.lu@intel.com>
13173
13174         PR target/40470
13175         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
13176
13177 2009-06-18  Diego Novillo  <dnovillo@google.com>
13178
13179         * doc/plugins.texi: Document plugin_is_GPL_compatible.
13180         * plugin.c (str_license): Declare.
13181         (try_init_one_plugin): Assert that the symbol
13182         'plugin_is_GPL_compatible' exists.
13183
13184 2009-06-18  Sergei Dyshel  <sergeid@il.ibm.com>
13185
13186         * see.c: Remove.
13187         * Makefile.in (OBJS-common): Remove see.o.
13188         (see.o): Remove.
13189         * common.opt (fsee): Mark as preserved for backward compatibility.
13190         * opts.c (common_handle_option): Add OPT_fsee to the backward
13191         compatibility section.
13192         * passes.c (init_optimization_passes, pass_see): Remove pass.
13193         * timevar.def (TV_SEE): Remove.
13194         * tree-pass.h (pass_see): Remove declaration.
13195         * doc/invoke.texi (-fsee): Remove documentation.
13196
13197 2009-06-18  Martin Jambor  <mjambor@suse.cz>
13198
13199         * tree-sra.c: Include statistics.h
13200         (sra_stats): New variable.
13201         (sra_initialize): Clear sra_stats.
13202         (create_access_replacement): Increment sra_stats.replacements.
13203         (get_access_replacement): Do not return twice.
13204         (analyze_all_variable_accesses): Increment statistics counter by the
13205         number of scalarized aggregates.
13206         (generate_subtree_copies): Increment sra_stats.subtree_copies.
13207         (sra_modify_expr): Increment sra_stats.exprs.
13208         (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
13209         (sra_modify_assign): Increment sra_stats.exprs,
13210         sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
13211         (perform_intra_sra): Update statistics counters.
13212         * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
13213
13214 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
13215
13216         * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
13217         (arm_scalar_mode_supported_p): New function.
13218
13219 2009-06-18  Paul Brook  <paul@codesourcery.com>
13220             Sandra Loosemore  <sandra@codesourcery.com>
13221
13222         * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
13223         (__extendhfsf2, __truncsfhf2): Define.
13224         * config/arm/fp16.c: New file.
13225         * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
13226         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA):  Add fp16.c.
13227
13228 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
13229
13230         * doc/extend.texi (Half-Precision): New section.
13231         * doc/invoke.texi (Option Summary): List -mfp16-format.
13232         (ARM Options): List neon-fp16 as -mfpu value.  Document -mfp16-format.
13233         * config/arm/arm.opt (mfp16-format=): New.
13234         * config/arm/arm.c: Include intl.h.
13235         (TARGET_INVALID_PARAMETER_TYPE): Redefine.
13236         (TARGET_INVALID_RETURN_TYPE): Redefine.
13237         (TARGET_PROMOTED_TYPE): Redefine.
13238         (TARGET_CONVERT_TO_TYPE): Redefine.
13239         (arm_fp16_format): Define.
13240         (all_fpus): Add entry for neon-fp16.
13241         (fp_model_for_fpu): Likewise.
13242         (struct fp16_format): Declare.
13243         (all_fp16_formats): Define.
13244         (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
13245         functions.
13246         (arm_override_options): Set arm_fp16_format. Call sorry for fp16
13247         and no ldrh.
13248         (arm_legitimate_index_p): Treat HFmode like HImode.
13249         (thumb1_legitimate_address_p): Make it recognize HFmode constants.
13250         (coproc_secondary_reload_class): Special-case HFmode.
13251         (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
13252         (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
13253         (arm_init_fp16_builtins): New.
13254         (arm_init_builtins): Call it.
13255         (arm_invalid_parameter_type): New.
13256         (arm_invalid_return_type): New.
13257         (arm_promoted_type): New.
13258         (arm_convert_to_type).
13259         (arm_file_start): Deal with neon-fp16 as fpu_name.  Emit tag for fp16
13260         format.
13261         (arm_emit_fp16_const): New function.
13262         (arm_mangle_type): Mangle __fp16 as "Dh".
13263         * config/arm/arm.h (TARGET_VFPD32): Make it know about
13264         FPUTYPE_NEON_FP16.
13265         (TARGET_NEON_FP16): New.
13266         (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
13267         (enum fputype): Add FPUTYPE_NEON_FP16.
13268         (enum arm_fp16_format_type): Declare.
13269         (arm_fp16_format): Declare.
13270         (LARGEST_EXPONENT_IS_NORMAL): Define.
13271         * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
13272         * config/arm/arm-modes.def (HFmode): Define.
13273         * config/arm/vfp.md (*movhf_vfp): New.
13274         (extendhfsf2): New.
13275         (truncsfhf2): New.
13276         * config/arm/arm.md (fpu): Add neon_fp16.
13277         (floatsihf2, floatdihf2): New.
13278         (fix_trunchfsi2, fix_trunchfdi2): New.
13279         (truncdfhf2): New.
13280         (extendhfdf2): New.
13281         (movhf): New.
13282         (*arm32_movhf): New.
13283         (*thumb1_movhf): New.
13284         (consttable_2): Add check for HFmode constants.
13285         (consttable_4): Handle HFmode constants.
13286
13287 2009-06-18  Uros Bizjak  <ubizjak@gmail.com>
13288
13289         * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
13290
13291 2009-06-17  Olivier Hainque  <hainque@adacore.com>
13292
13293         * collect2.c (main): Use CONST_CAST2 to perform char ** to
13294         const char ** conversion in AIX specific section.
13295
13296 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
13297
13298         * config/i386/i386.c (ix86_special_builtin_type): Remove
13299         UINT64_FTYPE_PINT.  Add UINT64_FTYPE_PUNSIGNED.
13300         (bdesc_special_args): Updated.
13301         (ix86_init_mmx_sse_builtins): Likewise.
13302         (ix86_expand_special_args_builtin): Likewise.
13303
13304 2009-06-17  Richard Henderson  <rth@redhat.com>
13305
13306         * tree-pretty-print.c (maybe_dump_asm_name): New.
13307         (dump_decl_name): Use it.
13308         (PRINT_FUNCTION_NAME): Merge into...
13309         (dump_function_name): ... here.  Use maybe_dump_asm_name.
13310
13311 2009-06-17  Cary Coutant  <ccoutant@google.com>
13312
13313         * dbxout.c (dbxout_source_line): Add is_stmt parameter.
13314         Change caller.
13315         * debug.c (struct gcc_debug_hooks): Change placeholder for
13316         source_line hook.
13317         (debug_nothing_int_charstar_int): Replaced by...
13318         (debug_nothing_int_charstar_int_bool): ...this.
13319         * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
13320         source_line prototype.
13321         (debug_nothing_int_charstar_int): Replaced by...
13322         (debug_nothing_int_charstar_int_bool): ...this.
13323         * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
13324         * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
13325         Output is_stmt operand when necessary.
13326         * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
13327         (notice_source_line): Add is_stmt parameter.
13328         * sdbout.c (sdbout_source_line): Add is_stmt parameter.
13329         * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
13330         Change callers.
13331         * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
13332         * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
13333
13334 2009-06-17  Ian Lance Taylor  <iant@google.com>
13335
13336         * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
13337         Change all uses.
13338         (struct store_by_pieces_d): Rename from store_by_pieces.  Change
13339         call uses.
13340
13341 2009-06-17  Adam Nemet  <anemet@caviumnetworks.com>
13342
13343         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
13344         STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
13345         tree_strip_sign_nop_conversions and
13346         tree_ssa_strip_useless_type_conversions rather than stripping
13347         the operations here.
13348         (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
13349         Declare them.
13350         * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
13351         * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
13352         * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
13353         tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
13354         functions.
13355
13356 2009-06-17  Michael Eager  <eager@eagercon.com>
13357
13358         * config/rs6000/constraints.md (register_constraint "d"): New.
13359         * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
13360         truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
13361         *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
13362         *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
13363         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
13364         divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
13365         fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
13366         * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
13367         __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
13368         __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
13369         __fctiwz): Same.
13370         * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
13371         *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
13372         *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
13373         *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
13374         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
13375         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
13376         stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
13377         *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
13378         *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
13379         trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
13380         *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
13381         *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
13382         *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
13383         * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
13384
13385 2009-06-16  Ian Lance Taylor  <iant@google.com>
13386
13387         * profile.c (total_num_never_executed): Don't define.
13388         (compute_branch_probabilities): Don't count or print
13389         num_never_executed.
13390         (init_branch_prob): Don't set total_num_never_executed.
13391         (end_branch_prob): Don't print total_num_never_executed.
13392
13393 2009-06-17  David Daney  <ddaney@caviumnetworks.com>
13394
13395         * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
13396
13397 2009-06-17  David Edelsohn  <edelsohn@gnu.org>
13398
13399         * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
13400         (nabstd2_fpr): Same.
13401
13402 2009-06-17  Steve Ellcey  <sje@cup.hp.com>
13403
13404         * expr.c (expand_assignment): Change complex type check.
13405
13406 2009-06-17  Basile Starynkevitch  <basile@starynkevitch.net>
13407
13408         * doc/plugins.texi (Building GCC plugins): Added new section.
13409
13410 2009-06-17  Ian Lance Taylor  <iant@google.com>
13411
13412         * c-pch.c (get_ident): Don't set size of templ array.
13413         (pch_init): Don't set size of partial_pch array.
13414
13415         * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
13416         string constant to intialize an array whose size is the length of
13417         the string.
13418
13419 2009-06-17  Richard Guenther  <rguenther@suse.de>
13420
13421         PR tree-optimization/40389
13422         * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
13423         to addressable types.
13424         * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
13425
13426 2009-06-17  Richard Guenther  <rguenther@suse.de>
13427
13428         PR middle-end/40460
13429         * tree-chrec.h (build_polynomial_chrec): If we cannot determine
13430         if there is no evolution of left in the loop bail out.
13431         * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
13432         chrec_fold_multiply.
13433
13434 2009-06-16  J"orn Rennecke  <joern.rennecke@arc.com>
13435             Janis Johnson  <janis187@us.ibm.com>
13436
13437         PR target/39254
13438         * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
13439         for the symbol ref of a constant that is the source of a move
13440         - nor for any other not-obvious-label-ref constants.
13441
13442 2009-06-16  Olatunji Ruwase  <tjruwase@google.com>
13443
13444         * plugin.c (position_pass): Skip newly inserted pass during list
13445         traversal to avoid repeated insertion.
13446
13447 2009-06-16  Ian Lance Taylor  <iant@google.com>
13448
13449         * vec.h (VEC_stack_alloc): Define different version if
13450         GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
13451         (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
13452         (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
13453         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
13454
13455 2009-06-16  H.J. Lu  <hongjiu.lu@intel.com>
13456
13457         * config.gcc (extra_headers): Add ia32intrin.h for x86.
13458
13459         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
13460         IX86_BUILTIN_BSRDI.  IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
13461         IX86_BUILTIN_RDTSCP.  IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
13462         IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
13463         (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
13464         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
13465         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
13466         (bdesc_special_args): Add __builtin_ia32_rdtsc and
13467         __builtin_ia32_rdtscp.
13468         (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
13469         __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
13470         and __builtin_ia32_rorhi.
13471         (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
13472         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
13473         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
13474         (ix86_expand_args_builtin): Likewise.
13475         (ix86_expand_special_args_builtin): Likewise.
13476
13477         * config/i386/i386.md (UNSPECV_RDTSCP): New.
13478         (UNSPECV_RDTSC): Likewise.
13479         (UNSPECV_RDPMC): Likewise.
13480         (*bsr): Renamed to ...
13481         (bsr): This
13482         (*bsr_rex64): Renamed to ...
13483         (bsr_rex64): This.
13484         (rdpmc): New.
13485         (*rdpmc): Likewise.
13486         (*rdpmc_rex64): Likewise.
13487         (rdtsc): Likewise.
13488         (*rdtsc): Likewise.
13489         (*rdtsc_rex64): Likewise.
13490         (rdtscp): Likewise.
13491         (*rdtscp): Likewise.
13492         (*rdtscp_rex64): Likewise.
13493
13494         * config/i386/ia32intrin.h: New.
13495
13496         * config/i386/x86intrin.h: Include <ia32intrin.h>.
13497
13498 2009-06-16  Ian Lance Taylor  <iant@google.com>
13499
13500         * ira-build.c (copy_info_to_removed_store_destinations):
13501         Initialize parent_a.
13502
13503 2009-06-16  Ian Lance Taylor  <iant@google.com>
13504
13505         * c-decl.c (grokdeclarator): Change size_varies to bool.
13506
13507 2009-06-16  Ian Lance Taylor  <iant@google.com>
13508
13509         * sel-sched.c: Make forward declarations of move_op_hooks and
13510         fur_hooks explicitly extern.
13511
13512 2009-06-16  Ian Lance Taylor  <iant@google.com>
13513
13514         * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
13515         * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
13516
13517 2009-06-16  Ian Lance Taylor  <iant@google.com>
13518
13519         * resource.c (mark_referenced_resources): Change
13520         include_delayed_effects parameter to bool.  Change all callers.
13521         (mark_end_of_function_resources): Likewise.
13522         * reorg.c (insn_references_resource_p): Likewise.
13523         (insn_sets_resource_p): Likewise.
13524         * resource.h (mark_referenced_resources): Update declaration.
13525         (mark_end_of_function_resources): Update declaration.
13526
13527 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
13528
13529         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
13530
13531 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
13532
13533         * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
13534         GCC can bootstrap on AIX with GNU Binutils 2.20.
13535
13536 2009-06-16  Ian Lance Taylor  <iant@google.com>
13537
13538         * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
13539
13540 2009-06-16  Ian Lance Taylor  <iant@google.com>
13541
13542         * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
13543         inline, not extern inline.
13544         (exact_log2): Likewise.
13545         * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
13546         test CLZ_HWI.
13547         (exact_log2): Likewise, but don't test CTZ_HWI.
13548
13549 2009-06-16  Ian Lance Taylor  <iant@google.com>
13550
13551         * bitmap.c (bitmap_clear): Don't declare as inline.
13552         * gimple.c (gimplify_assign): Likewise.
13553         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
13554         * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
13555         (sched_scan_info): Remove duplicate definition.
13556
13557 2009-06-16  Ian Lance Taylor  <iant@google.com>
13558
13559         * c-common.c (skip_evaluation): Don't define.
13560         (c_inhibit_evaluation_warnings): Define global variable.
13561         (overflow_warning): Check c_inhibit_evaluation_warnings rather
13562         than skip_evaluation.
13563         (convert_and_check, warn_for_div_by_zero): Likewise.
13564         * c-common.h (skip_evaluation): Don't declare.
13565         (c_inhibit_evaluation_warnings): Declare.
13566         * c-parser.c (c_parser_typeof_specifier): Set
13567         c_inhibit_evaluation_warnings rather than skip_evaluation.
13568         (c_parser_conditional_expression): Likewise.
13569         (c_parser_binary_expression): Likewise.
13570         (c_parser_sizeof_expression): Likewise.
13571         (c_parser_alignof_expression): Likewise.
13572         * c-typeck.c (build_indirect_ref): Check
13573         c_inhibit_evaluation_warnings rather than skip_evaluation.
13574         (build_conditional_expr, build_binary_op): Likewise.
13575
13576 2009-06-16  Richard Guenther  <rguenther@suse.de>
13577
13578         * tree-ssa-alias.c (is_escape_site): Remove.
13579         * tree-ssa-alias.h (enum escape_type): Remove.
13580         (is_escape_site): Likewise.
13581         * tree-ssa-structalias.c (find_func_aliases): Handle escapes
13582         via casts and asms without deferring to is_escape_site.
13583
13584 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
13585
13586         PR middle-end/40446
13587         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
13588         use gen_lowpart if op0 has complex mode.
13589
13590 2009-06-16  Richard Guenther  <rguenther@suse.de>
13591
13592         * tree-ssa-structalias.c (do_ds_constraint): Stores in global
13593         variables add them to ESCAPED.
13594         (find_func_aliases): Do not make all indirectly stored values escaped.
13595
13596 2009-06-16  Rafael Avila de Espindola  <espindola@google.com>
13597
13598         * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
13599         make_decl_one_only.
13600
13601 2009-06-16  Martin Jambor  <mjambor@suse.cz>
13602
13603         PR tree-optimization/40432
13604         * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
13605         check whether we need to force gimple register operand.
13606
13607 2009-06-16  Martin Jambor  <mjambor@suse.cz>
13608
13609         PR tree-optimization/40413
13610         * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
13611         build_ref_for_offset.
13612         (propagate_subacesses_accross_link): Fix a typo in a comment.
13613
13614 2009-06-16  Ira Rosen  <irar@il.ibm.com>
13615
13616         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
13617         with additional parameter.
13618         * tree-vectorizer.h (enum vect_def_type): Add new value
13619         vect_nested_cycle.
13620         (enum vect_relevant): Add comments.
13621         (vect_is_simple_reduction): Add new argument.
13622         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
13623         Detect nested cycles.
13624         (vect_is_simple_reduction): Update documentation, add an argument to
13625         distinguish inner-loop reduction from nested cycle, detect nested
13626         cycles, fix printings and indentation, don't swap operands in case
13627         of nested cycle.
13628         (get_initial_def_for_reduction): Handle subtraction.
13629         (vect_create_epilog_for_reduction): Add new argument to specify
13630         reduction variable.
13631         (vect_finalize_reduction): Handle subtraction, fix comments.
13632         (vectorizable_reduction): Handle nested cycles. In case of nested
13633         cycle keep track of the reduction variable position. Call
13634         vect_is_simple_reduction with additional parameter. Use original
13635         statement code in reduction epilogue for nested cycle. Call
13636         vect_create_epilog_for_reduction with additional parameter.
13637         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
13638         inner-loop vectorization.
13639         (vect_recog_widen_sum_pattern): Likewise.
13640         * tree-vect-stmts.c (process_use): Distinguish between nested cycles
13641         and reductions.
13642         (vect_mark_stmts_to_be_vectorized): Likewise.
13643         (vect_get_vec_def_for_operand): Handle nested cycles.
13644
13645 2009-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13646
13647         * doc/invoke.texi (Debugging Options): Fix option index entries
13648         for -fdump-statistics, -frandom-seed add entries for
13649         -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
13650         (FRV Options): Fix entries for -mTLS, -mtls.
13651         (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
13652         (i386 and x86-64 Options): Fix entry for -mno-red-zone.
13653         (M68hc1x Options): Fix @itemx for -mnominmax.
13654         (MCore Options): Fix entry for -mno-lsim.
13655         (MMIX Options): Fix entry for -mabi=mmixware.
13656         (PDP-11 Options): Fix entry for -mbcopy-builtin.
13657
13658 2009-06-16  Basile Starynkevitch  <basile@starynkevitch.net>
13659
13660         * doc/plugins.texi (Interacting with the GCC Garbage Collector):
13661         Mention the plugin mode of gengtype.
13662         * doc/gty.texi (Source Files Containing Type Information): Likewise.
13663         * gengtype.c: Updated copyright.
13664         (plugin_files, nb_plugin_files) Added new static variables.
13665         (measure_input_list) Care about plugin_files.
13666         (write_rtx_next): Added early return in plugin mode.
13667         (create_file): Updated copyright year in generated file. Added
13668         asserts.
13669         (oprintf): Added early return if NULL outf.
13670         (get_output_file_with_visibility): Care of plugin_files.
13671         (get_output_file_name): May return null.
13672         (write_local): Added early return.
13673         (put_mangled_filename): Ditto.
13674         (finish_root_table): Added check for base_files.
13675         (write_roots): Care about null when plugins.
13676         (main): Added plugin mode.
13677
13678 2009-06-15  Ian Lance Taylor  <iant@google.com>
13679
13680         * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
13681         * gcov.c (read_count_file): Add braces around variables declared
13682         before label.
13683
13684         * c.opt (Wjump-misses-init): New warning.
13685         * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
13686         -Wall and -Wc++-compat if not already set.
13687         (c_common_post_options): Clear warn_jump_misses_init if it was not
13688         set.
13689         * c-decl.c (struct c_binding): Change type field to a union with
13690         new label field.  Make it the first field in the struct.  Update
13691         references to type to use u.type instead.
13692         (struct c_spot_bindings): Define.
13693         (struct c_goto_bindings): Define.
13694         (c_goto_bindings_p): Define, along with VECs.
13695         (struct c_label_vars): Define.
13696         (struct c_scope): Add has_label_bindings field.
13697         (bind_label, set_spot_bindings): New static functions.
13698         (decl_jump_unsafe, update_spot_bindings): New static functions.
13699         (update_label_decls): New static function.
13700         (pop_scope): Call update_label_decls.  Don't call c_end_vm_scope.
13701         Update binding u.label field to shadowed field.
13702         (c_binding_start_stmt_expr): New function.
13703         (c_binding_end_stmt_expr): New function.
13704         (pushdecl): Don't call c_begin_vm_scope.
13705         (make_label): Add defining and p_label_vars parameters.  Change
13706         all callers.
13707         (lookup_label): Correct test for whether a label has not yet been
13708         defined.  Call bind_label rather than bind.
13709         (warn_about_goto): New static function.
13710         (lookup_label_for_goto): New function.
13711         (declare_label): Call bind_label rather than bind.
13712         (check_earlier_gotos): New static function.
13713         (define_label): Don't give errors about jumping into statement
13714         expressions or scopes of variably modified types.  Call
13715         set_spot_bindings and check_earlier_gotos.  Call bind_label
13716         instead of bind.  Don't set label_context_stack_se or
13717         label_context_stack_vm.
13718         (c_get_switch_bindings): New function.
13719         (c_release_switch_bindings): New function.
13720         (c_check_switch_jump_warnings): New function.
13721         (start_function): Don't set label_context_stack_se or
13722         label_context_stack_vm.
13723         (finish_function): Likewise.
13724         * c-typeck.c (label_context_stack_se): Don't define.
13725         (label_context_stack_vm): Don't define.
13726         (c_finish_goto_label): Call lookup_label_for_goto rather than
13727         lookup_label.  Don't give errors about jumping into a statement
13728         expression or the scope of a variably modified type.  Don't set
13729         label_context_stack_se or label_context_stack_vm.
13730         (struct c_switch): Remove blocked_stmt_expr and blocked_vm
13731         fields.  Add bindings field.
13732         (c_start_case): Don't set deleted fields.  Set bindings field.
13733         (do_case): Rework order of tests.  Don't check blocked_stmt_expr
13734         or blocked_vm.  Call c_check_switch_jump_warnings.
13735         (c_finish_case): Don't test blocked_stmt_expr field.  Call
13736         c_release_switch_bindings.
13737         (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
13738         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
13739         set label_context_stack_se.  Call c_bindings_start_stmt_expr.
13740         (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
13741         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
13742         set label_context_stack_se.  Call c_bindings_end_stmt_expr.
13743         (c_begin_vm_scope, c_end_vm_scope): Don't define.
13744         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
13745         (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
13746         (C_DECL_UNJUMPABLE_VM): Don't define.
13747         (C_DECL_UNDEFINABLE_VM): Don't define.
13748         (struct c_label_list): Don't define.
13749         (struct c_label_context_se): Don't define.
13750         (struct c_label_context_vm): Don't define.
13751         (struct c_spot_bindings): Declare.
13752         (c_bindings_start_stmt_expr): Declare.
13753         (c_bindings_end_stmt_expr): Declare.
13754         (lookup_label_for_goto): Declare.
13755         (c_get_switch_bindings, c_release_switch_bindings): Declare.
13756         (c_check_switch_jump_warnings): Declare.
13757         (label_context_stack_se, label_context_stack_vm): Don't declare.
13758         (c_finish_goto_label): Update declaration.
13759         (c_begin_vm_scope, c_end_vm_scope): Don't declare.
13760         * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
13761         (Warning Options): Document -Wjump-misses-init.
13762
13763 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
13764
13765         * tree-object-size.c (addr_object_size): Fix a pasto in the last
13766         change.
13767
13768 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
13769
13770         * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
13771
13772 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
13773
13774         * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
13775
13776 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
13777
13778         * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
13779
13780 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
13781
13782         * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
13783         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
13784         * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
13785         * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
13786         * dwarf2asm.c (dw2_force_const_mem): Update call to
13787         make_decl_one_only.
13788         * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
13789         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
13790         * langhooks.c (lhd_comdat_group): Remove.
13791         * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
13792         * tree.h (DECL_COMDAT_GROUP): New.
13793         (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
13794         (tree_decl_with_vis): Add comdat_group. Remove one_only.
13795         (make_decl_one_only): Change signature.
13796         * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
13797         make_decl_one_only.
13798         (make_decl_one_only): Change signature.
13799         (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
13800
13801 2009-06-15  Richard Guenther  <rguenther@suse.de>
13802
13803         PR middle-end/40439
13804         * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
13805
13806 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13807
13808         * tree-ssa-math-opts.c: Remove extra divide.
13809
13810 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13811
13812         * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
13813
13814 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13815
13816         * passes.c: Add bswap pass.
13817         * tree-pass.h: Add pass_optimize_bswap declaration.
13818         * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
13819         Include rtl.h, expr.h and optabs.h for optab_handler check.
13820         (struct symbolic_number, pass_optimize_bswap): New definition.
13821         (do_shift_rotate, verify_symbolic_number_p): New functions.
13822         (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
13823         (gate_optimize_bswap): New function.
13824         * tree.c (widest_int_cst_value): New function.
13825         * tree.h (widest_int_cst_value): Prototype added.
13826
13827 2009-06-14  Steven Bosscher  <steven@gcc.gnu.org>
13828
13829         * cfgcleanup.c (old_insns_match_p): Remove code to substitute
13830         REG_EQUAL/REG_EQUIV notes.
13831
13832 2009-06-14  Richard Guenther  <rguenther@suse.de>
13833
13834         PR middle-end/40389
13835         * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
13836         has its address taken if NRV was applied and it is addressable.
13837         * tree-ssa-structalias.c (get_constraint_for_address_of): New
13838         function split out from ...
13839         (get_constraint_for_1): ... here.
13840         (handle_rhs_call): Use it to mark the return slot escaped if
13841         it is addressable and NRV was applied.
13842
13843 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
13844
13845         * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
13846         Change first argument type to location_t.
13847         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
13848         Do not set input_location.
13849         Use loc instead of input_location throughout.
13850
13851 2009-06-13  Richard Guenther  <rguenther@suse.de>
13852
13853         PR tree-optimization/40421
13854         * tree-predcom.c (should_unroll_loop_p): Remove.
13855         (tree_predictive_commoning_loop): Use can_unroll_loop_p.
13856
13857 2009-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
13858
13859         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13860         Add location argument.
13861
13862 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
13863
13864         * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
13865         build_decl.
13866         * config/s390/s390.c (s390_build_builtin_va_list): Same.
13867         (s390_gimplify_va_arg): Pass location to create_artificial_label.
13868         * config/spu/spu-protos.h: Add location to
13869         spu_resolve_overloaded_builtin.
13870         * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
13871         spu_build_builtin_va_list.
13872         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
13873         argument.  Pass location to build_function_call_vec.
13874         * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
13875         build_decl.
13876         (emit_fpu_switch): Same.
13877         (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
13878         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
13879         to build_decl and create_artificial_label.
13880         (xtensa_gimplify_va_arg_expr): Same.
13881         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
13882         (xstormy16_gimplify_va_arg_expr): Same.
13883         * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
13884         * config/arm/arm.c (arm_build_builtin_va_list): Same.
13885         * config/mips/mips.c (mips_build_builtin_va_list): Same.
13886         (mips16_build_function_stub): Same.
13887         (mips16_build_call_stub): Same.
13888
13889 2009-06-13  Richard Earnshaw  <rearnsha@arm.com>
13890
13891         PR target/40327
13892         * arm/constraints.md (Pa, Pb): New constraints.
13893         * arm/arm.md (thumb1_addsi3): Support more complex additions.  Add a
13894         split pattern to deal with them.
13895
13896 2009-06-13  Joerg Sonnenberger  <joerg@britannica.bec.de>
13897
13898         * doc/invoke.texi: Add missing option -Wp,OPTION in list,
13899         fix index entry for -Xpreprocessor.
13900
13901 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
13902
13903         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13904         Add location argument to build_decl call.
13905         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
13906         (rs6000_init_builtins): Same.
13907         (spe_init_builtins): Same.
13908         (rs6000_gimplify_va_arg): Add location argument to
13909         create_artificial_label call.
13910
13911 2009-06-12  Steven Bosscher  <steven@gcc.gnu.org>
13912
13913         * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
13914         * combine-stack-adj.c (pass_stack_adjustments): Use it.
13915         * Makefile.in: Fix GGC dependency for gcse.o.
13916
13917 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
13918
13919         * tree-pretty-print.c (dump_generic_node): Dump column numbers.
13920         * gimple-pretty-print.c (dump_gimple_stmt): Same.
13921         * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
13922         created.
13923         * c-parser.c (c_parser_binary_expression): Use current column while
13924         building binary operations.
13925         * common.opt (fshow-column): Enable by default.
13926         * tree-vrp.c (check_array_ref): Use warning_at.
13927         (check_array_bounds): Use location from call back if expr has no
13928         location.
13929         * tree.h: Add location argument to maybe_fold_*.
13930         * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
13931         (maybe_fold_offset_to_array_ref): Add location argument and use it.
13932         (maybe_fold_offset_to_component_ref): Same.
13933         (maybe_fold_offset_to_reference): Same.
13934         (maybe_fold_offset_to_address): Same.
13935         (maybe_fold_stmt_indirect): Same.
13936         (maybe_fold_stmt_addition): Same.
13937         (fold_stmt_r): Pass location to maybe_fold_*.
13938         (fold_gimple_assign): Same.
13939         * c-tree.h: Add location argument to finish_decl,
13940         default_function_array_conversion, store_init_value.
13941         * c-decl.c (define_label): Use error_at.
13942         (c_make_fname_decl): Pass location to finish_decl.
13943         (finish_decl): New location argument.
13944         (build_compound_literal): Pass location to store_init_value.
13945         (grokdeclarator): Pass location to finish_decl.
13946         (grokfield): Same.
13947         * c-typeck.c (array_to_pointer_conversion): New location argument.
13948         (function_to_pointer_conversion): Same.
13949         (default_function_array_conversion): Same.
13950         (parser_build_unary_op): Pass location to overflow_warning.
13951         (parser_build_binary_op): Same.  Use warning_at.
13952         (build_unary_op): Pass location to array_to_pointer_conversion.
13953         (build_c_cast): Pass location to digest_init.
13954         (build_modify_expr): New location argument.
13955         (convert_for_assignment): Same.
13956         (store_init_value): Same.
13957         (digest_init): Same.
13958         (output_init_element): Pass location to digest_init and
13959         array_to_pointer_conversion.
13960         (c_finish_return): Pass location to convert_for_assignment.
13961         * gimplify.c (gimplify_conversion): Pass location to
13962         maybe_fold_offset_to_address.
13963         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
13964         to maybe_fold_stmt_addition.
13965         * c-omp.c (c_finish_omp_atomic): Pass new location to
13966         build_modify_expr.
13967         (c_finish_omp_for): Same.
13968         * c-common.c (overflow_warning): New argument.
13969         * c-common.h: New argument to build_modify_expr, overflow_warning.
13970         * c-parser.c (c_parser_declaration_or_fndef): Pass location to
13971         finish_decl.
13972         (c_parser_initializer): Pass location to
13973         default_function_array_conversion.
13974         (c_parser_initelt): Same.
13975         (c_parser_initval): Same.
13976         (c_parser_asm_operands): Same.
13977         (c_parser_expr_no_commas): Same.  Pass location to build_modify_expr.
13978         (c_parser_conditional_expression): Same.
13979         (c_parser_binary_expression): Add location info to stack.  Use it.
13980         (c_parser_unary_expression): Pass location to
13981         default_function_array_conversion, parser_build_unary_op,
13982         build_indirect_ref, c_parser_postfix_expression_after_primary.
13983         (c_parser_postfix_expression_after_primary): New location argument.
13984         Use it.
13985         (c_parser_expression_conv): Pass location to
13986         default_function_array_conversion.
13987         (c_parser_expr_list): Same.
13988         (c_parser_omp_atomic): Same.
13989         (c_parser_omp_for_loop): Same.
13990         * c-tree.h (struct c_declarator): Add comment to id_loc.
13991         (build_array_declarator): New argument.
13992         * c-decl.c (build_array_declarator): Add location argument.
13993         (grokdeclarator): Set id_loc for cdk_array.
13994         * c-parser.c (c_parser_direct_declarator_inner): Pass location to
13995         build_array_declarator.
13996         * tree.c (build_omp_clause): Add location argument.
13997         * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
13998         (OMP_CLAUSE_LOCATION): New macro.
13999         (struct tree_omp_clause): Add location field.
14000         (build_omp_clause): Add argument.
14001         * testsuite/gcc.dg/gomp/for-1.c: Fix column.
14002         * cp/pt.c (tsubst_omp_for_iterator): Pass location to
14003         build_omp_clause.
14004         * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
14005         (cp_parser_omp_clause_collapse): Same.
14006         (cp_parser_omp_clause_default): Same.
14007         (cp_parser_omp_clause_if): Same.
14008         (cp_parser_omp_clause_nowait): Same.
14009         (cp_parser_omp_clause_num_threads): Same.
14010         (cp_parser_omp_clause_ordered): Same.
14011         (cp_parser_omp_clause_schedule): Same.
14012         (cp_parser_omp_clause_untied): Same.
14013         (cp_parser_omp_for_loop): Same.
14014         (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
14015         * c-tree.h (c_start_case): Add location argument.
14016         (c_process_expr_stmt): Same.
14017         (c_finish_goto_*): Same.
14018         * tree-parloops.c (initialize_reductions): Pass location to
14019         build_omp_clause.
14020         (create_parallel_loop): Same.
14021         * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
14022         (gfc_trans_omp_reduction_list): Same.
14023         (gfc_trans_omp_clauses): Same.
14024         (gfc_trans_omp_do): Same.
14025         * c-typeck.c (c_finish_goto_label): Same.
14026         (c_finish_goto_ptr): New location argument.
14027         (c_start_case): Same.
14028         (emit_side_effect_warnings): Same.
14029         (c_process_expr_stmt): Same.
14030         (c_finish_stmt_expr): Same.
14031         (c_finish_omp_clauses): Use error_at instead of error.
14032         * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
14033         build_omp_clause.
14034         * c-omp.c (c_split_parallel_clauses): New location argument.
14035         * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
14036         to build_omp_clause.
14037         (convert_local_reference_stmt): Same.
14038         (convert_gimple_call): Same.
14039         * c-common.h (c_split_parallel_clauses): New argument.
14040         * c-parser.c (c_parser_statement_after_labels): Pass location to
14041         c_finish_goto_label.
14042         (c_parser_switch_statement): Pass location to c_start_case.
14043         (c_parser_for_statement): Pass location to c_finish_expr_stmt,
14044         and c_process_expr_stmt.
14045         (c_parser_omp_variable_list): Add location argument.
14046         (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
14047         (c_parser_omp_clause_default): Same.
14048         (c_parser_omp_clause_if): Same.
14049         (c_parser_omp_clause_num_threads): Same.
14050         (-c_parser_omp_clause_ordered): Same.
14051         (c_parser_omp_clause_reduction): Pass location to
14052         c_parser_omp_variable_list.
14053         (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
14054         (c_parser_omp_clause_untied): Same.
14055         (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
14056         (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
14057
14058         * c-tree.h (check_for_loop_decls, undeclared_variable,
14059         build_component_ref, build_array_ref, build_external_ref,
14060         c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
14061         build_conditional_expr, build_compound_expr, c_cast_expr,
14062         build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
14063         c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
14064         argument.
14065         * c-semantics.c (build_stmt): Same.
14066         (build_case_label): Same.
14067         * c-decl.c (c_finish_incomplete_decl): Pass location on down.
14068         (undeclared_variable): New argument.
14069         (make_label): Same.
14070         (lookup_label): Pass location on down.
14071         (define_label): Same.
14072         (finish_decl): Same.
14073         (build_compound_literal): Same.
14074         (finish_struct): Same.
14075         (finish_function): Do not set location here.
14076         (check_for_loop_decls): New argument.
14077         * tree.c (save_expr): Set location.
14078         (build_empty_stmt): New argument.
14079         * tree.h (build_empty_stmt): New argument to build_empty_stmt.
14080         (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
14081         * builtins.c (gimplify_va_arg_expr): Use locations.
14082         (expand_builtin_sync_operation): Same.
14083         * c-typeck.c (build_component_ref): New argument.
14084         (build_array_ref): Same.
14085         (build_external_ref): Same.
14086         (c_expr_sizeof_expr): Same.
14087         (c_expr_sizeof_type): Same.
14088         (parser_build_unary_op): Same.
14089         (build_conditional_expr): Same.
14090         (build_compound_expr): Pass location on down.
14091         (build_compound_expr): New argument.
14092         (build_c_cast): Same.
14093         (c_cast_expr): Same.
14094         (build_asm_expr): Same.
14095         (c_finish_return): Same.
14096         (c_process_expr_stmt): Pass location on down.
14097         (c_finish_stmt_expr): New argument.
14098         (push_clenaup): Same.
14099         (c_finish_omp_parallel): Same.
14100         (c_finish_omp_task): Same.
14101         * gimplify.c (gimplify_call_expr): Pass location on down.
14102         * c-omp.c (c_finish_omp_master): New argument.
14103         (c_finish_omp_critical): Same.
14104         (c_finish_omp_ordered): Same.
14105         (c_finish_omp_barrier): Same.
14106         (-c_finish_omp_taskwait): Same.
14107         (c_finish_omp_atomic): Same.
14108         (c_finish_omp_flush): Same.
14109         * tree-inline.c (copy_tree_body_r): Pass location on down.
14110         (inline_forbidden_p): Remove use of input_location.
14111         * c-gimplify.c (c_build_bind_expr): New argument.
14112         * c-common.c (c_common_truthvalue_conversion): Pass location on down.
14113         (c_sizeof_or_alignof_type): New argument.
14114         (c_alignof_expr): Same.
14115         (build_va_arg): Same.
14116         (c_add_case_label): Same.
14117         * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
14118         c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
14119         c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
14120         c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
14121         c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
14122         c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
14123         New argument.
14124         * stub-objc.c (objc_build_selector_expr): Same.
14125         (objc_build_throw_stmt): Same.
14126         * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
14127         (c_parser_initelt): Same.
14128         (c_parser_compound_statement): Same.
14129         (c_parser_compound_statement_nostart): Same.
14130         (c_parser_label): Same.
14131         (c_parser_statement_after_labels): Same.
14132         (c_parser_if_body): Same.
14133         (c_parser_else_body): Same.
14134         (c_parser_if_statement): Same.
14135         (c_parser_switch_statement): Same.
14136         (c_parser_while_statement): Same.
14137         (c_parser_do_statement): Same.
14138         (c_parser_for_statement): Same.
14139         (c_parser_asm_statement): Same.
14140         (c_parser_conditional_expression): Same.
14141         (c_parser_binary_expression): Same.
14142         (c_parser_cast_expression): Same.
14143         (c_parser_unary_expression): Same.
14144         (c_parser_sizeof_expression): Same.
14145         (c_parser_alignof_expression): Same.
14146         (c_parser_postfix_expression): Same.
14147         (c_parser_expression): Same.
14148         (c_parser_objc_receiver): Same.
14149         (c_parser_omp_variable_list): Same.
14150         (c_parser_omp_structured_block): Same.
14151         (c_parser_omp_atomic): New argument.
14152         (c_parser_omp_barrier): Same.
14153         (c_parser_omp_critical): Same.
14154         (c_parser_omp_flush): Pass location on down.
14155         (c_parser_omp_for_loop): New argument.
14156         (c_parser_omp_for): Same.
14157         (c_parser_omp_master): Same.
14158         (c_parser_omp_ordered): Same.
14159         (c_parser_omp_sections_scope): Same.
14160         (c_parser_omp_sections): Same.
14161         (c_parser_omp_parallel): Same.
14162         (c_parser_omp_single): Same.
14163         (c_parser_omp_task): Same.
14164         (c_parser_omp_taskwait): Pass location on down.
14165         (c_parser_omp_construct): Same.
14166         (c_parser_omp_threadprivate): Same.
14167         * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
14168         builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
14169         tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
14170         c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
14171         c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
14172         emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
14173         rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
14174         tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
14175         config/i386/i386.c, stmt.c:
14176         Add location argument to the following function definitions and/or
14177         function calls: build_decl, objcp_start_struct, objcp_finish_struct,
14178         start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
14179         cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
14180         build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
14181         do_case, c_finish_bc_stmt, build_compound_literal,
14182         build_function_call.
14183         * c-decl.c (build_compound_literal): Add location argument.
14184         Make all diagnostic calls use location.
14185         (start_struct): Same.
14186         (finish_struct): Same.
14187         (start_enum): Same.
14188         (build_enumerator): Same.
14189         (start_function): Same.
14190         (grokdeclarator): Make all diagnostic calls use location.
14191         (store_parm_decls_oldstyle): Same.
14192         * c-typeck.c (build_function_call): Add location argument.
14193         Make all diagnostic calls use location.
14194         (do_case): Same.
14195         (c_finish_bc_stmt): Same.
14196         * tree-nested.c (get_trampoline_type): Add argument.
14197         Pass location to build_decl.
14198         (lookup_tramp_for_decl): Pass location to get_trampoline_type.
14199         * rtl.h (RTL_LOCATION): New.
14200         * c-common.c (c_add_case_label): Add location argument.
14201         Make all diagnostic calls use location.
14202         * c-common.h: Add location argument to make_fname_decl, do_case,
14203         c_add_case_label, build_function_call, resolve_overloaded_builtin.
14204         * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
14205         Set it appropriately for every case.  Pass enum_loc to start_enum
14206         call.  Pass value_loc first to build_enumerator.  Pass enum_loc to
14207         parser_xref_tag.
14208         (c_parser_struct_or_union_specifier): Save location.  Use it for
14209         start_struct, finish_struct, and parser_xref_tag.
14210
14211 2009-06-12  Ian Lance Taylor  <iant@google.com>
14212
14213         * fold-const.c (fold_unary): Rename local variable and to and_expr.
14214
14215         * c-opts.c (c_common_handle_option): For -Wc++-compat set
14216         cpp_opts->warn_cxx_operator_names.
14217
14218 2009-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14219
14220         PR tree-opt/38865
14221         * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
14222         is returns NULL and OP is a VCE, look through the VCE.
14223
14224 2009-06-12  Ian Lance Taylor  <iant@google.com>
14225
14226         PR bootstrap/40430
14227         * collect2.c (main): Use CONST_CAST2 in code inside #if
14228         LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
14229
14230 2009-06-12  Joey Ye  <joey.ye@intel.com>
14231
14232         PR middle-end/39146
14233         * cfgexpand.c (get_decl_align_unit): Update
14234         max_used_stack_slot_alignment with align instead of
14235         stack_alignment_needed.
14236
14237         * function.c (assign_stack_local_1): Update
14238         max_used_stack_slot_alignment with alignment_in_bits instead
14239         of stack_alignment_needed.
14240         (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
14241         here.
14242
14243 2009-06-12  Jakub Jelinek  <jakub@redhat.com>
14244
14245         * dwarf2out.c (last_var_location_insn): New variable.
14246         (dwarf2out_end_epilogue): Clear last_var_location_insn.
14247         (dwarf2out_var_location): Don't record anything after last real
14248         insn.  Only change labels if there were any real instructions
14249         in between last note and this one, or if changed sections.
14250
14251 2009-06-11  Richard Henderson  <rth@redhat.com>
14252
14253         * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
14254         note when storing the frame pointer in a register.
14255         (FRP): Don't redefine to nothing for epilogue.
14256         (alpha_expand_epilogue): Mark register and sp restores.
14257         (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
14258
14259         * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
14260         when gen_lowpart is needed.
14261
14262 2009-06-11  Richard Henderson  <rth@redhat.com>
14263
14264         * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
14265
14266         * dwarf2out.c (need_data_align_sf_opcode): New.
14267         (div_data_align): Move earlier.
14268         (def_cfa_1, reg_save): Use it.
14269
14270 2009-06-11  H.J. Lu  <hongjiu.lu@intel.com>
14271
14272         * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
14273         (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
14274         (ix86_handle_option): Handle OPT_mcrc32.
14275         (ix86_target_string): Add -mcrc32.
14276         (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
14277
14278         * config/i386/i386.h (TARGET_CRC32): New.
14279
14280         * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
14281         (sse4_2_crc32di): Likewise.
14282
14283         * config/i386/i386.opt (mcrc32): New.
14284
14285         * doc/invoke.texi: Document -mcrc32.
14286
14287 2009-06-11  Richard Henderson  <rth@redhat.com>
14288
14289         * common.opt (gdwarf-): Accept a version number.
14290         * doc/invoke.texi (gdwarf-): Update docs.
14291         * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
14292         * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
14293         version level, and record it.
14294
14295         * dwarf2.h (DW_CIE_VERSION): Remove.
14296         * dwarf2out.c (DWARF_VERSION): Remove.
14297         (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
14298         (output_call_frame_info): Use CIE version 3 for dwarf3,
14299         or if the return register column is out of range for version 1.
14300         (dwarf_stack_op_name): Add all dwarf3 values.
14301         (DEBUG_PUBTYPES_SECTION): New.
14302         (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
14303         encoding change for dwarf3.
14304         (output_die) [dw_val_class_die_ref]: Likewise.
14305         (output_compilation_unit_header): Emit correct version for dwarf3.
14306         (output_line_info): Likewise.
14307         (output_pubnames): Update for DWARF_VERSION removal.
14308         (output_aranges): Likewise.
14309         (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
14310         (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
14311         (dwarf2out_finish): Likewise.
14312
14313 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
14314
14315         * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
14316         in r148403.
14317
14318 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
14319
14320         PR c/39252
14321         * doc/extend.texi ( __builtin_unreachable): Document new builtin.
14322         * builtins.c (expand_builtin_unreachable): New function.
14323         (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
14324         * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
14325         * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
14326         successors.
14327         * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
14328         searching for missing barriers.
14329
14330 2009-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14331
14332         * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
14333         when -fprofile-generate* was passed.
14334         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
14335
14336 2009-06-11  Anthony Green  <green@moxielogic.com>
14337
14338         * config/moxie/moxie.md: Define length attribute for all instructions.
14339         (rCC): Define.
14340         (*b<cond:code>): Support limited branch ranges for new PC-relative
14341         branch instructions.
14342         * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
14343
14344 2009-06-11  Jakub Jelinek  <jakub@redhat.com>
14345
14346         * config/i386/i386.c (min_insn_size): Use get_attr_length
14347         for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
14348         For __asm return 0.
14349
14350         * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
14351         instead of emit_insn_before.
14352
14353 2009-06-10  Ian Lance Taylor  <iant@google.com>
14354
14355         PR bootstrap/40408
14356         * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
14357         GIMPLE_SWITCH.
14358
14359 2009-06-10  Revital Eres  <eres@il.ibm.com>
14360
14361         * passes.c (init_optimization_passes): Reschedule
14362         predictive-commoning pass before complete unroll pass.
14363
14364 2009-06-10  Martin Jambor  <mjambor@suse.cz>
14365
14366         * cgraph.c (cgraph_node_can_be_local_p): New function.
14367         (cgraph_make_node_local): New function.
14368         * cgraph.h (cgraph_node_can_be_local_p): Declare.
14369         (cgraph_make_node_local): Declare.
14370
14371 2009-06-10  Nathan Froyd  <froydnj@codesourcery.com>
14372
14373         * tree.h (tree_base): Add packed_flag and user_align fields.
14374         Decrease size of spare field.
14375         (TYPE_USER_ALIGN): Use user_align from tree_base.
14376         (DECL_USER_ALIGN): Likewise.
14377         (TYPE_PACKED): Use packed_flag from tree_base.
14378         (DECL_PACKED): Likewise.
14379         (tree_type): Delete packed_flag and user_align fields.  Widen
14380         precision field.  Widen mode field and shuffle fields to align
14381         mode on an 8-bit boundary.
14382         (tree_decl_common): Delete decl_flag_1 and user_align fields.
14383         Renumber decl_flag_* fields.  Fix comments.  Widen
14384         decl_common_unused field.
14385         (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
14386         (DECL_EXTERNAL): Likewise.
14387         (DECL_BIT_FIELD): Likewise.
14388         (DECL_NONADDRESSABLE_P): Likewise.
14389         (TYPE_DECL_SUPRESS_DEBUG): Likewise.
14390         * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
14391
14392 2009-06-10  Ian Lance Taylor  <iant@google.com>
14393
14394         * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
14395         (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
14396         (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
14397         (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
14398         (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
14399         DEF_VEC_ALLOC_FUNC_P.
14400         (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
14401         (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
14402         DEF_VEC_ALLOC_FUNC_O.
14403         (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
14404         (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
14405         DEF_VEC_ALLOC_FUNC_I.
14406         (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
14407         (vec_stack_p_reserve_exact_1): Declare.
14408         (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
14409         (vec_stack_free): Declare.
14410         (VEC_stack_alloc): Define.
14411         (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
14412         (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
14413         (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
14414         * vec.c (void_p): New type.  Call DEF_VEC_P and DEF_VEC_ALLOC_P
14415         for void_p.
14416         (stack_vecs): New static variable.
14417         (vec_stack_p_reserve_exact_1): New function.
14418         (vec_stack_o_reserve_1): New static function.
14419         (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
14420         (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
14421         (vec_stack_free): New function.
14422         * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
14423         (VEC_df_ref_stack_alloc): Define.
14424         (df_mw_hardreg_ptr): New type.  Use DEF_VEC_P and
14425         DEF_VEC_ALLOC_P_STACK.
14426         (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
14427         (struct df_collection_rec): Change _vec fields to VEC.  Remove
14428         _use fields.
14429         (df_free_collection_rec): Adjust for new fields.
14430         (df_insn_rescan): Use new df_collection_rec fields.
14431         (df_notes_rescan, df_canonize_collection_rec): Likewise.
14432         (df_ref_create_structure, df_ref_record): Likewise.
14433         (df_get_conditional_uses, df_get_call_refs): Likewise.
14434         (df_insn_refs_collect, df_bb_refs_collect): Likewise.
14435         (df_bb_refs_record, df_record_entry_block_defs): Likewise.
14436         (df_record_exit_block_uses, df_bb_verify): Likewise.
14437         (df_swap_refs): Change ref_vec parameter to VEC.  Change all callers.
14438         (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
14439         Remove count parameter.  Change return type to void.  Change all
14440         callers.
14441         (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
14442         Remove count parameter.  Change return type to void.  Change all
14443         callers.
14444         (df_install_refs): Change old_vec parameter to VEC.  Remove count
14445         parameter.  Change all callers.
14446         (df_install_mws): Change old_vec parameter to VEC.  Remove count
14447         parameter.  Change all callers.
14448         (df_refs_verify): Change new_rec parameter to VEC.  Change call
14449         callers.
14450         (df_mws_verify): Likewise.
14451
14452 2009-06-10  Alexandre Oliva  <aoliva@redhat.com>
14453
14454         * gcc.c (compare_files): Cast munmap argumento to caddr_t.
14455
14456 2009-06-10  H.J. Lu  <hongjiu.lu@intel.com>
14457
14458         * doc/extend.texi: Add description for __builtin_ia32_crc32di.
14459
14460 2009-06-10  Anthony Green  <green@moxielogic.com>
14461
14462         * config/moxie/crti.asm: New file.
14463         * config/moxie/crtn.asm: New file.
14464         * config/moxie/moxie.c: New file.
14465         * config/moxie/moxie.h: New file.
14466         * config/moxie/sfp-machine.h: New file.
14467         * config/moxie/moxie-protos.h: New file.
14468         * config/moxie/t-moxie: Created.
14469         * config/moxie/t-moxie-softfp: Created.
14470         * config/moxie/moxie.md: Created.
14471         * config/moxie/constraints.md: Created.
14472         * config.gcc: Add moxie support.
14473         * doc/md.texi (Machine Constraints): Add moxie constraints.
14474         * doc/contrib.texi (Contributors): Mention moxie port.
14475         * doc/install.texi (Specific): Mention the moxie port.
14476
14477 2009-06-09  Ian Lance Taylor  <iant@google.com>
14478
14479         * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
14480         compiling with C++.
14481         * optabs.c (optab_table): Only use designated initializers if
14482         HAVE_DESIGNATED_INITIALIZERS is defined.
14483         (convert_optab_table): Likewise.
14484         (init_optabs): Always call init_insn_codes if
14485         HAVE_DESIGNATED_INITIALIZERS is not defined.
14486
14487 2009-06-09  Ian Lance Taylor  <iant@google.com>
14488
14489         * targhooks.c (default_builtin_vectorized_function): Change fn
14490         parameter to unsigned int.
14491         (default_builtin_vectorized_conversion): Change code parameter to
14492         unsigned int.
14493         (default_builtin_reciprocal): Change fn parameter to unsigned int.
14494         * targhooks.h: Update declarations.
14495         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
14496         parameter to unsigned int.
14497
14498         * c-typeck.c (comptypes_check_enum_int): New static function.
14499         (comptypes_internal): Add enum_and_int_p parameter.  Change all
14500         callers.
14501         (comp_target_types): Add location parameter.  Change all callers.
14502         (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
14503         Change all callers.
14504         (function_types_compatible_p, type_lists_compatible_p): Likewise.
14505         (build_conditional_expr): Add colon_loc parameter.  Change all
14506         callers.
14507         (convert_for_assignment): Add location parameter.  Change all callers.
14508         * c-parser.c (c_parser_conditional_expression): Pass location of
14509         colon to build_conditional_expr.
14510         * c-tree.h (build_conditional_expr): Update declaration.
14511
14512 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
14513
14514         * graphite.c: Revert previous patch.
14515
14516 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
14517
14518         PR bootstrap/40103
14519         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
14520
14521 2009-06-09  Ghassan Shobaki  <ghassan.shobaki@amd.com>
14522
14523         * tree-ssa-loop-prefetch.c
14524         (loop_prefetch_arrays): Fixed a portability problem in printf format
14525         string.
14526
14527 2009-06-09  Martin Jambor  <mjambor@suse.cz>
14528
14529         PR tree-optimization/40351
14530         * tree-sra.c (propagate_subacesses_accross_link): Check that a
14531         refrence to a potential artifical subaccess can be constructed.
14532
14533 2009-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
14534
14535         * config/sh/sh-protos.h (sh_optimization_options): Declare.
14536         (sh_override_options): Likewise.
14537         * config/sh/sh.c: Include params.h.
14538         (sh_optimization_options): New.
14539         (sh_override_options): Likewise.
14540         * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
14541         (OVERRIDE_OPTIONS): Use sh_override_options.
14542
14543 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
14544
14545         * dwarf2out.c (emit_cfa_remember): New variable.
14546         (add_fde_cfi): If emit_cfa_remember, recurse to add
14547         DW_CFA_remember_state first.
14548         (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
14549         instead just set emit_cfa_remember.
14550
14551 2009-06-08  Jan Hubicka  <jh@suse.cz>
14552
14553         PR debug/40126
14554         * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
14555
14556 2009-06-08  Jan Hubicka  <jh@suse.cz>
14557
14558         PR middle-end/39834
14559         * cgraphunit.c (save_inline_function_body): Do not copy transform
14560         hooks for saved inline bodies.
14561         * ipa-passes.c (do_per_function): Do not add the hoks multiple times
14562         for given function.
14563
14564 2009-06-08  Adam Nemet  <anemet@caviumnetworks.com>
14565
14566         * jump.c (returnjump_p): Handle delayed branches.  Add missing
14567         function comment.
14568
14569 2009-06-08  Jan Hubicka  <jh@suse.cz>
14570
14571         PR middle-end/40102
14572         * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
14573         original node might've been modified.
14574         * tree-inline.c (copy_bb): Do not assume that all clones are the same.
14575
14576 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
14577
14578         * tree-object-size.c (addr_object_size): Add OSI argument.
14579         Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
14580         (compute_builtin_object_size, expr_object_size): Adjust callers.
14581         (plus_stmt_object_size): Call addr_object_size instead of
14582         compute_builtin_object_size.
14583
14584 2009-06-08  Ghassan Shobaki  <ghassan.shobaki@amd.com>
14585             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
14586
14587         * tree-ssa-loop-prefetch.c
14588         (gather_memory_references): Introduced a counter for the number of
14589         memory references.
14590         (anything_to_prefetch_p): Introduced a counter for the number of
14591         prefetches.
14592         (is_loop_prefetching_profitable): New function with a cost model
14593         for prefetching.
14594         (loop_prefetch_arrays): Use the new cost model to determine if
14595         prefetching is profitable.
14596         * params.def (MIN_INSN_TO_PREFETCH_RATIO,
14597         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
14598         * params.h (MIN_INSN_TO_PREFETCH_RATIO,
14599         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
14600         * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
14601         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
14602
14603 2009-06-08  Michael Matz  <matz@suse.de>
14604
14605         PR debug/40012
14606         * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
14607         partitions use the same.
14608         (expand_one_var): Deal with DECL_RTL sometimes begin set also
14609         for basevars of SSA_NAMEs.
14610         (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
14611         to not expand them twice.
14612         (gimple_expand_cfg): Clear DECL_RTL for those decls that have
14613         multiple places.
14614
14615 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
14616
14617         * common.opt (fcompare-debug=, fcompare-debug-second): New.
14618         (fdump-final-insns=, gtoggle): New.
14619         * doc/invoke.texi: Document them.
14620         * final.c (rest_of_clean_state): Dump final insn stream.
14621         * gcc.c (invoke_as): Hook in -fcompare-debug.
14622         (static_spec_functions): Add compare-debug-dump-opt,
14623         compare-debug-self-opt and compare-debug-auxbase-opt.
14624         (compare_debug, compare_debug_second, compare_debug_opt): New.
14625         (switches_debug_check, n_switches_debug_check): New.
14626         (debug_auxbase_opt, debug_check_temp_file): New.
14627         (process_command): Handle -fno-compare-debug, -fcompare-debug and
14628         -fcompare-debug=*.
14629         (do_self_spec): Handle arguments after switches.
14630         (do_spec_1): Add .gk extension to temp file basenames for compare.
14631         (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
14632         (cc1_options): Use it instead of normal auxbase computation for
14633         the second compare-debug compilation.
14634         (compare_files): New.
14635         (main): Set up and implement compare debug mode.
14636         (compare_debug_dump_opt_spec_function): New.
14637         (compare_debug_self_opt_spec_function): New.
14638         (compare_debug_auxbase_opt_spec_function): New.
14639         * toplev.c (process_options): Handle flag_gtoggle,
14640         flag_dump_final_insns.
14641         * coverage.c (coverage_begin_output): Don't overwrite .gcno file
14642         during -fcompare-debug-second compilation.
14643
14644 2009-06-07  Ian Lance Taylor  <iant@google.com>
14645
14646         * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
14647         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
14648
14649         * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
14650         with no default node.  Change warning with %H to warning_at.
14651         Don't clear warn_switch around case checking.
14652         * doc/invoke.texi (Warning Options): Clarify distinction between
14653         -Wswitch and -Wswitch-enum.
14654
14655 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14656
14657         * tree-pass.h (TODO_update_ssa_any): Document internal use only.
14658
14659 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14660
14661         * gbl-ctors.h: Add header guard.
14662
14663 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14664
14665         * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
14666         sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
14667         vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
14668         vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
14669         prototypes for removed functions.
14670         (expressions_equal_p): Move to ...
14671         * tree-ssa-sccvn.h: ... here and ...
14672         * matrix-reorg.c: ... adjust includes.
14673
14674 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14675
14676         * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
14677
14678 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14679
14680         * c-decl.c (finish_decl): Use bool for variable was_incomplete.
14681         (finish_function): Remove erroneous whitespace.
14682
14683 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14684
14685         * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
14686         (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
14687
14688 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14689
14690         * errors.c (internal_error): Commentary typo fix.
14691         * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
14692         * tree-ssa-pre.c: Ditto.
14693
14694 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14695
14696         * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
14697         them is supposed to hold actual statements.
14698
14699 2009-06-06  Ian Lance Taylor  <iant@google.com>
14700
14701         * doc/extend.texi (Attribute Syntax): Document that C++ labels on
14702         empty statements can now have attributes.
14703
14704 2009-06-05  Shujing Zhao  <pearly.zhao@oracle.com>
14705
14706         * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
14707         * config/mips/mips.md: Ditto.
14708
14709 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
14710
14711         * config/rs6000/eabi.asm (__eabi_convert): Don't define if
14712         _RELOCATABLE.
14713         (__eabi_uconvert): Likewise.
14714
14715 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
14716
14717         * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
14718         CFI_* definitions with IN_GCC.
14719
14720 2009-06-05  David Edelsohn  <edelsohn@gnu.org>
14721
14722         * xcoffout.h (xcoffout_source_line): Update prototype.
14723
14724 2009-06-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14725
14726         * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
14727         mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
14728
14729 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
14730
14731         PR middle-end/40340
14732         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
14733         inlined_function_outer_scope_p blocks for artificial inlines
14734         even at -g0/-g1.
14735         * tree.c (tree_nonartificial_location): Rewrite using
14736         block_nonartificial_location.
14737
14738 2009-06-05  Revital Eres  <eres@il.ibm.com>
14739             Leehod Baruch  <leehod@il.ibm.com>
14740
14741         * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
14742         (expand_expr_real_1): Remove comment.
14743         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
14744         Vectorize misaligned access when the target supports it.
14745         (vect_supportable_dr_alignment): Check for unaligned access support.
14746         * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
14747         and remove asset.
14748
14749 2009-06-05  Julian Brown  <julian@codesourcery.com>
14750
14751         * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
14752         * config/arm/ieee754-sf.S (cmpsf2): Likewise.
14753
14754 2009-06-05  Richard Guenther  <rguenther@suse.de>
14755
14756         PR bootstrap/40350
14757         * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
14758         as possibly unused.
14759
14760 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
14761
14762         * config/s390/s390.c (global_not_special_regno_p): New static inline.
14763         (save_gprs): Don't tell unwinder when a global register is saved.
14764         (s390_emit_epilogue): Emit needed epilogue unwind info.
14765
14766 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
14767
14768         * dwarf2out.c (deferred_asm_name): New.
14769         (add_name_and_src_coords_attributes): Defer creation of
14770         DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
14771         computed yet.
14772         (move_linkage_attr): New.
14773         (dwarf2out_finish): Revisit deferrals and emit attributes at the
14774         right place.
14775
14776 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
14777
14778         * tree-nested.c (finalize_nesting_tree_1): Declare the
14779         frame_decl in the binding tree.
14780
14781 2009-06-04  Cary Coutant  <ccoutant@google.com>
14782
14783         * basic-block.h (struct basic_block_def): Add discriminator field.
14784         * dbxout.c (dbxout_source_line): Add new parameter.  Change all
14785         callers.
14786         * debug.c (do_nothing_debug_hooks): Add additional entry.
14787         (debug_nothing_int_charstar_int): New function.
14788         * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
14789         (debug_nothing_int_charstar_int): New declaration.
14790         * dwarf2out.c (dwarf2out_source_line): Add new parameter.  Write
14791         discriminator value in .loc directive.
14792         * final.c (last_discriminator): New variable.
14793         (discriminator): New variable.
14794         (final_start_function): Initialize above variables, pass current
14795         discriminator to debug hook.
14796         (notice_source_line): Check for discriminator change.
14797         * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
14798         * sdbout.c (sdbout_source_line): New parameter.
14799         * tree-cfg.c (struct locus_discrim_map): New structure type.
14800         (discriminator_per_locus): New hash table.
14801         (build_gimple_cfg): Allocate and free discriminator hash table.
14802         (make_edges): Call assign_discriminator.
14803         (locus_map_hash): New function.
14804         (locus_map_eq): New function.
14805         (next_discriminator_for_locus): New function.
14806         (same_line_p): New function.
14807         (assign_discriminator): New function.
14808         (make_cond_expr_edges): Call assign_discriminator.
14809         (make_gimple_switch_edges): Likewise.
14810         (first_non_label_stmt): New function.
14811         * vmsdbgout.c (vmsdbgout_source_line): Add new parameter.  Change
14812         all callers.
14813         * xcoffout.c (xcoffout_source_line): Add new parameter.
14814
14815         * configure.ac (gcc_cv_as_discriminator): New configury check for
14816         gas support for discriminator.
14817         * configure: Regenerate.
14818         * config.in: Regenerate.
14819
14820 2009-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14821
14822         * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
14823         val after checking for integers.
14824
14825 2009-06-04  Uros Bizjak  <ubizjak@gmail.com>
14826
14827         * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
14828         X64_REGPARM_MAX.
14829         (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
14830         (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
14831         (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
14832         * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
14833         X64_REGPARM_MAX.  Use X86_64_MS_SSE_REGPARM_MAX instead of
14834         X64_SSE_REGPARM_MAX.
14835         * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
14836         X64_SSE_REGPARM_MAX.
14837
14838 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
14839
14840         * gcc.c (report_times_to_file): New.
14841         (execute): Implement it.
14842         (process_command): Support -time=.
14843         * doc/invoke.texi: Document it.
14844
14845 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
14846
14847         * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
14848         that have value exprs.
14849
14850 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
14851
14852         * dwarf2asm.c (dw2_force_const_mem): Defer creation of
14853         declarations for constants until...
14854         (dw2_output_indirect_constant_1): ... this point.
14855
14856 2009-06-04  Richard Earnshaw  <rearnsha@arm.com>
14857
14858         PR target/10242
14859         * arm.md (arm_addsi3): Don't try to split an add with an
14860         eliminable register until after reload has completed.
14861
14862 2009-06-03  Ian Lance Taylor  <iant@google.com>
14863
14864         * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
14865         * genattrtab.c (write_length_unit_log): Likewise.
14866         * genchecksum.c (dosum): Likewise.
14867         * gengtype.c (write_rtx_next): Likewise.
14868         (finish_root_table, write_roots): Likewise.
14869         * gimple.c (gimple_ops_offset_): Likewise.
14870         * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
14871         * config/arc/arc.c (arc_attribute_table): Likewise.
14872         * config/arm/arm.c (arm_attribute_table): Likewise.
14873         * config/avr/avr.c (avr_attribute_table): Likewise.
14874         * config/crx/crx.c (crx_attribute_table): Likewise.
14875         * config/m32r/m32r.c (m32r_attribute_table): Likewise.
14876         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
14877         * config/mcore/mcore.c (mcore_attribute_table): Likewise.
14878         * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
14879         * config/sh/sh.c (sh_attribute_table): Likewise.
14880         * config/sparc/sparc.c (sparc_attribute_table): Likewise.
14881         * config/spu/spu.c (spu_attribute_table): Likewise.
14882         * config/v850/v850.c (v850_attribute_table): Likewise.
14883
14884         * config/alpha/alpha.c (vms_attribute_table): Make static.
14885         * config/bfin/bfin.c (bfin_attribute_table): Likewise.
14886         * config/h8300/h8300.c (h8300_attribute_table): Likewise.
14887         * config/mips/mips.c (mips_attribute_table): Likewise.
14888
14889         * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
14890         $(SYSTEM_H).
14891         (cc1-checksum.o): Likewise.
14892
14893 2009-06-03  Steve Ellcey  <sje@cup.hp.com>
14894
14895         * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
14896
14897 2009-06-03  Jakub Jelinek  <jakub@redhat.com>
14898
14899         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
14900         insn if it is changing sp.  Use gen_add3_insn instead of
14901         conditionally gen_addsi3 and gen_adddi3.
14902         (offset_below_red_zone_p): New static inline function.
14903         (rs6000_emit_epilogue): Emit needed epilogue unwind info.
14904         Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
14905         * config/rs6000/ppc-asm.h: Include auto-host.h.
14906         (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
14907         CFI_RESTORE): Define.
14908         * config/rs6000/crtresxgpr.asm: Add unwind info.
14909         * config/rs6000/crtresxfpr.asm: Likewise.
14910         * config/rs6000/crtresgpr.asm: Likewise.
14911         * config/rs6000/crtresfpr.asm: Likewise.
14912         * config/rs6000/crtsavgpr.asm: Likewise.
14913         * config/rs6000/crtsavfpr.asm: Likewise.
14914
14915         * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
14916         argument of DWARF2_FRAME_REG_OUT macros.
14917
14918 2009-06-03  Julian Brown  <julian@codesourcery.com>
14919
14920         * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
14921         words or less (including TImode) in core registers.
14922
14923 2009-06-03  Richard Guenther  <rguenther@suse.de>
14924
14925         PR middle-end/40328
14926         * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
14927
14928 2009-06-03  Andrey Belevantsev  <abel@ispras.ru>
14929
14930         * statistics.c (statistics_counter_event): Do not record event
14931         in pass dump if its number == -1.
14932         (curr_statistics_hash): Add assert that we never get passes
14933         with static number == -1.
14934
14935 2009-06-03  Richard Guenther  <rguenther@suse.de>
14936             Andrey Belevantsev  <abel@ispras.ru>
14937
14938         * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
14939         non-BLKmode arrays addressable.
14940
14941 2009-06-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
14942
14943         * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
14944         * config/m68k/m68k.h: ... here.
14945
14946 2009-06-03  Martin Jambor  <mjambor@suse.cz>
14947
14948         PR tree-optimization/40323
14949         * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
14950         assignment.
14951
14952 2009-06-03  Richard Guenther  <rguenther@suse.de>
14953
14954         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
14955         consistently.
14956
14957 2009-06-03  Shujing Zhao  <pearly.zhao@oracle.com>
14958
14959         * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
14960         JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
14961         JUMP_TABLE_DATA_P where applicable.
14962         * config/sh/sh.c: Ditto.
14963         * config/sh/sh.h: Ditto.
14964         * config/sh/sh.md: Ditto.
14965         * config/sh/symbian.c: Ditto.
14966
14967 2009-06-03  Uros Bizjak  <ubizjak@gmail.com>
14968
14969         * config/i386/driver-i386.c (describe_cache): Optimize
14970         concatenation of strings.  Use snprintf instead of sprintf.
14971         (host_detect_local_cpu): Ditto.  Ignore -march and -mtune for native
14972         target when not compiling with GCC.
14973
14974 2009-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
14975
14976         * config/sh/sh.c: Revert last change.
14977         (sh_expand_epilogue): Emit a blockage insn before the frame
14978         pointer adjustment unconditionally.
14979
14980 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
14981
14982         * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
14983         * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
14984         * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
14985         * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
14986         to COLLECT_GCC_OPTIONS.
14987
14988 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
14989
14990         * collect2.c (target_system_root): New variable.
14991         (main): Handle --sysroot=.
14992         (ignore_library): Strip the sysroot from the library path.
14993
14994 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
14995
14996         * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
14997         (collect2.o): Depend on collect2-aix.h.
14998         (collect2-aix.o): New rule.
14999         * collect2-aix.h: New file.
15000         * collect2-aix.c: Likewise.
15001         * collect2.c: Include collect2-aix.h.  Don't undefine
15002         OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
15003         Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
15004         Use TARGET_AIX_VERSION instead of _AIX51.
15005         * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
15006         * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
15007         * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
15008         * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
15009         * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
15010
15011 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
15012
15013         * collect2.c (ignore_library): Avoid premature post-increment
15014         and null deference.
15015
15016 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
15017
15018         * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
15019         * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
15020         !CROSS_DIRECTORY_STRUCTURE alternative and use it for
15021         CROSS_DIRECTORY_STRUCTURE too.
15022         (LINK_LIBG_SPEC): Likewise.
15023         (LIB_SPEC): Add %R to sysroot paths.
15024         * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
15025         (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
15026         * config/rs6000/aix51.h: As for aix43.h.
15027         * config/rs6000/aix52.h: Likewise.
15028         * config/rs6000/aix53.h: Likewise.
15029         * config/rs6000/aix61.h: Likewise.
15030         * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
15031         to the beginning of sysroot paths.
15032
15033 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
15034
15035         * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
15036         INSN_LISTs that are out of the REG_NOTE range.
15037
15038 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
15039
15040         * loop-unroll.c (struct iv_to_split): Add pointer to next.
15041         (struct var_to_expand): Likewise.
15042         (struct opt_info): Add head and tail for linked lists of the above.
15043         (analyze_insn_to_expand_var): Initialize next.
15044         (analyze_iv_to_split_insn): Likewise.
15045         (analyze_insns_in_loop): Create linked lists.
15046         (allocate_basic_variable): Simplify for use without hash table.
15047         (insert_var_expansion_initialization): Likewise, make it type-safer.
15048         (combine_var_copies_in_loop_exit): Likewise.
15049         (apply_opt_in_copies): Walk lists rather than hash tables.
15050         (release_var_copies): Simplified and inlined by hand into...
15051         (free_opt_info): ... this function.
15052
15053 2009-06-02  Richard Guenther  <rguenther@suse.de>
15054
15055         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
15056         for field decls.
15057
15058 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
15059
15060         * cfgexpand.c (gimple_expand_cfg): Discard the source location
15061         only for builtins that are not overridden.
15062
15063 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
15064
15065         * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
15066         label string.
15067
15068 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
15069
15070         * df-core.c (df_ref_debug): Honor -fdump-noaddr.
15071
15072 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
15073
15074         * combine.c (move_deaths): Compare LUIDs within the same BB only.
15075
15076 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
15077
15078         * common.opt (fdump-unnumbered-links): New.
15079         * doc/invoke.texi (-fdump-unnumbered-links): Document it.
15080         * print-rtl.c (flag_dump_unnumbered_links): New.
15081         (print_rtx): Test it.
15082
15083 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
15084
15085         * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
15086         push/pop multiple to 8-byte alignment.
15087
15088 2009-06-01  Jakub Jelinek  <jakub@redhat.com>
15089
15090         * config/i386/i386.c (queued_cfa_restores): New static variable.
15091         (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
15092         functions.
15093         (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
15094         (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
15095         Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
15096         Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
15097         note unconditionally.
15098         (ix86_emit_restore_regs_using_mov): Likewise.
15099         (ix86_emit_restore_sse_regs_using_mov): Likewise.
15100         (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
15101         it through to ix86_emit_restore_reg_using_pop.
15102         (ix86_emit_leave): Add RED_OFFSET argument.  Call
15103         ix86_add_queued_cfa_restore_notes.  Call ix86_add_cfa_restore_note
15104         instead of adding REG_CFA_OFFSET note unconditionally.
15105         (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
15106         the above functions.  Call ix86_add_queued_cfa_restore_notes when
15107         needed.
15108
15109         * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
15110         force output of the label even for dwarf2out_do_cfi_asm.
15111         (add_fde_cfi): If -g2 and above and cfi might change CFA,
15112         force creation of CFI label and chain DW_CFA_set_loc jumping to it
15113         for convert_cfa_to_fb_loc_list.  Adjust other dwarf2out_cfi_label
15114         caller.
15115         (dwarf2out_stack_adjust, dwarf2out_frame_debug,
15116         dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
15117         dwarf2out_cfi_label callers.
15118         * tree.h (dwarf2out_cfi_label): Adjust prototype.
15119         * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
15120         Adjust dwarf2out_cfi_label callers.
15121         * config/vax/vax.c (vax_output_function_prologue): Likewise.
15122
15123         * config/i386/i386.h (struct machine_cfa_state,
15124         struct machine_function): Guard with ifndef USED_FOR_TARGET
15125         instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
15126
15127         PR other/40024
15128         * emutls.c (__emutls_get_address): Change arr->size to mean number
15129         of allocated arr->data entries instead of # of slots + 1.
15130
15131         PR middle-end/40316
15132         * recog.c (peep2_reinit_state): New function.
15133         (peephole2_init_state): Use it at the end of a basic block and also
15134         when seeing a RTX_FRAME_RELATED_P insn.
15135
15136 2009-06-01  Steve Ellcey  <sje@cup.hp.com>
15137
15138         * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
15139         fixuns_truncrfdi2): New.
15140         (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
15141         *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
15142         *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
15143         *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
15144         *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
15145         *recip_approx): Remove.
15146         (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
15147         moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
15148         divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
15149         move to div.md.
15150         * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
15151         setf_exp_rf): New.
15152
15153 2009-06-01  Ian Lance Taylor  <iant@google.com>
15154
15155         * attribs.c (register_attribute): Use CONST_CAST.
15156         * collect2.c (main): Use CONST_CAST2.
15157         (scan_prog_file): Likewise.
15158         * gcc.c (process_command, main): Likewise.
15159         * toplev.c (toplev_main): Likewise.
15160
15161         * c-typeck.c (handle_warn_cast_qual): New static function,
15162         partially broken out of build_c_cast.
15163         (build_c_cast): Call handle_warn_cast_qual.
15164         * doc/invoke.texi (Warning Options): Document new effect of
15165         -Wcast-qual.
15166
15167 2009-06-01  Aldy Hernandez  <aldyh@redhat.com>
15168
15169         * diagnostic.c (diagnostic_build_prefix): Always print columns.
15170         (diagnostic_report_current_module): Print columns.
15171         * common.opt (flag_show_column): Enable by default.
15172
15173 2009-06-01  Luis Machado  <luisgpm@br.ibm.com>
15174
15175         * alias.c (find_base_term): Check for NULL term before returning.
15176
15177 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
15178
15179         Revert due to PR40320:
15180         2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
15181         * calls.c (emit_library_call_value_1): Don't force_operand for move
15182         and push insns.
15183
15184 2009-06-01  Olivier Hainque  <hainque@adacore.com>
15185             Eric Botcazou  <ebotcazou@adacore.com>
15186
15187         * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
15188         to be processed as a bitfield for constructor output purposes.
15189         * output.h (initializer_constant_valid_for_bitfield_p): Declare
15190         new function.
15191         * varasm.c (oc_local_state): New type, output_constructor
15192         local state to support communication with helpers.
15193         (oc_outer_state): New type, output_constructor outer state of
15194         relevance in recursive calls.
15195         (output_constructor_array_range): New output_constructor helper,
15196         extracted code for an array range element.
15197         (output_constructor_regular_field): New output_constructor helper,
15198         extracted code for an element that is not a bitfield.
15199         (output_constructor_bitfield): New output_constructor helper,
15200         extracted code for a bitfield element.  Accept an OUTER state
15201         argument for recursive processing.  Recurse on record or array
15202         CONSTRUCTOR values, possibly past noop conversions.
15203         (initializer_constant_valid_for_bitfield_p): New predicate.  Whether
15204         VALUE is a valid constant-valued expression for use in a static
15205         bit-field initializer.
15206         (output_constructor): Rework to use helpers.  Accept and honor an
15207         OUTER state argument for recursive calls.  Return total size.  Be
15208         prepared for nested constructors initializing bitfields.
15209         (output_constant): Feed OUTER in calls to output_constructor.
15210
15211 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
15212
15213         * calls.c (emit_library_call_value_1): Don't force_operand for move
15214         and push insns.
15215
15216 2009-06-01  Nick Clifton  <nickc@redhat.com>
15217
15218         * doc/invoke.texi (IA-64 Options): Fix typo.
15219
15220 2009-06-01  Ira Rosen  <irar@il.ibm.com>
15221
15222         PR tree-optimization/39129
15223         * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
15224         printed message.
15225         (vect_do_peeling_for_loop_bound): Use
15226         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
15227         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
15228         (vect_loop_versioning): Likewise.
15229         (vect_create_cond_for_alias_checks): Fix indentation.
15230         * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
15231         macros.
15232         (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
15233         (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
15234         * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
15235         "control flow in loop".
15236         (vect_estimate_min_profitable_iters): Use
15237         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
15238         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
15239         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
15240         (vect_create_data_ref_ptr): Don't mention array dimension in printing.
15241         * tree-vect-stmts.c (vectorizable_store): Replace the check that the
15242         statement belongs to a group of strided accesses with the exact code
15243         check.
15244         (vectorizable_load): Likewise.
15245         * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
15246         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
15247
15248 2009-06-01  Gerald Pfeifer  <gerald@pfeifer.com>
15249
15250         * config/freebsd-stdint.h: New file.
15251         * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
15252         Add freebsd-stdint.h to tm_file.
15253
15254 2009-06-01  Richard Earnshaw  <rearnsha@arm.com>
15255
15256         * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
15257         (thumb2_extendhidi2): Likewise.
15258
15259 2009-05-31  Ian Lance Taylor  <iant@google.com>
15260
15261         * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
15262
15263 2009-05-31  Ian Lance Taylor  <iant@google.com>
15264
15265         * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
15266         (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
15267         (ipa-reference.o): Depend upon gt-ipa-reference.h.
15268
15269 2009-05-31  Jason Merrill  <jason@redhat.com>
15270
15271         * tree-pretty-print.c (print_call_name): Take the callee, not the
15272         call itself.  Make non-static.  Use dump_function_name for functions.
15273         (dump_generic_node): Adjust.
15274         * diagnostic.h: Declare print_call_name.
15275         * gimple-pretty-print.c (dump_gimple_call): Use it.
15276
15277 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
15278
15279         * config/sh/sh.md (ashldi3_std): New define_expand.
15280         (ashldi3): Use it.
15281
15282 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
15283
15284         PR target/40313
15285         * config/sh/sh.c: Include debug.h.
15286         (sh_expand_epilogue): Emit a blockage insn before the frame
15287         pointer adjustment also when dwarf2out_do_frame returns true.
15288
15289 2009-05-31  Richard Earnshaw  <rearnsha@arm.com>
15290
15291         * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
15292         (thumb2_extendqidi2): New pattern.
15293
15294 2009-05-31  Ira Rosen  <irar@il.ibm.com>
15295
15296         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
15297         mark phis for renaming.
15298         * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
15299         (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
15300         Call mark_sym_for_renaming.
15301         * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
15302         * tree-vect-loop.c (vect_transform_loop): Remove
15303         vect_memsyms_to_rename initialization and a call to
15304         mark_set_for_renaming.
15305
15306 2009-05-31  Jakub Jelinek  <jakub@redhat.com>
15307
15308         PR middle-end/40304
15309         * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
15310         frame related even if !set_cfa && style < 0.
15311
15312 2009-05-30  Kai Tietz  <kai.tietz@onevision.com>
15313
15314         * config/i386/mingw-tls.c: New file.
15315         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
15316         * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
15317         defining _WIN32 but not __CYGWIN__.
15318
15319 2009-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15320
15321         * configure.ac: Add MPC support.
15322
15323         * config.in, configure: Regenerate.
15324
15325 2009-05-29  Richard Henderson  <rth@redhat.com>
15326
15327         * cfgcleanup.c (try_crossjump_to_edge): Only skip past
15328         NOTE_INSN_BASIC_BLOCK.
15329         * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
15330         Duplicate NOTE_INSN_EPILOGUE_BEG notes.
15331         * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
15332         to be deleted.
15333         * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
15334         add in_use field.
15335         (add_cfi): Disable check redefining cfa away from drap.
15336         (lookup_cfa_1): Add remember argument; handle remember/restore.
15337         (lookup_cfa): Pass remember argument.
15338         (cfa_remember): New.
15339         (compute_barrier_args_size_1): Remove sibcall check.
15340         (dwarf2out_frame_debug_def_cfa): New.
15341         (dwarf2out_frame_debug_adjust_cfa): New.
15342         (dwarf2out_frame_debug_cfa_offset): New.
15343         (dwarf2out_frame_debug_cfa_register): New.
15344         (dwarf2out_frame_debug_cfa_restore): New.
15345         (dwarf2out_frame_debug): Handle REG_CFA_* notes.
15346         (dwarf2out_begin_epilogue): New.
15347         (dwarf2out_frame_debug_restore_state): New.
15348         (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
15349         DW_CFA_restore_state.
15350         (output_cfi_directive): Likewise.
15351         (convert_cfa_to_fb_loc_list): Likewise.
15352         (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
15353         * dwarf2out.h: Update.
15354         * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
15355         (copy_insn_1): Early out for null.
15356         * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
15357         and dwarf2out_frame_debug_restore_state.
15358         * function.c (prologue, epilogue, sibcall_epilogue): Remove.
15359         (prologue_insn_hash, epilogue_insn_hash): New.
15360         (free_after_compilation): Adjust freeing accordingly.
15361         (record_insns): Create hash table if needed; push insns into
15362         hash instead of array.
15363         (maybe_copy_epilogue_insn): New.
15364         (contains): Search hash table instead of array.
15365         (sibcall_epilogue_contains): Remove.
15366         (thread_prologue_and_epilogue_insns): Split eh_return insns
15367         and mark them as epilogues.
15368         (reposition_prologue_and_epilogue_notes): Rewrite epilogue
15369         scanning in terms of basic blocks.
15370         * insn-notes.def (CFA_RESTORE_STATE): New.
15371         * jump.c (returnjump_p_1): Accept EH_RETURN.
15372         (eh_returnjump_p_1, eh_returnjump_p): New.
15373         * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
15374         CFA_REGISTER, CFA_RESTORE): New.
15375         * rtl.def (EH_RETURN): New.
15376         * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
15377
15378         * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
15379         (eh_return_internal): Use eh_return rtx; split w/ epilogue.
15380
15381         * config/i386/i386.c (gen_push): Update cfa state.
15382         (pro_epilogue_adjust_stack): Add set_cfa argument.  When true,
15383         add a CFA_ADJUST_CFA note.
15384         (ix86_dwarf_handle_frame_unspec): Remove.
15385         (ix86_expand_prologue): Update cfa state.
15386         (ix86_emit_restore_reg_using_pop): New.
15387         (ix86_emit_restore_regs_using_pop): New.
15388         (ix86_emit_leave): New.
15389         (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
15390         (ix86_expand_epilogue): Add notes for unwinding the epilogue.
15391         * config/i386/i386.h (struct machine_cfa_state): New.
15392         (ix86_cfa_state): New.
15393         * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
15394         (eh_return_internal): Merge from eh_return_<mode>,
15395         use eh_return rtx, split w/ epilogue.
15396
15397 2009-05-29  Ian Lance Taylor  <iant@google.com>
15398
15399         * builtins.c (validate_gimple_arglist): Don't use va_arg with
15400         enum type.
15401         * calls.c (emit_library_call_value_1): Likewise.
15402
15403         * c-typeck.c (c_build_va_arg): New function.
15404         * c-tree.h (c_build_va_arg): Declare.
15405         * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
15406         instead of build_va_arg.
15407
15408 2009-05-29  Eric Botcazou  <ebotcazou@adacore.com>
15409
15410         * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
15411         (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
15412         (ptr_difference_cost): Use affine combinations to compute it.
15413         (difference_cost): Likewise.
15414         (get_computation_cost_at): Compute more accurate cost for addresses
15415         if the ratio is a multiplier allowed in addresses.
15416         For non-addresses, consider that an additional offset or symbol is
15417         added only once.
15418
15419 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
15420
15421         * config/i386/i386.c (ix86_decompose_address): Avoid useless
15422         0 displacement.  Add 0 displacement if base is %[er]bp or %r13.
15423
15424         * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
15425         TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
15426         (prefix_rex): For UNIT_MMX don't imply the prefix by default
15427         if MODE_DI.
15428         (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
15429         to 1 for TYPE_SSE{IADD1,CVT1}.
15430         (prefix_vex_imm8): Removed.
15431         (length_vex): Only pass 1 as second argument to
15432         ix86_attr_length_vex_default if prefix_extra is 0.
15433         (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
15434         (length): For prefix vex computation use length_immediate
15435         attribute instead of prefix_vex_imm8.
15436         (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
15437         addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
15438         *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
15439         *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
15440         (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
15441         *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
15442         a space in between the operands.
15443         (*anddi_1_rex64, *andsi_1): Likewise.  Override prefix_rex to 1
15444         if one operand is 0xff and the other one si, di, bp or sp.
15445         (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
15446         other one si, di, bp or sp.
15447         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
15448         (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
15449         type and mode attributes.
15450         (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
15451         (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
15452         prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
15453         (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
15454         prefix_data16 attribute iff MODE_DF.
15455         (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
15456         (fix_trunc<mode>di_sse): Set prefix_rex attribute.
15457         (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
15458         constm128_operand in length_immediate computation.
15459         (*addhi_4): Likewise.  Fix mode attribute to MODE_HI.
15460         (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
15461         (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
15462         length_immediate attribute to 1.
15463         (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
15464         (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
15465         for certain alternatives.
15466         (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
15467         prefix_data16 attribute if MODE_V1DF.
15468         (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
15469         length_immediate to 1.
15470         (set_got_rex64, set_rip_rex64): Remove length attribute, set
15471         length_address to 4, set mode attribute to MODE_DI.
15472         (set_got_offset_rex64): Likewise.  Set length_immediate to 0.
15473         (fxam<mode>2_i387): Set length attribute to 4.
15474         (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
15475         *prefetch_3dnow_rex): Override length_address attribute.
15476         (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
15477         attributes.
15478         * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
15479         (constm128_operand): Removed.
15480         * config/i386/i386.c (memory_address_length): For
15481         disp && !index && !base in 64-bit mode account for SIB byte if
15482         print_operand_address can't optimize disp32 into disp32(%rip)
15483         and UNSPEC doesn't imply (%rip) addressing.  Add 1 to length
15484         for fs: or gs: segment.
15485         (ix86_attr_length_immediate_default): When checking if shortform
15486         is possible, truncate immediate to the length of the non-shortened
15487         immediate.
15488         (ix86_attr_length_address_default): Ignore MEM_P operands
15489         with X constraint.
15490         (ix86_attr_length_vex_default): Only check for DImode on
15491         GENERAL_REG_P operands.
15492         * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
15493         prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
15494         (sse_cvttps2pi): Clear prefix_rep attribute.
15495         (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
15496         attribute.
15497         (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
15498         (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
15499         *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
15500         iff operand 2 is const_int_operand.
15501         (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
15502         sse2_shufpd_<mode>): Set length_immediate attribute to 1.
15503         (sse2_pshufd_1): Likewise.  Set prefix attribute to maybe_vex
15504         instead of vex.
15505         (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
15506         prefix_data16.
15507         (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
15508         prefix_data16 attribute for movlpd and movhpd instructions.
15509         (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise.  Override
15510         length_immediate for shufpd instruction.
15511         (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
15512         (avx_cmpp<avxmodesuffixf2c><mode>3,
15513         avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
15514         <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
15515         avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
15516         *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
15517         (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
15518         (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
15519         (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
15520         prefix_data16 attribute for the first alternative to 1.
15521         (*avx_loadlps): Override length_immediate for the first alternative.
15522         (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
15523         attributes for second alternative.
15524         (*vec_concatv2sf_sse4_1): Override length_immediate and
15525         prefix_data16 attributes for second alternative.
15526         (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
15527         vec_extract_hi_<mode>, vec_extract_lo_v16hi,
15528         vec_extract_hi_v16hi, vec_extract_lo_v32qi,
15529         vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
15530         (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
15531         prefix_data16 and length_immediate to 1.
15532         (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
15533         to 1.
15534         (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
15535         prefix_extra attribute for variants that don't have 0f prefix alone.
15536         (*avx_pinsr<ssevecsize>): Likewise.  Set length_immediate to 1.
15537         (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
15538         *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
15539         *sse4_1_pextrd): Set length_immediate to 1.
15540         (*sse4_1_pinsrd): Likewise.  Set prefix_extra to 1.
15541         (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
15542         to 1.
15543         (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
15544         *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
15545         length_immediate to 1 for second alternative.
15546         (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
15547         prefix_extra and length_immediate attributes for the first
15548         alternative.
15549         (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
15550         first alternative.
15551         (*vec_concatv2di_rex64_sse4_1): Likewise.  Override prefix_rex
15552         to 1 for the first and third alternative.
15553         (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
15554         alternative.
15555         (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
15556         attribute.
15557         (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
15558         attribute to 0.
15559         (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
15560         *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
15561         *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
15562         *avx_psign<mode>3): Set prefix_extra attribute to 1.
15563         (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
15564         ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
15565         ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
15566         ssse3_psign<mode>3): Override prefix_rex attribute.
15567         (*avx_palignrti): Override prefix_extra and length_immediate to 1.
15568         (ssse3_palignrti): Override length_immediate to 1.
15569         (ssse3_palignrdi): Override length_immediate to 1, override
15570         prefix_rex attribute.
15571         (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
15572         (sse4a_extrqi): Override length_immediate to 2.
15573         (sse4a_insertqi): Likewise.  Override prefix_data16 to 0.
15574         (sse4a_insertq): Override prefix_data16 to 0.
15575         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
15576         avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
15577         avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
15578         *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
15579         avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
15580         and length_immediate to 1.
15581         (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
15582         sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
15583         sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
15584         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
15585         and length_immediate to 1.
15586         (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
15587         (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
15588         (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
15589         avx_ptest256): Override prefix_extra to 1.
15590         (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
15591         Override prefix_data16 and length_immediate to 1.
15592         (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
15593         sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
15594         sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
15595         sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
15596         prefix_data16 to 0 and prefix_extra to 2.
15597         (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
15598         (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
15599         attribute.
15600         (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
15601         sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
15602         Override prefix_data16 and prefix_rep to 0, length_immediate to 1
15603         and prefix_extra to 2.
15604         (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
15605         prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
15606         (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
15607         avx_vpermilvar<mode>3,
15608         avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
15609         avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
15610         avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
15611         avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
15612         Override prefix_extra to 1.
15613         (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
15614         (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
15615         vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
15616         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
15617         prefix_extra and length_immediate to 1.
15618         (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
15619         modrm to 0.
15620         (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
15621         to 1 for the first alternative.
15622         * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
15623         prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
15624         cases.
15625         (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
15626         *movv2sf_internal_avx, *movv2sf_internal): Override
15627         prefix_rep attribute for certain alternatives.
15628         (*mov<mode>_internal): Override prefix_rep or prefix_data16
15629         attributes for certain alternatives.
15630         (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
15631         attributes for certain alternatives.
15632         (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
15633         *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
15634         mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
15635         mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
15636         *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
15637         mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
15638         mmx_pswapdv2si2): Set prefix_extra attribute to 1.
15639         (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
15640         length_immediate to 1 if operand 2 is const_int_operand.
15641         (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
15642         *vec_extractv2si_1): Set length_immediate attribute to 1.
15643         (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
15644         using old 3DNOW insn rather than SSE/3DNOW_A.
15645         (mmx_emms, mmx_femms): Clear modrm attribute.
15646
15647 2009-05-29  Martin Jambor  <mjambor@suse.cz>
15648
15649         * tree-sra.c:  New implementation of SRA.
15650
15651         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
15652         (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
15653         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
15654         * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
15655         (SRA_MAX_STRUCTURE_COUNT): Removed.
15656         (SRA_FIELD_STRUCTURE_RATIO): Removed.
15657         * doc/invoke.texi (sra-max-structure-size): Removed.
15658         (sra-field-structure-ratio): Removed.
15659
15660 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
15661
15662         PR middle-end/40291
15663         * builtins.c (expand_builtin_memcmp): Convert len to sizetype
15664         before expansion.
15665
15666 2009-05-29  Andrey Belevantsev  <abel@ispras.ru>
15667
15668         PR rtl-optimization/40101
15669         * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
15670         seqno.  Adjust comment.
15671         * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
15672         inserting bookkeeping before a jump, the jump is not scheduled.
15673         When no positive seqno found, provide a value.  Add comment.
15674
15675 2009-05-29  Richard Guenther  <rguenther@suse.de>
15676
15677         * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
15678         short-cutting on the first component.
15679
15680 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
15681
15682         PR middle-end/39958
15683         * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
15684         for trees other than decls/types.
15685
15686 2009-05-29  Richard Guenther  <rguenther@suse.de>
15687
15688         * tree-ssa-operands.c (get_expr_operands): Do not handle
15689         INDIRECT_REFs in the handled-component case.  Remove
15690         unused get_ref_base_and_extent case.
15691         * tree-dfa.c (get_ref_base_and_extent): Avoid calling
15692         tree_low_cst and host_integerp where possible.
15693         * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
15694         codes for equivalence.
15695         * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
15696
15697 2009-05-29  David Billinghurst <billingd@gcc.gnu.org>
15698
15699         * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
15700         to tmake_file for i[34567]86-*-cygwin*.
15701
15702 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
15703
15704         PR target/40017
15705         * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
15706         (altivec_categorize_keyword, init_vector_keywords,
15707         rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
15708         similar to bool.
15709
15710 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
15711
15712         * tree.c (handle_dll_attribute): Check if node is
15713         of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
15714
15715 2009-05-29  Richard Earnshaw  <rearnsha@arm.com>
15716
15717         * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
15718         component.
15719         (thumb2_zero_extendqidi2): Likewise.
15720
15721 2009-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
15722
15723         * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
15724         instead of gen_movrt.
15725         * config/sh/sh.md (movrt): Remove.
15726
15727 2009-05-28  Steve Ellcey  <sje@cup.hp.com>
15728
15729         * doc/invoke.texi (IA-64 Options):
15730         Add -msdata, -mfused-madd, -mno-inline-float-divide,
15731         -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
15732         -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
15733         -msched-prefer-non-control-spec-insns,
15734         -msched-stop-bits-after-every-cycle,
15735         -msched-count-spec-in-critical-path,
15736         -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
15737         -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
15738         Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
15739         and -msched-spec-verbose.
15740
15741 2009-05-28  Joseph Myers  <joseph@codesourcery.com>
15742
15743         * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
15744         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
15745         error if used.
15746         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
15747
15748 2009-05-28  Richard Guenther  <rguenther@suse.de>
15749
15750         * tree-ssa-alias.c (ao_ref_init): New function.
15751         (ao_ref_base): Likewise.
15752         (ao_ref_base_alias_set): Likewise.
15753         (ao_ref_alias_set): Likewise.
15754         (refs_may_alias_p_1): Change signature.
15755         (refs_may_alias_p): Adjust.
15756         (refs_anti_dependent_p): Likewise.
15757         (refs_output_dependent_p): Likewise.
15758         (call_may_clobber_ref_p_1): Change signature.
15759         (call_may_clobber_ref_p): Adjust.
15760         (stmt_may_clobber_ref_p_1): New function split out from ...
15761         (stmt_may_clobber_ref_p): ... here.
15762         (maybe_skip_until): Adjust signature.
15763         (get_continuation_for_phi): Likewise.
15764         (walk_non_aliased_vuses): Likewise.
15765         * tree-ssa-alias.h (struct ao_ref_s): New structure type.
15766         (ao_ref_init): Declare.
15767         (ao_ref_base): Likewise.
15768         (ao_ref_alias_set): Likewise.
15769         (stmt_may_clobber_ref_p_1): Likewise.
15770         (walk_non_aliased_vuses): Adjust.
15771         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
15772         (get_ref_from_reference_ops): remove.
15773         (vn_reference_lookup_2): Adjust signature.
15774         (vn_reference_lookup_3): Do not re-build trees.  Handle unions.
15775         (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
15776         (vn_reference_lookup): Adjust.
15777         (vn_reference_insert): Likewise.
15778         (vn_reference_insert_pieces): Adjust signature.
15779         (visit_reference_op_call): Adjust.
15780         * tree-ssa-pre.c (get_expr_type): Simplify.
15781         (phi_translate_1): Adjust.
15782         (compute_avail): Likewise.
15783         (translate_vuse_through_block): Do not re-build trees.
15784         (value_dies_in_block_x): Likewise.
15785         * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
15786         fields.
15787         (vn_reference_lookup_pieces): Adjust declaration.
15788         (vn_reference_insert_pieces): Likewise.
15789
15790 2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
15791
15792         * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
15793         with checking disabled.
15794
15795 2009-05-28  Dave Korn  <dave.korn.cygwin@gmail.com>
15796
15797         PR target/37216
15798
15799         * configure.ac (HAVE_GAS_ALIGNED_COMM):  Add autoconf test and
15800         macro definition for support of three-operand format aligned
15801         .comm directive in assembler on cygwin/pe/mingw target OS.
15802         * configure:  Regenerate.
15803         * config.h:  Regenerate.
15804
15805         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common):  Use
15806         aligned form of .comm directive if -mpe-aligned-commons is in effect.
15807         * config/i386/cygming.opt (-mpe-aligned-commons):  Add new option.
15808
15809         * doc/invoke.texi (-mpe-aligned-commons):  Document new target option.
15810         * doc/tm.texi (ASM_OUTPUT_COMMON):  Document zero size commons.
15811
15812 2009-05-28  Ira Rosen  <irar@il.ibm.com>
15813
15814         PR tree-optimization/40254
15815         * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
15816         in analysis of basic blocks.
15817
15818 2009-05-28  Adam Nemet  <anemet@caviumnetworks.com>
15819
15820         PR middle-end/33699
15821         * target.h (struct gcc_target): Fix indentation.  Add const_anchor.
15822         * target-def.h (TARGET_CONST_ANCHOR): New macro.
15823         (TARGET_INITIALIZER): Use it.
15824         * cse.c (CHEAPER): Move it up to the other macros.
15825         (insert): Rename this ...
15826         (insert_with_costs): ... to this.  Add cost parameters.  Update
15827         function comment.
15828         (insert): New function.  Call insert_with_costs.
15829         (compute_const_anchors, insert_const_anchor, insert_const_anchors,
15830         find_reg_offset_for_const, try_const_anchors): New functions.
15831         (cse_insn): Call try_const_anchors.  Adjust cost of src_related
15832         when using a const-anchor.  Call insert_const_anchors.
15833         * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
15834         * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
15835
15836 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
15837
15838         * tree-inline.c (remap_decls): Enable nonlocalized variables
15839         when not optimizing.
15840
15841 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
15842
15843         * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
15844         Simplify other tests involving optimize.
15845
15846 2009-05-27  Tom Tromey  <tromey@redhat.com>
15847
15848         * unwind-dw2.c (_Unwind_DebugHook): New function.
15849         (uw_install_context): Call _Unwind_DebugHook.
15850
15851 2009-05-27  Tom Tromey  <tromey@redhat.com>
15852
15853         * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
15854
15855 2009-05-27  Ian Lance Taylor  <iant@google.com>
15856
15857         * Makefile.in (LINKER, LINKER_FLAGS): Define.
15858         (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
15859         (ALL_LINKERFLAGS): Define.
15860         (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
15861         (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
15862         (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
15863         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
15864         (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
15865         $(LINKER_FOR_BUILD).
15866         (build/gcov-iov$(build_exeext)): Likewise.
15867
15868 2009-05-27  Julian Brown  <julian@codesourcery.com>
15869
15870         * gcse.c (target.h): Include.
15871         (can_assign_to_reg_without_clobbers_p): Check that the target allows
15872         copy of argument to a pseudo register.
15873
15874 2009-05-27  Diego Novillo  <dnovillo@google.com>
15875
15876         * tree-ssa-live.c (dump_scope_block): Document arguments.
15877         (dump_scope_blocks): Document.
15878         (debug_scope_blocks): New.
15879         * tree-flow.h (debug_scope_blocks): Declare.
15880
15881 2009-05-21  Denis Chertykov  <denisc@overta.ru>
15882
15883         * doc/contrib.texi (Contributors): Add myself to the list.
15884
15885 2009-05-27  Olivier Hainque  <hainque@adacore.com>
15886
15887         * expr.c (target_align): New function.  Alignment the TARGET of an
15888         assignment may be assume to have.
15889         (highest_pow2_factor_for_target): Use it instead of relying on
15890         immediate tree attributes of TARGET, not necessarily honored when
15891         intermediate bitfields are involved.
15892
15893 2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>
15894
15895         PR target/40266
15896         * config/i386/driver-i386.c (host_detect_local_cpu): Support
15897         AVX, SSE4, AES, PCLMUL and POPCNT.
15898
15899 2009-05-27  Diego Novillo  <dnovillo@google.com>
15900
15901         * tree-pretty-print.c (dump_location): New.
15902         (dump_generic_node): Call it.
15903         Factor code to handle BLOCK nodes ...
15904         (dump_block_node): ... here.
15905
15906 2009-05-27  Rafael Avila de Espindola  <espindola@google.com>
15907
15908         * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
15909         with it.
15910         * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
15911         included.
15912         * gcc-plugin.h: Include config.h and system.h.
15913         (IN_GCC): Define if not defined.
15914
15915 2009-05-27  Hans-Peter Nilsson  <hp@axis.com>
15916
15917         PR middle-end/40249
15918         * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
15919         with -fno-inline.
15920
15921 2009-05-27  Shujing Zhao  <pearly.zhao@oracle.com>
15922
15923         * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
15924         applicable.
15925         * config/m32r/m32r.h: Ditto.
15926         * config/m32r/m32r.md: Ditto.
15927         * config/m32r/predicates.md: Ditto.
15928
15929 2009-05-27  Alexandre Oliva  <aoliva@redhat.com>
15930
15931         * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
15932
15933 2009-05-26  Basile Starynkevitch  <basile@starynkevitch.net>
15934
15935         * doc/plugins.texi
15936         (Loading plugins): typo.
15937         (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
15938         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
15939         (Interacting with the GCC Garbage Collector): Added new section.
15940         (Giving information about a plugin): Added new section for
15941         PLUGIN_INFO.
15942         * ggc.h (ggc_register_root_tab): Added declaration.
15943         * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
15944         (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
15945         (register_callback): Improved comment in declaration.
15946         * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
15947         (extra_root_vec) Added static variable for dynamic roots registration.
15948         (ggc_register_root_tab) Added new routine.
15949         (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
15950         PLUGIN_GGC_MARKING event.
15951         * ggc-zone.c: Include plugin.h.
15952         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
15953         * ggc-page.c: Include plugin.h.
15954         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
15955         * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
15956         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
15957         (register_callback): check lack of callbacks for
15958         pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
15959         PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
15960         (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
15961         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
15962         * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
15963         dependency on plugin.h.
15964         (plugin.o): Added dependency on ggc.h...
15965
15966 2009-05-26  Richard Guenther  <rguenther@suse.de>
15967
15968         PR middle-end/40248
15969         Revert
15970         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
15971         with mismatched comparison modes.
15972
15973         * expr.c (expand_expr_real_1): Expand the operand of a
15974         VIEW_CONVERT_EXPR in its natural mode.
15975
15976 2009-05-26  Ian Lance Taylor  <iant@google.com>
15977
15978         * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
15979         (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
15980         (ALL_COMPILERFLAGS): Define.
15981         (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
15982         (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
15983         (collect2$(exeext), collect2.o): Likewise.
15984         (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
15985         (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
15986         ($(out_object_file), mips-tfile, mips-tdump): Likewise.
15987         (libbackend.o, intl.o, cppdefault.o): Likewise.
15988         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
15989         (build/%.o): Use $(COMPILER_FOR_BUILD).
15990         (build/gen%$(build_exeext)): Likewise.
15991         (build/gcov-iov$(build_exeext)): LIkewise.
15992         * config/t-darwin (darwin.o): Use $(COMPILER).
15993         (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
15994         * config/t-sol2 (sol2-c.o): Likewise.
15995         (sol2.o): Likewise.
15996         * config/t-vxworks (vxworks.o): Likewise.
15997         * config/x-darwin (host-darwin.o): Likewise.
15998         * config/x-hpux (host-hpux.o): Likewise.
15999         * config/x-linux (host-linux.o): Likewise.
16000         * config/x-solaris (host-solaris.o): Likewise.
16001         * config/alpha/x-alpha (driver-alpha.o): Likewise.
16002         * config/arm/t-arm (arm-c.o): Likewise.
16003         * config/arm/t-pe (pe.o): Likewise.
16004         * config/arm/t-wince-pe (pe.o): Likewise.
16005         * config/i386/t-cygming (winnt.o): Likewise.
16006         (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
16007         * config/i386/t-cygwin (cygwin1.o): Likewise.
16008         (cygwin2.o): Likewise.
16009         * config/i386/t-i386 (i386-c.o): Likewise.
16010         * config/i386/t-interix (winnt.o): Likewise.
16011         * config/i386/t-netware (netware.o): Likewise.
16012         * config/i386/t-nwld (nwld.o): Likewise.
16013         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
16014         * config/i386/x-i386 (driver-i386.o): Likewise.
16015         * config/i386/x-cygwin (host-cygwin.o): Likewise.
16016         * config/i386/x-mingw32 (host-mingw32.o): Likewise.
16017         * config/ia64/t-ia64 (ia64-c.o): Likewise.
16018         * config/m32c/t-m32c (m32c-pragma.o): Likewise.
16019         * config/mips/x-native (driver-native.o): Likewise.
16020         * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
16021         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
16022         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
16023         * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
16024         * config/score/t-score-elf (score7.o): Likewise.
16025         (score3.o): Likewise.
16026         * config/sh/t-sh (sh-c.o): Likewise.
16027         * config/sh/t-symbian (sh-c.o): Likewise.
16028         (symbian.o): Likewise.
16029         * config/spu/t-spu-elf (spu-c.o): Likewise.
16030         * config/v850/t-v850 (v850-c.o): Likewise.
16031         * config/v850/t-v850e (v850-c.o): Likewise.
16032
16033 2009-05-26  Richard Guenther  <rguenther@suse.de>
16034
16035         PR tree-optimization/40122
16036         * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
16037         VECTOR_CSTs if possible.
16038         (fold_gimple_assign): Likewise.
16039
16040 2009-05-26  Richard Guenther  <rguenther@suse.de>
16041
16042         PR middle-end/40252
16043         * fold-const.c (fold_binary): Use the correct types for building
16044         rotates.
16045
16046 2009-05-26  Richard Guenther  <rguenther@suse.de>
16047
16048         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
16049         redundant calls to merge_alias_info.
16050         (bump_vector_ptr): Likewise.
16051         * tree-ssa-copy.c (merge_alias_info): Remove.
16052         (replace_exp_1): Remove call to merge_alias_info.
16053         (propagate_tree_value): Likewise.
16054         (fini_copy_prop): Propagate points-to info.
16055         * tree-flow.h (merge_alias_info): Remove.
16056
16057 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
16058
16059         * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
16060
16061 2009-05-25  Jan Hubicka  <jh@suse.cz>
16062
16063         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
16064         * cgraph.h (struct inline_summary): New filed self_wize,
16065         size_inlining_benefit, self_time and time_inlining_benefit.
16066         (struct cgraph_global_info): Replace insns by time ans size fields.
16067         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
16068         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
16069         (ipcp_update_callgraph): Do not touch function bodies.
16070         * ipa-inline.c: Include except.h
16071         (MAX_TIME): New constant.
16072         (overall_insns): Remove.
16073         (leaf_node_p): New.
16074         (overall_size, max_benefit): New static variables.
16075         (cgraph_estimate_time_after_inlining): New function.
16076         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
16077         (cgraph_clone_inlined_nodes): Update size.
16078         (cgraph_mark_inline_edge): Update size.
16079         (cgraph_estimate_growth): Use size info.
16080         (cgraph_check_inline_limits): Check size.
16081         (cgraph_default_inline_p): Likewise.
16082         (cgraph_edge_badness): Compute badness based on benefit and size cost.
16083         (cgraph_decide_recursive_inlining): Check size.
16084         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
16085         and times.
16086         (cgraph_decide_inlining): Likewise.
16087         (cgraph_decide_inlining_incrementally): Likewise; honor
16088         PARAM_EARLY_INLINING_INSNS.
16089         (likely_eliminated_by_inlining_p): New predicate.
16090         (estimate_function_body_sizes): New function.
16091         (compute_inline_parameters): Use it.
16092         * except.c (must_not_throw_labels): New function.
16093         * except.h (must_not_throw_labels): Declare.
16094         * tree-inline.c (init_inline_once): Kill inlining_weigths
16095         * tree-ssa-structalias.c: Avoid uninitialized warning.
16096         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
16097         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
16098         (PARAM_INLINE_CALL_COST): Remove.
16099         (PARAM_EARLY_INLINING_INSNS): New.
16100
16101 2009-05-25  Richard Guenther  <rguenther@suse.de>
16102
16103         PR tree-optimization/36327
16104         * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
16105         callback for reference translation or lookup at the point of may-defs.
16106         * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
16107         * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
16108         for union COMPONENT_REFs.
16109         (vn_reference_lookup_3): New callback.  Lookup from memset
16110         and CONSTRUCTOR assignment, translate through struct copies.
16111         (vn_reference_lookup_pieces): Make sure to not free the
16112         passed operands array.  Adjust walk_non_aliased_vuses call.
16113         (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
16114         make sure we do not leak memory.
16115
16116 2009-05-25  Richard Guenther  <rguenther@suse.de>
16117
16118         * tree-ssa-alias.h (dump_points_to_solution): Declare.
16119         * tree-inline.c (expand_call_inline): Reset the escaped and
16120         callused solutions.
16121         * tree-ssa-structalias.c (pass_build_ealias): New.
16122         * tree-pass.h (pass_build_ealias): Declare.
16123         * passes.c (init_optimization_passes): Add PTA during
16124         early optimizations.
16125         * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
16126         and CALLUSED solutions.
16127         (dump_points_to_solution): New function, split out from ...
16128         (dump_points_to_info_for): ... here.
16129         * tree-parloops.c (parallelize_loops): Reset the escaped and
16130         callused solutions.
16131
16132 2009-05-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16133
16134         PR bootstrap/40027
16135         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
16136         * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
16137
16138 2009-05-25  Ira Rosen  <irar@il.ibm.com>
16139
16140         PR tree-optimization/40238
16141         * tree-vect-stmts.c (vect_init_vector): Insert initialization
16142         statements after basic block's labels.
16143         * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
16144         to free the allocated memory.
16145
16146 2009-05-24  Kaz Kojima  <kkojima@gcc.gnu.org>
16147
16148         * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
16149         return address with a USE.
16150
16151 2009-05-24  Richard Guenther  <rguenther@suse.de>
16152
16153         PR middle-end/40233
16154         * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
16155         array type from the main variant of the inner type.
16156
16157 2009-05-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
16158
16159         * config/vax/vax-protos.h (legitimate_constant_address_p): Change
16160         definition to bool (from int) to un-break build.
16161         (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
16162
16163 2009-05-24  Paolo Bonzini  <bonzini@gnu.org>
16164
16165         * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
16166         discard_stmt_changes): Delete.
16167         * tree-ssa-operands.c (scb_stack): Delete.
16168         (init_ssa_operands): Do not initialize it.
16169         (fini_ssa_operands): Do not free it.
16170         (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
16171
16172         * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
16173         update_stmt, remove the others.  Fix comments.
16174         * tree-dfa.c (optimize_stack_restore): Likewise.
16175         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
16176         * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
16177         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
16178         * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
16179         Likewise.
16180         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
16181         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
16182         (dom_opt_finalize_block): Likewise, adjusting access to
16183         stmts_to_rescan.
16184         (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
16185         (stmts_to_rescan): Change item type to gimple.
16186         (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
16187
16188 2009-05-24  Ira Rosen  <irar@il.ibm.com>
16189
16190         * doc/passes.texi (Tree-SSA passes): Document SLP pass.
16191         * tree-pass.h (pass_slp_vectorize): New pass.
16192         * params.h (SLP_MAX_INSNS_IN_BB): Define.
16193         * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
16194         * tree-vectorizer.c (timevar.h): Include.
16195         (user_vect_verbosity_level): Declare.
16196         (vect_location): Fix comment.
16197         (vect_set_verbosity_level): Update user_vect_verbosity_level
16198         instead of vect_verbosity_level.
16199         (vect_set_dump_settings): Add an argument. Ignore user defined
16200         verbosity if dump flags require higher level of verbosity. Print to
16201         stderr only for loop vectorization.
16202         (vectorize_loops): Update call to vect_set_dump_settings.
16203         (execute_vect_slp): New function.
16204         (gate_vect_slp): Likewise.
16205         (struct gimple_opt_pass pass_slp_vectorize): New.
16206         * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
16207         access its members.
16208         (vec_info_for_bb): New function.
16209         (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
16210         (VECTORIZATION_ENABLED): New macro.
16211         (SLP_ENABLED, SLP_DISABLED): Likewise.
16212         (vect_is_simple_use): Add bb_vec_info argument.
16213         (new_stmt_vec_info, vect_analyze_data_ref_dependences,
16214         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
16215         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
16216         vect_schedule_slp, vect_analyze_slp): Likewise.
16217         (vect_analyze_stmt): Add slp_tree argument.
16218         (find_bb_location): Declare.
16219         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
16220         * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
16221         (vect_analyze_loop_operations, vect_analyze_loop,
16222         get_initial_def_for_induction, vect_create_epilog_for_reduction,
16223         vect_finalize_reduction, vectorizable_reduction,
16224         vectorizable_live_operation, vect_transform_loop): Likewise.
16225         * tree-data-ref.c (dr_analyze_innermost): Update comment,
16226         skip evolution analysis if analyzing a basic block.
16227         (dr_analyze_indices): Likewise.
16228         (initialize_data_dependence_relation): Skip the test whether the
16229         object is invariant for basic blocks.
16230         (compute_all_dependences): Skip dependence analysis for data
16231         references in basic blocks.
16232         (find_data_references_in_stmt): Don't fail in case of invariant
16233         access in basic block.
16234         (find_data_references_in_bb): New function.
16235         (find_data_references_in_loop): Move code to
16236         find_data_references_in_bb and add a call to it.
16237         (compute_data_dependences_for_bb): New function.
16238         * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
16239         * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
16240         that STEP is 0.
16241         (vect_analyze_data_ref_dependence): Check for interleaving in case of
16242         unknown dependence in basic block and fail in case of dependence in
16243         basic block.
16244         (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
16245         dependence instances from either loop or basic block vectorization
16246         info.
16247         (vect_compute_data_ref_alignment): Check if it is loop vectorization
16248         before calling nested_in_vect_loop_p.
16249         (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
16250         dependence instances from either loop or basic block vectorization
16251         info.
16252         (vect_verify_datarefs_alignment): Likewise.
16253         (vect_enhance_data_refs_alignment): Adjust function calls.
16254         (vect_analyze_data_refs_alignment): Likewise.
16255         (vect_analyze_group_access): Fix printing. Skip different checks if
16256         DR_STEP is 0. Keep strided stores either in loop or basic block
16257         vectorization data structure. Fix indentation.
16258         (vect_analyze_data_ref_access): Fix comments, allow zero step in
16259         basic blocks.
16260         (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
16261         dependence instances from either loop or basic block vectorization
16262         info.
16263         (vect_analyze_data_refs): Update comment. Call
16264         compute_data_dependences_for_bb to analyze basic blocks.
16265         (vect_create_addr_base_for_vector_ref): Check for outer loop only in
16266         case of loop vectorization. In case of basic block vectorization use
16267         data-ref itself as a base.
16268         (vect_create_data_ref_ptr): In case of basic block vectorization:
16269         don't advance the pointer, add new statements before the current
16270         statement.  Adjust function calls.
16271         (vect_supportable_dr_alignment): Support only aligned accesses in
16272         basic block vectorization.
16273         * common.opt (ftree-slp-vectorize): New flag.
16274         * tree-vect-patterns.c (widened_name_p): Adjust function calls.
16275         (vect_pattern_recog_1): Likewise.
16276         * tree-vect-stmts.c (process_use): Likewise.
16277         (vect_init_vector): Add new statements in the beginning of the basic
16278         block in case of basic block SLP.
16279         (vect_get_vec_def_for_operand): Adjust function calls.
16280         (vect_finish_stmt_generation): Likewise.
16281         (vectorizable_call): Add assert that it is loop vectorization, adjust
16282         function calls.
16283         (vectorizable_conversion, vectorizable_assignment): Likewise.
16284         (vectorizable_operation): In case of basic block SLP, take
16285         vectorization factor from statement's type and skip the relevance
16286         check. Adjust function calls.
16287         (vectorizable_type_demotion): Add assert that it is loop
16288         vectorization, adjust function calls.
16289         (vectorizable_type_promotion): Likewise.
16290         (vectorizable_store): Check for outer loop only in case of loop
16291         vectorization. Adjust function calls. For basic blocks, skip the
16292         relevance check and don't advance pointers.
16293         (vectorizable_load): Likewise.
16294         (vectorizable_condition): Add assert that it is loop vectorization,
16295         adjust function calls.
16296         (vect_analyze_stmt): Add argument. In case of basic block SLP, check
16297         that it is not reduction, get vector type, call only supported
16298         functions, skip loop specific parts.
16299         (vect_transform_stmt): Check for outer loop only in case of loop
16300         vectorization.
16301         (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
16302         (vect_is_simple_use): Fix comment, add new argument, fix conditions
16303         for external definition.
16304         * passes.c (pass_slp_vectorize): New pass.
16305         * tree-vect-slp.c (find_bb_location): New function.
16306         (vect_get_and_check_slp_defs): Add argument, adjust function calls,
16307         check for patterns only in loops.
16308         (vect_build_slp_tree): Add argument, adjust function calls, fail in
16309         case of multiple types in basic block SLP.
16310         (vect_mark_slp_stmts_relevant): New function.
16311         (vect_supported_load_permutation_p): Fix comment.
16312         (vect_analyze_slp_instance): Add argument. In case of basic block
16313         SLP, take vectorization factor from statement's type, check that
16314         unrolling factor is 1. Adjust function call. Save SLP instance in
16315         either loop or basic block vectorization structure. Return FALSE,
16316         if SLP failed.
16317         (vect_analyze_slp): Add argument. Get strided stores groups from
16318         either loop or basic block vectorization structure. Return FALSE
16319         if basic block SLP failed.
16320         (new_bb_vec_info): New function.
16321         (destroy_bb_vec_info, vect_slp_analyze_node_operations,
16322         vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
16323         (vect_schedule_slp): Add argument. Get SLP instances from either
16324         loop or basic block vectorization structure. Set vectorization factor
16325         to be 1 for basic block SLP.
16326         (vect_slp_transform_bb): New function.
16327         * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
16328
16329 2009-05-23  Mark Mitchell  <mark@codesourcery.com>
16330
16331         * final.c (shorten_branches): Do not align labels for jump tables.
16332         (final_scan_insn): Use JUMP_TABLE_DATA_P.
16333
16334 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
16335
16336         * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
16337         Remove outdated reference to flow.c and fix nits.
16338         * doc/gccint.texi: Tweak RTL description.
16339         * doc/rtl.texi: Likewise.
16340
16341 2009-05-23  Denis Chertykov  <chertykov@gmail.com>
16342
16343         * config/avr/avr.c: Change my email address.
16344         * config/avr/avr.h: Likewise.
16345         * config/avr/avr.md: Likewise.
16346         * config/avr/avr-protos.h: Likewise.
16347         * config/avr/libgcc.S: Likewise.
16348
16349 2009-05-22  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
16350
16351         * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
16352         (spu_split_load, spu_split_store): Change return type to int.
16353         (spu_split_convert): Declare.
16354         * config/spu/predicates.md (spu_mem_operand): Remove.
16355         (spu_mov_operand): Update.
16356         (spu_dest_operand, shiftrt_operator, extend_operator): Define.
16357         * config/spu/spu.c (regno_aligned_for_load): Remove.
16358         (reg_aligned_for_addr, spu_expand_load): Define.
16359         (spu_expand_extv): Reimplement and handle MEM.
16360         (spu_expand_insv): Handle MEM.
16361         (spu_sched_reorder): Handle insn's with length 0.
16362         (spu_legitimate_address_p): Reimplement.
16363         (store_with_one_insn_p): Return TRUE for any mode with size
16364         larger than 16 bytes.
16365         (address_needs_split): Define.
16366         (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
16367         operands.
16368         (spu_convert_move): Define.
16369         (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
16370         (spu_split_store): Change all MEM's to TImode.
16371         (spu_init_expanders): Preallocate registers that correspond to
16372         LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
16373         mark_reg_pointer.
16374         (spu_split_convert): Define.
16375         * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
16376         (_move<mode>, _movdi, _movti): Update predicate and condition.
16377         (load, store): Change to define_split.
16378         (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
16379         extend<mode>ti2.
16380         (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
16381         (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
16382         define_insn_and_split of lshr<mode>3.
16383         (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
16384         (<v>ashr<mode>3_imm): Define.
16385         (extv, extzv, insv): Allow MEM operands.
16386         (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
16387         shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
16388         sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
16389         (_spu_convert2): Change to define_insn_and_split and remove the
16390         corresponding define_peephole2.
16391         (stack_protect_set, stack_protect_test, stack_protect_test_si):
16392         Change predicates to memory_operand.
16393
16394 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
16395
16396         * config/arm/thumb2.md: Add 16-bit multiply instructions.
16397
16398 2009-05-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
16399
16400         PR tree-optimization/40219
16401         * tree.c (iterative_hash_expr): Make sure the builtin function is
16402         a normal builtin function and not a front end or back end builtin
16403         before indexing into the built_in_decls array.
16404
16405 2009-05-22  Richard Guenther  <rguenther@suse.de>
16406
16407         PR middle-end/38964
16408         * alias.c (write_dependence_p): Do not use TBAA for answering
16409         anti-dependence or output-dependence.
16410         * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
16411         (emit_pointer_definition): Remove.
16412         (emit_alias_warning): Likewise.
16413         (find_what_var_points_to): Remove TBAA pruning code.
16414         (find_what_p_points_to): Likewise.  Do not warn about strict-aliasing
16415         violations.
16416         (compute_points_to_sets): Remove code computing the set of
16417         dereferenced pointers.
16418         * tree-data-ref.c (dr_may_alias_p): Properly use the split
16419         oracle for querying anti and output dependencies.
16420         * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
16421         if TBAA may be applied.
16422         (refs_anti_dependent_p): New function.
16423         (refs_output_dependent_p): Likewise.
16424         * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
16425         (refs_output_dependent_p): Likewise.
16426         * doc/tree-ssa.texi (Memory model): New section.
16427         * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
16428         * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
16429         * cfgexpand.c (expand_gimple_basic_block): Do not handle
16430         GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
16431         * expr.c (expand_expr_real_1): Likewise.
16432         * gimple-low.c (lower_stmt): Likewise.
16433         * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
16434         (dump_gimple_cdt): Remove.
16435         * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
16436         (gimple_size): Likewise.
16437         (walk_gimple_op): Likewise.
16438         (is_gimple_stmt): Likewise.
16439         (walk_stmt_load_store_addr_ops): Likewise.
16440         (gimple_build_cdt): Remove.
16441         * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
16442         * gimple.h (gimple_cdt_new_type): Remove.
16443         (gimple_cdt_new_type_ptr): Likewise.
16444         (gimple_cdt_set_new_type): Likewise.
16445         (gimple_cdt_location): Likewise.
16446         (gimple_cdt_location_ptr): Likewise.
16447         (gimple_cdt_set_location): Likewise.
16448         * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
16449         * tree-cfg.c (remove_useless_stmts_1): Do not handle
16450         GIMPLE_CHANGE_DYNAMIC_TYPE.
16451         (verify_types_in_gimple_stmt): Likewise.
16452         * tree-inline.c (estimate_num_insns): Likewise.
16453         (expand_call_inline): Do not copy DECL_NO_TBAA_P.
16454         (copy_decl_to_var): Likewise.
16455         (copy_result_decl_to_var): Likewise.
16456         * tree-pretty-print.c (dump_generic_node): Do not handle
16457         CHANGE_DYNAMIC_TYPE_EXPR.
16458         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
16459         * tree-ssa-operands.c (get_expr_operands): Likewise.
16460         * tree-ssa-structalias.c (struct variable_info): Remove
16461         no_tbaa_pruning member.
16462         (new_var_info): Do not set it based on DECL_NO_TBAA_P.
16463         (unify_nodes): Do not copy it.
16464         (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
16465         (dump_solution_for_var): Do not dump no_tbaa_pruning state.
16466         (set_uids_in_ptset): Do not check it.
16467         (find_what_var_points_to): Likewise.
16468         (compute_tbaa_pruning): Remove.
16469         (compute_points_to_sets): Do not call it.
16470         * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
16471         * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
16472         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
16473         (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
16474         (DECL_NO_TBAA_P): Likewise.
16475         (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
16476         * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
16477         (expand_omp_atomic_pipeline): Do not set it.
16478         * print-tree.c (print_node): Do not dump it.
16479         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
16480         redundant check.
16481
16482 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
16483
16484         PR target/39856
16485         * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
16486         for clobber.
16487
16488 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
16489
16490         * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
16491         non-external.
16492
16493 2009-05-22  Ben Elliston  <bje@au.ibm.com>
16494
16495         * Makefile.in (bversion.h, s-bversion): New targets.
16496         (TOPLEV_H): Add bversion.h.
16497         * toplev.h: Include "bversion.h".
16498         (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
16499         the __format__ attribute only if compiling with the same version
16500         of GCC as the sources (the "build version").
16501
16502 2009-05-22  Ben Elliston  <bje@au.ibm.com>
16503
16504         * c-format.c (handle_format_attribute): Fix comment typo.
16505
16506 2009-05-21  Steve Ellcey  <sje@cup.hp.com>
16507
16508         PR target/37846
16509         * config/ia64/ia64.opt (mfused-madd): New.
16510         * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
16511         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
16512         * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
16513         madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
16514         nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
16515         msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
16516         nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
16517         * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
16518         instruction if !TARGET_FUSED_MADD.
16519         (fpma, fpms): Remove colon from name.
16520
16521 2009-05-22  Richard Guenther  <rguenther@suse.de>
16522
16523         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
16524         TMR_ORIGINAL.  Always either record TMR_SYMBOL or TMR_BASE.
16525         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
16526         TARGET_MEM_REF.
16527         (create_expression_by_pieces): Only convert if necessary.
16528         * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
16529         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
16530
16531 2009-05-21  Adam Nemet  <anemet@caviumnetworks.com>
16532
16533         * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
16534         regular pattern from a template and rename it ...
16535         (*extzv_truncsi_exts): ... to this.
16536
16537 2009-05-21  Richard Guenther  <rguenther@suse.de>
16538
16539         * cgraph.h (struct cgraph_node): Remove inline_decl member.
16540         * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
16541         (cgraph_default_inline_p): Likewise.
16542         (cgraph_decide_inlining_incrementally): Likewise.
16543
16544 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
16545             Uros Bizjak  <ubizjak@gmail.com>
16546
16547         * config/i386/cpuid.h (bit_MOVBE): New.
16548
16549         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
16550
16551         * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
16552         (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
16553         (ix86_handle_option): Handle OPT_mmovbe.
16554         (ix86_target_string): Add -mmovbe.
16555         (pta_flags): Add PTA_MOVBE.
16556         (processor_alias_table): Add PTA_MOVBE to "atom".
16557         (override_options): Handle PTA_MOVBE.
16558
16559         * config/i386/i386.h (TARGET_MOVBE): New.
16560
16561         * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
16562         (*bswapsi_movbe): New.
16563         (*bswapdi_movbe): Likewise.
16564         (bswapdi2): Renamed to ...
16565         (*bswapdi_1): This.
16566         (bswapdi2): New expander.
16567
16568         * config/i386/i386.opt (mmovbe): New.
16569
16570         * doc/invoke.texi: Document -mmovbe.
16571
16572 2009-05-21  Taras Glek  <tglek@mozilla.com>
16573
16574         * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
16575         * gcc-plugin.h (plugin_init): Updated signature.
16576         * gcc-plugin.h (plugin_name_args): Moved to this header.
16577         * doc/plugins.texi (plugin_init): Updated documention to reflect
16578         API change.
16579         * doc/plugins.texi (plugin_name_args): Added to documention.
16580
16581 2009-05-21  Mark Mitchell  <mark@codesourcery.com>
16582
16583         * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
16584         (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
16585
16586 2009-05-21  Shujing Zhao  <pearly.zhao@oracle.com>
16587
16588         * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
16589         JUMP_TABLE_DATA_P predicates where applicable.
16590         * config/i386/predicates.md: Ditto.
16591         * config/i386/sse.md: Ditto.
16592
16593 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
16594
16595         * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
16596         operand2 -128 override length_immediate attribute to 1.
16597         * config/i386/predicates.md (constm128_operand): New predicate.
16598
16599         * config/i386/i386.c (memory_address_length): Handle %r12
16600         the same as %rsp and %r13 the same as %rbp.  For %rsp and %rbp
16601         also check REGNO.
16602         (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
16603         mode look through optional ZERO_EXTEND and SUBREG.
16604         * config/i386/i386.md (R12_REG): New define_constant.
16605         (prefix_data16): For sse unit set also for MODE_TI insns.
16606         (prefix_rex): For -m32 always return 0.  For TYPE_IMOVX
16607         insns set if operand 1 is ext_QIreg_operand.
16608         (modrm): For TYPE_IMOV clear only if not MODE_DI.  For
16609         TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
16610         immediate.
16611         (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
16612         mode from MODE_DI to MODE_SI.
16613         (movdi_1_rex64): Override modrm and length_immediate attributes
16614         only for movabs (TYPE_IMOV, alternative 2).
16615         (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
16616         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
16617         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
16618         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
16619         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
16620         prefix_rex attribute if DImode.
16621         (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
16622         *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
16623         *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
16624         *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
16625         attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
16626         (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
16627         Likewise.  For TYPE_IMOV clear length_immediate attribute.
16628         (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
16629         *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
16630         *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
16631         *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
16632         *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
16633         or one operand TYPE_ISHIFT.
16634         (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
16635         *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
16636         *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
16637         *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
16638         *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
16639         *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
16640         *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
16641         *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
16642         *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
16643         *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
16644         *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
16645         *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
16646         *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
16647         *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
16648         *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
16649         *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
16650         *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
16651         set mode attribute, don't override length attribute.
16652         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
16653         to 1.
16654         (return_internal_long): Set length attribute to 2 instead of 1.
16655         (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
16656         *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
16657         prefix_rex attribute.
16658         * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
16659         New predicates.
16660         (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
16661
16662 2009-05-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16663
16664         * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
16665
16666 2009-05-20  Ian Lance Taylor  <iant@google.com>
16667
16668         * tree.c (build_tree_list_vec_stat): New function.
16669         (ctor_to_vec): New function.
16670         (build_nt_call_vec): New function.
16671         (build_call_array): Change args to be a const pointer.
16672         (build_call_vec): New function.
16673         * tree.h (build_nt_call_vec): Declare.
16674         (build_tree_list_vec_stat): Declare.
16675         (build_tree_list_vec): Define.
16676         (build_call_array): Update declaration.
16677         (build_call_vec): Declare.
16678         (ctor_to_vec): Declare.
16679         * c-common.c (tree_vector_cache): New static variable.
16680         (make_tree_vector): New function.
16681         (release_tree_vector): New function.
16682         (make_tree_vector_single): New function.
16683         (make_tree_vector_copy): New function.
16684         * c-common.h (tree_vector_cache, make_tree_vector): Declare.
16685         (make_tree_vector_single, make_tree_vector_copy): Declare.
16686         * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
16687         (c_parser_expr_list): Don't manage cache here, instead call
16688         make_tree_vector.
16689         (c_parser_release_expr_list): Remove static function.
16690         (c_parser_vec_to_tree_list): Remove static function.
16691         (c_parser_attributes): Call build_tree_list_vec instead of
16692         c_parser_vec_to_tree_list.  Call release_tree_vector instead of
16693         c_parser_release_expr_list.
16694         (c_parser_postfix_expression_after_primary): Likewise.
16695         (c_parser_objc_keywordexpr): Likewise.
16696
16697 2009-05-20  Sandra Loosemore  <sandra@codesourcery.com>
16698
16699         * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
16700         TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
16701         TARGET_CONVERT_TO_TYPE.
16702         * hooks.c (hook_tree_const_tree_null): Define.
16703         * hooks.h (hook_tree_const_tree_null): Declare.
16704         * target.h (struct gcc_target):  Add invalid_parameter_type,
16705         invalid_return_type, promoted_type, and convert_to_type fields.
16706         * target-def.h (TARGET_INVALID_PARAMETER_TYPE): Define.
16707         (TARGET_INVALID_RETURN_TYPE): Define.
16708         (TARGET_PROMOTED_TYPE): Define.
16709         (TARGET_CONVERT_TO_TYPE): Define.
16710         (TARGET_INITIALIZER): Update for new fields.
16711         * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
16712         (grokparms): Check targetm.invalid_parameter_type.
16713         * c-typeck.c (default_conversion): Check targetm.promoted_type.
16714         * c-convert.c (convert): Check targetm.convert_to_type.
16715
16716 2009-05-20  Adam Nemet  <anemet@caviumnetworks.com>
16717
16718         * config/mips/mips.md (*extenddi_truncate<mode>,
16719         *extendsi_truncate<mode>): Emit exts if supported.  Add attribute
16720         defintions.
16721         (*extendhi_truncateqi): New define_insn_and_sptit.
16722
16723 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
16724
16725         PR middle-end/40204
16726         * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
16727         recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
16728
16729 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
16730
16731         * fold-const.c (build_fold_addr_expr_with_type): Take the address of
16732         the operand of VIEW_CONVERT_EXPR.
16733
16734 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
16735
16736         * config/i386/driver-i386.c (host_detect_local_cpu): Check
16737         extended family and model for Intel processors.  Support Intel Atom.
16738
16739 2009-05-20  Olivier Hainque  <hainque@adacore.com>
16740
16741         * gstab.h (stab_code_type): Define, to be used instead of the
16742         __stab_debug_code enum, made anonymous.  Add 2009 to the copyright
16743         notice.
16744         * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
16745         occurrences by stab_code_type.
16746         * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
16747
16748 2009-05-20  Martin Jambor  <mjambor@suse.cz>
16749
16750         * tree-flow.h (insert_edge_copies_seq): Undeclare.
16751         (sra_insert_before): Likewise.
16752         (sra_insert_after): Likewise.
16753         (sra_init_cache): Likewise.
16754         (sra_type_can_be_decomposed_p): Likewise.
16755         * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
16756         * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
16757         (sra_insert_before): Likewise.
16758         (sra_insert_after): Likewise.
16759         (sra_init_cache): Likewise.
16760         (insert_edge_copies_seq): Made static and moved upwards.
16761
16762         * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
16763         case.
16764
16765         * tree-flow-inline.h (contains_view_convert_expr_p): New function.
16766
16767         * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
16768         (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
16769         simple copies.
16770
16771 2009-05-20  Richard Guenther  <rguenther@suse.de>
16772
16773         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
16774         with mismatched comparison modes.
16775
16776 2009-05-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16777
16778         * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
16779         (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
16780         * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
16781         with shifts for Thumb2.
16782         (orsi_notsi): New for orn.
16783         (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
16784         (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
16785         * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
16786         (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
16787         Don't invert remainder for IOR.
16788
16789 2009-05-19  Zdenek Dvorak  <ook@ucw.cz>
16790
16791         PR tree-optimization/40087
16792         * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
16793         number_of_iterations_ne): Rename never_infinite argument.
16794         (number_of_iterations_lt_to_ne, number_of_iterations_lt,
16795         number_of_iterations_le): Handle pointer-type ivs when
16796         exit_must_be_taken is false.
16797         (number_of_iterations_cond):  Do not always assume that
16798         exit_must_be_taken if the control variable is a pointer.
16799
16800 2009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16801
16802         * c-typeck.c (build_binary_op): Allow % on integal vectors.
16803         * doc/extend.texi (Vector Extension): Document that % is allowed too.
16804
16805 2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
16806
16807         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
16808         ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
16809
16810 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16811
16812         PR c/40172
16813         * c.opt (Wlogical-op): Disabled by default.
16814         * c-opt (c_common_post_options): Do not enable Wlogical-op with
16815         Wextra.
16816         * doc/invoke.texi (Wlogical-op): Likewise.
16817
16818 2009-05-19  Eric Botcazou  <ebotcazou@adacore.com>
16819
16820         * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
16821         into CASE_CONVERT.
16822         <PLUS_EXPR>: Strip useless type conversions instead of type nops.
16823         Propagate the type of the first operand.
16824         <ASSERT_EXPR>: Simplify.
16825         (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
16826         Rewrite using the RHS code as discriminant.
16827         <NOP_EXPR>: Turn into CASE_CONVERT.
16828         <PLUS_EXPR>: Propagate the type of the first operand.
16829
16830 2009-05-19  Steve Ellcey  <sje@cup.hp.com>
16831
16832         * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
16833         (ia64_dconst_0_375): New.
16834         * config/ia64/ia64.c (ia64_override_options): Remove
16835         -minline-sqrt-min-latency warning.
16836         (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
16837         (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
16838         * config/ia64/ia64.md (*sqrt_approx): Remove.
16839         (sqrtsf2): Remove #if 0.
16840         (sqrtsf2_internal_thr): Rewrite and move to div.md.
16841         (sqrtdf): Remove assert.
16842         (sqrtdf2_internal_thr): Rewrite and move to div.md.
16843         (sqrtxf2): Remove #if 0.
16844         (sqrtxf2_internal_thr): Rewrite and move to div.md.
16845         * div.md (sqrt_approx_rf): New.
16846         (sqrtsf2_internal_thr): New implementation.
16847         (sqrtsf2_internal_lat): New.
16848         (sqrtdf2_internal_thr: New implementation.
16849         (sqrtxf2_internal): New implementation.
16850
16851 2009-05-19  Francois-Xavier Coudert  <fxcoudert@gmail.com>
16852             Hans-Peter Nilsson  <hp@axis.com>
16853
16854         * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
16855         (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
16856         (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
16857         (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
16858         (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
16859         (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
16860         (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
16861         (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
16862         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
16863         (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
16864         * c-common.c: ...from here.
16865
16866 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16867
16868         * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
16869
16870 2009-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16871
16872         * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
16873
16874 2009-05-19  Ben Elliston  <bje@au.ibm.com>
16875
16876         * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
16877         assignments with memcpy calls.
16878         (add_fdes): Likewise.
16879         (binary_search_unencoded_fdes): Likewise.
16880         (linear_search_fdes): Eliminate type puns.
16881
16882 2009-05-19  Richard Guenther  <rguenther@suse.de>
16883
16884         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
16885         not falsely claim to have propagated into all uses.
16886
16887 2009-05-19  Ben Elliston  <bje@au.ibm.com>
16888
16889         * doc/invoke.texi (C Dialect Options): Update OpenMP specification
16890         version to v3.0.
16891
16892 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
16893
16894         * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
16895         * config/sh/sh.c (sh_legitimate_address_p): Make static.
16896         (TARGET_LEGITIMATE_ADDRESS_P): New.
16897         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16898         * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
16899
16900 2009-05-18  Dodji Seketeli  <dodji@redhat.com>
16901
16902         PR debug/40109
16903         * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
16904         child of the containing namespace's DIE.
16905
16906 2009-05-18  Adam Nemet  <anemet@caviumnetworks.com>
16907
16908         * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
16909         *zero_extendhi_truncqi):  Move after the zero_extend patterns.
16910         (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
16911         extend patterns.
16912
16913 2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>
16914
16915         PR target/39942
16916         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
16917         gen_align with gen_pad.
16918         (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
16919         #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
16920
16921         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
16922         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
16923
16924         * config/i386/i386.md (align): Renamed to ...
16925         (pad): This.  Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
16926         ASM_OUTPUT_MAX_SKIP_PAD.
16927
16928 2009-05-18  Andreas Schwab  <schwab@linux-m68k.org>
16929
16930         * config.gcc: Fix variable syntax.
16931
16932         PR target/39531
16933         * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
16934         before calling exact_log2.
16935         (output_iorsi3): Likewise.
16936         (output_xorsi3): Likewise.
16937
16938 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
16939
16940         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
16941         for the none zero constant operand except for EQ and NE
16942         comprisons even when the first operand is R0.
16943
16944 2009-05-18  Andreas Krebbel  <krebbel1@de.ibm.com>
16945
16946         * config/s390/2064.md: Remove trailing whitespaces.
16947         * config/s390/2084.md: Likewise.
16948         * config/s390/constraints.md: Likewise.
16949         * config/s390/fixdfdi.h: Likewise.
16950         * config/s390/libgcc-glibc.ver: Likewise.
16951         * config/s390/s390-modes.def: Likewise.
16952         * config/s390/s390-protos.h: Likewise.
16953         * config/s390/s390.c: Likewise.
16954         * config/s390/s390.h: Likewise.
16955         * config/s390/s390.md: Likewise.
16956         * config/s390/tpf-unwind.h: Likewise.
16957
16958 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
16959
16960         * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
16961
16962 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
16963
16964         M68K TLS support.
16965         * configure.ac (m68k-*-*): Check if binutils support TLS.
16966         * configure: Regenerate.
16967         * config/m68k/predicates.md (symbolic_operand): Extend comment.
16968         * config/m68k/constraints.md (Cu): New constraint.
16969         * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
16970         (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
16971         (movsi): Handle TLS symbols.
16972         (addsi3_5200): Handle XTLS symbols, indent.
16973         * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
16974         (m68k_tls_reference_p): Declare.
16975         (m68k_legitimize_address): Declare.
16976         (m68k_unwrap_symbol): Declare.
16977         * config/m68k/m68k.opt (mxtls): New option.
16978         * config/m68k/m68k.c (ggc.h): Include.
16979         (m68k_output_dwarf_dtprel): Implement hook.
16980         (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
16981         (m68k_expand_prologue): Load GOT pointer when function needs it.
16982         (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
16983         (m68k_legitimate_constant_address_p): Same.
16984         (m68k_decompose_address): Handle TLS references.
16985         (m68k_get_gp): New static function.
16986         (enum m68k_reloc): New contants.
16987         (TLS_RELOC_P): New macro.
16988         (m68k_wrap_symbol): New static function.
16989         (m68k_unwrap_symbol): New function.
16990         (m68k_final_prescan_insn_1): New static function.
16991         (m68k_final_prescan_insn): New function.
16992         (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
16993         functions.
16994         (legitimize_pic_address): Handle TLS references..
16995         (m68k_tls_get_addr, m68k_get_tls_get_addr)
16996         (m68k_libcall_value_in_a0_p)
16997         (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
16998         (m68k_call_m68k_read_tp): Helper variables and functions for ...
16999         (m68k_legitimize_tls_address): Handle TLS references.
17000         (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
17001         New functions.
17002         (m68k_legitimize_address): Handle TLS symbols.
17003         (m68k_get_reloc_decoration): New static function.
17004         (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
17005         UNSPEC_RELOC32.
17006         (m68k_output_dwarf_dtprel): Implement hook.
17007         (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
17008         (m68k_libcall_value): Return result in A0 instead of D0 when asked by
17009         m68k_call_* routines.
17010         (sched_attr_op_type): Handle TLS symbols.
17011         (gt-m68k.h): Include.
17012         * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
17013         (LEGITIMATE_PIC_OPERAND_P): Support TLS.
17014
17015 2009-05-18  Martin Jambor  <mjambor@suse.cz>
17016
17017         * ipa-prop.c (ipa_check_stmt_modifications): Removed.
17018         (visit_store_addr_for_mod_analysis): New function.
17019         (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
17020         (determine_cst_member_ptr): Use gimple_assign_single_p.
17021         (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
17022         (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
17023         operands.  Don't check number of operands of a NOP_EXPR.
17024
17025 2009-05-18  Eric Fisher  <joefoxreal@gmail.com>
17026
17027         * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
17028
17029 2009-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17030
17031         PR c/40172
17032         * c-common.c (warn_logical_operator): Don't warn if one of
17033         expression isn't always true or false.
17034
17035 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
17036
17037         * config/i386/biarch32.h: New file.
17038         * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
17039
17040 2009-05-17  Adam Nemet  <anemet@caviumnetworks.com>
17041
17042         * config/mips/mips.md (*zero_extend<mode>_trunchi,
17043         *zero_extend<mode>_truncqi): Merge these into ...
17044         (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
17045         Name the pattern following this as *zero_extendhi_truncqi.
17046
17047 2009-05-16  Brad Lucier  <lucier@math.purdue.edu>
17048
17049         PR middle-end/39301
17050         * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
17051         * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
17052         (output_info): Make field HOST_WIDEST_INT.
17053         (print_statistics): Use HOST_WIDEST_INT_PRINT.
17054         (dump_bitmat_statistics): Same.
17055
17056 2009-05-16  Francois-Xavier Coudert  <fxcoudert@gmail.com>
17057
17058         * config.gcc (use_gcc_stdint):  Set to wrap.
17059         * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
17060         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
17061         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
17062         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
17063         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
17064         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
17065         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
17066         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
17067
17068 2009-05-16  Joseph Myers  <joseph@codesourcery.com>
17069
17070         * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
17071         tune_64.
17072         * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
17073         Move definitions earlier.
17074         (OPT_ARCH64, OPT_ARCH32): Define.
17075         (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
17076         and tune_64.
17077
17078 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
17079
17080         PR target/40153
17081         * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
17082         implies.
17083
17084 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
17085
17086         * arm.md (movdi2): Copy non-reg values to DImode registers.
17087
17088 2009-05-16  Jakub Jelinek  <jakub@redhat.com>
17089
17090         PR target/39942
17091         * final.c (label_to_max_skip): New function.
17092         (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
17093         CODE_LABEL_NUMBER <= max_labelno.
17094         * output.h (label_to_max_skip): New prototype.
17095         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
17096         (ix86_avoid_jump_mispredicts): ... this.  Don't define if
17097         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.  Update comment.
17098         Handle CODE_LABELs with >= 16 byte alignment or with
17099         max_skip == (1 << align) - 1.
17100         (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
17101         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
17102
17103         PR target/39942
17104         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
17105         .p2align 3 if MAX_SKIP is smaller than 7.
17106         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
17107
17108 2009-05-15  Ian Lance Taylor  <iant@google.com>
17109
17110         * alias.c (struct alias_set_entry_d): Rename from struct
17111         alias_set_entry.  Change all uses.
17112         * except.c (struct call_site_record_d): Rename from struct
17113         call_site_record.  Change all uses.
17114         * except.h (struct eh_region_d): Rename from struct eh_region.
17115         Change all uses.
17116         * gcse.c (struct hash_table_d): Rename from struct hash_table.
17117         Change all uses.
17118         * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
17119         ivtype_map_elt.  Change all uses.
17120         (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
17121         Change all uses.
17122         (struct ifsese_d): Rename fromstruct ifsese.  Change all uses.
17123         * graphite.h (struct name_tree_d): Rename from struct name_tree.
17124         Change all uses.
17125         (struct sese_d): Rename from struct sese.  Change all uses.
17126         * omega.h (struct eqn_d): Rename from struct eqn.  Change all uses.
17127         (struct omega_pb_d): Rename from struct omega_pb.  Change all uses.
17128         * optabs.h (struct optab_d): Rename from struct optab.  Change all
17129         uses.
17130         (struct convert_optab_d): Rename from struct convert_optab.
17131         Change all uses.
17132         * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
17133         ipa_opt_pass.  Change all uses.
17134         * tree-predcom.c (struct dref_d): Rename from struct dref.  Change
17135         all uses.
17136
17137         * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
17138         defined as a typedef.
17139         (grokdeclarator): If -Wc++-compat, warn if a typedef is already
17140         defined as a tag.
17141
17142 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17143
17144         PR 16302
17145         * fold-const.c (make_range,build_range_check,merge_ranges): Move
17146         declaration to...
17147         (merge_ranges): Returns bool.
17148         * tree.h (make_range): .. to here.
17149         (build_range_check): Likewise.
17150         (merge_ranges): Likewise. Renamed from merge_ranges.
17151         * c-typeck.c (parser_build_binary_op): Update calls to
17152         warn_logical_operator.
17153         * c-common.c (warn_logical_operator): Add new warning.
17154         * c-common.h (warn_logical_operator): Update declaration.
17155
17156 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17157
17158         * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
17159
17160 2009-05-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17161
17162         * doc/install.texi: Document MPC requirements, flags etc.
17163
17164         * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
17165         (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
17166         Evaluate constant arguments.
17167         (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
17168         (fold_builtin_1): Likewise, also evaluate constant arguments.
17169         Remove superfluous break.
17170         (do_mpc_ckconv): New.
17171         * real.h: Include mpc.h.
17172         * toplev.c (print_version): Output MPC version info if available.
17173
17174 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
17175
17176         * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
17177
17178 2009-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17179
17180         * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
17181         only once.
17182
17183 2009-05-15  Jan Hubicka  <jh@suse.cz>
17184
17185         * doc/invoke.texi (max-early-inliner-iterations): New flag.
17186         * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
17187         (try_inline): Fix return value.
17188         (cgraph_decide_inlining_incrementally): Honor new value.
17189         (cgraph_early_inlining): Handle indirect inlining.
17190         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
17191
17192 2009-05-15  Jan Hubicka  <jh@suse.cz>
17193
17194         * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
17195         * cgraphunit.c (cgraph_finalize_function): Set it.
17196         (cgraph_expand_function): Use it.
17197
17198 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
17199
17200         * real.c (encode_ieee_half): Define.
17201         (decode_ieee_half): Define.
17202         (ieee_half_format): Define.
17203         (arm_half_format): Define.
17204         * real.h (ieee_half_format): Declare.
17205         (arm_half_format): Declare.
17206
17207 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
17208
17209         * optabs.c (prepare_float_lib_cmp):  Test that the comparison,
17210         swapped, and reversed optabs exist before trying to use them.
17211
17212 2009-05-15  Paul Brook  <paul@codesourcery.com>
17213             Sandra Loosemore  <sandra@codesourcery.com>
17214
17215         * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
17216         loads.  Allow PRE_DEC.
17217         (output_move_neon): Handle PRE_DEC.
17218         (arm_print_operand): Add 'A' for neon structure loads.
17219         * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
17220         * config/arm/neon.md (neon_mov): Update comment.
17221         * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
17222         calls.
17223         (Um): New constraint.
17224
17225 2009-05-15  Jan Hubicka  <jh@suse.cz>
17226
17227         Revert the following patch until testsuite fallout is fixed:
17228         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
17229         * cgraph.h (struct inline_summary): New filed self_wize,
17230         size_inlining_benefit, self_time and time_inlining_benefit.
17231         (struct cgraph_global_info): Replace insns by time ans size fields.
17232         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
17233         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
17234         (ipcp_update_callgraph): Do not touch function bodies.
17235         * ipa-inline.c: Include except.h
17236         (MAX_TIME): New constant.
17237         (overall_insns): Remove
17238         (overall_size, max_benefit): New static variables.
17239         (cgraph_estimate_time_after_inlining): New function.
17240         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
17241         (cgraph_clone_inlined_nodes): Update size.
17242         (cgraph_mark_inline_edge): Update size.
17243         (cgraph_estimate_growth): Use size info.
17244         (cgraph_check_inline_limits): Check size.
17245         (cgraph_default_inline_p): Likewise.
17246         (cgraph_edge_badness): Compute badness based on benefit and size cost.
17247         (cgraph_decide_recursive_inlining): Check size.
17248         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
17249         and times.
17250         (cgraph_decide_inlining): Likewise.
17251         (cgraph_decide_inlining_incrementally): Likewise; honor
17252         PARAM_EARLY_INLINING_INSNS.
17253         (likely_eliminated_by_inlining_p): New predicate.
17254         (estimate_function_body_sizes): New function.
17255         (compute_inline_parameters): Use it.
17256         * except.c (must_not_throw_labels): New function.
17257         * except.h (must_not_throw_labels): Declare.
17258         * tree-inline.c (init_inline_once): Kill inlining_weigths
17259         * tree-ssa-structalias.c: Avoid uninitialized warning.
17260         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
17261         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
17262         (PARAM_INLINE_CALL_COST): Remove.
17263         (PARAM_EARLY_INLINING_INSNS): New.
17264
17265 2009-05-15  Richard Guenther  <rguenther@suse.de>
17266
17267         * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
17268         not TODO_update_ssa.
17269
17270 2009-05-15  Richard Guenther  <rguenther@suse.de>
17271
17272         PR tree-optimization/39999
17273         * gimple.h (gimple_expr_type): Use the expression type looking
17274         through useless conversions.
17275         * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
17276         (vn_nary_op_insert_stmt): Likewise.
17277         (simplify_binary_expression): Likewise.
17278
17279 2009-05-15  Richard Guenther  <rguenther@suse.de>
17280
17281         * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
17282         New options, enabled by default.
17283         * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
17284         Document.
17285         * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
17286         * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
17287         * tree-ssa-structalias.c (gate_tree_pta): New function.
17288         (pass_build_alias): Use it.
17289
17290 2009-05-15  Joseph Myers  <joseph@codesourcery.com>
17291
17292         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
17293         recurse on an invariant address if a conversion from a pointer
17294         type to a wider integer type is involved.
17295
17296 2009-05-15  Jan Hubicka  <jh@suse.cz>
17297
17298         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
17299         * cgraph.h (struct inline_summary): New filed self_wize,
17300         size_inlining_benefit, self_time and time_inlining_benefit.
17301         (struct cgraph_global_info): Replace insns by time ans size fields.
17302         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
17303         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
17304         (ipcp_update_callgraph): Do not touch function bodies.
17305         * ipa-inline.c: Include except.h
17306         (MAX_TIME): New constant.
17307         (overall_insns): Remove
17308         (overall_size, max_benefit): New static variables.
17309         (cgraph_estimate_time_after_inlining): New function.
17310         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
17311         (cgraph_clone_inlined_nodes): Update size.
17312         (cgraph_mark_inline_edge): Update size.
17313         (cgraph_estimate_growth): Use size info.
17314         (cgraph_check_inline_limits): Check size.
17315         (cgraph_default_inline_p): Likewise.
17316         (cgraph_edge_badness): Compute badness based on benefit and size cost.
17317         (cgraph_decide_recursive_inlining): Check size.
17318         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
17319         and times.
17320         (cgraph_decide_inlining): Likewise.
17321         (cgraph_decide_inlining_incrementally): Likewise; honor
17322         PARAM_EARLY_INLINING_INSNS.
17323         (likely_eliminated_by_inlining_p): New predicate.
17324         (estimate_function_body_sizes): New function.
17325         (compute_inline_parameters): Use it.
17326         * except.c (must_not_throw_labels): New function.
17327         * except.h (must_not_throw_labels): Declare.
17328         * tree-inline.c (init_inline_once): Kill inlining_weigths
17329         * tree-ssa-structalias.c: Avoid uninitialized warning.
17330         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
17331         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
17332         (PARAM_INLINE_CALL_COST): Remove.
17333         (PARAM_EARLY_INLINING_INSNS): New.
17334         doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
17335         (inline-call-cost): Remove.
17336         (early-inlining-insns): New.
17337
17338 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
17339
17340         * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters.  Use them
17341         for bounds.
17342         (print_int_cst_bounds_in_octal_p): Likewise.
17343         (dbxout_type): Adjust calls to above functions.  Be prepared to deal
17344         with subtypes.
17345         * dwarf2out.c (base_type_die): Likewise.
17346         (is_subrange_type): Delete.
17347         (subrange_type_die): Add LOW and HIGH parameters.  Use them for bounds.
17348         (modified_type_die): Call subrange_type_for_debug_p on subtypes.
17349         * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
17350         if the destination type is boolean.
17351         (build_range_check): Do not special-case subtypes.
17352         (fold_sign_changed_comparison): Likewise.
17353         (fold_unary): Likewise.
17354         * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
17355         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
17356         * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
17357         * tree.c (subrange_type_for_debug_p): New predicate based on the
17358         former is_subrange_type.
17359         * tree.h (subrange_type_for_debug_p): Declare.
17360         * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
17361         (convert_affine_scev): Remove call to above function.
17362         (chrec_convert_aggressive): Likewise.
17363         * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
17364         false for conversions involving subtypes.
17365         * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
17366         (vrp_val_min): Likewise.
17367         (needs_overflow_infinity): Likewise.
17368         (extract_range_from_unary_expr): Likewise.
17369
17370 2009-05-15  Paolo Bonzini  <bonzini@gnu.org>
17371
17372         * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
17373         * config/frv/frv.c: Likewise.
17374         * config/s390/s390.c: Likewise.
17375         * config/sparc/sparc.h: Likewise.
17376         * config/i386/i386.h: Likewise.
17377         * config/i386/i386.c: Likewise.
17378         * config/crx/crx.c: Likewise.
17379         * config/m68hc11/m68hc11.h: Likewise.
17380         * config/iq2000/iq2000.c: Likewise.
17381         * config/mn10300/mn10300.h: Likewise.
17382         * config/mn10300/mn10300.c: Likewise.
17383         * config/m68k/m68k.c: Likewise.
17384         * config/rs6000/rs6000.c: Likewise.
17385         * config/rs6000/xcoff.h: Likewise.
17386         * config/rs6000/linux64.h: Likewise.
17387         * config/rs6000/sysv4.h: Likewise.
17388         * config/score/score3.c: Likewise.
17389         * config/score/score7.c: Likewise.
17390         * config/score/score.c: Likewise.
17391         * config/arm/arm.md: Likewise.
17392         * config/mips/mips.c: Likewise.
17393         * config/mips/mips.md: Likewise.
17394         * config/bfin/bfin.h: Likewise.
17395         * config/pa/pa.c: Likewise.
17396         * config/pa/constraints.md: Likewise.
17397
17398         * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
17399         * config/pdp11/pdp11.c (legitimate_address_p): Delete.
17400         * config/pdp11/pdp11.h: Use memory_address_p instead.
17401
17402 2009-05-14  Ian Lance Taylor  <iant@google.com>
17403
17404         * passes.c (finish_optimization_passes): Change i to int.
17405         * plugin.c (plugins_active_p): Change event to int.
17406         (dump_active_plugins): Likewise.
17407         * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
17408         Add cast.
17409         * tree.c (tree_range_check_failed): Change c to unsigned int.
17410         (omp_clause_range_check_failed): Likewise.
17411         (build_common_builtin_nodes): Change mode to int.  Add cast.
17412         * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
17413         (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
17414
17415         * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
17416         ++ or -- with a variable of enum type.
17417
17418 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
17419
17420         PR driver/40144
17421         * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
17422
17423 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
17424
17425         * store-motion.c: Do not include params.h
17426         * Makefile.in: Fix dependencies for various files.
17427
17428 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
17429
17430         * auto-inc-dec.c: Fix pass description, remove apparent
17431         accidental duplication.
17432
17433 2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>
17434
17435         PR middle-end/40147
17436         * ipa-utils.h (memory_identifier_string): Moved to ...
17437         * tree.h (memory_identifier_string): Here.  Add GTY(()).
17438
17439 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
17440
17441         * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
17442         in the former documentation of...
17443         (GO_IF_LEGITIMATE_ADDRESS): ... this.
17444         * ira-conflicts.c (get_dup_num): Use address_operand.
17445         * targhooks.c (default_legitimate_address_p): New.
17446         * targhooks.h (default_legitimate_address_p): New.
17447         * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
17448         Call hook.
17449         * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
17450         * target.h (struct target): Add legitimate_address_p.
17451         * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
17452         (TARGET_INITIALIZER): Include it.
17453
17454         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17455         * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
17456         * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
17457         (TARGET_LEGITIMATE_ADDRESS_P): New.
17458
17459         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17460         (REG_OK_STRICT_P): Delete.
17461         * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
17462         (frv_legitimate_address_p_1): ... this.
17463         * config/frv/frv.c (frv_legitimate_address_p): Forward to...
17464         (frv_legitimate_address_p_1): ... the renamed old
17465         frv_legitimate_address_p.
17466         * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
17467         (TARGET_LEGITIMATE_ADDRESS_P): New.
17468
17469         * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17470         * config/s390/s390-protos.h (legitimate_address_p): Remove.
17471         * config/s390/s390.c (legitimate_address_p): Rename to...
17472         (s390_legitimate_address_p): ... this, make static.
17473         (legitimize_address): Adjust call.
17474         (TARGET_LEGITIMATE_ADDRESS_P): New.
17475         * config/s390/constraints.md ("e"): Call strict_memory_address_p.
17476
17477         * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17478         * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
17479         * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
17480         (TARGET_LEGITIMATE_ADDRESS_P): New.
17481
17482         * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17483         * config/spu/spu-protos.h (spu_legitimate_address): Remove.
17484         * config/spu/spu.c (spu_legitimate_address): Rename to...
17485         (spu_legitimate_address_p): ... this, make static.
17486         (TARGET_LEGITIMATE_ADDRESS_P): New.
17487
17488         * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17489         * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
17490         * config/sparc/sparc.c (legitimate_address_p): Rename to...
17491         (sparc_legitimate_address_p): ... this, make static and return bool.
17492         (legitimize_address): Adjust call.
17493         (TARGET_LEGITIMATE_ADDRESS_P): New.
17494
17495         * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17496         * config/i386/i386-protos.h (legitimate_address_p): Remove.
17497         * config/i386/i386.c (legitimate_address_p): Rename to...
17498         (ix86_legitimate_address_p): ... this, make static.
17499         (constant_address_p): Move after it, adjust call.
17500         (TARGET_LEGITIMATE_ADDRESS_P): New.
17501
17502         * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17503         * config/avr/avr-protos.h (legitimate_address_p): Remove.
17504         * config/avr/avr.c (legitimate_address_p): Rename to...
17505         (avr_legitimate_address_p): ... this, make static.
17506         (legitimize_address): Adjust call.
17507         (TARGET_LEGITIMATE_ADDRESS_P): New.
17508
17509         * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17510         * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
17511         * config/crx/crx.c (crx_legitimate_address_p): Make static.
17512         (TARGET_LEGITIMATE_ADDRESS_P): New.
17513
17514         * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17515         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
17516         * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
17517         (TARGET_LEGITIMATE_ADDRESS_P): New.
17518
17519         * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17520         * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
17521         Remove.
17522         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
17523         Make static.
17524         (TARGET_LEGITIMATE_ADDRESS_P): New.
17525
17526         * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17527         * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
17528         Remove.
17529         * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
17530         Rename to...
17531         (m68hc11_legitimate_address_p): ... this, make static.
17532         (go_if_legitimate_address_internal): Rename to...
17533         (m68hc11_legitimate_address_p_1): ... this.
17534         (legitimize_address): Adjust call.
17535         (TARGET_LEGITIMATE_ADDRESS_P): New.
17536
17537         * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17538         * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
17539         * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
17540         (TARGET_LEGITIMATE_ADDRESS_P): New.
17541
17542         * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17543         * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
17544         * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
17545         (mn10300_legitimate_address_p): ... this, make static.
17546         (TARGET_LEGITIMATE_ADDRESS_P): New.
17547
17548         * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17549         * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
17550         * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
17551         (TARGET_LEGITIMATE_ADDRESS_P): New.
17552
17553         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17554         (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
17555         (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
17556         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17557         * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
17558         * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
17559         (rs6000_legitimate_address_p): ... this, make static.
17560         (TARGET_LEGITIMATE_ADDRESS_P): New.
17561         (REG_MODE_OK_FOR_BASE_P): Delete.
17562         (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
17563
17564         * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17565         * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
17566         Delete.
17567         * config/picochip/picochip.c (picochip_legitimate_address_p): Make
17568         static, adjust types.
17569         (TARGET_LEGITIMATE_ADDRESS_P): New.
17570
17571         * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17572         * config/score/score.c (score_address_p): Rename to...
17573         (score_legitimate_address_p): ... this.
17574         (TARGET_LEGITIMATE_ADDRESS_P): New.
17575         * config/score/score3.c (score3_address_p): Rename to...
17576         (score3_legitimate_address_p): ... this.
17577         * config/score/score7.c (score7_address_p): Rename to...
17578         (score7_legitimate_address_p): ... this.
17579
17580         * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
17581         THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
17582         GO_IF_LEGITIMATE_ADDRESS): Delete.
17583         * config/arm/arm-protos.h (thumb1_legitimate_address_p,
17584         thumb2_legitimate_address_p): Delete.
17585         (arm_legitimate_address_p): Rename to...
17586         (arm_legitimate_address_outer_p): ... this.
17587         * config/arm/constraints.md ("Uq"): Adjust call.
17588         * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
17589         * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
17590         to...
17591         (arm_legitimate_address_outer_p): ... this.
17592         (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
17593         static.
17594         (TARGET_LEGITIMATE_ADDRESS_P): New.
17595
17596         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17597         * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
17598         * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
17599         (TARGET_LEGITIMATE_ADDRESS_P): New.
17600
17601         * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17602         * config/vax/vax-protos.h (legitimate_address_p): Remove.
17603         * config/vax/vax.c (legitimate_address_p): Rename to...
17604         (vax_legitimate_address_p): ... this, make static.
17605         (TARGET_LEGITIMATE_ADDRESS_P): New.
17606
17607         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17608         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
17609         * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
17610         (TARGET_LEGITIMATE_ADDRESS_P): New.
17611
17612         * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17613         * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
17614         * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
17615         (mmix_legitimate_address_p): ... this, make static.
17616         (TARGET_LEGITIMATE_ADDRESS_P): New.
17617
17618         * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17619         * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
17620         * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
17621         (TARGET_LEGITIMATE_ADDRESS_P): New.
17622
17623 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
17624
17625         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
17626         of MODE_COMPLEX_INT.
17627
17628 2009-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17629
17630         * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
17631         LCT_NORMAL in function call.
17632         * mips-tdump.c (print_file_desc): Add cast to enum type.
17633         * mips-tfile.c (add_ext_symbol): Add casts to enum types.
17634         (mark_stabs): Add casts to enum types.
17635         (parse_stabs_common): Add casts to enum types.
17636
17637 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
17638
17639         * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
17640         Check for invalid values of LETTER.
17641
17642 2009-05-13  Taras Glek  <tglek@mozilla.com>
17643
17644         * attribs.c (register_attribute): moved out attribute registration
17645         into register_attribute.
17646         * doc/plugins.texi: Documented register_attribute and
17647         PLUGIN_ATTRIBUTES.
17648         * gcc-plugin.h: Added forward decl for register_attribute.
17649         * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
17650         * plugin.c (register_callback, invoke_plugin_callbacks): Added
17651         PLUGIN_ATTRIBUTES boilerplate.
17652
17653 2009-05-14  Dave Korn  <dave.korn.cygwin@gmail.com>
17654
17655         * config/i386/msformat-c.c (ms_printf_length_specs):  Use enumeration
17656         values even in sentinel and empty entries.
17657         (ms_printf_flag_specs):  Likewise.
17658         (ms_scanf_flag_specs):  Likewise.
17659         (ms_strftime_flag_specs):  Likewise.
17660         (ms_print_char_table):  Likewise.
17661         (ms_scan_char_table):  Likewise.
17662         (ms_time_char_table):  Likewise.
17663
17664 2009-05-13  Doug Kwan  <dougkwan@google.com>
17665
17666         * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
17667
17668 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
17669
17670         * config/mips/mips.md (store): Add attributes for QI and HI.
17671         Update comment.
17672         (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
17673         (truncdi<mode>2): ... this new pattern.
17674
17675 2009-05-13  Brad Hards  <bradh@kde.org>
17676
17677         * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
17678
17679 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
17680             Ben Elliston <bje@au.ibm.com>
17681
17682         PR middle-end/40035
17683         * dse.c (check_mem_read_rtx): Guard against width == -1.
17684
17685 2009-05-13  Michael Matz  <matz@suse.de>
17686
17687         PR middle-end/39976
17688         * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
17689         (trivially_conflicts_p): New function.
17690         (insert_backedge_copies): Use it.
17691
17692 2009-05-13  Janis Johnson  <janis187@us.ibm.com>
17693
17694         * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
17695         (handle_stdc_pragma): Use new enum constant names.
17696         (handle_pragma_float_const_decimal64): Ditto.
17697
17698 2009-05-13  Ian Lance Taylor  <iant@google.com>
17699
17700         * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
17701         tree.def.
17702
17703 2009-05-13  Nathan Sidwell  <nathan@codesourcery.com>
17704
17705         * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
17706         * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
17707         multilibs.
17708         * config/m68k/m68k.h (FL_UCLINUX): Define.
17709
17710 2009-05-13  Jan Hubicka  <jh@suse.cz>
17711
17712         * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
17713
17714 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
17715
17716         * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
17717         unless -fschedule-insns is specified.
17718
17719 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
17720
17721         PR target/39561
17722         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
17723         TARGET_EXPAND_CBRANCHDI4.
17724         * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
17725         * config/sh/sh.opt (mexpand-cbranchdi): Remove.
17726         (cmpeqdi): Fix comment.
17727
17728 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
17729
17730         * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
17731         (sh_legitimate_address_p): Likewise.
17732         * config/sh/sh.c (sh_legitimate_index_p): New.
17733         (sh_legitimate_address_p): Likewise.
17734         * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
17735         (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
17736         (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
17737         (MAYBE_BASE_REGISTER_RTX_P): New macro.
17738         (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
17739         (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
17740         (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
17741         (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
17742         (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
17743
17744 2009-05-12  Jan Hubicka  <jh@suse.cz>
17745
17746         * tree-inline.c (estimate_operator_cost): Add operands;
17747         when division happens by constant, it is cheap.
17748         (estimate_num_insns): Loads and stores are not having cost of 0;
17749         EH magic stuff is cheap; when computing runtime cost of switch,
17750         use log2 base of amount of its cases; builtin_expect has cost of 0;
17751         compute cost for moving return value of call.
17752         (init_inline_once): Initialize time_based flags.
17753         * tree-inline.h (eni_weights_d): Add time_based flag.
17754
17755 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
17756
17757         * df-core.c: Update head documentation.
17758
17759 2009-05-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
17760
17761         PR bootstrap/40118
17762         * rs6000.c (rs6000_generate_compare): Use op1b instead of
17763         shadowing exisiting variable op1.
17764
17765 2009-05-12  Uros Bizjak  <ubizjak@gmail.com>
17766
17767         PR target/37179
17768         * config/i386/driver-i386.c (processor_signatures): New enum.
17769         (SIG_GEODE): Move from vendor_signatures to processor_signatures.
17770         (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
17771         processor signature to detect geode processor.
17772
17773 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
17774
17775         Revert:
17776
17777         2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
17778
17779         * optabs.c (prepare_cmp_insn): Temporarily disable test that
17780         causes spurious differences between trunk and cond-optab branch.
17781
17782 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
17783
17784         * dojump.c (compare_from_rtx): Delete.
17785         * expmed.c (emit_store_flag): Only try cstore_optab.  Canonicalize
17786         any MODE_CC mode to the cstorecc4 pattern.  Use prepare_operand, fail
17787         if the comparison does not satisfy the predicate; test predicates for
17788         operands 2 and 3 of a cstore pattern.  Don't try cstore optab
17789         further if one existing pattern fails.
17790         * expr.h (compare_from_rtx): Delete.
17791         (prepare_operand): Declare it.
17792         * optabs.c: Change "lib call" to "libcall" throughout.
17793         (bcc_gen_fctn, setcc_gen_code, trap_rtx,
17794         HAVE_conditional_trap, emit_cmp_insn): Delete.
17795         (can_compare_p): Delete cmp_optab case.
17796         (prepare_float_lib_cmp): Return an rtx and a machine mode.
17797         Accept other parameters by value.
17798         (prepare_operand): Make non-static.
17799         (prepare_cmp_insn): Return an rtx and a machine mode.  Accept
17800         other parameters by value.  Try to widen operands here based on
17801         an optab_methods argument and looking at cbranch_optab.
17802         (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
17803         loop.  Use cbranch_optab directly.
17804         (emit_cmp_and_jump_insns): Fix comment.  Adjust call to
17805         prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
17806         assertion.
17807         (emit_conditional_move, emit_conditional_add): Inline what's needed
17808         of compare_from_rtx, using new prepare_cmp_insn for the rest.
17809         (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
17810         with COMPARE.  Move cmov_optab and cstore_optab above
17811         with cbranch_optab, move cmp_optab down with ucmp_optab,
17812         remove tst_otpab.  Do not initialize trap_rtx.
17813         (gen_cond_trap): Do it here.  Use ctrap_optab.  Test predicate
17814         for trap code.  Do not check HAVE_conditional_trap.  Use
17815         prepare_cmp_insn.  Accept no predicate for operand 3.
17816         * optabs.h (OTI_cmp): Mark as used only for libcalls.
17817         (OTI_ctrap, ctrap_optab): New.
17818         (tst_optab): Delete.
17819         (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
17820         * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
17821         with lookup of ctrap_optab.
17822         * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
17823         Delete.
17824         (ctrap_optab): New.
17825
17826         * combine.c (combine_simplify_rtx, simplify_set): Do not
17827         special case comparing against zero for cc0 machines.
17828         * simplify-rtx.c (simplify_binary_operation_1): Never remove
17829         COMPARE on cc0 machines.
17830         (simplify_relational_operation): Return a new expression when
17831         a COMPARE could be removed.
17832         * final.c (final_scan_insn): Compare cc_status values
17833         against LHS of a (compare FOO (const_int 0)) cc0 source.
17834         Also check if cc_status.value is the full compare.
17835
17836         * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
17837         (cstoreMM4): Document.
17838         (conditional_trap): Document ctrapMM4 instead.
17839         (sync_compare_and_swapMM): Refer to cbranchcc4.
17840         (Dependent Patterns): Eliminate obsolete information referring to
17841         the old jump optimization phase.
17842         (Canonicalization): Include cbranchcc4 case, omit canonicalization
17843         of compares with 0 on cc0 machines.
17844         (Jump Patterns): Refer to MODE_CC jump patterns preferably,
17845         avoiding references to cc0.  Remove text about storing operands
17846         in cmpMM.
17847         * doc/tm.texi (Condition Codes): Include blurb on different
17848         condition code representations, separate into subsections for
17849         CC0, MODE_CC and conditional execution.
17850
17851         * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
17852         alpha_emit_setcc): Accept operands and a machine mode.
17853         * config/alpha/alpha.c (alpha_emit_conditional_branch):
17854         Get code/op0/op1 from operands, use machine mode argument
17855         instead of alpha_compare.fp_p.  Emit the branch here.
17856         (alpha_emit_setcc): Likewise, and return boolean.
17857         (alpha_emit_conditional_move): Likewise.  Assert that
17858         cmp_op_mode == cmp_mode, and simplify accordingly.
17859         * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
17860         * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
17861         (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
17862         Delete.
17863         (stack probe test): Use cbranchdi4.
17864         * config/alpha/predicates.md (alpha_cbranch_operator): New.
17865
17866         * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
17867         * config/arc/arc.h (movsicc, movsfcc): Use it.
17868         (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
17869         (cbranchsi4, cstoresi4): New.
17870         (cmpsi, bCC and sCC expanders): Remove.
17871
17872         * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
17873         * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
17874         * config/arm/predicates.md (arm_comparison_operator): Only include
17875         floating-point operators if there is a hardware floating-point unit.
17876         * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
17877         deferring to cbranch_cc and cstore_cc respectively.
17878         (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
17879         cbranch_cc, cstore_cc): New.
17880         (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
17881         arm_compare_op1.
17882         (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
17883
17884         * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
17885         * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
17886         as an argument.
17887         (adjust_insn_length): Adjust calls.
17888         (avr_reorg): Handle (compare (foo) (const_int 0)).
17889         * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
17890         (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
17891         (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
17892         (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
17893         (bCC): Remove.
17894         (cbranchqi4, cbranchhi4, cbranchsi4): New.
17895         (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
17896
17897         * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
17898         (cbranchsi4, cstorebi4, cstoresi4): New.
17899         (movbisi): This insn is duplicate, split it to zero_extend.
17900         * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
17901         (bfin_gen_compare): Do not use them.  Emit VOIDmode SET, not BImode.
17902         (bfin_optimize_loop): Use cbranch expander.
17903         * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
17904         * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
17905         (bfin_bimode_comparison_operator): ... this.
17906         (bfin_direct_comparison_operator): New.
17907
17908         * config/cris/cris.c (cris_normal_notice_update_cc): Look
17909         inside (compare FOO (const_int 0)).
17910         (cris_rtx_costs): Handle ZERO_EXTRACT.
17911         * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
17912         (*tstdi_non_v32): Fold in *cmpdi_non_v32.
17913         (*tstdi_v32): Delete.
17914         (*cmpdi_non_v32): Add M alternative for operand 1.
17915         (cmpsi, cmp<mode>): Make private.
17916         (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
17917         with COMPARE.
17918         (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
17919
17920         * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
17921         (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
17922         (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
17923         (cc_reg_operand): New.
17924         (any_cond): Delete.
17925         * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
17926         crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
17927         * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
17928         * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
17929         crx_expand_scond): Delete.
17930
17931         * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
17932         (cbranchsi4): New.
17933         * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
17934         * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
17935
17936         * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
17937         cstoresi4, cstoresf4, cstoredf4): New.
17938         (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
17939         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
17940         Receive the entire operands array.
17941         * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
17942         * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
17943         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
17944         Get test/op0/op1 from the operands array.
17945         (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
17946
17947         * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
17948         (h8300_expand_store): New.
17949         * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
17950         (const_int 0)).
17951         (h8300_expand_branch): Emit compare here.  Adjust for new arguments.
17952         (h8300_expand_store): New.
17953         * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
17954         or do not try to produce (set (cc0) REG).
17955         (peepholes): Wrap arguments with COMPARE.  Add a peephole to
17956         change a compare into a move to a scratch register.  Disable some
17957         peepholes when comparing with zero.
17958         (tstsi, tsthi, tstsi, cmpqi): Make private.
17959         (cmphi): Delete.
17960         (bCC, sCC): Delete.
17961         (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
17962         cstoresi4): New.
17963
17964         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
17965         ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
17966         (ix86_emit_i387_log1p): Use gen_cbranchxf4.
17967         (ix86_emit_i387_log1p): Use cbranchxf2.
17968         (ix86_expand_setcc): Return void.
17969         * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
17970         * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
17971         cmp<MODEF>, cmpcc): Remove.
17972         (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
17973         cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
17974         cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
17975         (sCC and bCC expanders): Remove.
17976         (stack_protect_test): Use cbranchcc4.
17977
17978         * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
17979         Delete.
17980         (ia64_expand_compare): Accept three rtx by reference and return void.
17981         * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
17982         (ia64_expand_compare): Replace op0/op1 with *op0/*op1.  Get code
17983         from *expr.  Update *expr with the BImode comparison to do.
17984         * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
17985         cmptf, bCC, sCC, conditional_trap): Delete.
17986         (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
17987         cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
17988         cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
17989         ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
17990         * config/ia64/predicates.md (ia64_cbranch_operator): New.
17991
17992         * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
17993         type of last argument.
17994         * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
17995         (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
17996         use machine mode argument instead of branch_type.  Remove dead
17997         code for floating-point comparisons.
17998         * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
17999         * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
18000         Remove.
18001         (cbranchsi4, cstoresi4): New.
18002         * config/iq2000/predicates.md (reg_or_const_operand): New.
18003
18004         * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
18005         * config/m32c/m32c.md (any_cond, gl_cond): Delete.
18006         (b<code>_op): Rewrite to...
18007         (bcc_op): ... this, using match_operator.
18008         (s<code>_op): Rewrite to...
18009         (scc_op): ... this, using match_operator.
18010         (s<code>_24_op): Rewrite to...
18011         (scc_op_24): ... this, using match_operator.
18012         (s<code>_<mode>): Rewrite to...
18013         (cstore<mode>4): ... this, using match_operator.
18014         (s<code>_<mode>_24): Rewrite to...
18015         (cstore<mode>4_24): ... this, using match_operator.
18016         * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
18017         m32c_unpend_compare, m32c_expand_scc): Delete.
18018         * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
18019         m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
18020         (m32c_expand_movcc): Change NE to EQ if necessary.
18021         (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
18022
18023         * config/m32r/m32r-protos.h (gen_cond_store): New.
18024         * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
18025         (gen_cond_store): New, from sCC patterns.
18026         (m32r_expand_block_move): Use cbranchsi4.
18027         * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
18028         * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
18029         (cbranchsi4, cstoresi4): New.
18030
18031         * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
18032         Delete.
18033         (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
18034         (m68hc11_notice_update_cc): Look into a compare with 0.
18035         * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
18036         Delete.
18037         * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
18038         cmphi, cmpqi, bCC): Delete.
18039         (cbranchsi4, cbranchhi4, cbranchqi4): New.
18040         (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
18041         bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
18042         sets with COMPARE.
18043
18044         * config/m68k/predicates.md (m68k_cstore_comparison_operator,
18045         const0_operand, const1_operand, m68k_subword_comparison_operand): New.
18046         * config/m68k/constraints.md (H): New.
18047         * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
18048         the define_insn below.
18049         (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
18050         (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
18051         *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
18052         patterns): Wrap RHS with COMPARE.
18053         (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
18054         (*cmpdi_internal): Name this pattern.
18055         (cmpdi): Change to define_insn.
18056         (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
18057         cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
18058         (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
18059         predicate.
18060         (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
18061         sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
18062         (conditional_trap): Change to...
18063         (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
18064         (*conditional_trap): Use the ordered_comparison_operator and
18065         const1_operand predicates.
18066         * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
18067         (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
18068         (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
18069         * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
18070
18071         * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
18072         mcore_modify_comparison, mcore_gen_compare_reg): Remove.
18073         (mcore_gen_compare): New.
18074         * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
18075         (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
18076         (mcore_gen_compare): ... this.
18077         * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
18078         (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
18079         (stack probe pattern): Use cbranchsi4.
18080
18081         * config/mips/predicates.md (mips_cstore_operator): New.
18082         * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
18083         * config/mips/mips.md (any_cond): Delete.
18084         (conditional_trap): Rename to ctrap<GPR:mode>4.  Adjust predicates,
18085         always succeed.
18086         (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
18087         fixuns_truncsfdi2): Use cbranch patterns.
18088         (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
18089         (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
18090         Adjust call to mips_expand_conditional_branch.
18091         (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
18092         cstore<GPR:mode>4.
18093         * config/mips/mips-protos.h (mips_expand_conditional_branch,
18094         mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
18095         * config/mips/mips.c (cmp_operands): Delete.
18096         (mips_emit_compare): Get comparison operands from *op0/*op1.
18097         (mips_expand_scc): Get code/op0/op1/target from operands.  Assert
18098         that it succeeds.  Use op0/op1 instead of cmp_operands.
18099         (mips_expand_conditional_branch, mips_expand_conditional_move,
18100         mips_expand_conditional_trap): Likewise.
18101         (mips_block_move_loop): Use cbranch patterns.
18102         * config/mips/mips.h (cmp_operands): Delete.
18103
18104         * config/mmix/mmix.c (mmix_valid_comparison): Delete.
18105         (mmix_gen_compare_reg): Just return a register in the right CC mode.
18106         * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
18107         * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
18108         (*cmpcc_folded): Rename to...
18109         (*cmpdi_folded): this.
18110         (*cmpcc): Rename to...
18111         (*cmps): ... this.
18112         (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
18113         (bCC): Remove.
18114         (cbranchdi4): New.
18115         (cbranchdf4): New.  Handle invalid comparisons here.
18116         * config/mmix/predicates.md (float_comparison_operator): New.
18117
18118         * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
18119         zero_extract to be cheap in (compare (zero_extract) (const_int 0).
18120         * config/mn10300/mn10300.md (tst): Delete.
18121         (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
18122         Name these patterns and wrap RHS in a compare.
18123         (*cmpsi): Make this pattern private.  Include tst.
18124         (*cmpsf): Make this pattern private.
18125         (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
18126         (compare with zero peepholes): Likewise.
18127         (bCC): Remove.
18128         (cbranchsi4, cbranchsf4): New.
18129         (casesi): Use cbranchsi4.
18130
18131         * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
18132         hppa_branch_type): Delete.
18133         (return_addr_rtx): Use cbranchsi4.
18134         (emit_bcond_fp): Accept all operands.  Replace CODE with NE.
18135         Emit CCFPmode comparison here.
18136         (gen_cmp_fp): Delete, now part of emit_bcond_fp.
18137         * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
18138         hppa_branch_type): Delete.
18139         * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
18140         (movsicc, movdicc): Remove references to hppa_compare_op0,
18141         hppa_compare_op1 and compare_from_rtx.
18142         (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
18143         (casesi): Use cbranchsi4.
18144
18145         * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
18146         * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
18147         * config/pdp11/pdp11.md (register_or_const0_operand): New.
18148         (cmpdf, cmphi, cmpqi): Make private.  Add tst alternatives.
18149         (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
18150         (bCC): Delete.
18151         (cbranchdf4, cbranchhi4, cbranchqi4): New.
18152         (*branch, *branch_inverted): New.
18153
18154         * config/picochip/picochip.md (cbranchhi4): Use
18155         ordered_comparison_operator.
18156         (cmphi, bCC): Remove.
18157
18158         * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
18159         (trap_comparison_operator): Delete.
18160         * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
18161         rs6000_emit_cbranch): Accept mode and operands.
18162         * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
18163         rs6000_compare_fp_p): Delete.
18164         (rs6000_generate_compare): Accept mode and comparison.  Extract code
18165         and op0/op1 from there.  Replace references to rs6000_compare_op0
18166         and rs6000_compare_op1.
18167         (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
18168         extract result from passed operands.
18169         (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
18170         extract loc from passed operands.
18171         (rs6000_emit_cmove): Likewise.
18172         * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
18173         rs6000_compare_fp_p): Delete.
18174         * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
18175         (cbranch<GPR>4, cbranch<FP>4): New.
18176         (cstore<mode>4): New.  Consolidate here all choices about when to use
18177         portable or specialized sCC sequences.
18178         (stack_protect_test): Use cbranchsi4.
18179         (conditional_trap): Replace with ctrap<GPR>4.
18180         (conditional trap insn): Replace trap_comparison_operator with
18181         ordered_comparison_operator.
18182
18183         * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
18184         (s390_emit_prologue): Use ctrap.
18185         * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
18186         * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
18187         New predicates replacing...
18188         * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
18189         (cmp<GPR>, cmp<FP>, cmpcc): Delete.
18190         (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
18191         (add<mode>cc): Do not use s390_compare_op0/op1.
18192         (s<code>): Change to...
18193         (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
18194         (seq): Change to...
18195         (cstorecc4): ... this.  Handle EQ or NE equally.
18196         (*sne): Un-privatize for use in cstorecc4.
18197         (b<code>): Change to...
18198         (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
18199         (conditional_trap): Replace with...
18200         (ctrap<GPR>4, ctrap<FP>4): ... these.
18201         (stack_protect): Use cbranchcc4.
18202
18203         * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
18204         * config/score/score-protos.h (score_gen_cmp): Delete.
18205         * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
18206         (score_block_move-loop): Use cbranchsi4.
18207         * config/score/score.md (cbranchsi4): New.
18208         (cmpsi, bCC): Delete.
18209         * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
18210         (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
18211         * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
18212         (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
18213         * config/score/score3.h (score3_gen_cmp): Delete.
18214         * config/score/score7.h (score7_gen_cmp): Delete.
18215
18216         * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
18217         (sh_emit_scc_to_t): ... this.  Return void.
18218         (from_compare): Rename to...
18219         (sh_emit_compare_and_branch): ... this.
18220         (sh_emit_compare_and_set): New.
18221         (sh_expand_t_scc): Accept operands.
18222         * config/sh/predicates.md (sh_float_comparison_operator): New.
18223         * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
18224         (prepare_scc_operands): Rename to...
18225         (sh_emit_scc_to_t): ... this.  Return void.  Get op0/op1 from
18226         arguments.
18227         (sh_emit_cheap_store_flag): New.
18228         (sh_emit_set_t_insn): New.
18229         (from_compare): Rename to...
18230         (sh_emit_compare_and_branch): ... this.  Accept mode.  Rewrite
18231         handling of TARGET_SH2E floating point to avoid recursive call.
18232         Generate branch here.
18233         (sh_emit_compare_and_set): New.
18234         (sh_expand_t_scc): Get op0/op1 from arguments.
18235         (sh_emit_cheap_store_flag): New.
18236         * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
18237         cases.
18238         (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
18239         (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
18240         (movsicc, movdicc): Do nothing when it recreated operands from
18241         sh_compare_*. Use sh_emit_cheap_store_flag.  Adjust call to
18242         prepare_scc_operands (now sh_emit_scc_to_t).
18243         (udivdi3): Use cstoresi4.
18244         (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
18245         bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
18246         (cbranchint4_media, cbranchfp4_media): New.
18247         (casesi): Use cbranchdi4.
18248         (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
18249         Delete.
18250         (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
18251         (movnegt): Remove second operand.
18252         (cbranchsf4, cbranchdf4): New.
18253         (stack_protect): Use cbranchdi4/cbranchsi4.
18254
18255         * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
18256         (gen_compare_reg): Accept comparison, extract part of it to...
18257         (gen_compare_reg_1): ... this.
18258         (gen_compare_operator): Delete.
18259         (gen_v9_scc): Accept separate destination, comparison code and arms.
18260         Do not use sparc_compare_op0/sparc_compare_op1.
18261         (emit_scc_insn, emit_conditional_branch_insn): New.
18262         (emit_v9_brxx): Make static.  Remove useless assertion.
18263         (sparc_emit_float_lib_cmp): Return RTL instead of calling
18264         emit_cmp_insn.
18265         (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
18266         * config/sparc/sparc-protos.h (gen_compare_reg,
18267         sparc_emit_float_lib_cmp): Adjust prototype.
18268         (emit_scc_insn, emit_conditional_branch_insn): New.
18269         (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
18270         * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
18271         * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
18272         iterators to the top.
18273         (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
18274         snesi_special_extend, sCC, bCC, seqdi_special_trunc,
18275         snedi_special_trunc): Delete.
18276         (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
18277         and snedi_special_trunc.
18278         (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
18279         cbranchdi4, cbranch<F:mode>4): New.
18280         (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
18281         here.  Use gen_compare_reg instead of gen_compare_operator.
18282         (conditional_trap): Replace with...
18283         (ctrapsi4, ctrapdi4): ... this.
18284         (stack_protect_test): Use cbranchcc4.
18285
18286         * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
18287         argument to rtx.
18288         * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
18289         (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
18290         Change spu_compare_op0/op1 to op0/op1 throughout.  Get target
18291         from operands[0] or operands[3] depending on is_set.
18292         * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
18293         * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
18294         cmpdf, bCC), sCC: Remove.
18295         (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
18296         cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
18297         cstoredf4): New.
18298         (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
18299         spu_emit_branch_or_set.
18300
18301         * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
18302         Add two arguments.
18303         * config/stormy16/stormy16.h (xstormy16_compare_op0,
18304         xstormy16_compare_op1): Delete.
18305         * config/stormy16/stormy16.c (xstormy16_compare_op0,
18306         xstormy16_compare_op1): Delete.
18307         (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
18308         Adjust calls.
18309         * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
18310         (cmphi, cmpsi, bCC): Remove.
18311
18312         * config/v850/v850.md (tstsi, cmpsi): Fold into...
18313         (*cmpsi): ... this one.
18314         (cbranchsi4, cstoresi4): New.
18315         (bCC expanders): Delete.
18316         (sCC insns): Fold into...
18317         (*setcc): ... this one.
18318         (casesi): Do not use gen_cmpsi and gen_bgtu.
18319         (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
18320         (movsicc): Simplify.
18321         * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
18322
18323         * config/vax/vax-protos.h (cond_name): New.
18324         (vax_output_conditional_branch): Remove.
18325         * config/vax/vax.c (cond_name): New.
18326         (vax_output_conditional_branch): Remove.
18327         * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
18328         * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
18329         (cmp<VAXint>, cmp<VAXfp>): Privatize.  Add constraints for tst.
18330         (bit<VAXint>): Wrap source with (compare).
18331         (b<code> and following unnamed pattern): Rename to *branch and
18332         *branch_reversed.  Change macroization to match_operator.
18333         (cbranch<VAXint>4, cbranch<VAXfp>4): New.
18334
18335         * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
18336         * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
18337         Change last argument to machine_mode.
18338         (xtensa_expand_scc): Add machine_mode argument.
18339         * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
18340         (gen_conditional_move, xtensa_expand_conditional_branch,
18341         xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
18342         instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
18343         Adjust operand numbers.
18344         * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
18345         Delete.
18346         * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
18347         (cmpsi, cmpsf, b<code>, s<code>): Delete.
18348         (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
18349
18350 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
18351
18352         * optabs.c (prepare_cmp_insn): Temporarily disable test that
18353         causes spurious differences between trunk and cond-optab branch.
18354
18355 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
18356
18357         PR target/37137
18358         * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
18359
18360 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
18361
18362         * tree.c (iterative_hash_pointer): Delete.
18363         (iterative_hash_expr): Short-circuit handling of NULL pointer.
18364         Hash UIDs and versions of SSA names.  Don't special-case built-in
18365         function declarations.
18366
18367 2009-05-11  Ian Lance Taylor  <iant@google.com>
18368
18369         PR bootstrap/40103
18370         * graphite.c: Force -Wc++-compat to only be a warning before
18371         #including "cloog/cloog.h".
18372
18373 2009-05-11  Martin Jambor  <mjambor@suse.cz>
18374
18375         * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
18376
18377 2009-05-11  Jan Hubicka  <jh@suse.cz>
18378
18379         * tree-ssa-loop-ivcanon.c: Include target.h
18380         (struct loop_size): new structure.
18381         (constant_after_peeling): New predicate.
18382         (tree_estimate_loop_size): New function.
18383         (estimated_unrolled_size): Rewrite for new estimates.
18384         (try_unroll_loop_completely): Use new estimates.
18385         * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
18386
18387 2009-05-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18388
18389         * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
18390         libcpp interface change.
18391         (spu_macro_to_expand): Likewise.
18392
18393 2009-05-11  Paolo Bonzini  <bonzini@gnu.org>
18394
18395         PR tree-optimization/40026
18396         * gimplify.c (gimplify_init_constructor): Change initial conditional
18397         to assertion.  Rewrite TREE_OPERAND (*expr_p, 1) after
18398         optimize_compound_literals_in_ctor.
18399
18400 2009-05-11  Nathan Sidwell  <nathan@codesourcery.com>
18401
18402         * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
18403         New devices.
18404         * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
18405
18406 2009-05-11  H.J. Lu  <hongjiu.lu@intel.com>
18407
18408         * tree-vect-data-refs.c (vect_analyze_group_access): Use
18409         HOST_WIDE_INT for gap.
18410
18411 2009-05-11  Ira Rosen  <irar@il.ibm.com>
18412
18413         PR tree-optimization/40074
18414         * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
18415         account in group size and step comparison.
18416
18417 2009-05-11  Richard Guenther  <rguenther@suse.de>
18418
18419         * passes.c (init_optimization_passes): Strip now incorrect comment.
18420         (execute_function_todo): Do not set PROP_alias.
18421         * tree-pass.h (PROP_alias): Remove.
18422         * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
18423         * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
18424         * tree-nrv.c (pass_return_slot): Likewise.
18425         * tree-object-size.c (pass_object_sizes): Likewise.
18426         * tree-ssa-dom.c (pass_dominator): Likewise.
18427         (pass_phi_only_cprop): Likewise.
18428         * tree-ssa-dse.c (pass_dse): Likewise.
18429         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
18430         (pass_cselim): Likewise.
18431         * tree-ssa-pre.c (pass_pre): Likewise.
18432         (pass_fre): Likewise.
18433         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
18434         * tree-ssa-sink.c (pass_sink_code): Likewise.
18435         * tree-stdarg.c (pass_stdarg): Likewise.
18436         * tree-tailcall.c (pass_tail_calls): Likewise.
18437         * tree-vrp.c (pass_vrp): Likewise.
18438
18439 2009-05-10  Ian Lance Taylor  <iant@google.com>
18440
18441         * basic-block.h (enum profile_status): Break out of struct
18442         control_flow_graph.
18443         * cgraph.h (struct inline_summary): Break out of struct
18444         cgraph_local_info.
18445         * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
18446         of struct cgraph_order_sort.
18447         * combine.c (enum undo_kind): New enum, broken out of struct undo.
18448         * cse.c (struct branch_path): Break out of struct
18449         cse_basic_block_data.
18450         * except.h (enum eh_region_type): Break out of struct eh_region.
18451         * gcc.c (enum add_del): Break out of struct modify_target.
18452         * genrecog.c (enum decision_type): Break out of struct decision_test.
18453         * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
18454         ggc_pch_data.
18455         * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
18456         * regmove.c (enum match_use): New enum, broken out of struct match.
18457         * sched-int.h (enum post_call_group): New enum, broken out of
18458         struct deps.
18459         (struct deps_reg): Break out of struct deps.
18460         * target.h (struct asm_int_op): Break out of struct gcc_target.
18461         * tree-eh.c (struct goto_queue_node): Break out of struct
18462         leh_tf_state.
18463         * tree-inline.h (enum copy_body_cge_which): Break out of
18464         copy_body_data.
18465         * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
18466
18467         * c-decl.c (in_struct, struct_types): New static variables.
18468         (pushtag): Add loc parameter.  Change all callers.
18469         (lookup_tag): Add ploc parameter.  Change all callers.
18470         (check_compound_literal_type): New function.
18471         (parser_xref_tag): Add loc parameter.  Change all callers.  If
18472         -Wc++-compat, warn about struct/union/enum types defined within a
18473         struct or union.
18474         (start_struct): Add enclosing_in_struct, enclosing_struct_types,
18475         and loc parameters.  Change all callers.  Change error calls to
18476         error_at, using loc.  For a redefinition, if the location of the
18477         original definition is known, report it.  Set in_struct and
18478         struct_types.  If -Wc++-compat warn if in sizeof, typeof, or alignof.
18479         (finish_struct): Add new parameters enclosing_in_struct and
18480         enclosing_struct_types.  Change all callers.  Set
18481         C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
18482         in the struct.  If in a struct, add this struct to struct_types.
18483         (start_enum): Add loc parameter.  Change all callers.  Use
18484         error_at for errors, using loc.  For a redefinition, if the
18485         location of the original definition is known, report it.  If in a
18486         struct, add this enum type to struct_types.  If -Wc++-compat warn
18487         if in sizeof, typeof, or alignof.
18488         * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
18489         (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
18490         (c_parser_enum_specifier): Get enum location for start_enum.
18491         (c_parser_struct_or_union_specifier): Get struct location for
18492         start_struct.  Save in_struct and struct_types status between
18493         start_struct and finish_struct.
18494         (c_parser_cast_expression): Get location of cast.
18495         (c_parser_alignof_expression): Get location of type.
18496         (c_parser_postfix_expression): Likewise.
18497         (c_parser_postfix_expression_after_paren_type): Add type_loc
18498         parameter.  Change all callers.  Call check_compound_literal_type.
18499         Use type_loc for error about variable size type.
18500         * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
18501         of an enum constant from an enum type defined in a struct or union.
18502         (c_cast_expr): Add loc parameter.  Change all callers.  If
18503         -Wc++-compat, warn about defining a type in a cast.
18504         * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
18505         (start_enum, start_struct, finish_struct): Update declarations.
18506         (parser_xref_tag, c_cast_expr): Update declarations.
18507         (check_compound_literal_type): Declare.
18508
18509 2009-05-11  Ben Elliston  <bje@au.ibm.com>
18510
18511         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
18512         for recent libcpp interface change.
18513         (rs6000_macro_to_expand): Likewise.
18514
18515 2009-05-10  Michael Matz  <matz@suse.de>
18516
18517         PR target/40031
18518         * config/arm/arm.c (require_pic_register): Emit on entry edge,
18519         not at entry of function.
18520
18521 2009-05-10  Richard Guenther  <rguenther@suse.de>
18522
18523         PR tree-optimization/40081
18524         Revert
18525         * tree-sra.c (instantiate_element): Instantiate scalar replacements
18526         using the main variant of the element type.  Do not fiddle with
18527         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
18528
18529         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
18530         structs with volatile fields.
18531
18532 2009-05-10  Jan Hubicka  <jh@suse.cz>
18533
18534         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
18535         (estimate_move_cost): Assert that it does not get called for
18536         VOID_TYPE_P.
18537         (estimate_num_insns): Skip VOID types in argument handling.
18538         (optimize_inline_calls): Delete unreachable blocks and verify that
18539         callgraph is valid.
18540
18541 2009-05-10  Jan Hubicka  <jh@suse.cz>
18542
18543         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
18544         * cgraph.c (cgraph_mark_address_taken_node): New function.
18545         (dump_cgraph_node): Dump new flag.
18546         * cgraph.h (struct cgraph_node): Add address_taken.
18547         (cgraph_mark_address_taken_node): New function.
18548         * ipa.c (cgraph_postorder): Prioritize functions with address taken
18549         since new direct calls can be born.
18550
18551 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
18552
18553         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
18554         tok->val.node.node.
18555
18556 2009-05-10  Jan Hubicka  <jh@suse.cz>
18557
18558         PR middle-end/40084
18559         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
18560         argument; rewrite.
18561         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
18562         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
18563         * tree-inline.c (copy_bb): Set frequency correctly.
18564         (fold_marked_statements): Update call to
18565         cgraph_update_edges_for_call_stmt.
18566
18567 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
18568
18569         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
18570         identifiers in diagnostics.
18571         * config/arm/arm.c (arm_handle_fndecl_attribute,
18572         arm_handle_isr_attribute): Likewise.
18573         * config/avr/avr.c (avr_handle_progmem_attribute,
18574         avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
18575         * config/bfin/bfin.c (handle_int_attribute,
18576         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
18577         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
18578         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
18579         Likewise.
18580         * config/darwin.c (darwin_handle_kext_attribute,
18581         darwin_handle_weak_import_attribute): Likewise.
18582         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
18583         h8300_handle_eightbit_data_attribute,
18584         h8300_handle_tiny_data_attribute): Likewise.
18585         * config/i386/i386.c (ix86_handle_cconv_attribute,
18586         ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
18587         * config/i386/winnt.c (ix86_handle_shared_attribute,
18588         ix86_handle_selectany_attribute): Likewise.
18589         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
18590         * config/m32c/m32c.c (function_vector_handler): Likewise.
18591         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
18592         m68hc11_handle_fntype_attribute): Likewise.
18593         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
18594         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
18595         * config/mips/mips.c (mips_insert_attributes,
18596         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
18597         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
18598         rs6000_handle_struct_attribute): Likewise.
18599         * config/sh/sh.c (sh_insert_attributes,
18600         sh_handle_resbank_handler_attribute,
18601         sh_handle_interrupt_handler_attribute,
18602         sh2a_handle_function_vector_handler_attribute,
18603         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
18604         Likewise.
18605         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
18606         * config/spu/spu.c (spu_handle_fndecl_attribute,
18607         spu_handle_vector_attribute): Likewise.
18608         * config/stormy16/stormy16.c
18609         (xstormy16_handle_interrupt_attribute): Likewise.
18610         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
18611         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
18612
18613 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
18614
18615         * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
18616         (pp_translate_identifiers): New.
18617         (pp_identifier): Only conditionally translate identifier to locale
18618         character set.
18619         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
18620         (pp_base_tree_identifier): Only conditionally translate identifier
18621         to locale character set.
18622         * c-pretty-print.c (M_): Define.
18623         (pp_c_type_specifier, pp_c_primary_expression): Mark English
18624         fragments for conditional translation with M_.
18625         * tree-pretty-print.c (maybe_init_pretty_print): Disable
18626         identifier translation.
18627
18628 2009-05-10  Richard Guenther  <rguenther@suse.de>
18629
18630         PR tree-optimization/40081
18631         * tree-sra.c (instantiate_element): Instantiate scalar replacements
18632         using the main variant of the element type.  Do not fiddle with
18633         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
18634
18635 2009-05-09  Jan Hubicka  <jh@suse.cz>
18636
18637         PR middle-end/40080
18638         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
18639         indirect calls; verify cgraph afterwards.
18640
18641 2009-05-09  Jan Hubicka  <jh@suse.cz>
18642
18643         PR bootstrap/40082
18644         * ipa.c (update_inlined_to_pointer): New function.
18645         (cgraph_remove_unreachable_nodes): Use it.
18646
18647 2009-05-09  Jan Hubicka  <jh@suse.cz>
18648
18649         * tree-eh.c (struct leh_state): Remove prev_try.
18650         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
18651         not track prev_try.
18652         * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
18653         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
18654         remove_eh_handler_and_replace, foreach_reachable_handler,
18655         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
18656         * except.h (struct eh_region): Remove eh_region_u_cleanup.
18657         (gen_eh_region_cleanup): Update prototype.
18658
18659 2009-05-09  Jan Hubicka  <jh@suse.cz>
18660
18661         PR middle-end/40043
18662         * except.c (copy_eh_region): Always set prev_try.
18663         (redirect_eh_edge_to_label): Find outer try.
18664         (foreach_reachable_handler): When looking for prev try
18665         handle case where previous try is not going to be taken.
18666
18667 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
18668
18669         PR tree-optimization/40049
18670         * tree-vect-stmts.c (vectorizable_operation): If the machine has
18671         only vector/vector shifts, convert the type of the constant to the
18672         appropriate type to avoid building incorrect trees, which
18673         eventually have problems with garbage collection.
18674
18675 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
18676
18677         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
18678         -1 for complex floating-point types if honoring signed zeros.
18679
18680 2009-05-08  Jan Hubicka  <jh@suse.cz>
18681
18682         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
18683         argument; handle correctly when profile is absent.
18684         (build_cgraph_edges): Update.
18685         (rebuild_cgraph_edges): Update.
18686         * cgraph.c: Do not include varray.h.
18687         (cgraph_set_call_stmt_including_clones): New function.
18688         (cgraph_create_edge_including_clones): Likewise
18689         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
18690         (cgraph_update_edges_for_call_stmt): Handle clones.
18691         (cgraph_remove_node): Handle clone tree.
18692         (cgraph_remove_node_and_inline_clones): New function.
18693         (dump_cgraph_node): Dump clone tree.
18694         (cgraph_clone_node): Handle clone tree.
18695         (clone_function_name): Bring here from tree-inline.c.
18696         (cgraph_create_virtual_clone): New function.
18697         * cgraph.h (ipa_replace_map): Move here from ipa.h.
18698         (cgraph_clone_info): New function.
18699         (strut cgraph_node): Add clone_info and new clone tree pointers.
18700         (cgraph_remove_node_and_inline_clones,
18701         cgraph_set_call_stmt_including_clones,
18702         cgraph_create_edge_including_clones,
18703         cgraph_create_virtual_clone): Declare.
18704         (cgraph_function_versioning): Use VEC argument.
18705         (compute_call_stmt_bb_frequency): Update prototype.
18706         (cgraph_materialize_all_clones): New function.
18707         * ipa-cp.c (ipcp_update_cloned_node): Remove.
18708         (ipcp_create_replace_map): Update to VECtors.
18709         (ipcp_update_callgraph): Use virtual clones.
18710         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
18711         (ipcp_update_profiling): Do not update local profiling.
18712         (ipcp_insert_stage): Use VECtors and virtual clones.
18713         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
18714         (clone_of_p): New function.
18715         (cgraph_preserve_function_body_p): Use clone tree.
18716         (cgraph_optimize): Materialize clones.
18717         (cgraph_function_versioning): Update for VECtors.
18718         (save_inline_function_body): Use clone tree.
18719         (cgraph_materialize_clone): New function.
18720         (cgraph_materialize_all_clones): Likewise.
18721         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
18722         * ipa.c: Include gimple.h.
18723         (cgraph_remove_unreachable_nodes): Use clone tree.
18724         * ipa-prop.c (ipa_note_param_call): Update call to
18725         compute_call_stmt_bb_frequencycall.
18726         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
18727         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
18728         (copy_bb): Handle updating of clone tree; add new edge when new call
18729         appears.
18730         (expand_call_inline): Be strict about every call having edge.
18731         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
18732         (delete_unreachable_blocks_update_callgraph): New function.
18733         (tree_function_versioning): Use VECtors; always remove unreachable
18734         blocks and fold conditionals.
18735         * tree-inline.h: Do not include varray.h.
18736         (tree_function_versioning): Remove.
18737         * Makefile.in (GTFILES): Remove tree-inline.c
18738         * passes.c (do_per_function): Do only functions having body.
18739         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
18740         tree.
18741
18742 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
18743             Andrew Morrow  <acm@google.com>
18744
18745         PR c/36892
18746         * c-common.c (c_common_attribute_table): Permit deprecated
18747         attribute to take an optional argument.
18748         (handle_deprecated_attribute): If the optional argument to
18749         __attribute__((deprecated)) is not a string ignore the attribute
18750         and emit a warning.
18751
18752         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
18753         * c-typeck.c (build_component_ref): Likewise.
18754         (build_external_ref): Likewise.
18755
18756         * toplev.c (warn_deprecated_use): Add an attribute argument.
18757         Emit the message associated with __attribute__((deprecated)).
18758
18759         * toplev.h (warn_deprecated_use): Updated.
18760
18761         * doc/extend.texi: Document new optional parameter to
18762         __attribute__((deprecated))
18763
18764 2009-05-08  Michael Eager <eager@eagercon.com>
18765
18766         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
18767         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
18768
18769 2009-05-08  Richard Guenther  <rguenther@suse.de>
18770
18771         PR tree-optimization/40062
18772         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
18773         Avoid exponential behavior.
18774
18775 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
18776
18777         PR rtl-optimization/33928
18778         PR 26854
18779         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
18780         process_uses, build_single_def_use_links): New.
18781         (update_df): Update use_def_ref.
18782         (forward_propagate_into): Use get_def_for_use instead of use-def
18783         chains.
18784         (fwprop_init): Call build_single_def_use_links and let it initialize
18785         dataflow.
18786         (fwprop_done): Free use_def_ref.
18787         (fwprop_addr): Eliminate duplicate call to df_set_flags.
18788         * df-problems.c (df_rd_simulate_artificial_defs_at_top,
18789         df_rd_simulate_one_insn): New.
18790         (df_rd_bb_local_compute_process_def): Update head comment.
18791         (df_chain_create_bb): Use the new RD simulation functions.
18792         * df.h (df_rd_simulate_artificial_defs_at_top,
18793         df_rd_simulate_one_insn): New.
18794         * opts.c (decode_options): Enable fwprop at -O1.
18795         * doc/invoke.texi (-fforward-propagate): Document this.
18796
18797 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
18798
18799         PR c/24581
18800         * c-typeck.c (build_binary_op): Handle arithmetic between one real
18801         and one complex operand specially.
18802         * tree-complex.c (some_nonzerop): Do not identify a real value as
18803         zero if flag_signed_zeros.
18804
18805 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
18806
18807         PR rtl-optimization/33928
18808         * loop-invariant.c (record_use): Fix && vs. || mishap.
18809
18810 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
18811
18812         PR rtl-optimization/33928
18813         * loop-invariant.c (struct use): Add addr_use_p.
18814         (struct def): Add n_addr_uses.
18815         (struct invariant): Add cheap_address.
18816         (create_new_invariant): Set cheap_address.
18817         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
18818         (record_uses): Pass df_ref to record_use.
18819         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
18820         used only as such.
18821
18822 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
18823
18824         * config/sh/sh.c: Do not include c-pragma.h.
18825
18826 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18827
18828         * config/spu/spu.c: Remove include of c-common.h.
18829
18830 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
18831
18832         PR c/39037
18833         * c-common.h (mark_valid_location_for_stdc_pragma,
18834         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
18835         clear_float_const_decimal64, float_const_decimal64_p): New.
18836         * c.opt (Wunsuffixed-float-constants): New.
18837         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
18838         unsuffixed float constant, handle new warning.
18839         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
18840         * c-decl.c (c_scope): New flag float_const_decimal64.
18841         (set_float_const_decimal64, clear_float_const_decimal64,
18842         float_const_decimal64_p): New.
18843         (push_scope): Set new flag.
18844         * c-parser.c (c_parser_translation_unit): Mark when it's valid
18845         to use STDC pragmas.
18846         (c_parser_external_declaration): Ditto.
18847         (c_parser_compound_statement_nostart): Ditto.
18848         * c-pragma.c (valid_location_for_stdc_pragma,
18849         mark_valid_location_for_stdc_pragma,
18850         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
18851         handle_pragma_float_const_decimal64): New.
18852         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
18853         * cp/semantics.c (valid_location_for_stdc_pragma_p,
18854         set_float_const_decimal64, clear_float_const_decimal64,
18855         float_const_decimal64_p): New dummy functions.
18856         * doc/extend.texi (Decimal Float): Remove statement that the
18857         pragma, and suffix for double constants, are not supported.
18858         * doc/invoke.texi (Warning Options): List new option.
18859         (-Wunsuffixed-float-constants): New.
18860
18861 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
18862
18863         * config/i386/i386.c: Do not include c-common.h.
18864
18865 2009-05-07  Mark Heffernan  <meheff@google.com>
18866
18867         * doc/invoke.texi (Debugging Options): Document change of debugging
18868         dump location.
18869         * opts.c (decode_options): Make dump_base_name relative to
18870         aux_base_name directory.
18871
18872 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
18873
18874         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
18875         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
18876
18877 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
18878
18879         * Makefile.in (install-plugin): Simplify a bit.
18880
18881 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
18882
18883         * Makefile.in (OBJS-common): Add regcprop.o.
18884         (regcprop.o): New.
18885         * timevar.def (TV_CPROP_REGISTERS): New.
18886         * regrename.c (regrename_optimize): Return 0.
18887         (rest_of_handle_regrename): Delete.
18888         (pass_rename_registers): Point to regrename_optimize.
18889         (struct value_data_entry, struct value_data,
18890         kill_value_one_regno, kill_value_regno, kill_value,
18891         set_value_regno, init_value_data, kill_clobbered_value,
18892         kill_set_value, kill_autoinc_value, copy_value,
18893         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
18894         replace_oldest_value_reg, replace_oldest_value_addr,
18895         replace_oldest_value_mem, copyprop_hardreg_forward_1,
18896         debug_value_data, validate_value_data): Move...
18897         * regcprop.c: ... here.
18898         (rest_of_handle_cprop): Delete.
18899         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
18900
18901 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
18902
18903         PR middle-end/40057
18904         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
18905         GEN_INT for 1 << bitnum.
18906         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
18907         build_int_cst_type.
18908
18909 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
18910
18911         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
18912         Remove wrong description of "nand" operation.
18913
18914 2009-05-06  Richard Guenther  <rguenther@suse.de>
18915             Adam Nemet  <anemet@caviumnetworks.com>
18916
18917         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
18918         comment.  Add that if LHS is not a gimple register, then RHS1 has
18919         to be a single object (GIMPLE_SINGLE_RHS).
18920
18921 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
18922
18923         * expr.c (get_def_for_expr): Move it up in the file.
18924         (store_field): When expanding a bit-field store, look at the
18925         defining gimple stmt for the masking conversion.
18926
18927 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
18928
18929         PR middle-end/39986
18930         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
18931         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
18932         32-bit memcpy into long.
18933
18934 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
18935
18936         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
18937         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
18938         new_reg_loc_descr.
18939         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
18940         instead of appending DW_OP_deref*.
18941
18942 2009-05-06  Michael Matz  <matz@suse.de>
18943
18944         PR middle-end/40021
18945         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
18946         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
18947
18948 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
18949
18950         * Makefile.in (install-plugin): Fix srcdir handling.
18951
18952 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
18953
18954         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
18955         when processing for not_regs_needed bitmap.
18956         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
18957         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while
18958         handling it for rhs.
18959
18960 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
18961
18962         * config/i386/i386.md (unnamed inc/dec peephole): Use
18963         optimize_insn_for_size_p instead of optimize_size.
18964         * config/i386/predicates.md (incdec_operand): Likewise.
18965         (aligned_operand): Likewise.
18966         * config/i386/sse.md (divv8sf3): Likewise.
18967         (sqrtv8sf2): Likewise.
18968
18969 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
18970
18971         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
18972
18973         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
18974
18975 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
18976
18977         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
18978         ssemodesuffixf2c with avxmodesuffixf2c.
18979
18980 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
18981
18982         PR c/40032
18983         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
18984
18985 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
18986
18987         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
18988         (struct tree_base): Adjust spacing for 8 bit boundaries.
18989         (struct tree_decl_common): Add decl_by_reference_flag bit.
18990         (DECL_BY_REFERENCE): Adjust.
18991         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
18992         print DECL_BY_REFERENCE bit.
18993         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
18994         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
18995         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
18996         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
18997         unconditionally.
18998
18999         PR middle-end/39666
19000         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
19001         range of the type, but default label is missing, add it with one
19002         of the existing labels instead of adding a new label for it.
19003
19004 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
19005
19006         * dwarf.h: Remove.
19007
19008 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
19009
19010         * Makefile.in (enable_plugin, plugin_includedir): New.
19011         (install): Depend on install-plugin.
19012         (PLUGIN_HEADERS): New.
19013         (install-plugin): New.
19014         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
19015
19016 2009-05-05  Richard Guenther  <rguenther@suse.de>
19017
19018         PR tree-optimization/40022
19019         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
19020         the only vuse.
19021         (phivn_valid_p): Fix tuplification error, simplify.
19022         (phiprop_insert_phi): Add dumps.
19023         (propagate_with_phi): Simplify.
19024
19025 2009-05-05  Richard Guenther  <rguenther@suse.de>
19026
19027         PR middle-end/40023
19028         * builtins.c (gimplify_va_arg_expr): Properly build the address.
19029
19030 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
19031
19032         * tree.h (strip_float_extensions): Remove duplicate declaration.
19033         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
19034         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
19035         block_ultimate_origin): Rearrange the declarations line to match the
19036         comment that indicates the .c file which the functions are defined.
19037         (dwarf2out_*, set_decl_rtl): Add comment.
19038         (get_base_address): Adjust comment.
19039         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
19040         declarations line and add comment.
19041         (is_builtin_name): Add blank after function name, for clarity.
19042
19043 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
19044
19045         * attribs.c (decl_attributes): Use %qE for identifiers in
19046         diagnostics.
19047         * cgraphunit.c (verify_cgraph_node): Translate function names to
19048         locale character set in diagnostics.
19049         * coverage.c (get_coverage_counts): Use %qE for identifiers in
19050         diagnostics.
19051         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
19052         Document that functions are named in UTF-8.
19053         * expr.c (expand_expr_real_1): Translate function names to locale
19054         character set in diagnostics.
19055         * gimplify.c (omp_notice_variable, omp_is_private,
19056         gimplify_scan_omp_clauses): Use %qE for identifiers in
19057         diagnostics.
19058         * langhooks.c (lhd_print_error_function): Translate function names
19059         to locale character set.
19060         * langhooks.h (decl_printable_name): Document that return value is
19061         in internal character set.
19062         * stmt.c: Include pretty-print.h
19063         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
19064         diagnostics.
19065         (resolve_operand_name_1): Translate named operand name to locale
19066         character set.
19067         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
19068         diagnostics.
19069         * toplev.c (announce_function): Translate function names to locale
19070         character set.
19071         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
19072         (default_tree_printer): Use pp_identifier or translate identifiers
19073         to locale character set.  Mark "<anonymous>" for translation.
19074         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
19075         for identifiers in diagnostics.
19076         * tree.c (handle_dll_attribute): Use %qE for identifiers in
19077         diagnostics.
19078         * varasm.c (output_constructor): Use %qE for identifiers in
19079         diagnostics.
19080
19081 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
19082
19083         * configure.ac: use ` ` instead of $()
19084         * configure: Regenerate.
19085
19086 2009-05-05  Ben Elliston  <bje@au.ibm.com>
19087
19088         * config/pa/linux-atomic.c: Eliminate conditional include of
19089         errno.h on non-LP64 systems to simplify build requirements.
19090
19091 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
19092
19093         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
19094         diagnostics.
19095         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
19096         and pass value to identifier_to_locale.
19097         (warn_variable_length_array): Make name a tree.
19098         (grokdeclarator): Separate diagnostic texts for named and unnamed
19099         declarators.  Use %qE for named declarators.
19100         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
19101         diagnostics.
19102         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
19103         identifiers in diagnostics.
19104         * c-typeck.c (push_member_name, start_init): Pass identifiers to
19105         identifier_to_locale.  Mark "anonymous" strings for translation.
19106
19107 2009-05-04  Michael Eager <eager@eagercon.com>
19108
19109         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
19110         address for DImode/DFmode only if double-precision FP regs.
19111
19112 2009-05-04  Michael Eager <eager@eagercon.com>
19113
19114         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
19115         TARGET_SINGLE_FLOAT check.
19116
19117 2009-05-04  Michael Eager <eager@eagercon.com>
19118
19119         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
19120
19121 2009-05-04  Michael Eager <eager@eagercon.com>
19122
19123         * gcc/config.gcc (powerpc-xilinx-eabi*): Add tm t-xilinx
19124         * config/rs6000/t-xilinx: New
19125
19126 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
19127
19128         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
19129         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
19130         * gcc/explow.c (memory_address): Use target hook.
19131         * gcc/targhooks.c (default_legitimize_address): New.
19132         * gcc/targhooks.h (default_legitimize_address): New.
19133         * gcc/target.h (legitimize_address): New.
19134         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
19135         (TARGET_INITIALIZER): Include it.
19136         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
19137
19138         * config/bfin/bfin-protos.h (legitimize_address): Remove.
19139         * config/bfin/bfin.c (legitimize_address): Remove.
19140         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
19141         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
19142         Remove.
19143         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
19144         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
19145
19146         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
19147         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
19148         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
19149         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
19150         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
19151         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
19152         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
19153         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
19154         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
19155         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
19156         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
19157         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
19158         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
19159         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
19160         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
19161         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
19162         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
19163         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
19164         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
19165         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
19166         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
19167         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
19168         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
19169
19170         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
19171         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
19172         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
19173         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
19174         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
19175         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
19176         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
19177         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
19178         (thumb_legitimize_address): Delete.
19179         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
19180         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
19181         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
19182         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
19183         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
19184         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
19185         Delete.
19186         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
19187         Delete.
19188
19189         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
19190         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
19191         * config/m32r/m32r.c (m32r_legitimize_address): New.
19192         * config/m68k/m68k.c (m68k_legitimize_address): New.
19193         * config/score/score.c (score_legitimize_address): Standardize.
19194         * config/score/score3.c (score3_legitimize_address): Standardize.
19195         * config/score/score3.h (score3_legitimize_address): Adjust.
19196         * config/score/score7.c (score7_legitimize_address): Standardize.
19197         * config/score/score7.h (score7_legitimize_address): Adjust.
19198         * config/sh/sh.c (sh_legitimize_address): New.
19199         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
19200
19201         * gcc/config/s390/s390.c (legitimize_address): Rename to...
19202         (s390_legitimize_address): ... this.
19203         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
19204         (sparc_legitimize_address): ... this.
19205         * gcc/config/i386/i386.c (legitimize_address): Rename to...
19206         (ix86_legitimize_address): ... this.
19207         * gcc/config/avr/avr.c (legitimize_address): Rename to...
19208         (avr_legitimize_address): ... this.
19209         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
19210         (mn10300_legitimize_address): ... this.
19211         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
19212         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
19213         (alpha_expand_mov): Adjust call.
19214
19215         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
19216         * config/spu/spu.c (spu_legitimize_address): Likewise.
19217         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
19218         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
19219
19220 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
19221
19222         * intl.c (locale_encoding, locale_utf8): New.
19223         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
19224         * intl.h (locale_encoding, locale_utf8): Declare.
19225         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
19226         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
19227         New.
19228         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
19229         argument.
19230         (pp_tree_identifier): Define to call pp_base_tree_identifier.
19231         (pp_base_tree_identifier): Declare as function.
19232         (identifier_to_locale): Declare.
19233         * Makefile.in (pretty-print.o): Update dependencies.
19234         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
19235
19236 2009-05-04  Richard Guenther  <rguenther@suse.de>
19237
19238         PR middle-end/40015
19239         * builtins.c (fold_builtin_memory_op): Do not decay to element
19240         type if the size matches the whole array.
19241
19242 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
19243
19244         * expmed.c (synth_mult): When trying out a shift, pass the result
19245         of a signed shift.
19246
19247 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
19248
19249         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
19250         (shiftsub1_cost): New.
19251         (init_expmed): Compute shiftsub1_cost.
19252         (synth_mult): Optimize multiplications by constants of the form
19253         -(2^^m-1) for some constant positive integer m.
19254
19255 2009-05-03  Richard Guenther  <rguenther@suse.de>
19256
19257         PR c/39983
19258         * c-typeck.c (array_to_pointer_conversion): Do not built
19259         ADDR_EXPRs of arrays of pointer-to-element type.
19260         * c-gimplify.c (c_gimplify_expr): Revert change fixing
19261         up wrong ADDR_EXPRs after-the-fact.
19262         * c-common.c (strict_aliasing_warning): Strip pointer
19263         conversions for obtaining the original type.
19264         * builtins.c (fold_builtin_memset): Handle array types.
19265         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
19266         and array types
19267
19268 2009-05-03  Richard Guenther  <rguenther@suse.de>
19269
19270         PR middle-end/23329
19271         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
19272         Do not lose casts from array types with unknown extent to array
19273         types with known extent.
19274         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
19275         alias set compatibility.
19276
19277 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19278
19279         * flags.h (extra_warnings): Delete.
19280         * toplev.c (process_options): Handle Wuninitialized here.
19281         * opts.c (extra_warnings): Delete.
19282         (set_Wextra): Delete.
19283         (common_handle_option): -Wextra can be handled automatically.
19284         * c-opts.c (c_common_handle_option): Delete obsolete code.
19285         (c_common_post_options): Simplify comment.
19286         * common.opt (W): Add Var.
19287         (Wextra): Add Var.
19288         (Wuninitialized): Initialize to -1.
19289
19290 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
19291             Richard Guenther  <rguenther@suse.de>
19292
19293         * expr.c (get_def_for_expr): New function.
19294         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
19295         SSA rather than trees.
19296         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
19297         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
19298
19299 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
19300
19301         * c-common.c (reswords): Add _Imaginary.
19302         * c-common.c (enum rid): Add RID_IMAGINARY.
19303
19304 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
19305
19306         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
19307         Patch by Richard Guenther.
19308
19309 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
19310
19311         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
19312         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
19313         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
19314         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
19315         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
19316         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
19317         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
19318         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
19319         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
19320         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
19321         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
19322         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
19323         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
19324         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
19325         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
19326         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
19327         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
19328         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
19329
19330 2009-05-02  Richard Guenther  <rguenther@suse.de>
19331
19332         PR tree-optimization/39940
19333         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
19334         doing so.
19335
19336 2009-05-02  Richard Guenther  <rguenther@suse.de>
19337
19338         PR middle-end/40001
19339         * tree-ssa.c (execute_update_addresses_taken): Properly check
19340         if we can mark a variable DECL_GIMPLE_REG_P.
19341         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
19342         back to the end of the function.
19343         (is_gimple_reg_type): Remove complex type special casing.
19344         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
19345         if not optimizing.
19346
19347 2009-05-02  Ben Elliston  <bje@au.ibm.com>
19348
19349         * doc/collect2.texi (Collect2): Document search path behaviour
19350         when configured with --with-ld.
19351
19352 2009-05-02  Jan Hubicka  <jh@suse.cz>
19353
19354         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
19355         parameter; update callers.
19356         (coalesce_cost_edge): EH edges are costier because they needs
19357         splitting even if not critical and even more costier when there are
19358         multiple EH predecestors.
19359
19360 2009-05-02  Jan Hubicka  <jh@suse.cz>
19361
19362         * except.c (remove_eh_handler_and_replace): Handle updating after
19363         removing TRY blocks.
19364
19365 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
19366
19367         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
19368
19369 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
19370
19371         * varasm.c: Do not include c-pragma.h.
19372         * attribs.c: Do not incude c-common.h.
19373
19374 2009-05-01  Michael Matz  <matz@suse.de>
19375
19376         * calls.c (initialize_argument_information): Handle SSA names like
19377         decls with a non MEM_P DECL_RTL.
19378
19379 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
19380
19381         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
19382         * ipa-utils.c: Likewise.
19383         * ipa-type-escape.c: Likewise.
19384         * cgraphunit.c Do not include c-common.h.
19385         * ipa-pure-const.c: Likewise.
19386         * tree-if-conv.c: Likewise.
19387         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
19388         * ipa-struct-reorg.c: Likewise.
19389         * tree-nomudflap.c: Likewise.
19390         * tree-ssa-structalias.c: Likewise.
19391
19392 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
19393
19394         * store-motion.c: Many cleanups to make this pass a first-class
19395         citizen instead of an appendix to gcse load motion.  Add TODO list
19396         to make this pass faster/cleaner/better.
19397
19398         (struct ls_expr): Post gcse.c-split cleanups.
19399         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
19400         "stores" field to "avail_stores".
19401         (pre_ldst_mems): Rename to store_motion_mems.
19402         (pre_ldst_table): Rename to store_motion_mems_table.
19403         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
19404         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
19405         (ldst_entry): Rename to st_expr_entry, update users.
19406         (free_ldst_entry): Rename to free_st_expr_entry, update users.
19407         (free_ldst_mems): Rename to free_store_motion_mems, update users.
19408         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
19409         update caller.
19410         (first_ls_expr): Rename to first_st_expr, update users.
19411         (next_ls_expr): Rename to next_st_expr, update users.
19412         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
19413         fields properly for store motion instead of names inherited from load
19414         motion in gcse.c.
19415         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
19416         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
19417         are done with it.
19418
19419         (ae_kill): Rename to st_kill, update users.
19420         (ae_gen): Rename to st_avloc, update users.
19421         (transp): Rename to st_transp, update users.
19422         (pre_insert_map): Rename to st_insert_map, update users.
19423         (pre_delete_map): Rename to st_delete_map, update users.
19424         (insert_store, build_store_vectors, free_store_memory,
19425         one_store_motion_pass): Update for abovementioned changes.
19426
19427         (gcse_subst_count, gcse_create_count): Remove.
19428         (one_store_motion_pass): New statistics counters "n_stores_deleted"
19429         and "n_stores_created", local variables.
19430
19431         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
19432         use for_each_rtx.
19433
19434         (regvec, compute_store_table_current_insn): Remove.
19435         (reg_set_info, reg_clear_last_set): Remove.
19436         (compute_store_table): Use DF caches instead of local dataflow
19437         solvers.
19438
19439 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
19440
19441         * c-objc-common.c (c_tree_printer): Print identifiers with
19442         pp_identifier, not pp_string.  Mark "({anonymous})" for
19443         translation.
19444         * c-pretty-print.c (pp_c_ws_string): New.
19445         (pp_c_cv_qualifier, pp_c_type_specifier,
19446         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
19447         pp_c_storage_class_specifier, pp_c_function_specifier,
19448         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
19449         pp_c_primary_expression, pp_c_postfix_expression,
19450         pp_c_unary_expression, pp_c_shift_expression,
19451         pp_c_relational_expression, pp_c_equality_expression,
19452         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
19453         use pp_string and pp_c_ws_string in place of pp_identifier and
19454         pp_c_identifier for non-identifiers.  Mark English strings for
19455         translation.
19456         * c-pretty-print.h (pp_c_ws_string): Declare.
19457
19458 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
19459             Roland McGrath <roland@redhat.com>
19460
19461         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
19462         (ENABLE_LD_BUILDID): New configuration option.
19463         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
19464         (LINK_BUILDID_SPEC): New macro.
19465         (init_spec): If defined, prepend it between LINK_EH_SPEC and
19466         link_spec.
19467         * doc/install.texi: Document --enable-linker-build-id option.
19468         * configure: Rebuild.
19469         * config.in: Rebuild.
19470
19471 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
19472
19473         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
19474         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
19475         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
19476         MIPS_GP_SAVE_AREA_SIZE.
19477         * config/mips/mips.c (struct mips_frame_info): Update comment
19478         before arg_pointer_offset and hard_frame_pointer_offset.
19479         (mips_compute_frame_info): Update diagram before function: to
19480         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
19481         indicate the position of frame_pointer_rtx with -fstack-protector and
19482         to show args_size.  Don't allocate cprestore area for leaf functions
19483         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
19484         cprestore_size.
19485         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
19486
19487 2009-04-30  Michael Matz  <matz@suse.de>
19488
19489         PR tree-optimization/39955
19490         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
19491
19492 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
19493
19494         * ira.c (setup_cover_and_important_classes):  Use safe macro
19495         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
19496         directly.
19497         * genpreds.c (write_tm_preds_h):  Output suitable definition of
19498         REG_CLASS_FOR_CONSTRAINT.
19499
19500 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
19501
19502         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
19503         instead of an int.
19504         * bitmap.c (bitmap_descriptor): Likewise.
19505         * ggc-common.c (loc_descriptor): Likewise.
19506         * varray.c (varray_descriptor): Likewise.
19507         * vec.c (vec_descriptor): Likewise.
19508
19509 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
19510
19511         * Makefile.in (dce.o): Add $(EXCEPT_H).
19512         * dce.c: Include except.h and delete redundant vector definitions.
19513         (deletable_insn_p): Return false for non-call insns that can throw
19514         if DF is running.
19515
19516 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
19517
19518         * gcse.c (ae_gen): Remove.
19519         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
19520         and make non-static function to make it available in store-motion.c.
19521         Update call sites with search-and-replace.
19522         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
19523         extract_mentioned_regs, extract_mentioned_regs_helper,
19524         find_moveable_store, compute_store_table, load_kills_store, find_loads,
19525         store_killed_in_insn, store_killed_after, store_killed_before,
19526         build_store_vectors, insert_insn_start_basic_block, insert-store,
19527         remove_reachable_equiv_notes, replace_store_insn, delete_store,
19528         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
19529         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
19530         * store-motion.c: ...new file.  Also copy data structures from gcse.c
19531         and clean up to remove parts not used by store motion.
19532         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
19533         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
19534
19535 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19536
19537         PR target/38571
19538         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
19539         when optimizing for size.
19540
19541 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
19542
19543         * gcse.c (gcse_constant_p): Fix typo in last change.
19544
19545 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
19546
19547         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
19548
19549 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
19550
19551         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
19552
19553 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
19554
19555         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
19556         CONST_HIGH_PART result.
19557
19558 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
19559
19560         * config/avr/avr.c (initial_elimination_offset): Rename to
19561         avr_initial_elimination_offset.
19562         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
19563         change return type to bool.
19564         (avr_can_eliminate): New function.
19565         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
19566         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
19567         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
19568         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
19569         avr_initial_elimination_offset.
19570         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
19571         (avr_initial_elimination_offset): Define.
19572
19573 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
19574             Steven Bosscher  <steven@gcc.gnu.org>
19575
19576         PR rtl-optimization/39938
19577         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
19578         * cfgrtl.c: Include insn-attr.h.
19579         (rest_of_pass_free_cfg): New function.
19580         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
19581         * resource.c (init_resource_info): Remove call to df_analyze.
19582
19583 2009-04-29  Richard Guenther  <rguenther@suse.de>
19584
19585         PR target/39943
19586         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
19587         allow conversion to signed integers.
19588
19589 2009-04-29  Richard Guenther  <rguenther@suse.de>
19590
19591         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
19592         shifts of floating point vectors if the shift amount is
19593         a constant multiple of the element size.
19594
19595 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
19596             Michael Matz  <matz@suse.de>
19597
19598         PR middle-end/39927
19599         PR bootstrap/39929
19600         * tree-outof-ssa.c (emit_partition_copy): New function.
19601         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
19602         insert_part_to_rtx_on_edge): Perform the partition base var
19603         copy using emit_partition_copy.
19604         (insert_value_copy_on_edge): Convert constants to the right mode.
19605         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
19606         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
19607
19608 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
19609
19610         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
19611         scan backwards to try to find a constant to initialize it.
19612
19613         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
19614         insn before the loop_end instruction, don't look past labels.
19615
19616 2009-04-29  Richard Guenther  <rguenther@suse.de>
19617
19618         PR middle-end/39937
19619         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
19620         loose type conversions.
19621         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
19622         stmts only if there are no uses of its definition.
19623
19624 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
19625
19626         * config/bfin/bfin.h (splitting_loops): Declare.
19627         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
19628         Reorder bit definitions to be ascending.
19629         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
19630         * config/bfin/bfin.c (splitting_loops): New variable.
19631         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
19632         (struct loop_info): Remove members INIT and LOOP_INIT.
19633         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
19634         the LSETUP sequence.  Allow LC to be loaded from any register, but
19635         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
19636         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
19637         set to 1.
19638         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
19639         of reload_completed.
19640
19641         From Jie Zhang:
19642         * config/bfin/bfin.md (movsi_insn): Refine constraints.
19643
19644 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
19645
19646         * Makefile.in (PLUGIN_VERSION_H): New.
19647         (OBJS-common): Remove plugin-version.o.
19648         (plugin.o): Depend on (PLUGIN_VERSION_H).
19649         (plugin-version.o): Remove.
19650         * configure: Regenerate
19651         * configure.ac: Create plugin-version.h.
19652         * gcc-plugin.h (plugin_gcc_version): Remove.
19653         (plugin_default_version_check): Change signature.
19654         * plugin-version.c: Remove.
19655         * plugin.c: Include plugin-version.h.
19656         (str_plugin_gcc_version_name): Remove.
19657         (try_init_one_plugin): Pass gcc version to plugin_init.
19658         (plugin_default_version_check): Both gcc and plugin versions are now
19659         arguments.
19660
19661 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
19662
19663         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
19664         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
19665         Remove special case testing for last insn of inner loops. Don't fail
19666         if the loop ends with a jump, emit an extra nop instead.
19667
19668         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
19669         DREGS rather than comparing directly.  Remove code that tries to
19670         account for latencies.
19671
19672 2009-04-29  Richard Guenther  <rguenther@suse.de>
19673
19674         PR tree-optimization/39941
19675         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
19676         eliminating an indirect call.
19677
19678 2009-04-29  Richard Guenther  <rguenther@suse.de>
19679
19680         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
19681         parameter.  Allow invariants as base if !require_lvalue.
19682         (verify_gimple_assign_single): Adjust.
19683
19684 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
19685
19686         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
19687         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
19688         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
19689         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
19690         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
19691         a VEC_SELECT.
19692         * config/bfin/bfin.c (bfin_expand_builtin,
19693         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
19694
19695 2009-04-28  Richard Guenther  <rguenther@suse.de>
19696
19697         * tree-vect-loop.c (get_initial_def_for_induction): Use
19698         correct types for pointer increment.
19699
19700 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19701
19702         * toplev.c (print_version): Update GMP version string calculation.
19703
19704 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
19705
19706         PR rtl-optimization/39938
19707         * resource.c (init_resource_info): Add call to df_analyze.
19708
19709 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
19710
19711         * config/alpha/alpha.md (usegp): Cast the result of
19712         alpha_find_lo_sum_using_gp to enum attr_usegp.
19713         * config/alpha/alpha.c (override_options): Remove end-of-structure
19714         marker element from cpu_table.  Use array size of cpu_table to handle
19715         -mcpu and -mtune options.
19716         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
19717
19718 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
19719
19720         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
19721         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
19722         tune_32 and tune_64.
19723         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
19724         support on PowerPC.
19725         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
19726         * config/rs6000/option-defaults.h: ... here.  New file.
19727         (OPT_64, OPT_32): Define.
19728         (MASK_64BIT): Define to 0 if not already defined.
19729         (OPT_ARCH64, OPT_ARCH32): Define.
19730         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
19731         and tune_64.
19732
19733 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19734
19735         * config/arm/arm.c (arm_override_options): Emit error on using
19736         fpa with AAPCS.
19737
19738 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
19739
19740         PR rtl-optimization/39914
19741         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
19742         registers for allocnos created from user-defined variables only
19743         when not optimizing.
19744
19745 2009-04-28  Richard Guenther  <rguenther@suse.de>
19746
19747         PR middle-end/39937
19748         * fold-const.c (fold_binary): Use distribute_real_division only
19749         on float types.
19750
19751 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
19752
19753         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
19754         add hpux-stdint.h to tm_file.
19755         (hppa[12]*-*-hpux11*): Ditto.
19756         (ia64*-*-hpux*): Ditto.
19757         * config/hpux-stdint.h: New.
19758         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
19759         __STDC_EXT__ for all compiles.
19760         * config/pa/pa-hpux.h: Ditto.
19761         * config/pa/pa-hpux10.h: Ditto.
19762         * config/pa/pa-hpux11.h: Ditto.
19763
19764 2009-04-28  Catherine Moore  <clm@codesourcery.com>
19765
19766         * debug.h (set_name): Add comment.
19767
19768 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
19769
19770         PR target/39929
19771         * config/darwin.c (machopic_gen_offset): Check
19772         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
19773         * config/arm/arm.c (require_pic_register): Likewise.
19774
19775 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
19776
19777         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
19778         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
19779         m32c_promote_prototypes): Delete.
19780
19781 2009-04-28  Michael Matz  <matz@suse.de>
19782
19783         PR middle-end/39922
19784         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
19785         constants.
19786
19787 2009-04-28  Richard Guenther  <rguenther@suse.de>
19788
19789         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
19790
19791 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19792
19793         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
19794         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
19795         * config/arm/arm-tune.md: Regenerate.
19796
19797 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
19798
19799         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
19800         block if there are complex incoming edges.
19801         (sel_merge_blocks): Remove useless assert.
19802         (sel_redirect_edge_and_branch): Check that edge was redirected.
19803         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
19804         (sel_find_rgns): Delete declaration.
19805         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
19806         the region when it is not a preheader.
19807
19808 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
19809
19810         PR c/39323
19811         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
19812
19813 2009-04-28  Richard Guenther  <rguenther@suse.de>
19814
19815         * tree.h (SSA_NAME_VALUE): Remove.
19816         (struct tree_ssa_name): Remove value_handle member.
19817         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
19818         array for jump threading.
19819         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
19820         SSA_NAME_VALUEs.
19821         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
19822         * tree-flow.h (threadedge_initialize_values): Declare.
19823         (threadedge_finalize_values): Likewise.
19824         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
19825         (SSA_NAME_VALUE): Define.
19826         (threadedge_initialize_values): New function.
19827         (threadedge_finalize_values): Likewise.
19828         * tree-ssa-dom.c (ssa_name_values): New global variable.
19829         (SSA_NAME_VALUE): Define.
19830         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
19831
19832 2009-04-28  Ira Rosen  <irar@il.ibm.com>
19833
19834         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
19835         Use REPORT_VECTORIZED_LOCATIONS instead
19836         REPORT_VECTORIZED_LOOPS.
19837         * tree-vectorizer.c (vect_verbosity_level): Make static.
19838         (vect_loop_location): Rename to vect_location.
19839         (vect_set_verbosity_level): Update comment.
19840         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
19841         and vect_location.
19842         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
19843         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
19844         instead REPORT_UNVECTORIZED_LOOPS.
19845         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
19846         and vect_loop_def to vect_external_def and vect_internal_def.
19847         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
19848         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
19849         REPORT_UNVECTORIZED_LOCATIONS.
19850         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
19851         and vect_used_in_loop and to vect_unused_in_scope and
19852         vect_used_in_scope.
19853         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
19854         (vect_verbosity_level): Remove declaration.
19855         (vect_analyze_operations): Likewise.
19856         (vect_analyze_stmt): Declare.
19857         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
19858         REPORT_UNVECTORIZED_LOCATIONS.
19859         (vect_get_loop_niters): Fix indentation.
19860         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
19861         (vect_analyze_loop_operations): New function.
19862         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
19863         vect_analyze_operations.
19864         (vect_is_simple_reduction): Use new names.
19865         (vectorizable_live_operation, vect_transform_loop): Likewise.
19866         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
19867         to specify whether the data references can be a part of interleaving
19868         chain.
19869         (vect_analyze_data_ref_dependence): Use new names.
19870         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
19871         (vect_create_addr_base_for_vector_ref): Remove redundant code.
19872         * tree-vect-patterns.c (widened_name_p): Use new names.
19873         (vect_recog_dot_prod_pattern): Likewise.
19874         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
19875         (process_use, vect_mark_stmts_to_be_vectorized,
19876         vect_model_simple_cost, vect_model_store_cost,
19877         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
19878         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
19879         vectorizable_operation, vectorizable_type_demotion,
19880         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
19881         vectorizable_condition): Likewise.
19882         (vect_analyze_operations): Split into vect_analyze_loop_operations
19883         and ...
19884         (vect_analyze_stmt): ... new function.
19885         (new_stmt_vec_info): Use new names.
19886         (vect_is_simple_use): Use new names and fix comment.
19887         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
19888         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
19889
19890 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
19891
19892         PR target/39911
19893         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
19894         and integer modes for x87 operands.  Do not ICE for unsupported size,
19895         generate error instead.  Generate error for unsupported operand types.
19896         ['z']: Do not handle HImode memory operands specially.  Warning
19897         for floating-point operands.  Fallthru to 'Z' for unsupported operand
19898         types.  Do not ICE for unsupported size, generate error instead.
19899         (output_387_binary_op): Use %Z to output operands.
19900         (output_fp_compare): Ditto.
19901         (output_387_reg_move): Ditto.
19902
19903 2009-04-28  Ben Elliston  <bje@au.ibm.com>
19904
19905         PR c++/35652
19906         Revert:
19907
19908         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19909
19910         * builtins.c (c_strlen): Do not warn here.
19911         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
19912         * c-common.c (pointer_int_sum): Take an explicit location.
19913         Warn about offsets out of bounds.
19914         * c-common.h (pointer_int_sum): Adjust declaration.
19915
19916 2009-04-27  Ian Lance Taylor  <iant@google.com>
19917
19918         * collect2.c (is_ctor_dtor): Change type of ret field in struct
19919         names to symkind.
19920         * dce.c (run_fast_df_dce): Change type of old_flags to int.
19921         * df-core.c (df_set_flags): Change return type to int.  Change
19922         type of old_flags to int.
19923         (df_clear_flags): Likewise.
19924         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
19925         (df_get_conditional_uses): Likewise.
19926         * df.h (df_set_flags, df_clear_flags): Update declarations.
19927         * dwarf2out.c (struct indirect_string_node): Change type of form
19928         field to enum dwarf_form.
19929         (AT_string_form): Change return type to enum dwarf_form.
19930         * fixed-value.c (fixed_compare): Add cast to enum type.
19931         * fwprop.c (update_df): Change 0 to VOIDmode.
19932         * gensupport.c: Change 0 to UNKNOWN.
19933         * gimple.h (gimple_cond_code): Add cast to enum type.
19934         * haifa-sched.c (reemit_notes): Add cast to enum type.
19935         * hooks.c (hook_int_void_no_regs): Remove function.
19936         * hooks.h (hook_int_void_no_regs): Remove declaration.
19937         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
19938         * predict.c (combine_predictions_for_insn): Add casts to enum type.
19939         * real.c (real_arithmetic): Add cast to enum type.
19940         (real_compare): Likewise.
19941         * target.h (struct gcc_target): Change return type of
19942         branch_target_register_class to enum reg_class.
19943         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
19944         default_branch_target_register_class.
19945         * targhooks.c (default_branch_target_register_class): New function.
19946         * targhooks.h (default_branch_target_register_class): Declare.
19947         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
19948         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
19949         cast to int.
19950         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
19951         ERROR_MARK.
19952         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
19953         vect_uninitialized_def.  Change 0 to ERROR_MARK.
19954         * tree-vect-stmts.c (supportable_widening_operation): Don't
19955         initialize icode1 and icode2.
19956         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
19957         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
19958         and to STD_C89.
19959         (cmn_err_flag_specs): Change 0 to STD_C89.
19960         (cmn_err_char_table): Likewise.
19961         * config/arm/arm.c (get_arm_condition_code): Change type of code
19962         to enum arm_cond_code.
19963         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
19964         (IWMMXT_BUILTIN2): Likewise.
19965         (neon_builtin_type_bits): Don't define typedef.
19966         (neon_builtin_datum): Change type of bits field to int.
19967         (arm_expand_neon_args): Add cast to enum type.
19968         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
19969         TLS_MODEL_NONE.
19970         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
19971         casts to enum type.
19972         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
19973         MIPS_FP_COND_f.
19974         * config/mips/mips.md (jal_macro): Return enum constant.
19975         (single_insn): Likewise.
19976         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
19977         CODE_FOR_nothing.
19978         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19979         casts to enum type.
19980         * config/s390/s390.c (s390_tune_flags): Change type to int.
19981         (s390_arch_flags): Likewise.
19982         (s390_handle_arch_option): Change flags field of struct pta to int.
19983         * config/s390/s390.h (s390_tune_flags): Update declaration.
19984         (s390_arch_flags): Likewise.
19985         * config/sh/sh.c (prepare_move_operands): Compare
19986         tls_symbolic_operand result with enum constant.
19987         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
19988         (sh_expand_prologue): Add cast to enum type.
19989         (sh_expand_epilogue): Likewise.
19990         (tls_symbolic_operand): Change return type to enum tls_model.
19991         (fpscr_set_from_mem): Add cast to enum type.
19992         (legitimize_pic_address): Compare tls_symbolic_operand result with
19993         enum constant.
19994         (sh_target_reg_class): Change return type to enum reg_class.
19995         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
19996         PROCESSOR_xxx.
19997         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
19998         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
19999         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
20000         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
20001         (delayed_branch, tls_call_delay): Likewise.
20002         (eligible_for_sibcall_delay): Likewise.
20003         (eligible_for_return_delay): Likewise.
20004         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
20005         (spu_expand_builtin_1): Likewise.
20006
20007         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
20008         for all types of conversions.
20009         (output_init_element): Issue -Wc++-compat warning if needed when
20010         initializing a bitfield with enum type.
20011         * c-parser.c (c_parser_expression): Set original_type to
20012         original_type of right hand operand of comma operator.
20013
20014 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20015
20016         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
20017         grammar nits.
20018         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
20019         * doc/cpp.texi (Standard Predefined Macros)
20020         (Implementation-defined behavior): Likewise.
20021         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
20022         * doc/gimple.texi (GIMPLE Exception Handling)
20023         (@code{GIMPLE_ASSIGN}): Likewise.
20024         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
20025         * doc/invoke.texi (Warning Options, Optimize Options)
20026         (AVR Options, Darwin Options): Likewise.
20027         (Optimize Options): Reformulate -fwhole-program description.
20028         * doc/loop.texi (Lambda): Likewise.
20029         * doc/md.texi (Output Template, Define Constraints)
20030         (Standard Names, Insn Splitting): Likewise.
20031         * doc/options.texi (Option properties): Likewise.
20032         * doc/passes.texi (Tree-SSA passes): Likewise.
20033         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
20034         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
20035         (File Names and DBX): Likewise.
20036         * doc/trouble.texi (Incompatibilities): Likewise.
20037
20038 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
20039
20040         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
20041         instruction is correct.
20042
20043 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
20044
20045         Allow non-constant arguments to conversion intrinsics.
20046         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
20047         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
20048         * spu.c (print_operand): Handle 'v' and 'w'.
20049         (exp2_immediate_p, spu_gen_exp2): Define.
20050         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
20051         spu_convtf_1): Update parameter descriptions.
20052         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
20053         * constraints.md ('v', 'w'): New.
20054         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
20055         Remove.
20056         (i2f, I2F): New define_mode_attr.
20057         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
20058         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
20059         fixuns_truncv4sfv4si2):  Update to use mode attribute.
20060         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
20061         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
20062         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
20063         patterns for combine.
20064
20065 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
20066
20067         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
20068         (cprop, hoist, pre, store_motion): New debug counters.
20069         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
20070         is not an RTL pass anymore.
20071         (pass_profiling): Remove extern decl for pass removed in 2005.
20072         (pass_gcse, pass_jump_bypass): Remove.
20073         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
20074         to 0 for clean state.
20075         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
20076         * cse.c (gate_handle_cse_after_global_opts,
20077         rest_of_handle_cse_after_global_opts): New functions.
20078         (pass_cse_after_global_opts): New pass, does local CSE.
20079         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
20080         (TV_CPROP): New timevar.
20081         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
20082         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
20083         (gcse_main, recompute_all_luids): Remove.
20084         (compute_hash_table_work): Call max_reg_num instead of reading
20085         max_gcse_regno.
20086         (cprop_jump): Don't set run_jump_opt_after_gcse.
20087         (constprop_register): Always allow to alter jumps.
20088         (cprop_insn): Likewise.
20089         (do_local_cprop): Likewise.
20090         (local_cprop_pass): Likewise.  Return non-zero if something changed.
20091         (cprop): Remove function, fold interesting bits into one_cprop_pass.
20092         (find_implicit_sets): Add note about missed optimization opportunity.
20093         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
20094         pass_rtl_cprop execute function.
20095         Don't bother tracking the pass number, each pass gets its own dumpfile
20096         now anyway.
20097         Always allow to alter jumpsand bypass jumps.
20098         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
20099         will just find no suitable set.
20100         (pre_edge_insert): Fix dumping, this function is for PRE only.
20101         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
20102         pass_rtl_pre execute function.
20103         (hoist_code): Return non-zero if something changed.  Keep track of
20104         substitutions and insertions for statistics gathering similar to PRE.
20105         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
20106         called from the pass_rtl_hoist execute function.  Show pass statistics.
20107         (compute_store_table): Use max_reg_num directly instead of using the
20108         formerly global max_gcse_regno.
20109         (build_store_vectors): Likewise.
20110         (replace_store_insn): Fix dumping.
20111         (store_motion): Rename to ...
20112         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
20113         pass, called from the pass_rtl_store_motion execute function.  Keep
20114         track of substitutions and insertions for statistics gathering similar
20115         to PRE.
20116         (bypass_jumps): Remove, fold interesting bits into ...
20117         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
20118         from the pass_rtl_cprop execute function.
20119         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
20120         pass_jump_bypass): Remove.
20121         (gate_handle_gcse, rest_of_handle_gcse): Remove.
20122         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
20123         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
20124         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
20125         (gate_rtl_store_motion, execute_rtl_store_motion,
20126         pass_rtl_store_motion): New.
20127         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
20128         make it clear that -fcse-skip-blocks is a no-op for backward compat.
20129         * passes.c (init_optimization_passes): Remove pass_gcse and
20130         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
20131         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
20132         instead of pass_jump_bypass.
20133
20134 2009-04-27  Richard Guenther  <rguenther@suse.de>
20135
20136         PR middle-end/39928
20137         * gimplify.c (gimplify_expr): If we are required to create
20138         a temporary make sure it ends up as register.
20139
20140 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
20141
20142         PR target/39903
20143         * config/i386/i386.c (construct_container): Don't call
20144         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
20145         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
20146
20147 2009-04-27  Michael Matz  <matz@suse.de>
20148
20149         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
20150         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
20151         * tree-ssa-live.h (find_replaceable_exprs): Return a bitmap.
20152         (dump_replaceable_exprs): Take a bitmap.
20153         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
20154         array.
20155         (expand_gimple_basic_block): Likewise.
20156         * tree-ssa-ter.c (struct temp_expr_table_d): Make
20157         replaceable_expressions member a bitmap.
20158         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
20159         (mark_replaceable): Likewise.
20160         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
20161         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
20162
20163 2009-04-27  Richard Guenther  <rguenther@suse.de>
20164
20165         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
20166         (verify_stmts): Dispatch to gimple/type verification code.
20167         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
20168         issue with call argument types.
20169
20170 2009-04-27  Michael Matz  <matz@suse.de>
20171
20172         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
20173         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
20174         to above.
20175
20176 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
20177             Eric Botcazou  <ebotcazou@adacore.com>
20178
20179         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
20180         a label's basic block.
20181         (mark_target_live_regs): Tidy and rework obsolete comments.
20182         Change back DF problem to LIVE.  If a label starts a basic block,
20183         assume that all registers that used to be live then still are.
20184         (init_resource_info): If a label starts a basic block, set its
20185         BLOCK_FOR_INSN accordingly.
20186         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
20187
20188 2009-04-27  Richard Guenther  <rguenther@suse.de>
20189
20190         * tree-flow-inline.h (function_ann): Remove.
20191         (get_function_ann): Likewise.
20192         * tree-dfa.c (create_function_ann): Remove.
20193         * tree-flow.h (struct static_var_ann_d): Remove.
20194         (struct function_ann_d): Likewise.
20195         (union tree_ann_d): Remove fdecl member.
20196         (function_ann_t): Remove.
20197         (function_ann, get_function_ann, create_function_ann): Remove
20198         declarations.
20199
20200 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
20201
20202         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
20203
20204 2009-04-27  Jan Hubicka  <jh@suse.cz>
20205
20206         * ipa-pure-const.c (struct funct_state_d): New fields
20207         state_previously_known, looping_previously_known; remove
20208         state_set_in_source.
20209         (analyze_function): Use new fields.
20210         (propagate): Avoid assumption that state_set_in_source imply
20211         nonlooping.
20212
20213         * tree-ssa-loop-niter.c (finite_loop_p): New function.
20214         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
20215         * cfgloop.h (finite_loop_p): Declare.
20216
20217 2009-04-26  Michael Matz  <matz@suse.de>
20218
20219         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
20220
20221 2009-04-26  Michael Matz  <matz@suse.de>
20222
20223         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
20224         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
20225         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
20226         pass_mark_used_blocks): Remove.
20227         * tree-optimize.c (pass_free_datastructures,
20228         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
20229         * passes.c (init_optimization_passes): Don't call
20230         pass_mark_used_blocks, remove dead code.
20231
20232 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
20233
20234         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
20235         * tree-ssa-live.h (register_ssa_partition): Likewise.
20236
20237 2009-04-26  Michael Matz  <matz@suse.de>
20238
20239         Expand from SSA.
20240         * builtins.c (fold_builtin_next_arg): Handle SSA names.
20241         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
20242         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
20243         SSA names.
20244         (compare_pairs): Swap cost comparison.
20245         (coalesce_ssa_name): Don't use change_partition_var.
20246         * tree-nrv.c (struct nrv_data): Add modified member.
20247         (finalize_nrv_r): Set it.
20248         (tree_nrv): Use it to update statements.
20249         (pass_nrv): Require PROP_ssa.
20250         * tree-mudflap.c (mf_decl_cache_locals,
20251         mf_build_check_statement_for): Use make_rename_temp.
20252         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
20253         * alias.c (find_base_decl): Handle SSA names.
20254         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
20255         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
20256         * rtl.h (set_reg_attrs_for_parm): Declare.
20257         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
20258         to "optimized", remove unused locals at finish.
20259         (execute_free_datastructures): Make global, call
20260         delete_tree_cfg_annotations.
20261         (execute_free_cfg_annotations): Don't call
20262         delete_tree_cfg_annotations.
20263
20264         * ssaexpand.h: New file.
20265         * expr.c (toplevel): Include ssaexpand.h.
20266         (expand_assignment): Handle SSA names the same as register variables.
20267         (expand_expr_real_1): Expand SSA names.
20268         * cfgexpand.c (toplevel): Include ssaexpand.h.
20269         (SA): New global variable.
20270         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
20271         (SSAVAR): New macro.
20272         (set_rtl): New helper function.
20273         (add_stack_var): Deal with SSA names, use set_rtl.
20274         (expand_one_stack_var_at): Likewise.
20275         (expand_one_stack_var): Deal with SSA names.
20276         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
20277         before unique numbers.
20278         (expand_stack_vars): Use set_rtl.
20279         (expand_one_var): Accept SSA names, add asserts for them, feed them
20280         to above subroutines.
20281         (expand_used_vars): Expand all partitions (without default defs),
20282         then only the local decls (ignoring those expanded already).
20283         (expand_gimple_cond): Remove edges when jumpif() expands an
20284         unconditional jump.
20285         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
20286         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
20287         SSA name.
20288         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
20289         members of SA; deal with PARM_DECL partitions here; expand
20290         all PHI nodes, free tree datastructures and SA.  Commit instructions
20291         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
20292         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
20293         info and statements at start, collect garbage at finish.
20294         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
20295         (VAR_ANN_PARTITION) Remove.
20296         (change_partition_var): Don't declare.
20297         (partition_to_var): Always return SSA names.
20298         (var_to_partition): Only accept SSA names.
20299         (register_ssa_partition): Only check argument.
20300         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
20301         member.
20302         (delete_var_map): Don't free it.
20303         (var_union): Only accept SSA names, simplify.
20304         (partition_view_init): Mark only useful SSA names as used.
20305         (partition_view_fini): Only deal with SSA names.
20306         (change_partition_var): Remove.
20307         (dump_var_map): Use ssa_name instead of partition_to_var member.
20308         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
20309         basic blocks.
20310         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
20311         (struct _elim_graph): New member const_dests; nodes member vector of
20312         ints.
20313         (set_location_for_edge): New static helper.
20314         (create_temp): Remove.
20315         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
20316         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
20317         (new_elim_graph): Allocate const_dests member.
20318         (clean_elim_graph): Truncate const_dests member.
20319         (delete_elim_graph): Free const_dests member.
20320         (elim_graph_size): Adapt to new type of nodes member.
20321         (elim_graph_add_node): Likewise.
20322         (eliminate_name): Likewise.
20323         (eliminate_build): Don't take basic block argument, deal only with
20324         partition numbers, not variables.
20325         (get_temp_reg): New static helper.
20326         (elim_create): Use it, deal with RTL temporaries instead of trees.
20327         (eliminate_phi): Adjust all calls to new signature.
20328         (assign_vars, replace_use_variable, replace_def_variable): Remove.
20329         (rewrite_trees): Only do checking.
20330         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
20331         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
20332         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
20333         contains_tree_r, MAX_STMTS_IN_LATCH,
20334         process_single_block_loop_latch, analyze_edges_for_bb,
20335         perform_edge_inserts): Remove.
20336         (expand_phi_nodes): New global function.
20337         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
20338         functions, initialize new parameter, remember partitions having a
20339         default def.
20340         (finish_out_of_ssa): New global function.
20341         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
20342         don't reset in_ssa_p here, don't disable TER when mudflap.
20343         (pass_del_ssa): Remove.
20344         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
20345         partition members.
20346         (execute_free_datastructures): Declare.
20347         * Makefile.in (SSAEXPAND_H): New variable.
20348         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
20349         * basic-block.h (commit_one_edge_insertion): Declare.
20350         * passes.c (init_optimization_passes): Move pass_nrv and
20351         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
20352         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
20353         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
20354         (redirect_branch_edge): Deal with super block when expanding, split
20355         out jump patching itself into ...
20356         (patch_jump_insn): ... here, new static helper.
20357
20358 2009-04-26  Michael Matz  <matz@suse.de>
20359
20360         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
20361         beyond num_ssa_names.
20362         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
20363         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
20364
20365 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
20366
20367         PR inline-asm/39543
20368         * fwprop.c (forward_propagate_asm): New function.
20369         (forward_propagate_and_simplify): Propagate also into __asm, if it
20370         doesn't increase the number of referenced registers.
20371
20372         PR c/39889
20373         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
20374
20375 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
20376
20377         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
20378         note_nonlocal_vla_type for nonlocal VLAs.
20379         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
20380         contains_remapped_vars, remap_vla_decls): New functions.
20381         (convert_nonlocal_reference_stmt): If not optimizing, call
20382         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
20383         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
20384         if it wasn't found in var_map.
20385         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
20386         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
20387         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
20388         declare_vars.
20389         * gimplify.c (nonlocal_vlas): New variable.
20390         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
20391         referenced VLAs.
20392         (gimplify_body): Create and destroy nonlocal_vlas.
20393
20394         * dwarf2out.c (loc_descr_plus_const): New function.
20395         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
20396         mem_loc_descriptor, loc_descriptor_from_tree_1,
20397         descr_info_loc, gen_variable_die): Use it.
20398
20399         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
20400         !TREE_STATIC VAR_DECLs.
20401         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
20402         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
20403         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
20404         DECL_BY_REFERENCE is valid.
20405         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
20406         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
20407         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
20408         Copy DECL_BY_REFERENCE.
20409         (struct nesting_copy_body_data): New type.
20410         (nesting_copy_decl): New function.
20411         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
20412         if they have variable length.
20413
20414 2009-04-26  Michael Matz  <matz@suse.de>
20415
20416         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
20417         mark new temporaries for renaming.
20418
20419 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
20420
20421         PR c/39581
20422         * c-decl.c (global_bindings_p): Return negative value.
20423         (c_variable_size): New.  Based on variable_size from
20424         stor-layout.c.
20425         (grokdeclarator): Call c_variable_size not variable_size.
20426
20427 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
20428
20429         * config/i386/i386.c (print_operand) ['z']: Fix typo.
20430
20431 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
20432
20433         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
20434         Redefine it to just use mingw/include.
20435         (ASM_SPEC): Rules for -m32 and -m64.
20436         (LINK_SPEC): Use Likewise.
20437         (SPEC_32): New define.
20438         (SPEC_64): Likewise.
20439         (SUB_LINK_SPEC): Likewise.
20440         (MULTILIB_DEFAULTS): New define.
20441         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
20442         Add multilib options.
20443         (MULTILIB_DIRNAMES): Likewise.
20444         (MULTILIB_OSDIRNAMES): Likewise.
20445         (LIBGCC): Likewise.
20446         (INSTALL_LIBGCC): Likewise.
20447
20448 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
20449
20450         PR c/39556
20451         * c-tree.h (enum c_inline_static_type): New.
20452         (record_inline_static): Declare.
20453         * c-decl.c (struct c_inline_static, c_inline_statics,
20454         record_inline_static, check_inline_statics): New.
20455         (pop_file_scope): Call check_inline_statics.
20456         (start_decl): Call record_inline_static instead of pedwarning
20457         directly for static in inline function.
20458         * c-typeck.c (build_external_ref): Call record_inline_static
20459         instead of pedwarning directly for static referenced in inline
20460         function.
20461
20462 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
20463
20464         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
20465         not new but only being rescanned.
20466         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
20467         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
20468         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
20469         record_set_info, compute_set, grealloc): Remove.
20470         (recompute_all_luids): New function.
20471         (gcse_main): Don't compute sets, and don't do related memory
20472         allocations/free-ing.  If something changed before the end of the
20473         pass, update LUIDs using recompute_all_luids.
20474         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
20475         (free_gcse_mem): Don't free it either.
20476         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
20477         Use the df insn LUIDs.
20478         (load_killed_in_block): Likewise.
20479         (compute_hash_table_work): Don't compute reg_set_in_block.
20480         (compute_transp): Use DF_REG_DEF_CHAINs.
20481         (local_cprop_pass): Don't use compute_sets and related functions.
20482         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
20483         Use get_max_uid() instead of max_cuid.
20484         (insert_insn_end_basic_block, pre_insert_copy_insn,
20485         update_ld_motion_stores): Don't try to
20486         keep reg_set tables up to date.
20487         (pre_insert_copies): Use df insn LUIDs.
20488         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
20489         (reg_set_info): Don't use extra bitmap argument.
20490         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
20491         information to compute regs_set_in_block.
20492         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
20493         (bypass_jumps): Don't use compute_sets and friends.
20494
20495 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20496
20497         PR testsuite/39710
20498         * opts.c (undocumented_msg): Do not leave blank even with
20499         ENABLE_CHECKING.
20500
20501 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
20502
20503         * c-decl.c (build_enumerator): Allow values folding to integer
20504         constants but not integer constant expressions with a pedwarn if
20505         pedantic.
20506
20507 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
20508
20509         PR c/39582
20510         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
20511         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
20512         type is an integer constant.
20513
20514 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
20515
20516         PR target/39897
20517         * config/i386/i386.c (print_operand) ['z']: Revert handling of
20518         HImode operands.
20519
20520 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
20521
20522         PR c/39564
20523         * c-decl.c (grokdeclarator): Diagnose declarations of functions
20524         with variably modified return type and no storage class
20525         specifiers, except for the case of nested functions.  Distinguish
20526         extern declarations of functions with variably modified return
20527         types from those of objects with variably modified types.
20528
20529 2009-04-25  Jan Hubicka  <jh@suse.cz>
20530
20531         * tree.c (list_equal_p): New function.
20532         * tree.h (list_equal_p): Declare.
20533         * coretypes.h (edge_def, edge, const_edge, basic_block_def
20534         basic_block_def, basic_block, const_basic_block): New.
20535         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
20536         (redirect_eh_edge): New function.
20537         (make_eh_edge_update_phi): EH edges are not abnormal.
20538         * except.c: Include tree-flow.h.
20539         (list_match): New function.
20540         (eh_region_replaceable_by_p): New function.
20541         (replace_region): New function.
20542         (hash_type_list): New function.
20543         (hash_eh_region): New function.
20544         (eh_regions_equal_p): New function.
20545         (merge_peers): New function.
20546         (remove_unreachable_regions): Verify EH tree when checking;
20547         merge peers.
20548         (copy_eh_region_1): New function.
20549         (copy_eh_region): New function.
20550         (push_reachable_handler): New function.
20551         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
20552         regions without label but with live RESX.
20553         * except.h (redirect_eh_edge_to_label): New.
20554         * tree-flow.h (redirect_eh_edge): New.
20555         * coretypes.h (edge_def, edge, const_edge, basic_block_def
20556         basic_block_def, basic_block, const_basic_block): Remove.
20557         * Makefile.in (except.o): Add dependency on tree-flow.h
20558         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
20559         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
20560         Remove.
20561
20562 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
20563
20564         PR bootstrap/39645
20565         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
20566         on the destination of memcpy.
20567
20568 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
20569
20570         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
20571         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
20572         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
20573
20574 2009-04-25  Jan Hubicka  <jh@suse.cz>
20575
20576         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
20577         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
20578         to be reached by different label than left.
20579         (update_eh_edges): Update comment; remove edge_to_remove if possible
20580         and return true if suceeded.
20581         (cleanup_empty_eh): Accept sharing map; handle shared regions.
20582         (cleanup_eh): Compute sharing map.
20583         * except.c (remove_eh_handler_and_replace): Add argument if we should
20584         update regions.
20585         (remove_unreachable_regions): Update for label sharing.
20586         (label_to_region_map): Likewise.
20587         (get_next_region_sharing_label): New function.
20588         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
20589         prev_try pointers.
20590         (remove_eh_handler): Update.
20591         (remove_eh_region_and_replace_by_outer_of): New function.
20592         * except.h (struct eh_region): Add next_region_sharing_label.
20593         (remove_eh_region_and_replace_by_outer_of,
20594         get_next_region_sharing_label): Declare.
20595         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
20596
20597 2009-04-25  Jan Hubicka  <jh@suse.cz>
20598
20599         * tree-cfg.c (split_critical_edges): Split also edges where we can't
20600         insert code even if they are not critical.
20601
20602 2009-04-25  Jan Hubicka  <jh@suse.cz>
20603
20604         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
20605         (gimple_can_remove_branch_p): EH edges won't remove branch by
20606         redirection.
20607         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
20608         updating of non-abnormal EH edges.
20609         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
20610         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
20611         (split_critical_edges): Split also edges where emitting code on them
20612         will lead to splitting later.
20613
20614 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
20615             H.J. Lu  <hongjiu.lu@intel.com>
20616
20617         PR target/39590
20618         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
20619         the configured assembler supports fildq and fistpq mnemonics.
20620         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
20621         * configure: Regenerated.
20622         * config.in: Ditto.
20623
20624         * config/i386/i386.c (print_operand): Handle 'Z'.
20625         ['z']: Remove handling of special fild/fist suffixes.
20626         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
20627         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
20628         suffix of fild insn.
20629         (*floatsi<mode>2_vector_mixed): Ditto.
20630         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
20631         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
20632         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
20633         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
20634         * config/i386/gas.h (GAS_MNEMONICS): Remove.
20635
20636 2009-04-25  Ben Elliston  <bje@au.ibm.com>
20637
20638         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
20639         the source of a set operation.
20640
20641 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
20642
20643         * target.h (struct gcc_target): Add case_values_threshold field.
20644         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
20645         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
20646         * targhooks.c (default_case_values_threshold): New function.
20647         * targhooks.h (default_case_values_threshold): Declare function.
20648         * stmt.c (expand_case): Use case_values_threshold target hook.
20649         * expr.h (case_values_threshold): Remove declartation.
20650         * expr.c (case_values_threshold): Remove function.
20651         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
20652
20653         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
20654         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
20655         (avr_case_values_threshold): Declare as static.
20656         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
20657
20658         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
20659         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
20660         (mn10300_case_values_threshold): New function.
20661
20662 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
20663
20664         * ira.c (setup_cover_and_important_classes): Add enum cast.
20665
20666 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
20667
20668         * genpreds.c (write_enum_constraint_num): Output definition of
20669         CONSTRAINT_NUM_DEFINED_P macro.
20670         * ira.c (setup_cover_and_important_classes): Use
20671         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
20672
20673 2009-04-24  DJ Delorie  <dj@redhat.com>
20674
20675         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
20676         __SH2A_SINGLE_ONLY__ also.
20677
20678 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
20679
20680         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
20681         (movdf_internal): Ditto.
20682         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
20683         SFmode and DFmode constants.
20684         (ia64_print_operand): Add 'G' format for printing
20685         floating point constants.
20686
20687 2009-04-24  Richard Guenther  <rguenther@suse.de>
20688
20689         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
20690         from unsigned additions.
20691
20692 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
20693
20694         * c-typeck.c (set_init_index): Allow array designators that are
20695         not integer constant expressions with a pedwarn if pedantic.
20696
20697 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
20698
20699         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
20700         zero if no overlap in nonzero bits between the operands.
20701
20702 2009-04-24  Ian Lance Taylor  <iant@google.com>
20703
20704         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
20705         (record_dead_and_set_regs): Likewise.
20706         * df.h (struct df_mw_hardreg): Change flags field to int.
20707         (struct df_base_ref): Likewise.
20708         (struct df): Change changeable_flags field to int.
20709         * df-scan.c (df_defs_record): Change clobber_flags to int.
20710         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
20711         constants rather than #define macros.
20712         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
20713         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
20714         (enum dwarf_calling_convention): Likewise.
20715         (enum dwarf_line_number_x_ops): Likewise.
20716         (enum dwarf_call_frame_info): Likewise.
20717         (enum dwarf_source_language): Likewise.
20718         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
20719         (add_calling_convention_attribute): Likewise.
20720         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
20721         (combine_comparisons): Change compcode to int.  Add cast to enum type.
20722         * genrecog.c (maybe_both_true_2): Change c to int.
20723         (write_switch): Likewise.  Add cast to enum type.
20724         * gimplify.c (gimplify_omp_for): Handle return values from
20725         gimplify_expr using MIN rather than bitwise or.
20726         (gimplify_expr): Add cast to enum type.
20727         * ipa-prop.c (update_jump_functions_after_inlining): Change
20728         IPA_BOTTOM to IPA_JF_UNKNOWN.
20729         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
20730         Add casts to enum type.
20731         (setup_cover_and_important_classes): Change cl to int.  Add casts
20732         to enum type.
20733         (setup_class_translate): Change cl and mode to int.
20734         (ira_init_once): Change mode to int.
20735         (free_register_move_costs): Likewise.
20736         (setup_prohibited_mode_move_regs): Add casts to enum type.
20737         * langhooks.c (add_builtin_function_common): Rework assertion that
20738         value fits bitfield.
20739         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
20740         * omega.c (omega_do_elimination): Avoid math on enum types.
20741         * optabs.c (expand_vec_shift_expr): Remove casts to int.
20742         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
20743         int local to handle integral_argment value.
20744         * regmove.c (try_auto_increment): Change PUT_MODE to
20745         PUT_REG_NOTE_KIND.
20746         * reload.c (push_secondary_reload): Add casts to enum type.
20747         (secondary_reload_class, find_valid_class): Likewise.
20748         * reload1.c (emit_input_reload_insns): Likewise.
20749         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
20750         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
20751         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
20752         constant.
20753         * tree.c (build_common_builtin_nodes): Add casts to enum type.
20754         * tree-complex.c (complex_lattice_t): Typedef to int rather than
20755         enum type.
20756         (expand_complex_libcall): Add casts to enum type.
20757         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
20758         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
20759         with ERROR_MARK, not NUM_TREE_CODES.
20760         (vect_create_epilog_for_reduction): Likewise.
20761         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
20762         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
20763         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
20764         enum machine_mode.
20765         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
20766         vect_unused_in_loop.  Change 0 to loop_vect.
20767         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
20768         * var-tracking.c (get_init_value): Change return type to enum
20769         var_init_status.
20770         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
20771         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
20772         arm_fp_model.
20773         (arm_override_options): Add casts to enum type.
20774         (arm_emit_tls_decoration): Likewise.
20775         * config/i386/i386.c (ix86_function_specific_restore): Add casts
20776         to enum type.
20777         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
20778         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
20779         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
20780         enum type.
20781         * config/s390/s390.c (code_for_builtin_64): Change to array of
20782         enum insn_code.
20783         (code_for_builtin_31): Likewise.
20784         (s390_expand_builtin): Change code_for_builtin to enum insn_code
20785         const *.
20786         * config/sparc/sparc.c (sparc_override_options): Change value
20787         field in struct code_model to enum cmodel.  In initializer change
20788         0 to NULL and add cast to enum type.
20789
20790         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
20791         Change all callers.  Issue a -Wc++-compat warning using
20792         lhs_origtype if necessary.
20793         (convert_for_assignment): Issue -Wc++-compat warnings about
20794         invalid conversions to enum type on assignment.
20795         * c-common.h (build_modify_expr): Update declaration.
20796
20797 2009-04-24  Nick Clifton  <nickc@redhat.com>
20798
20799         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
20800         (function_arg_advance): Likewise.
20801         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
20802         5th alternative.
20803
20804 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
20805
20806         * config/s390/constraints.md ('I', 'J'): Fix condition.
20807
20808 2009-04-24  Diego Novillo  <dnovillo@google.com>
20809
20810         * gengtype-parse.c (parse_error): Add newline after message.
20811
20812 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
20813
20814         * config/i386/sse.md (avxmodesuffixs): Removed.
20815         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
20816         (*avx_pinsr<ssevecsize>): This.
20817
20818 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
20819
20820         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
20821         follow chains of regs with a single definition, and allow expressions
20822         that are function_invariant_p.
20823         (simple_rhs_p): Allow expressions that are function_invariant_p.
20824
20825 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
20826
20827         PR middle-end/39867
20828         * fold-const.c (fold_cond_expr_with_comparison): When folding
20829         > and >= to MAX, make sure the MAX uses the same type as the
20830         comparison's operands.
20831
20832 2009-04-24  Nick Clifton  <nickc@redhat.com>
20833
20834         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
20835         addressing for DImode accesses.
20836         (frv_print_operand_address): Handle PLUS case.
20837         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
20838
20839 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
20840
20841         PR rtl-optimization/39794
20842         * alias.c (canon_true_dependence): Add x_addr argument.
20843         * rtl.h (canon_true_dependence): Adjust prototype.
20844         * cse.c (check_dependence): Adjust canon_true_dependence callers.
20845         * cselib.c (cselib_invalidate_mem): Likewise.
20846         * gcse.c (compute_transp): Likewise.
20847         * dse.c (scan_reads_nospill): Likewise.
20848         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
20849         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
20850         canon_base_addr of the group, plus optional offset.
20851         (struct group_info): Rename canon_base_mem to
20852         canon_base_addr.
20853         (get_group_info): Set canon_base_addr to canon_rtx of base, not
20854         canon_rtx of base_mem.
20855
20856 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
20857
20858         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
20859         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
20860
20861 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20862
20863         * config/spu/spu-builtins.h: Delete file.
20864
20865         * config/spu/spu.h (enum spu_builtin_type): Move here from
20866         spu-builtins.h.
20867         (struct spu_builtin_description): Likewise.  Add GTY marker.
20868         Do not use enum spu_function_code or enum insn_code.
20869         (spu_builtins): Add extern declaration.
20870
20871         * config/spu/spu.c: Do not include "spu-builtins.h".
20872         (enum spu_function_code, enum spu_builtin_type_index,
20873         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
20874         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
20875         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
20876         unsigned_V2DI_type_node): Move here from spu-builtins.h.
20877         (spu_builtin_types): Make static.  Add GTY marker.
20878         (spu_builtins): Add extern declaration with GTY marker.
20879         Include "gt-spu.h".
20880
20881         * config/spu/spu-c.c: Do not include "spu-builtins.h".
20882         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
20883         Check programmatically whether all parameters are scalar.
20884
20885         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
20886
20887 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
20888
20889         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
20890         assignment from the constructor either if the target is volatile.
20891
20892 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
20893
20894         * config/arm/arm.md (insv): Do not share operands[0].
20895
20896 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
20897
20898         * config/vxlib-tls.c (active_tls_threads): Delete.
20899         (delete_hook_installed): New.
20900         (tls_delete_hook): Don't delete the delete hook.
20901         (tls_destructor): Delete it here.
20902         (__gthread_set_specific): Adjust installing the delete hook.
20903         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
20904         __gthread_leave_tsd_dtor_context.
20905
20906 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
20907
20908         * c-format.c (gcc_tdiag_char_table): Add support for %E.
20909
20910 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
20911
20912         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
20913         enum type.
20914         (alpha_rtx_costs): Ditto.
20915         (emit_unlikely_jump): Use add_reg_note.
20916         (emit_frame_store_1): Ditto.
20917         (alpha_expand_prologue): Ditto.
20918         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
20919         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
20920
20921 2009-04-23  Nick Clifton  <nickc@redhat.com>
20922
20923         * config/v850/v850.md (epilogue): Remove suppressed code.
20924         (return): Rename to return_simple and remove test of frame size.
20925         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
20926         to gen_return_simple.
20927
20928 2009-04-22  Jing Yu  <jingyu@google.com>
20929
20930         PR testsuite/39781
20931         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
20932
20933 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20934
20935         PR C/31499
20936         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
20937         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
20938         value is a VECTOR_CST, the element type is the element type of the
20939         vector.
20940
20941 2009-04-22  DJ Delorie  <dj@redhat.com>
20942
20943         * config/m32c/m32c.h: Update GTY annotations to new syntax.
20944
20945 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
20946
20947         * alias.c (find_base_term): Move around LO_SUM case, so that
20948         CONST falls through into PLUS/MINUS handling.
20949
20950         PR c/39855
20951         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
20952         into 0, use omit_one_operand.
20953
20954 2009-04-23  Ben Elliston  <bje@au.ibm.com>
20955
20956         * config/rs6000/linux-unwind.h (get_regs): Remove type
20957         puns. Change the type of `pc' to an array of unsigned ints and
20958         update all users.  Constify frame24.
20959
20960 2009-04-22  DJ Delorie  <dj@redhat.com>
20961
20962         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
20963         declarations before code.
20964         (current_function_special_page_vector): Likewise.
20965         (m32c_expand_insv): Silence a warning.
20966
20967 2009-04-21  Taras Glek  <tglek@mozilla.com>
20968
20969         * alias.c: Update GTY annotations to new syntax.
20970         * basic-block.h: Likewise.
20971         * bitmap.h: Likewise.
20972         * c-common.h: Likewise.
20973         * c-decl.c: Likewise.
20974         * c-parser.c: Likewise.
20975         * c-pragma.c: Likewise.
20976         * c-tree.h: Likewise.
20977         * cfgloop.h: Likewise.
20978         * cgraph.h: Likewise.
20979         * config/alpha/alpha.c: Likewise.
20980         * config/arm/arm.h: Likewise.
20981         * config/avr/avr.h: Likewise.
20982         * config/bfin/bfin.c: Likewise.
20983         * config/cris/cris.c: Likewise.
20984         * config/darwin.c: Likewise.
20985         * config/frv/frv.c: Likewise.
20986         * config/i386/i386.c: Likewise.
20987         * config/i386/i386.h: Likewise.
20988         * config/i386/winnt.c: Likewise.
20989         * config/ia64/ia64.h: Likewise.
20990         * config/iq2000/iq2000.c: Likewise.
20991         * config/mips/mips.c: Likewise.
20992         * config/mmix/mmix.h: Likewise.
20993         * config/pa/pa.c: Likewise.
20994         * config/pa/pa.h: Likewise.
20995         * config/rs6000/rs6000.c: Likewise.
20996         * config/s390/s390.c: Likewise.
20997         * config/sparc/sparc.c: Likewise.
20998         * config/xtensa/xtensa.c: Likewise.
20999         * cselib.h: Likewise.
21000         * dbxout.c: Likewise.
21001         * dwarf2out.c: Likewise.
21002         * except.c: Likewise.
21003         * except.h: Likewise.
21004         * fixed-value.h: Likewise.
21005         * function.c: Likewise.
21006         * function.h: Likewise.
21007         * gimple.h: Likewise.
21008         * integrate.c: Likewise.
21009         * optabs.c: Likewise.
21010         * output.h: Likewise.
21011         * real.h: Likewise.
21012         * rtl.h: Likewise.
21013         * stringpool.c: Likewise.
21014         * tree-data-ref.c: Likewise.
21015         * tree-flow.h: Likewise.
21016         * tree-scalar-evolution.c: Likewise.
21017         * tree-ssa-address.c: Likewise.
21018         * tree-ssa-alias.h: Likewise.
21019         * tree-ssa-operands.h: Likewise.
21020         * tree.c: Likewise.
21021         * tree.h: Likewise.
21022         * varasm.c: Likewise.
21023         * varray.h: Likewise.
21024         * vec.h: Likewise.
21025         * coretypes.h: Do not define GTY macro if it is already defined.
21026         * doc/gty.texi: Update GTY documentation to new syntax.
21027         * gengtype-lex.l: Enforce attribute-like syntax for GTY
21028         annotations on structs.
21029         * gengtype-parse.c: Likewise.
21030
21031 2009-04-22  Mark Heffernan  <meheff@google.com>
21032
21033         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
21034
21035 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
21036
21037         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
21038         where appropriate.
21039
21040 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
21041
21042         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
21043         the same as a PLUS without a shift.  Increase the cost of a
21044         CONST_INT in MULT.
21045
21046 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21047
21048         * Makefile.in: Update dependencies.
21049         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
21050         * errors.h: Remove bogus comment about compatibility.
21051         (warning): Update declaration.
21052         * genautomata.c: Update all calls to warning.
21053         * gimple.c: Do not include errors.h. Include toplev.h.
21054         * tree-ssa-structalias.c: Do not include errors.h.
21055         * omega.c: Likewise.
21056         * tree-ssa-reassoc.c: Likewise.
21057         * config/spu/spu-c.c: Likewise.
21058         * config/spu/t-spu-elf: Update dependencies.
21059
21060 2009-04-22  Richard Guenther  <rguenther@suse.de>
21061
21062         PR tree-optimization/39824
21063         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
21064         make sure the types are compatible.
21065
21066 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21067
21068         PR c++/14875
21069         * c-common.c (c_parse_error): Take a token_flags parameter.
21070         Use token_type for the token type instead.
21071         Pass token_flags to cpp_type2name.
21072         * c-common.h (c_parse_error): Update declaration.
21073         * c-parser.c (c_parser_error): Pass 0 as token flags.
21074
21075 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
21076
21077         PR rtl-optimization/39580
21078         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
21079
21080 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21081
21082         * function.c (expand_function_end): Do not emit a jump to the "naked"
21083         return label for fall-through returns.
21084         * except.c (sjlj_emit_function_exit): Always place the call to the
21085         unregister function at the location installed by expand_function_end.
21086
21087 2009-04-22  Richard Guenther  <rguenther@suse.de>
21088
21089         PR tree-optimization/39845
21090         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
21091         (gen_inbound_check): Likewise.
21092
21093 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
21094
21095         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
21096         padding for PPC.
21097         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
21098         * config/vxlib.c (__gthread_once): Add race guard for PPC.
21099
21100 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
21101
21102         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
21103         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
21104         shift counts to avoid out-of-bounds array accesses.
21105
21106 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
21107
21108         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
21109         (Pmode): Move above.
21110
21111 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
21112
21113         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
21114         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
21115         GET_CODE macro.  Use IN_RANGE macro where appropriate.
21116         * config/alpha/alpha.h: Ditto.
21117         * config/alpha/alpha.md: Ditto.
21118         * config/alpha/constraints.md: Ditto.
21119         * config/alpha/predicates.md: Ditto.
21120
21121 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
21122
21123         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
21124         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21125         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21126         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21127         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21128         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21129         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21130         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21131         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21132         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21133         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21134         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21135         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21136         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21137         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21138         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21139         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21140         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21141         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21142         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21143         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21144         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21145         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21146         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21147         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21148         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21149         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21150
21151 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
21152
21153         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
21154         references from comments.
21155         * cfgbuild.c (count_basic_blocks): Delete.
21156         (find_basic_blocks_1): Delete.
21157         (find_basic_blocks): Delete.
21158         * except.c (finish_eh_generation): Make static.  Move comment from
21159         except.h here.  Remove find_basic_blocks references from comments.
21160         * except.h (finish_eh_generation): Delete.
21161         * basic-block.h (find_basic_blocks): Delete.
21162         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
21163
21164 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
21165
21166         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
21167         (sdbout_parms):  Likewise.
21168
21169 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
21170
21171         * config/sh/sh.c (prepare_cbranch_operands): Use
21172         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
21173         (expand_cbranchdi4): Likewise.
21174         (from_compare): Add cast to enum type.
21175         (expand_cbranchsi4): Use add_reg_note.
21176         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
21177         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
21178         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
21179         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
21180         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
21181         instead of CODE_FOR_nothing.
21182         (cbranchdi4): Likewise.  Fix the order of arguments for
21183         gen_rtx_fmt_ee.
21184         (push_fpscr): Use add_reg_note.
21185         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
21186         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
21187
21188 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
21189
21190         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
21191         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
21192         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
21193         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
21194         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
21195         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
21196         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
21197         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
21198         config/alpha/x-vms, config/arc/t-arc,
21199         config/arm/README-interworking, config/arm/arm-c.c,
21200         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
21201         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
21202         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
21203         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
21204         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
21205         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
21206         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
21207         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
21208         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
21209         config/cris/t-elfmulti, config/crx/t-crx,
21210         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
21211         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
21212         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
21213         config/h8300/t-h8300, config/i386/athlon.md,
21214         config/i386/darwin-libgcc.10.4.ver,
21215         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
21216         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
21217         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
21218         config/i386/t-linux64, config/i386/t-nwld,
21219         config/i386/t-rtems-i386, config/i386/t-sol2-10,
21220         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
21221         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
21222         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
21223         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
21224         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
21225         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
21226         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
21227         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
21228         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
21229         config/m68k/t-uclinux, config/mcore/t-mcore,
21230         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
21231         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
21232         config/mips/crtn.asm, config/mips/irix-crti.asm,
21233         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
21234         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
21235         config/mips/mips-fixed.md, config/mips/sb1.md,
21236         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
21237         config/mips/t-iris6, config/mips/t-isa3264,
21238         config/mips/t-libgcc-mips16, config/mips/t-linux64,
21239         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
21240         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
21241         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
21242         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
21243         config/mn10300/t-linux, config/mn10300/t-mn10300,
21244         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
21245         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
21246         config/picochip/libgccExtras/clzsi2.asm,
21247         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
21248         config/rs6000/darwin-libgcc.10.4.ver,
21249         config/rs6000/darwin-libgcc.10.5.ver,
21250         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
21251         config/rs6000/t-aix43, config/rs6000/t-aix52,
21252         config/rs6000/t-darwin, config/rs6000/t-fprules,
21253         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
21254         config/rs6000/t-lynx, config/rs6000/t-netbsd,
21255         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
21256         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
21257         config/rs6000/t-rtems, config/rs6000/t-spe,
21258         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
21259         config/score/t-score-elf, config/sh/divcost-analysis,
21260         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
21261         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
21262         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
21263         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
21264         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
21265         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
21266         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
21267         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
21268         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
21269         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
21270         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
21271         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
21272         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
21273         limitx.h, version.c, xcoff.h: Add copyright and license notices.
21274         * config/h8300/genmova.sh: Include copyright and license notices
21275         in generated output.
21276         * config/h8300/mova.md: Regenerate.
21277         * doc/install.texi2html: Include word "Copyright" in copyright
21278         notice and use name "Free Software Foundation, Inc.".
21279         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
21280         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
21281         ChangeLog-2007, ChangeLog-2008: Correct dates.
21282
21283 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
21284
21285         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
21286         NE_EXPR operations as well.
21287         * c-parser.c (c_parser_condition): Do not set location information on
21288         the condition.
21289         (c_parser_conditional_expression): Likewise.
21290         (c_parser_binary_expression): Set location information on operators.
21291         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
21292         TRUTH_NOT_EXPR has been folded.
21293         * fold-const.c (fold_truth_not_expr): Copy location information from
21294         the incoming expression to the outgoing one.
21295         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
21296         recursive calls on the LHS of the operator but pass that of the
21297         operator to recursive calls on the RHS of the operator.  Set it
21298         on the COND_EXPR.
21299         (shortcut_cond_expr): Set the locus of the operator on the second
21300         COND_EXPR and that of the expression on the first in degenerate cases.
21301         Pass the locus of the expression to calls to shortcut_cond_r.
21302         Set the locus of the 'then' block on the associated jump, if any.
21303         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
21304         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
21305         expression to call to gimplify_boolean_expr.
21306
21307 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
21308
21309         * config.gcc: Add additional configuration for
21310         i686-w64-mingw* and x86_64-w64-mingw* triplet.
21311         * config/i386/mingw-w64.h: New mingw-w64 specific header.
21312         (CPP_SPEC): Redefine for allowing -municode option.
21313         (STARTFILE_SPEC): Likewise.
21314         * config/i386/t-mingw-w64: New.
21315         * config/i386/mingw-w64.opt: New.
21316         (municode): Add new target option.
21317         * doc/invoke.texi (municode): Add documentation for new option.
21318
21319 2009-04-21  Ian Lance Taylor  <iant@google.com>
21320
21321         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21322         Correct test for number of arguments.
21323         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
21324
21325 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
21326
21327         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
21328         argument of emit_library_call.
21329
21330 2009-04-21  Richard Guenther  <rguenther@suse.de>
21331
21332         PR middle-end/39829
21333         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
21334         inside VIEW_CONVERT_EXPRs.
21335
21336 2009-04-21  Martin Jambor  <mjambor@suse.cz>
21337
21338         * tree-switch-conversion.c (build_constructors): Split a long line.
21339         (constructor_contains_same_values_p): New function.
21340         (build_one_array): Create assigns of constants if possible, do not
21341         call mark_sym_for_renaming, call update_stmt.
21342         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
21343         make_rename_temp.  Do not call mark_symbols_for_renaming, call
21344         update_stmt.
21345         (gen_def_assigns): Do not call mark_symbols_for_renaming or
21346         find_new_referenced_vars, call update_stmt.
21347         (gen_inbound_check): Use create_tmp_var and create ssa names manually
21348         instead of calling make_rename_temp.  Do not call
21349         find_new_referenced_vars or mark_symbols_for_renaming, call
21350         update_stmt.
21351
21352 2009-04-21  Richard Guenther  <rguenther@suse.de>
21353
21354         PR tree-optimization/39827
21355         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
21356         (tree_ssa_phiprop): Pass the correct array size.
21357
21358 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
21359
21360         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
21361
21362 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21363
21364         PR 16202
21365         * c-typeck.c (lvalue_p): Move declaration ...
21366         * c-common.h (lvalue_p): ... to here.
21367         * c-common.c (candidate_equal_p): New.
21368         (add_tlist): Use it.
21369         (merge_tlist): Use it.
21370         (warn_for_collisions_1): Likewise.
21371         (warning_candidate_p): Accept more candidates.
21372         (verify_tree): A warning candidate can be an expression. Use
21373         candidate_equal_p.
21374
21375 2009-04-21  Ben Elliston  <bje@au.ibm.com>
21376
21377         PR target/5267
21378         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
21379         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
21380         options.  Remove -mcall-solaris documentation.
21381
21382 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21383
21384         PR c++/13358
21385         * doc/invoke.texi (-Wlong-long): Update description.
21386         * c-lex (interpret_integer): Only warn if there was no previous
21387         overflow and -Wlong-long is enabled.
21388         * c-decl.c (declspecs_add_type): Drop redundant flags.
21389         * c.opt (Wlong-long): Init to -1.
21390         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
21391         and front-end warn_long_long. Wlong-long only depends on other
21392         flags if it is uninitialized.
21393         * c-parser.c (disable_extension_diagnostics): warn_long_long is
21394         the same for CPP and FE.
21395         (restore_extension_diagnostics): Likewise.
21396
21397 2009-04-20  Ian Lance Taylor  <iant@google.com>
21398
21399         Fix enum conversions which are invalid in C++:
21400         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
21401         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
21402         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
21403         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
21404         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
21405         (dbxout_parms): Likewise.
21406         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
21407         (df_clear_flags): Likewise.
21408         * df-problems.c (df_rd_bb_local_compute_process_def): Change
21409         top_flag parameter to int.
21410         (df_chain_create_bb_process_use): Likewise.
21411         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
21412         Remove cast.
21413         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
21414         (df_ref_create_structure, df_def_record_1): Likewise.
21415         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
21416         (df_notes_rescan): Change 0 to VOIDmode in function call.
21417         (df_get_call_refs, df_insn_refs_collect): Likewise.
21418         (df_bb_regs_collect): Likewise.
21419         (df_entry_block_defs_collect): Likewise.
21420         (df_exit_block_uses_collect): Likewise.
21421         * df.h: Update declarations.
21422         * double-int.c (double_int_divmod): Add cast to enum type.
21423         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
21424         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
21425         (based_loc_descr): Likewise.
21426         (loc_descriptor_from_tree_1): Change first_op and second_op to
21427         enum dwarf_location_atom.  Add cast to enum type.
21428         * expmed.c (init_expmed): Change 0 to SET in function call.
21429         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
21430         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
21431         (do_store_flag): Likewise.
21432         * fixed-value.h (struct fixed_value): Change mode to enum
21433         machine_mode.
21434         * function.c (assign_parms): Change 0 to VOIDmode in function call.
21435         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
21436         function call.
21437         (insert_insn_decl, insert_decl, insert_state): Likewise.
21438         (automata_list_finish): Likewise.
21439         * genrecog.c (process_define_predicate): Add cast to enum type.
21440         * gensupport.c (init_predicate_table): Add cast to enum type.
21441         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
21442         function call.
21443         (gimple_build_call_1, gimple_build_label): Likewise.
21444         (gimple_build_goto, gimple_build_asm_1): Likewise.
21445         (gimple_build_switch_1, gimple_build_cdt): Likewise.
21446         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
21447         (enum fallback): Rename from enum fallback_t.
21448         (fallback_t): Typedef as int.
21449         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
21450         GSI_SAME_STMT in function call.
21451         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
21452         enum type.
21453         (setup_reg_class_relations): Likewise.
21454         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
21455         (setup_prohibited_class_mode_regs): Add cast to enum type.
21456         (setup_prohibited_mode_move_regs): Likewise.
21457         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
21458         (record_address_regs): Change i to enum reg_class.
21459         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
21460         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
21461         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
21462         (GET_MODE_2XWIDER_MODE): Likewise.
21463         (GET_CLASS_NARROWEST_MODE): Likewise.
21464         * omp-low.c (expand_omp_for): Add cast to enum type.
21465         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
21466         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
21467         * postreload.c (reload_cse_simplify_operands): Change rclass local
21468         to enum reg_class.
21469         * predict.c (combine_predictions_for_insn): Change best_predictor
21470         and predictor to enum br_predictor.
21471         (combine_predictions_for_bb): Likewise.
21472         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
21473         use SET_PREDICT_EXPR_OUTCOME.
21474         * real.c (real_arithmetic): Change icode to code in function call.
21475         * reginfo.c (init_move_cost): Add casts to enum type.
21476         (init_reg_sets_1, init_fake_stack_mems): Likewise.
21477         * regmove.c (regclass_compatible_p): Change class0 and class1 to
21478         enum reg_class.
21479         * reload.c (find_valid_class): Add casts to enum type.
21480         (push_reload): Change 0 to NO_REGS in function call.
21481         (find_reloads): Change this_alternative to array of enum
21482         reg_class.  Remove some now-unnecessary casts.
21483         (make_memloc): Change 0 to VOIDmode in function call.
21484         * reload1.c (reload): Change 0 to VOIDmode in function call.
21485         (eliminate_regs_1, elimination_effects): Likewise.
21486         (eliminate_regs_in_insn): Likewise.
21487         (emit_input_reload_insns): Add cast to enum type.
21488         (delete_output_reload): Change 0 to VOIDmode in function call.
21489         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
21490         to enum type in function call.
21491         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
21492         (SET_PREDICT_EXPR_OUTCOME): Define.
21493         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
21494         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
21495         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
21496         (dump_function): Likewise.
21497         * tree-dump.h: Update declarations.
21498         * tree-pass.h: Update declarations.
21499         * varasm.c (assemble_integer): Change mclass to enum mode_class.
21500         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
21501         enum type.
21502         (arm_rtx_costs_1): Correct parenthesization.
21503         (arm_rtx_costs): Add casts to enum type.
21504         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
21505         (vfp_emit_fstmd): Use add_rg_note.
21506         (emit_multi_reg_push, emit_sfm): Likewise.
21507         (thumb_set_frame_pointer): Likewise.
21508         (arm_expand_prologue): Likewise.
21509         (arm_regno_class): Change return type to enum reg_class.
21510         (thumb1_expand_prologue): Use add_reg_note.
21511         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
21512         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
21513         in function call.
21514         * config/arm/gentune.sh: Add cast to enum type.
21515         * config/arm/arm-tune.md: Rebuild.
21516         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
21517         (ix86_split_fp_branch, predict_jump): Likewise.
21518         (ix86_expand_multi_arg_builtin): Change sub_code from enum
21519         insn_code to enum rtx_code.
21520         (ix86_builtin_vectorized_function): Add cast to enum type.
21521         * config/i386/i386.md (truncdfsf2): Change slot to enum
21522         ix86_stack_slot.
21523         (truncxf<mode>2, isinf<mode>2): Likewise.
21524         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
21525         enum type.
21526         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
21527         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
21528         (insert_bundle_state): Change 1 to INSERT in function call.
21529         (ia64_add_bundle_selector_before): Likewise.
21530         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
21531         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
21532         (restore_stack_nonlocal): Likewise.
21533         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
21534         function call.
21535         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
21536         function call.
21537         (mips_rtx_costs): Likewise.
21538         (mips_override_options): Add casts to enum type.
21539         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
21540         in function call.
21541         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
21542         (store_reg, set_reg_plus_d): Likewise.
21543         (hppa_expand_prologue, hppa_profile_hook): Likewise.
21544         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
21545         cast to enum type.
21546         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
21547         function call.
21548         (emit_unlikely_jump): Use add_reg_note.
21549         (rs6000_emit_allocate_stack): Likewise.
21550         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
21551         (output_toc): Change 1 to INSERT in function call.
21552         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
21553         (rs6000_initialize_trampoline): Likewise.
21554         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
21555         function call.
21556         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
21557         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
21558         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
21559         (save_gprs): Use add_reg_note.
21560         (s390_emit_prologue): Likewise.
21561         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
21562         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
21563         (sparc_fold_builtin): Add cast to enum type.
21564         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
21565         enum insn_code.
21566         (spu_expand_prologue): Use add_reg_note.
21567         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
21568
21569 2009-04-20  Ian Lance Taylor  <iant@google.com>
21570
21571         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
21572         (c_parser_postfix_expression_after_primary): Get VEC for list of
21573         arguments.  Get original types of arguments.  Call
21574         build_function_call_vec.
21575         (cached_expr_list_1, cached_expr_list_2): New static variables.
21576         (c_parser_expr_list): Change return type to VEC *.  Add
21577         p_orig_types parameter.  Change all callers.
21578         (c_parser_release_expr): New static function.
21579         (c_parser_vec_to_tree_list): New static function.
21580         * c-typeck.c (build_function_call): Rewrite to build a VEC and
21581         call build_function_call_vec.
21582         (build_function_call_vec): New function, based on old
21583         build_function_call.
21584         (convert_arguments): Remove nargs and argarray parameters.  Change
21585         values to a VEC.  Add origtypes parameter.
21586         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
21587         (convert_for_assignment): Add origtype parameter.  Change all
21588         callers.  If warn_cxx_compat, check for conversion to an enum
21589         type when calling a function.
21590         (store_init_value): Add origtype parameter.  Change all callers.
21591         (digest_init): Likewise.
21592         (struct init_node): Add origtype field.
21593         (add_pending_init): Add origtype parameter.  Change all callers.
21594         (output_init_element): Likewise.
21595         (output_pending_init_elements): Pass origtype from init_node to
21596         output_init_element.
21597         (process_init_element): Pass origtype from c_expr to
21598         output_init_element.
21599         (c_finish_return): Add origtype parameter.  Change all callers.
21600         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
21601         caller.
21602         (sync_resolve_params): Likewise.
21603         (sync_resolve_return): Change params to first_param.  Change caller.
21604         (resolve_overloaded_builtins): Change params to VEC *.  Change
21605         callers.  Save first parameter around call to build_function_call_vec.
21606         * c-decl.c (finish_decl): Add origtype parameter.  Change all
21607         callers.  Call build_function_call_vec rather than
21608         build_function_call for cleanup.
21609         * c-tree.h: Update declarations.
21610         * c-common.h: Update declarations.
21611         * stub-objc.c (objc_rewrite_function_call): Change parameter from
21612         params to first_param.
21613         * target.h (struct gcc_target): Change resolve_overloaded_builtin
21614         params parameter from tree to void *.
21615         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21616         Change arglist parameter to have type void *, and to be a pointer
21617         to a VEC.
21618         * config/rs6000/rs6000-protos.h
21619         (altivec_resolve_overloaded_builtin): Update declaration.
21620         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
21621         fnargs parameter to have type void *, and to be a pointer to a
21622         VEC.  Call build_function_call_vec instead of
21623         build_function_call.
21624         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
21625
21626 2009-04-20  Joey Ye  <joey.ye@intel.com>
21627             Xuepeng Guo  <xuepeng.guo@intel.com>
21628             H.J. Lu  <hongjiu.lu@intel.com>
21629
21630         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
21631
21632         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
21633         (IX86_LEA_PRIORITY): Likewise.
21634         (distance_non_agu_define): New function.
21635         (distance_agu_use): Likewise.
21636         (ix86_lea_for_add_ok): Likewise.
21637         (ix86_dep_by_shift_count): Likewise.
21638
21639         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
21640         should split for LEA.
21641
21642         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
21643         function.
21644         (ix86_dep_by_shift_count): Likewise.
21645
21646 2009-04-20  Richard Guenther  <rguenther@suse.de>
21647
21648         * expr.c (handled_component_p): Move ...
21649         * tree.h (handled_component_p): ... here.
21650         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
21651         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
21652         and REALPART_EXPR to be in one group.
21653
21654 2009-04-20  Richard Guenther  <rguenther@suse.de>
21655
21656         * basic-block.h (get_all_dominated_blocks): Declare.
21657         * dominance.c (get_all_dominated_blocks): New function.
21658         * tree-cfg.c (get_all_dominated_blocks): Remove.
21659         (remove_edge_and_dominated_blocks): Adjust.
21660         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
21661         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
21662         instead of recursing.
21663
21664 2009-04-20  Doug Kwan  <dougkwan@google.com>
21665
21666         * cgraph.h (cgraph_node_ptr): New type for vector functions.
21667         (struct cgraph_node_set_def): New type.
21668         (cgraph_node_set) New type. Also declare vector functions.
21669         (struct cgraph_node_set_element_def): New type.
21670         (cgraph_node_set_element): Ditto.
21671         (cgraph_node_set_iterator): New iterator type.
21672         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
21673         cgraph_node_set_remove, dump_cgraph_node_set,
21674         debug_cgraph_node_set): New prototypes.
21675         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
21676         cgraph_node_set_size): New inlines.
21677         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
21678         including cgraph.h.
21679         (struct ipa_opt_pass): Add struct cgraph_node_set_def
21680         argument to function 'write_summary'.
21681         * ipa.c: Include ggc.h.
21682         (hash_cgraph_node_set_element,
21683         eq_cgraph_node_set_element, cgraph_node_set_new,
21684         cgraph_node_set_add, cgraph_node_set_remove,
21685         cgraph_node_set_find, dump_cgraph_node_set,
21686         debug_cgraph_node_set): New functions.
21687         * Makefile.in (ipa.o): Add dependency on GGC_H.
21688
21689 2009-04-20  Ira Rosen  <irar@il.ibm.com>
21690
21691         PR tree-optimization/39675
21692         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
21693         check of the return code of vect_schedule_slp. Check that
21694         stmt_vec_info still exists for the statement, before checking its
21695         vectorization type.
21696
21697 2009-04-20  Michael Matz  <matz@suse.de>
21698
21699         * Makefile.in (generated_files): Take out $(simple_generated_c).
21700
21701 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
21702
21703         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
21704         (UINTPTR_TYPE):  Likewise.
21705
21706 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
21707
21708         PR c/37481
21709         * c-typeck.c (digest_init): Check for initializing an array with a
21710         string literal.
21711
21712 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
21713
21714         PR c/19771
21715         * c-semantics.c (pop_stmt_list): Propagate
21716         STATEMENT_LIST_HAS_LABEL to parent statement list.
21717
21718 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
21719
21720         * config/mips/mips.h (mips_tune_attr): New macro.
21721         * config/mips/mips.md (cpu): Use it.
21722
21723 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
21724
21725         PR c/38243
21726         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
21727         declaring a tag.
21728
21729 2009-04-19  Diego Novillo  <dnovillo@google.com>
21730
21731         * toplev.c (compile_file): Move call to coverage_finish ...
21732         * cgraphunit.c (ipa_passes): ... here.
21733         Call cgraph_process_new_functions.
21734         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
21735         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
21736
21737 2009-04-19  Jan Hubicka  <jh@suse.cz>
21738
21739         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
21740         cfun.
21741         (dump_cgraph_node): Dump can throw external flag.
21742         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
21743
21744 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21745
21746         PR c/32061
21747         PR c++/36954
21748         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
21749         * common.opt (Wlogical-op): Move from here...
21750         * c.opt (Wlogical-op): ... to here.
21751         * c-typeck.c (parser_build_binary_op): Update call to
21752         warn_logical_operator.
21753         * c-opts.c (c_common_post_options): Enable warn_logical_op with
21754         extra_warnings.
21755         * c-common.c (warn_logical_op): Update.
21756         * c-common.h (warn_logical_op): Update declaration.
21757
21758 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
21759
21760         * tree.c (protected_set_expr_location): Fix formatting.
21761
21762 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
21763
21764         PR c/27676
21765         * c-typeck.c (readonly_warning): new.
21766         (build_unary_op, build_modify_expr): Use readonly_warning for
21767         storing into something readonly but not const-qualified.
21768
21769 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
21770
21771         PR c/22367
21772         * c-typeck.c (build_unary_op): Check for taking address of
21773         expression of type void.
21774
21775 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
21776
21777         PR c/35210
21778         * c-typeck.c (build_function_call): Check for calling a function
21779         with qualified void return types.  Call require_complete_type when
21780         generating a trap.
21781
21782 2009-04-18  Jan Hubicka  <jh@suse.cz>
21783
21784         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
21785         Set nothrow flag.
21786         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
21787         can_throw_external flag.
21788         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
21789         * ipa-pure-const.c (ignore_edge): New function.
21790         (propagate): Compute order for NOTHROW computation; set NOTHROWs
21791         only over can_throw_external edges.
21792         (local_pure_const): Add nothrow flag.
21793         * ipa-utils.c (searchc): Add ignore_edge callback.
21794         (ipa_utils_reduced_inorder): Add ignore_edge callback.
21795         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
21796         (set_nothrow_function_flags): Update cgraph.
21797         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
21798
21799 2009-04-18  Richard Guenther  <rguenther@suse.de>
21800
21801         PR middle-end/39804
21802         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
21803         (fold_stmt): ... this and ...
21804         (fold_stmt_inplace): ... this.
21805         (fold_stmt_1): Fold references in calls and asms.
21806         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
21807
21808 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
21809
21810         * tree-vrp.c (ssa_name_nonzero_p): Remove.
21811         * tree.h: Remove the prototype for ssa_name_nonzero_p.
21812
21813 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
21814
21815         * tree.c (function_args_count): Remove.
21816         * tree.h: Remove the prototype for function_args_count.
21817
21818 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
21819
21820         * tree-iterator.c (expr_only): Remove.
21821         * tree.h: Remove the prototype for expr_only.
21822
21823 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
21824
21825         * reginfo.c (cannot_change_mode_set_regs): Remove.
21826         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
21827
21828 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
21829
21830         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
21831         whether operands 0 and 1 overlaps.
21832
21833 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21834
21835         PR middle-end/36902
21836         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
21837         pointer. Use warning_at instead of warning.
21838         (search_for_addr_array): Likewise.
21839         (check_array_bounds): Likewise.
21840         (check_all_array_refs): Check that the incoming edge is not in the
21841         list of edges to be removed.
21842         (check_all_array_refs): Avoid the temporal pointer.
21843         (vrp_visit_cond_stmt): Fix typo.
21844         (simplify_switch_using_ranges): Handle the case where the switch
21845         index is an integer constant.
21846
21847 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
21848
21849         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
21850
21851 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
21852
21853         * doc/extend.texi, doc/invoke.texi: Fix typos.
21854
21855 2009-04-17  Cary Coutant  <ccoutant@google.com>
21856
21857         * tree-flow-inline.h (get_lineno): Fix inverted test.
21858
21859 2009-04-17  Diego Novillo  <dnovillo@google.com>
21860
21861         * tree-ssa-pre.c (create_expression_by_pieces): Remove
21862         assertion for AVAIL_OUT.
21863
21864 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
21865
21866         PR target/38627
21867         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
21868         * config/sh/linux-atomic.asm: Likewise.
21869
21870 2009-04-17  Diego Novillo  <dnovillo@google.com>
21871
21872         * except.c (debug_eh_tree): New.
21873         (struct eh_region, struct eh_status): Move ...
21874         * except.h: ... here.
21875         (add_type_for_runtime): Declare extern.
21876         (lookup_type_for_runtime): Likewise.
21877         (debug_eh_tree): Declare.
21878         * Makefile.in (GTFILES): List except.h before except.c
21879
21880 2009-04-17  Diego Novillo  <dnovillo@google.com>
21881
21882         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
21883         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
21884         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
21885         (find_vars_r): ... here.
21886         * tree-flow.h (find_referenced_vars_in): Declare.
21887         * tree-ssa-pre.c (create_expression_by_pieces): Assert
21888         that AVAIL_OUT exists for BLOCK.
21889         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
21890         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
21891         (tree-parloops.o): Likewise.
21892
21893 2009-04-17  Simon Baldwin  <simonb@google.com>
21894
21895         * toplev.c (default_tree_printer): Add handling for %E format.
21896
21897 2009-04-17  Diego Novillo  <dnovillo@google.com>
21898
21899         * tree-pretty-print.c (dump_generic_node): Add break after
21900         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
21901         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
21902         FUNCTION_TYPE together.  Call print_struct_decl when printing
21903         structures and TDF_SLIM is not given.
21904         (print_struct_decl): Fix logic for detecting recursion.
21905
21906 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
21907
21908         PR 31567
21909         * gcc.c (create_at_file): New.
21910         (compile_input_file_p): New.
21911         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
21912         * main.c (main): Update call to toplev_main.
21913         * toplev.c (toplev_main): Change signature. Call expandargv.
21914         * toplev.h (toplev_main): Change signature.
21915
21916 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
21917
21918         * dwarf2out.c (field_byte_offset): Use the type size as the field size
21919         if the latter is not constant.
21920
21921 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
21922
21923         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
21924
21925 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
21926
21927         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
21928         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
21929
21930 2009-04-17  Richard Guenther  <rguenther@suse.de>
21931
21932         * tree-ssa-structalias.c (get_constraint_for_component_ref):
21933         Handle component references view-converting an invariant address.
21934
21935 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
21936
21937         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
21938         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
21939         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
21940         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
21941         Use @deftypevr rather than @deftypevar.
21942
21943 2009-04-17  Richard Guenther  <rguenther@suse.de>
21944
21945         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
21946         (get_prop_source_stmt): Likewise.
21947         (can_propagate_from): Likewise.
21948
21949 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
21950
21951         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
21952         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
21953         (--with-multilib-list): Add default value.
21954         * configure: Regenerate.
21955         * Makefile.in (TM_ENDIAN_CONFIG): Define.
21956         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
21957         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
21958         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
21959         Don't add default cpu to multilib list unnecessarily, but do enable
21960         the relevant compiler option..
21961         Add support for --with-multilib-list=<blank> and
21962         --with-multilib-list=!<somelib> to supress unwanted multilibs.
21963         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
21964         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
21965         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
21966         TM_MULTILIB_CONFIG.
21967         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
21968         (MULTILIB_OSDIRNAMES): New variable.
21969         * config/sh/t-1e: Delete file.
21970         * config/sh/t-mlib-sh1: Delete file.
21971         * config/sh/t-mlib-sh2: Delete file.
21972         * config/sh/t-mlib-sh2a: Delete file.
21973         * config/sh/t-mlib-sh2a-nofpu: Delete file.
21974         * config/sh/t-mlib-sh2a-single: Delete file.
21975         * config/sh/t-mlib-sh2a-single-only: Delete file.
21976         * config/sh/t-mlib-sh2e: Delete file.
21977         * config/sh/t-mlib-sh3e: Delete file.
21978         * config/sh/t-mlib-sh4: Delete file.
21979         * config/sh/t-mlib-sh4-nofpu: Delete file.
21980         * config/sh/t-mlib-sh4-single: Delete file.
21981         * config/sh/t-mlib-sh4-single-only: Delete file.
21982         * config/sh/t-mlib-sh4a: Delete file.
21983         * config/sh/t-mlib-sh4a-nofpu: Delete file.
21984         * config/sh/t-mlib-sh4a-single: Delete file.
21985         * config/sh/t-mlib-sh4a-single-only: Delete file.
21986         * config/sh/t-mlib-sh4al: Delete file.
21987         * config/sh/t-mlib-sh5-32media: Delete file.
21988         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
21989         * config/sh/t-mlib-sh5-64media: Delete file.
21990         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
21991         * config/sh/t-mlib-sh5-compact: Delete file.
21992         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
21993         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
21994         * doc/install.texi (Options specification): Add
21995         --with-multilib-list and --with-endian.
21996
21997 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
21998
21999         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
22000         REVISION_c.
22001         (OBJS-common): Add plugin-version.o.
22002         (plugin-version.o): New.
22003         * gcc-plugin.h (plugin_gcc_version): New.
22004         (plugin_default_version_check): New.
22005         (plugin_init_func, plugin_init): Add version argument.
22006         * plugin-version.c: New.
22007         * plugin.c (str_plugin_gcc_version_name): New.
22008         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
22009         pass it to the init function.
22010         (plugin_default_version_check): New.
22011
22012 2009-04-17  Richard Guenther  <rguenther@suse.de>
22013
22014         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
22015         for decl-vs-decl disambiguation.
22016
22017 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
22018
22019         * config/s390/s390.h (s390_tune_attr): New macro definition.
22020         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
22021
22022 2009-04-17  Richard Guenther  <rguenther@suse.de>
22023
22024         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
22025         (fold_stmt_r): Likewise.
22026         (maybe_fold_reference): New function.
22027         (fold_gimple_assign): Handle cases fold_stmt_r did.
22028         (fold_stmt): Do not use fold_stmt_r.
22029         (fold_stmt_inplace): Likewise.
22030
22031 2009-04-17  Richard Guenther  <rguenther@suse.de>
22032
22033         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
22034         (record_equivalences_from_stmt): Remove useless checks and
22035         simplifications.
22036         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
22037         the type is already suitable.
22038
22039 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
22040
22041         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
22042
22043 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
22044
22045         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
22046         (CMPtype): Define as __gcc_CMPtype.
22047
22048 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
22049
22050         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
22051         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
22052
22053 2009-04-17  Richard Guenther  <rguenther@suse.de>
22054
22055         PR tree-optimization/39746
22056         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
22057         special-casing for builtins and static variable use/def.
22058         (call_may_clobber_ref_p_1): Likewise.
22059
22060 2009-04-16  Ian Lance Taylor  <iant@google.com>
22061
22062         * df.h: Include "timevar.h".
22063         (struct df_problem): Change tv_id field to timevar_id_t.
22064         * tree-pass.h: Include "timevar.h".
22065         (struct opt_pass): Change tv_id field to timevar_id_t.
22066         * timevar.h (timevar_id_t): Define TV_NONE.
22067         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
22068         TV_NONE rather than tv_id != 0.
22069         (execute_one_pass): Likewise.
22070         * Makefile.in (DF_H): Add $(TIMEVAR_H).
22071         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
22072         dependencies to $(TREE_PASS_H).
22073         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
22074         to TV_NONE.
22075         (pass_branch_target_load_optimize2): Likewise.
22076         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
22077         (pass_outof_cfg_layout_mode): Likewise.
22078         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
22079         (pass_rebuild_cgraph_edges): Likewise.
22080         (pass_remove_cgraph_callee_edges): Likewise.
22081         * df-core.c (pass_df_initialize_opt): Likewise.
22082         (pass_df_initialize_no_opt): Likewise.
22083         (pass_df_finish): Likewise.
22084         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
22085         * except.c (pass_set_nothrow_function_flags): Likewise.
22086         (pass_convert_to_eh_region_ranges): Likewise.
22087         * final.c (pass_compute_alignments): Likewise.
22088         * function.c (pass_instantiate_virtual_regs): Likewise.
22089         (pass_init_function): Likewise.
22090         (pass_leaf_regs): Likewise.
22091         (pass_match_asm_constraints): Likewise.
22092         * gimple-low.c (pass_lower_cf): Likewise.
22093         (pass_mark_used_blocks): Likewise.
22094         * init-regs.c (pass_initialize_regs): Likewise.
22095         * integrate.c (pass_initial_value_sets): Likewise.
22096         * ira.c (pass_ira): Likewise.
22097         * jump.c (pass_cleanup_barriers): Likewise.
22098         * omp-low.c (pass_expand_omp): Likewise.
22099         (pass_lower_omp): Likewise.
22100         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
22101         * recog.c (pass_split_all_insns): Likewise.
22102         (pass_split_after_reload): Likewise.
22103         (pass_split_before_regstack): Likewise.
22104         (pass_split_before_sched2): Likewise.
22105         (pass_split_for_shorten_branches): Likewise.
22106         * reginfo.c (pass_reginfo_init): Likewise.
22107         (pass_subregs_of_mode_init): Likewise.
22108         (pass_subregs_of_mode_finish): Likewise.
22109         * passes.c (pass_postreload): Likewise.
22110         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
22111         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
22112         (pass_warn_function_return): Likewise.
22113         (pass_warn_function_noreturn): Likewise.
22114         * tree-complex.c (pass_lower_complex): Likewise.
22115         (pass_lower_complex_O0): Likewise.
22116         * tree-if-conv.c (pass_if_conversion): Likewise.
22117         * tree-into-ssa.c (pass_build_ssa): Likewise.
22118         * tree-mudflap.c (pass_mudflap_1): Likewise.
22119         (pass_mudflap_2): Likewise.
22120         * tree-nomudflap.c (pass_mudflap_1): Likewise.
22121         (pass_mudflap_2): Likewise.
22122         * tree-nrv.c (pass_return_slot): Likewise.
22123         * tree-object-size.c (pass_object_sizes): Likewise.
22124         * tree-optimize.c (pass_all_optimizations): Likewise.
22125         (pass_early_local_passes): Likewise.
22126         (pass_all_early_optimizations): Likewise.
22127         (pass_cleanup_cfg): Likewise.
22128         (pass_cleanup_cfg_post_optimizing): Likewise.
22129         (pass_free_datastructures): Likewise.
22130         (pass_free_cfg_annotations): Likewise.
22131         (pass_fixup_cfg): Likewise.
22132         (pass_init_datastructures): Likewise.
22133         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
22134         (pass_late_warn_uninitialized): Likewise.
22135         (pass_update_address_taken): Likewise.
22136         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
22137         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
22138         (pass_cse_sincos): Likewise.
22139         (pass_convert_to_rsqrt): Likewise.
22140         * tree-ssa-structalias.c (pass_build_alias): Likewise.
22141         * tree-stdarg.c (pass_stdarg): Likewise.
22142         * tree-tailcall.c (pass_tail_recursion): Likewise.
22143         (pass_tail_calls): Likewise.
22144         * tree-vect-generic.c (pass_lower_vector): Likewise.
22145         (pass_lower_vector_ssa): Likewise.
22146         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
22147
22148 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
22149
22150         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
22151         XLR entry.
22152         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
22153         Handle -march=xlr.
22154         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
22155         logical and signext.
22156
22157 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
22158
22159         PR target/39767
22160         * config/sh/predicates.md (arith_operand): Check if the operand
22161         of TRUNCATE is a REG.
22162
22163 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
22164
22165         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
22166         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
22167
22168 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
22169
22170         * tree-iterator.c (tsi_split_statement_list_after,
22171         tsi_split_statement_list_before): Remove.
22172         * tree-iterator.h: Remove the prototypes for
22173         tsi_split_statement_list_after and tsi_split_statement_list_before.
22174
22175 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
22176
22177         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
22178         * tree-ssa-propagate.h: Remove the prototype for
22179         stmt_makes_single_load.
22180
22181 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
22182
22183         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
22184         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
22185
22186 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
22187
22188         * tree-iterator.c (EXPR_LAST_BODY): Remove.
22189
22190 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
22191
22192         * except.c (eh_region_outer_p): Remove.
22193         * except.h: Remove the prototype for eh_region_outer_p.
22194
22195 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
22196
22197         * function.c (current_function_assembler_name): Remove.
22198         * function.h: Remove the prototype for
22199         current_function_assembler_name.
22200
22201 2009-04-16  Ian Lance Taylor  <iant@google.com>
22202
22203         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
22204         (add_reg_note): Call alloc_reg_note.
22205         * rtl.h (alloc_reg_note): Declare.
22206         * combine.c (try_combine): Use alloc_reg_note.
22207         (recog_for_combine, move_deaths): Likewise.
22208         (distribute_notes): Use alloc_reg_note and add_reg_note.
22209         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
22210         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
22211         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
22212
22213 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
22214
22215         PR rtl-optimization/39762
22216         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
22217         ira_may_move_out_cost): Add comments about way of their usage.
22218         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
22219
22220         * ira-conflicts.c (process_regs_for_copy): Use function
22221         ira_get_register_move_cost instead of global
22222         ira_register_move_cost.
22223
22224         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
22225         color_pass, move_spill_restore, update_curr_costs): Ditto.
22226
22227         * ira-lives.c (process_single_reg_class_operands): Ditto.
22228
22229         * ira-emit.c (emit_move_list): Ditto.
22230
22231         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
22232         (record_reg_classes): Ditto.  Use functions
22233         ira_get_register_move_cost and ira_get_may_move_cost instead of
22234         global vars ira_register_move_cost, ira_may_move_out_cost and
22235         ira_may_move_in_cost.
22236         (record_address_regs): Don't call ira_init_register_move_cost.
22237         Use function ira_get_may_move_cost instead of global
22238         ira_may_move_in_cost.
22239         (process_bb_node_for_hard_reg_moves): Use function
22240         ira_get_register_move_cost instead of global ira_register_move_cost.
22241         (ira_costs): Don't call ira_init_register_move_cost.
22242
22243 2009-04-16  Richard Guenther  <rguenther@suse.de>
22244
22245         * tree-cfg.c (verify_gimple_assign_binary):
22246         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
22247         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
22248         (create_general_new_stmt): Note that this function is broken.
22249
22250 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
22251
22252         * common.opt (fhelp): Add Var(help_flag).
22253         * gcc-plugin.h (plugin_info): Add help.
22254         * plugin.c (plugin_name_args): Add help.
22255         (register_plugin_info): Set plugin->help.
22256         (print_help_one_plugin): New.
22257         (print_plugins_help): New.
22258         * plugin.h (print_plugins_help): New.
22259         * toplev.c (toplev_main): Call print_plugins_help if needed.
22260
22261 2009-04-16  Richard Guenther  <rguenther@suse.de>
22262
22263         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
22264         (gimple_ior_addresses_taken_1): New function.
22265         (gimple_ior_addresses_taken): Likewise.
22266         * gimple.h (struct gimple_statement_with_ops_base): Remove
22267         addresses_taken member.
22268         (gimple_ior_addresses_taken): Declare.
22269         (gimple_addresses_taken, gimple_addresses_taken_ptr,
22270         gimple_set_addresses_taken): Remove.
22271         * ipa-reference.c (mark_address): New function.
22272         (scan_stmt_for_static_refs): Use it for marking addresses taken.
22273         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
22274         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
22275         (gimple_add_to_addresses_taken): Remove.
22276         (get_tmr_operands): Call mark_address_taken.
22277         (get_asm_expr_operands): Likewise.
22278         (get_expr_operands): Likewise.
22279         (build_ssa_operands): Do not clear the addresses_taken bitmap.
22280         (free_stmt_operands): Do not free it.
22281         * tree-ssa.c (delete_tree_ssa): Likewise.
22282         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
22283
22284 2009-04-16  Richard Guenther  <rguenther@suse.de>
22285
22286         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
22287         (walk_stmt_load_store_ops): Likewise.
22288         * gimple.c (get_base_loadstore): New function.
22289         (walk_stmt_load_store_addr_ops): Likewise.
22290         (walk_stmt_load_store_ops): Likewise.
22291         * ipa-pure-const.c (check_op): Simplify.
22292         (check_load, check_store): New functions.
22293         (check_stmt): Use walk_stmt_load_store_ops.
22294         * ipa-reference.c (mark_load): Adjust signature.
22295         (mark_store): Likewise.
22296         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
22297
22298 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
22299
22300         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
22301         (plugin_info): New.
22302         * opts.c (common_handle_option): Don't call print_version.
22303         * plugin.c (plugin_name_args): Add version.
22304         (register_plugin_info): New.
22305         (register_callback): Handle PLUGIN_INFO.
22306         (try_init_one_plugin): New.
22307         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
22308         if failed to init.
22309         (finalize_one_plugin): New.
22310         (finalize_plugins): New.
22311         (print_one_plugin): New.
22312         (print_plugins_versions): New.
22313         * plugin.h (print_plugins_versions): New.
22314         (finalize_plugins): New.
22315         * toplev.c (compile_file): Don't call initialize_plugins.
22316         (print_version): Call print_plugins_versions.
22317         (toplev_main): Call initialize_plugins. Print version if needed.
22318         Call finalize_plugins.
22319
22320 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
22321
22322         * common.opt (fversion): New.
22323         * gcc.c (print_version): New.
22324         (process_command): Don't print the version. Just set print_version.
22325         (main): Print version. Call subprocesses if print_version and
22326         verbose_flag are set.
22327         * opts.c (common_handle_option): Handle OPT_fversion.
22328
22329 2009-04-16  Richard Guenther  <rguenther@suse.de>
22330             Ira Rosen  <irar@il.ibm.com>
22331
22332         PR tree-optimization/39698
22333         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
22334         type of the reduction variable.  Only generate the def if
22335         it is needed.
22336
22337         * omp-low.c (expand_omp_for_generic): When converting to a pointer
22338         make sure to first convert to an integer of the same precision.
22339         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
22340         the type of the evolution correctly in computing the new
22341         induction variable base.
22342
22343 2009-04-16  Richard Guenther  <rguenther@suse.de>
22344
22345         PR middle-end/39625
22346         * tree-cfg.c (make_blocks): Split statements with to-be
22347         abnormal SSA names on the lhs.
22348
22349 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
22350
22351         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
22352         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
22353         * c-typeck.c (really_start_incremental_init): Likewise.
22354         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
22355         (TARGET_INITIALIZER): Remove it.
22356         * target.h (struct target): Remove vector_opaque_p.
22357         * tree.c (build_opaque_vector_type): New.
22358         * tree.h (TYPE_VECTOR_OPAQUE): New.
22359         (build_opaque_vector_type): Declare.
22360         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
22361         * config/rs6000/rs6000.c (build_opaque_vector_type,
22362         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
22363         (rs6000_init_builtins): Use build_opaque_vector_type for
22364         opaque_V4SI_type_node.
22365
22366 2009-04-15  Catherine Moore  <clm@codesourcery.com>
22367
22368         * debug.h (set_name):  Declare.
22369         * dwarf2out.c (dwarf2out_set_name): Declare.
22370         (dwarf2_debug_hooks): Add set_name.
22371         (find_AT_string): New.
22372         (add_AT_string): Call find_AT_string.
22373         (dwarf2out_set_name): New.
22374         * cp/decl.c (grokdeclarator): Call set_name.
22375         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
22376         * debug.c (do_nothing_debug_hooks):  Likewise.
22377         * dbxout.c (dbx_debug_hooks): Likewise.
22378         * sdbout.c (sdb_debug_hooks): Likewise.
22379
22380 2009-04-15  Michael Eager  <eager@eagercon.com>
22381
22382         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
22383         reg for single-precision FPU.
22384         * config/rs6000/rs6000.md (movsi_internal1): Only for
22385         !TARGET_SINGLE_FPU.
22386         (movsi_internal1_single): New. Add pattern to move SI values to/from
22387         single-precision FP regs.
22388
22389 2009-04-15  Richard Guenther  <rguenther@suse.de>
22390
22391         * omp-low.c (lower_rec_input_clauses): Build correct address
22392         expressions.
22393         (expand_omp_for_generic): Fix multiplication type.
22394         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
22395         (generate_memset_zero): Fix types.
22396         * tree-profile.c (prepare_instrumented_value): Correctly
22397         widen a pointer.
22398
22399 2009-04-15  Ian Lance Taylor  <iant@google.com>
22400
22401         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
22402         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
22403         for -Wall and for -Wc++-compat.
22404         (c_common_post_options): For C++, set warn_enum_compare if not
22405         already set.
22406         * c-tree.h (struct c_expr): Add field original_type.
22407         (build_external_ref): Update declaration.
22408         * c-parser.c (c_parser_braced_init): Set original_type.
22409         (c_parser_initelt): Likewise.
22410         (c_parser_expr_no_commas): Likewise.
22411         (c_parser_conditional_expression): Likewise.
22412         (c_parser_cast_expression): Likewise.
22413         (c_parser_unary_expression): Likewise.  Pull setting of
22414         original_code to top of function.
22415         (c_parser_sizeof_expression): Set original_type.
22416         (c_parser_alignof_expression): Likewise.
22417         (c_parser_postfix_expression): Likewise.  Pull setting of
22418         original_code to top of function.
22419         (c_parser_postfix_expression_after_paren_type): Set original_type.
22420         (c_parser_postfix_expression_after_primary): Likewise.
22421         (c_parser_expression): Likewise.
22422         * c-typeck.c (build_external_ref): Add type parameter.  Change all
22423         callers.
22424         (c_expr_sizeof_expr): Set original_type field.
22425         (parser_build_unary_op): Likewise.
22426         (parser_build_binary_op): Likewise.  Optionally warn about
22427         comparisons of enums of different types.
22428         (digest_init): Set original_type field.
22429         (really_start_incremental_init): Likewise.
22430         (push_init_level, pop_init_level): Likewise.
22431         * doc/invoke.texi (Warning Options): -Wenum-compare now
22432         supported in C.
22433
22434 2009-04-15  Richard Guenther  <rguenther@suse.de>
22435
22436         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
22437         out a necessary conversion.
22438         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
22439         names we didn't value number.
22440         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
22441
22442 2009-04-15  Richard Guenther  <rguenther@suse.de>
22443
22444         PR tree-optimization/39764
22445         * tree-ssa-ccp.c (get_value): Canonicalize value with
22446         canonicalize_float_value.
22447
22448 2009-04-15  Jan Hubicka  <jh@suse.cz>
22449
22450         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
22451         Wrong version of patch.
22452
22453 2009-04-15  Jan Hubicka  <jh@suse.cz>
22454
22455         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
22456
22457 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
22458
22459         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
22460         our distinct integral and vector types.
22461
22462 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
22463
22464         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
22465         * init.c (build_vtbl_address): Remove call to assemble_external.
22466
22467 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
22468
22469         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
22470         output for other floating point modes.
22471
22472 2009-04-14  Diego Novillo  <dnovillo@google.com>
22473
22474         * diagnostic.c (diagnostic_report_diagnostic): Do not
22475         warn about loaded plugins for DK_ERROR and DK_WARNING.
22476         * c-decl.c (declspecs_add_type): Move call to
22477         invoke_plugin_callbacks ...
22478         * c-parser.c (c_parser_declspecs): ... here.
22479         * plugin.c (dump_active_plugins): Tidy output.
22480
22481 2009-04-14  Diego Novillo  <dnovillo@google.com>
22482             Le-Chun Wu  <lcwu@google.com>
22483
22484         * configure.ac: Add --enable-plugin support.
22485         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
22486         * Makefile.in (PLUGIN_H): Define.
22487         Export ENABLE_PLUGIN and GMPINC to site.exp.
22488         Add PLUGINLIBS to link command.
22489         Add/modify dependencies for plugin.o and files including plugin.h.
22490         (plugin.o): New.
22491         * config.in: Regenerate.
22492
22493         * opts.c (common_handle_option): Handle OPT_fplugin_ and
22494         OPT_fplugin_arg_.
22495
22496 2009-04-14  Le-Chun Wu  <lcwu@google.com>
22497
22498         * tree-pass.h (register_one_dump_file): Add a prototype for
22499         register_one_dump_file.
22500         * toplev.c (compile_file): Call initialize_plugins.
22501         (do_compile): Call invoke_plugin_callbacks.
22502         (toplev_main): Call invoke_plugin_callbacks.
22503         * common.opt: Add -fplugin= and -fplugin-arg-.
22504         * gcc-plugin.h: New public header file for plugins to include.
22505         * plugin.c: New source file.
22506         * plugin.h: New internal header file.
22507         * passes.c (register_one_dump_file): Make it external.
22508
22509         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
22510
22511 2009-04-14  Diego Novillo  <dnovillo@google.com>
22512
22513         * doc/plugins.texi: New.
22514         * doc/gccint.texi: Add reference to Plugins chapter.
22515         * doc/invoke.texi: Document -fplugin and -fplugin-arg
22516         * diagnostic.c (diagnostic_report_diagnostic): Warn about
22517         loaded plugins, if any.
22518         * timevar.def (TV_PLUGIN_INIT): Define.
22519         (TV_PLUGIN_RUN): Define.
22520         * plugin.c: Include timevar.h
22521         (plugins_active_p): New.
22522         (dump_active_plugins): New.
22523         (debug_active_plugins): New.
22524
22525 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
22526
22527         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
22528         library paths.
22529         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
22530
22531 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
22532
22533         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
22534         the same as a minus without a shift.
22535
22536 2009-04-14  Nick Clifton  <nickc@redhat.com>
22537
22538         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
22539         comparisons with small integers will always produce a short
22540         branch.
22541
22542 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
22543
22544         Merge:
22545         2008-12-19  Diego Novillo  <dnovillo@google.com>
22546
22547         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
22548
22549 2009-04-14  Richard Guenther  <rguenther@suse.de>
22550
22551         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
22552         verification.
22553         (verify_gimple_assign_binary): Likewise.  Handle shifts and
22554         rotates correctly.
22555         (verify_gimple_phi): Print the mismatched argument position.
22556         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
22557         Fix types.
22558         (vect_update_init_of_dr): Likewise.
22559         * matrix-reorg.c (transform_access_sites): Do what the
22560         comment suggests.
22561         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
22562
22563 2009-04-13  Michael Eager  <eager@eagercon.com>
22564
22565         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
22566         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
22567         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
22568         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
22569         remove duplicate config
22570
22571 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
22572
22573         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
22574         file_name:line_number type locator of the call site.
22575
22576 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
22577
22578         * genautomata.c: Put blank after comma.
22579         (automaton_decls): New.
22580         (struct unit_usage): Add comments to member next.
22581         (store_alt_unit_usage): Keep the list ordered.
22582         (unit_present_on_list_p, equal_alternatives_p): New.
22583         (check_regexp_units_distribution): Check units distribution
22584         correctness correctly.
22585         (main): Don't write automata if error is found.  Return correct
22586         exit code.
22587
22588         * config/m68k/cf.md (cfv4_ds): Remove.
22589         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
22590         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
22591
22592         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
22593         power4-load-ext, power4-store, power4-store-update,
22594         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
22595         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
22596         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
22597         power4-sqrt, power4-isync): Modify reservation to make correct
22598         unit distribution to automata.
22599
22600         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
22601         power5-store-update, power5-two, power5-three, power5-lmul,
22602         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
22603
22604 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
22605
22606         * except.c (pass_set_nothrow_function_flags): Set name and add
22607         TODO_dump_func.
22608         (set_nothrow_function_flags): Mention in the dump file when
22609         changing a function to nothrow.
22610
22611 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
22612
22613         PR/39066
22614         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
22615         instead of unsigned long.
22616
22617 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22618
22619         * config/arm/arm.c (return_used_this_function): Remove.
22620         (arm_output_function_prologue): Remove use of
22621         return_used_this_function.
22622         (output_return_instruction): Replace use of
22623         return_used_this_function
22624         by cfun->machine->return_used_this_function.
22625         (arm_output_epilogue): Likewise.
22626         (arm_output_function_epilogue): Likewise.
22627         (thumb_unexpanded_epilogue): Likewise.
22628         * config/arm/arm.h (struct machine_function):
22629         New member return_used_this_function.
22630
22631 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
22632
22633         * doc/install.texi: Correct description of default directory for
22634         --with-gxx-include-dir.
22635
22636 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
22637
22638         * fold-const.c (build_range_check): Properly deal with enumeral and
22639         boolean base types.
22640
22641 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
22642
22643         * doc/invoke.texi (max_gcse_passes): Remove documentation.
22644         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
22645         * params.h (MAX_GCSE_PASSES): Remove.
22646         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
22647         in sequence.  Remove ability to run multiple passes.
22648         (bypass_jumps): Report run as third CPROP pass.
22649
22650 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
22651
22652         PR middle-end/39651
22653         * except.c (can_throw_external): Look at each insn in a SEQUENCE
22654         when deciding whether the whole SEQUENCE can throw.
22655
22656 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
22657
22658         PR target/39740
22659         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
22660         offseted label references.
22661
22662 2009-04-11  Jan Hubicka  <jh@suse.cz>
22663
22664         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
22665
22666 2009-04-11  Richard Guenther  <rguenther@suse.de>
22667
22668         PR middle-end/39732
22669         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
22670         return variables as TREE_ADDRESSABLE.
22671
22672 2009-04-11  Richard Guenther  <rguenther@suse.de>
22673
22674         PR tree-optimization/39713
22675         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
22676         reference trees have SSA_NAME operands.
22677
22678 2009-04-11  Richard Guenther  <rguenther@suse.de>
22679
22680         PR c/39712
22681         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
22682         address expressions.
22683
22684 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
22685
22686         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
22687         match changes in Cygwin 1.7
22688         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
22689         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
22690
22691 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
22692
22693         PR tree-optimization/39701
22694         * doc/invoke.texi (Optimization Options): Document change in
22695         meaning and initialization of -fdelete-null-pointer-checks.
22696
22697 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
22698
22699         PR middle-end/39701
22700         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
22701
22702         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
22703         here.
22704
22705         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
22706
22707 2009-04-10  Chao-ying Fu  <fu@mips.com>
22708
22709         * doc/tm.texi (Instruction Output): Document
22710         TARGET_ASM_FINAL_POSTSCAN_INSN.
22711         * target.h (final_postscan_insn): New field in asm_out.
22712         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
22713         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
22714         * final.c (final_scan_insn): Call
22715         targetm.asm_out.final_postscan_insn after outputting
22716         an asm macro and a normal instruction.
22717
22718         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
22719         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
22720         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
22721         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
22722         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
22723
22724 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
22725
22726         PR middle-end/39701
22727         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
22728         variables as non-NULL even with -fdelete-null-pointer-checks.
22729
22730 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
22731
22732         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
22733
22734 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
22735
22736         PR target/39678
22737         * config/i386/i386.c (classify_argument): Handle SCmode with
22738         (bit_offset % 64) != 0.
22739
22740 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
22741
22742         * doc/invoke.texi (Optimize Options): Add cross-reference to
22743         -Q --help=optimizers examples.
22744
22745 2009-04-10  Ben Elliston  <bje@au.ibm.com>
22746
22747         PR target/36800
22748         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
22749         regalign for the reg == fpr and TDmode case.
22750
22751 2009-04-09  David Ayers  <ayers@fsfe.org>
22752
22753         PR objc/29200
22754         * objc/objc-act.c (warn_with_method): Remove helper function.
22755         (check_duplicates): Call warning and inform directly.
22756         (really_start_method): Likewise.
22757
22758 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
22759
22760         * expmed.c (expand_divmod): Always use a comparison for a division
22761         by a large unsigned integer.
22762
22763         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
22764         for things others than variables or functions as nonzero.
22765
22766 2009-04-09  Nick Clifton  <nickc@redhat.com>
22767
22768         * unwind-compat.c: Change copyright header to refer to version
22769         3 of the GNU General Public License with version 3.1 of the
22770         GCC Runtime Library Exception and to point readers at the
22771         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
22772         * config/alpha/crtfastmath.c: Likewise.
22773         * config/alpha/linux-unwind.h: Likewise.
22774         * config/alpha/qrnnd.asm: Likewise.
22775         * config/alpha/vms-crt0-64.c: Likewise.
22776         * config/alpha/vms-crt0.c: Likewise.
22777         * config/alpha/vms-dwarf2.asm: Likewise.
22778         * config/alpha/vms-dwarf2eh.asm: Likewise.
22779         * config/alpha/vms-psxcrt0-64.c: Likewise.
22780         * config/alpha/vms-psxcrt0.c: Likewise.
22781         * config/alpha/vms_tramp.asm: Likewise.
22782         * config/arc/initfini.c: Likewise.
22783         * config/arc/lib1funcs.asm: Likewise.
22784         * config/arm/bpabi-v6m.S: Likewise.
22785         * config/arm/bpabi.S: Likewise.
22786         * config/arm/bpabi.c: Likewise.
22787         * config/arm/crti.asm: Likewise.
22788         * config/arm/crtn.asm: Likewise.
22789         * config/arm/ieee754-df.S: Likewise.
22790         * config/arm/ieee754-sf.S: Likewise.
22791         * config/arm/lib1funcs.asm: Likewise.
22792         * config/arm/libunwind.S: Likewise.
22793         * config/arm/linux-atomic.c: Likewise.
22794         * config/arm/mmintrin.h: Likewise.
22795         * config/arm/pr-support.c: Likewise.
22796         * config/arm/unaligned-funcs.c: Likewise.
22797         * config/arm/unwind-arm.c: Likewise.
22798         * config/arm/unwind-arm.h: Likewise.
22799         * config/avr/libgcc.S: Likewise.
22800         * config/bfin/crti.s: Likewise.
22801         * config/bfin/crtlibid.s: Likewise.
22802         * config/bfin/crtn.s: Likewise.
22803         * config/bfin/lib1funcs.asm: Likewise.
22804         * config/bfin/linux-unwind.h: Likewise.
22805         * config/cris/arit.c: Likewise.
22806         * config/cris/cris_abi_symbol.c: Likewise.
22807         * config/darwin-64.c: Likewise.
22808         * config/darwin-crt2.c: Likewise.
22809         * config/darwin-crt3.c: Likewise.
22810         * config/darwin.h: Likewise.
22811         * config/dbxelf.h: Likewise.
22812         * config/dfp-bit.c: Likewise.
22813         * config/dfp-bit.h: Likewise.
22814         * config/elfos.h: Likewise.
22815         * config/fixed-bit.c: Likewise.
22816         * config/fixed-bit.h: Likewise.
22817         * config/fp-bit.c: Likewise.
22818         * config/fp-bit.h: Likewise.
22819         * config/fr30/crti.asm: Likewise.
22820         * config/fr30/crtn.asm: Likewise.
22821         * config/fr30/lib1funcs.asm: Likewise.
22822         * config/freebsd-spec.h: Likewise.
22823         * config/frv/cmovd.c: Likewise.
22824         * config/frv/cmovh.c: Likewise.
22825         * config/frv/cmovw.c: Likewise.
22826         * config/frv/frvbegin.c: Likewise.
22827         * config/frv/frvend.c: Likewise.
22828         * config/frv/lib1funcs.asm: Likewise.
22829         * config/glibc-stdint.h: Likewise.
22830         * config/h8300/clzhi2.c: Likewise.
22831         * config/h8300/crti.asm: Likewise.
22832         * config/h8300/crtn.asm: Likewise.
22833         * config/h8300/ctzhi2.c: Likewise.
22834         * config/h8300/fixunssfsi.c: Likewise.
22835         * config/h8300/lib1funcs.asm: Likewise.
22836         * config/h8300/parityhi2.c: Likewise.
22837         * config/h8300/popcounthi2.c: Likewise.
22838         * config/i386/ammintrin.h: Likewise.
22839         * config/i386/att.h: Likewise.
22840         * config/i386/avxintrin.h: Likewise.
22841         * config/i386/biarch64.h: Likewise.
22842         * config/i386/bmmintrin.h: Likewise.
22843         * config/i386/cpuid.h: Likewise.
22844         * config/i386/cross-stdarg.h: Likewise.
22845         * config/i386/crtfastmath.c: Likewise.
22846         * config/i386/crtprec.c: Likewise.
22847         * config/i386/cygming-crtbegin.c: Likewise.
22848         * config/i386/cygming-crtend.c: Likewise.
22849         * config/i386/cygwin.asm: Likewise.
22850         * config/i386/emmintrin.h: Likewise.
22851         * config/i386/gmm_malloc.h: Likewise.
22852         * config/i386/gthr-win32.c: Likewise.
22853         * config/i386/i386.h: Likewise.
22854         * config/i386/immintrin.h: Likewise.
22855         * config/i386/linux-unwind.h: Likewise.
22856         * config/i386/linux64.h: Likewise.
22857         * config/i386/mm3dnow.h: Likewise.
22858         * config/i386/mmintrin-common.h: Likewise.
22859         * config/i386/mmintrin.h: Likewise.
22860         * config/i386/nmmintrin.h: Likewise.
22861         * config/i386/pmm_malloc.h: Likewise.
22862         * config/i386/pmmintrin.h: Likewise.
22863         * config/i386/smmintrin.h: Likewise.
22864         * config/i386/sol2-c1.asm: Likewise.
22865         * config/i386/sol2-ci.asm: Likewise.
22866         * config/i386/sol2-cn.asm: Likewise.
22867         * config/i386/sol2-gc1.asm: Likewise.
22868         * config/i386/tmmintrin.h: Likewise.
22869         * config/i386/unix.h: Likewise.
22870         * config/i386/w32-unwind.h: Likewise.
22871         * config/i386/wmmintrin.h: Likewise.
22872         * config/i386/x86-64.h: Likewise.
22873         * config/i386/x86intrin.h: Likewise.
22874         * config/i386/xmmintrin.h: Likewise.
22875         * config/ia64/crtbegin.asm: Likewise.
22876         * config/ia64/crtend.asm: Likewise.
22877         * config/ia64/crtfastmath.c: Likewise.
22878         * config/ia64/crti.asm: Likewise.
22879         * config/ia64/crtn.asm: Likewise.
22880         * config/ia64/fde-glibc.c: Likewise.
22881         * config/ia64/lib1funcs.asm: Likewise.
22882         * config/ia64/linux-unwind.h: Likewise.
22883         * config/ia64/quadlib.c: Likewise.
22884         * config/ia64/unwind-ia64.c: Likewise.
22885         * config/linux.h: Likewise.
22886         * config/m32c/m32c-lib1.S: Likewise.
22887         * config/m32c/m32c-lib2-trapv.c: Likewise.
22888         * config/m32c/m32c-lib2.c: Likewise.
22889         * config/m32r/initfini.c: Likewise.
22890         * config/m68hc11/larith.asm: Likewise.
22891         * config/m68hc11/m68hc11-crt0.S: Likewise.
22892         * config/m68k/cf.md: Likewise.
22893         * config/m68k/crti.s: Likewise.
22894         * config/m68k/crtn.s: Likewise.
22895         * config/m68k/lb1sf68.asm: Likewise.
22896         * config/m68k/linux-unwind.h: Likewise.
22897         * config/mcore/crti.asm: Likewise.
22898         * config/mcore/crtn.asm: Likewise.
22899         * config/mcore/lib1.asm: Likewise.
22900         * config/mips/linux-unwind.h: Likewise.
22901         * config/mips/loongson.h: Likewise.
22902         * config/mips/mips16.S: Likewise.
22903         * config/mmix/crti.asm: Likewise.
22904         * config/mmix/crtn.asm: Likewise.
22905         * config/pa/fptr.c: Likewise.
22906         * config/pa/hpux-unwind.h: Likewise.
22907         * config/pa/lib2funcs.asm: Likewise.
22908         * config/pa/linux-atomic.c: Likewise.
22909         * config/pa/linux-unwind.h: Likewise.
22910         * config/pa/milli64.S: Likewise.
22911         * config/pa/quadlib.c: Likewise.
22912         * config/pa/stublib.c: Likewise.
22913         * config/picochip/libgccExtras/adddi3.asm: Likewise.
22914         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
22915         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
22916         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
22917         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
22918         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
22919         * config/picochip/libgccExtras/divmod15.asm: Likewise.
22920         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
22921         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
22922         * config/picochip/libgccExtras/longjmp.asm: Likewise.
22923         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
22924         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
22925         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
22926         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
22927         * config/picochip/libgccExtras/setjmp.asm: Likewise.
22928         * config/picochip/libgccExtras/subdi3.asm: Likewise.
22929         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
22930         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
22931         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
22932         * config/rs6000/750cl.h: Likewise.
22933         * config/rs6000/altivec.h: Likewise.
22934         * config/rs6000/biarch64.h: Likewise.
22935         * config/rs6000/crtresfpr.asm: Likewise.
22936         * config/rs6000/crtresgpr.asm: Likewise.
22937         * config/rs6000/crtresxfpr.asm: Likewise.
22938         * config/rs6000/crtresxgpr.asm: Likewise.
22939         * config/rs6000/crtsavfpr.asm: Likewise.
22940         * config/rs6000/crtsavgpr.asm: Likewise.
22941         * config/rs6000/darwin-asm.h: Likewise.
22942         * config/rs6000/darwin-fallback.c: Likewise.
22943         * config/rs6000/darwin-fpsave.asm: Likewise.
22944         * config/rs6000/darwin-ldouble.c: Likewise.
22945         * config/rs6000/darwin-tramp.asm: Likewise.
22946         * config/rs6000/darwin-unwind.h: Likewise.
22947         * config/rs6000/darwin-vecsave.asm: Likewise.
22948         * config/rs6000/darwin-world.asm: Likewise.
22949         * config/rs6000/e500crtres32gpr.asm: Likewise.
22950         * config/rs6000/e500crtres64gpr.asm: Likewise.
22951         * config/rs6000/e500crtres64gprctr.asm: Likewise.
22952         * config/rs6000/e500crtrest32gpr.asm: Likewise.
22953         * config/rs6000/e500crtrest64gpr.asm: Likewise.
22954         * config/rs6000/e500crtresx32gpr.asm: Likewise.
22955         * config/rs6000/e500crtresx64gpr.asm: Likewise.
22956         * config/rs6000/e500crtsav32gpr.asm: Likewise.
22957         * config/rs6000/e500crtsav64gpr.asm: Likewise.
22958         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
22959         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
22960         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
22961         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
22962         * config/rs6000/eabi-ci.asm: Likewise.
22963         * config/rs6000/eabi-cn.asm: Likewise.
22964         * config/rs6000/eabi.asm: Likewise.
22965         * config/rs6000/linux-unwind.h: Likewise.
22966         * config/rs6000/linux64.h: Likewise.
22967         * config/rs6000/paired.h: Likewise.
22968         * config/rs6000/paired.md: Likewise.
22969         * config/rs6000/ppc64-fp.c: Likewise.
22970         * config/rs6000/ppu_intrinsics.h: Likewise.
22971         * config/rs6000/rs6000.h: Likewise.
22972         * config/rs6000/si2vmx.h: Likewise.
22973         * config/rs6000/sol-ci.asm: Likewise.
22974         * config/rs6000/sol-cn.asm: Likewise.
22975         * config/rs6000/spe.h: Likewise.
22976         * config/rs6000/spu2vmx.h: Likewise.
22977         * config/rs6000/sysv4.h: Likewise.
22978         * config/rs6000/tramp.asm: Likewise.
22979         * config/rs6000/vec_types.h: Likewise.
22980         * config/s390/linux-unwind.h: Likewise.
22981         * config/s390/tpf-unwind.h: Likewise.
22982         * config/score/crti.asm: Likewise.
22983         * config/score/crtn.asm: Likewise.
22984         * config/sh/crt1.asm: Likewise.
22985         * config/sh/crti.asm: Likewise.
22986         * config/sh/crtn.asm: Likewise.
22987         * config/sh/divtab-sh4-300.c: Likewise.
22988         * config/sh/divtab-sh4.c: Likewise.
22989         * config/sh/divtab.c: Likewise.
22990         * config/sh/lib1funcs-4-300.asm: Likewise.
22991         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
22992         * config/sh/lib1funcs.asm: Likewise.
22993         * config/sh/lib1funcs.h: Likewise.
22994         * config/sh/linux-atomic.asm: Likewise.
22995         * config/sh/linux-unwind.h: Likewise.
22996         * config/sh/shmedia.h: Likewise.
22997         * config/sh/sshmedia.h: Likewise.
22998         * config/sh/ushmedia.h: Likewise.
22999         * config/sparc/crtfastmath.c: Likewise.
23000         * config/sparc/linux-unwind.h: Likewise.
23001         * config/sparc/sol2-c1.asm: Likewise.
23002         * config/sparc/sol2-ci.asm: Likewise.
23003         * config/sparc/sol2-cn.asm: Likewise.
23004         * config/spu/divmodti4.c: Likewise.
23005         * config/spu/divv2df3.c: Likewise.
23006         * config/spu/float_disf.c: Likewise.
23007         * config/spu/float_unsdidf.c: Likewise.
23008         * config/spu/float_unsdisf.c: Likewise.
23009         * config/spu/float_unssidf.c: Likewise.
23010         * config/spu/mfc_multi_tag_release.c: Likewise.
23011         * config/spu/mfc_multi_tag_reserve.c: Likewise.
23012         * config/spu/mfc_tag_release.c: Likewise.
23013         * config/spu/mfc_tag_reserve.c: Likewise.
23014         * config/spu/mfc_tag_table.c: Likewise.
23015         * config/spu/multi3.c: Likewise.
23016         * config/spu/spu_internals.h: Likewise.
23017         * config/spu/spu_intrinsics.h: Likewise.
23018         * config/spu/spu_mfcio.h: Likewise.
23019         * config/spu/vec_types.h: Likewise.
23020         * config/spu/vmx2spu.h: Likewise.
23021         * config/stormy16/stormy16-lib2.c: Likewise.
23022         * config/svr4.h: Likewise.
23023         * config/sync.c: Likewise.
23024         * config/v850/lib1funcs.asm: Likewise.
23025         * config/vxlib-tls.c: Likewise.
23026         * config/vxlib.c: Likewise.
23027         * config/vxworks-dummy.h: Likewise.
23028         * config/xtensa/crti.asm: Likewise.
23029         * config/xtensa/crtn.asm: Likewise.
23030         * config/xtensa/ieee754-df.S: Likewise.
23031         * config/xtensa/ieee754-sf.S: Likewise.
23032         * config/xtensa/lib1funcs.asm: Likewise.
23033         * config/xtensa/lib2funcs.S: Likewise.
23034         * config/xtensa/linux-unwind.h: Likewise.
23035         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
23036         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
23037         * coretypes.h: Likewise.
23038         * crtstuff.c: Likewise.
23039         * defaults.h: Likewise.
23040         * dwarf2.h: Likewise.
23041         * emutls.c: Likewise.
23042         * gbl-ctors.h: Likewise.
23043         * gcov-io.h: Likewise.
23044         * ginclude/float.h: Likewise.
23045         * ginclude/iso646.h: Likewise.
23046         * ginclude/stdarg.h: Likewise.
23047         * ginclude/stdbool.h: Likewise.
23048         * ginclude/stddef.h: Likewise.
23049         * ginclude/stdfix.h: Likewise.
23050         * ginclude/stdint-gcc.h: Likewise.
23051         * ginclude/tgmath.h: Likewise.
23052         * gthr-aix.h: Likewise.
23053         * gthr-dce.h: Likewise.
23054         * gthr-gnat.c: Likewise.
23055         * gthr-gnat.h: Likewise.
23056         * gthr-lynx.h: Likewise.
23057         * gthr-mipssde.h: Likewise.
23058         * gthr-nks.h: Likewise.
23059         * gthr-posix.c: Likewise.
23060         * gthr-posix.h: Likewise.
23061         * gthr-posix95.h: Likewise.
23062         * gthr-rtems.h: Likewise.
23063         * gthr-single.h: Likewise.
23064         * gthr-solaris.h: Likewise.
23065         * gthr-tpf.h: Likewise.
23066         * gthr-vxworks.h: Likewise.
23067         * gthr-win32.h: Likewise.
23068         * gthr.h: Likewise.
23069         * libgcc2.c: Likewise.
23070         * libgcc2.h: Likewise.
23071         * libgcov.c: Likewise.
23072         * tsystem.h: Likewise.
23073         * typeclass.h: Likewise.
23074         * unwind-c.c: Likewise.
23075         * unwind-compat.h: Likewise.
23076         * unwind-dw2-fde-compat.c: Likewise.
23077         * unwind-dw2-fde-darwin.c: Likewise.
23078         * unwind-dw2-fde-glibc.c: Likewise.
23079         * unwind-dw2-fde.c: Likewise.
23080         * unwind-dw2-fde.h: Likewise.
23081         * unwind-dw2.c: Likewise.
23082         * unwind-dw2.h: Likewise.
23083         * unwind-generic.h: Likewise.
23084         * unwind-pe.h: Likewise.
23085         * unwind-sjlj.c: Likewise.
23086         * unwind.inc: Likewise.
23087         * config/arm/neon-gen.ml: Change generated copyright header to
23088         refer to version 3 of the GNU General Public License with
23089         version 3.1 of the GCC Runtime Library Exception and to point
23090         readers at the COPYING3 and COPYING3.RUNTIME files and the
23091         FSF's license web page.
23092         * config/arm/arm_neon.h: Regenerate.
23093
23094 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
23095
23096         * config/cris/cris.md: Change copyright header to refer to version
23097         3 of the GNU General Public License.
23098         * doc/install.texi2html: Change copyright header to refer to version
23099         3 of the GNU General Public License and to point readers at the
23100         COPYING3 file and the FSF's license web page.
23101         * config/vax/linux.h: Likewise.
23102
23103 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
23104
23105         * config/i386/i386.md (cmpcc): New.
23106         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
23107         (sync_compare_and_swap_cc*): Delete.
23108
23109         * config/s390/s390.c (s390_compare_emitted): Remove.
23110         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
23111         s390_compare_emitted used to be handled.  Assert that modes match.
23112         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
23113         refer to sync_compare_and_swap_ccsi.
23114         * config/s390/s390.h (s390_compare_emitted): Remove.
23115         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
23116         instead of s390_compare_emitted.
23117         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
23118         instead of s390_compare_emitted.
23119         * config/s390/s390.md (cmpcc): New.
23120         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
23121         CC_REGNUM, do not pretend it's set.
23122         (sync_compare_and_swap_cc*): Delete.
23123         * config/s390/predicates.md (cc_reg_operand): New.
23124
23125         * expr.c (sync_compare_and_swap_cc): Delete.
23126         * optabs.h (sync_compare_and_swap_cc): Delete.
23127         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
23128         is being used with can_compare_p.
23129         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
23130         (find_cc_set): New.
23131         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
23132         look for a MODE_CC set instead.  Use emit_store_flag.
23133         (expand_compare_and_swap_loop): Likewise, with some additional
23134         complication to avoid a force_reg when useless.  Use
23135         emit_cmp_and_jump_insns.
23136         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
23137         * doc/md.texi (sync_compare_and_swap_cc): Merge with
23138         sync_compare_and_swap documentation.
23139
23140 2009-04-09  Jan Hubicka  <jh@suse.cz>
23141
23142         * except.c (find_prev_try): Break out from ....
23143         (duplicate_eh_regions): ... here; properly update prev_try pointers
23144         when duplication part of tree.
23145         (dump_eh_tree): Improve dumping.
23146         (verify_eh_region): New.
23147         (verify_eh_tree): Use it.
23148
23149 2009-04-06  Richard Guenther  <rguenther@suse.de>
23150
23151         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
23152         &ARRAY addresses by adjusting their types and prepending
23153         a conversion.
23154         * tree-cfg.c (verify_gimple_assign_single): Verify that
23155         addresses are correct.
23156
23157 2009-04-09  Richard Guenther  <rguenther@suse.de>
23158
23159         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
23160         indices into an array reference if possible.
23161         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
23162         Fold POINTER_PLUS_EXPR statements with invariant address.
23163
23164 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
23165
23166         PR target/39634
23167         * config.gcc (powerpc64-*-linux*): Always build biarch.
23168
23169 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
23170
23171         PR c/39613
23172         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
23173         it and pedwarn if this results in an INTEGER_CST.
23174
23175 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23176
23177         * doc/install.texi: Update minimum GMP version.  Remove obsolete
23178         text in MPFR section.
23179
23180 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
23181
23182         * dwarf2out.c (class_scope_p): New static inline.
23183         (class_or_namespace_scope_p): Use it.
23184         (gen_variable_die): Use DW_TAG_member tag for static data member
23185         declarations instead of DW_TAG_variable.
23186
23187         PR middle-end/39573
23188         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
23189         variables.
23190
23191 2009-04-08  Richard Guenther  <rguenther@suse.de>
23192
23193         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
23194         valueize random data.
23195
23196 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
23197
23198         * config.gcc (aix tm_file):  Add aix-stdint.h.
23199         (aix tm clause use_gcc_stdint):  Set to wrap.
23200         * config/rs6000/aix-stdint.h:  New file.
23201
23202 2009-04-08  Richard Guenther  <rguenther@suse.de>
23203
23204         PR middle-end/36291
23205         * tree-dfa.c (add_referenced_var): Do not recurse into
23206         global initializers.
23207         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
23208         exposed variables.
23209         (fold_const_aggregate_ref): Likewise.
23210
23211 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
23212
23213         * recog.c (ordered_comparison_operator): New.
23214         * gensupport.c (std_preds): Add it.
23215         * doc/md.texi (Machine-Independent Predicates): Document it.
23216
23217 2009-04-08  Jan Hubicka  <jh@suse.cz>
23218
23219         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
23220         * function.h (rtl_eh): Remove exception_handler_label_map.
23221         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
23222         remove_exception_handler_label, for_each_eh_label_1): Remove.
23223         (rtl_remove_unreachable_regions): Remove.
23224         (convert_from_eh_region_ranges): Do not remove unreachable regions.
23225         (find_exception_handler_labels): Don't build the hashtable.
23226         (maybe_remove_eh_handler): Remove.
23227         (for_each_eh_label): Rewrite to walk the tree.
23228         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
23229         * except.h (maybe_remove_eh_handler): Remove.
23230         * passes.c (init_optimization_passes): Schedule second EH cleanup
23231         before out-of-ssa.
23232         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
23233         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
23234
23235 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
23236
23237         * genoutput.c (validate_optab_operands): New.
23238         (gen_insn, gen_expand): Call it.
23239
23240         * genflags.c (gen_insn): Detect misused iterators.
23241         (main): Pass line_no to gen_insn, exit with status 1 on error.
23242
23243         * genextract.c (line_no): Make global.
23244         (VEC_safe_set_locstr): Change assertion to error message.
23245         (main): Exit with status 1 on error.
23246
23247 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
23248
23249         PR c/39614
23250         PR c/39673
23251         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
23252         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
23253         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
23254         * c-convert.c (convert): Do not call fold on results of conversion
23255         functions when the result is a C_MAYBE_CONST_EXPR.
23256         * c-parser.c (c_parser_postfix_expression): Do not fold condition
23257         of __builtin_choose_expr.
23258         * c-typeck.c (remove_c_maybe_const_expr): New.
23259         (build_unary_op, build_conditional_expr, build_compound_expr,
23260         build_binary_op, c_objc_common_truthvalue_conversion): Call
23261         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
23262         integer operands.
23263
23264 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
23265
23266         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
23267         CODE to produce a new one. Add a prototype to use fold_convert_const
23268
23269 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
23270
23271         PR bootstrap/39660
23272         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
23273         mix declarations and code.
23274
23275 2009-04-08  Ben Elliston  <bje@au.ibm.com>
23276
23277         * gcc.c: Replace `CC' with `GCC' throughout.
23278
23279 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
23280
23281         * doc/invoke.texi: Document Atom support.
23282
23283 2009-04-07  Jason Merrill  <jason@redhat.com>
23284
23285         PR c++/25185
23286         * c-common.h, c-common.c: Add flag_pretty_templates.
23287         * c-opts.c (c_common_handle_option): Set it.
23288         * c.opt: Add -fno-pretty-templates.
23289         * doc/invoke.texi (C++ Dialect Options): Likewise.
23290
23291 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
23292
23293         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
23294         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
23295         (ia64_expand_builtin): Likewise.
23296
23297 2009-04-07  Martin Jambor  <mjambor@suse.cz>
23298
23299         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
23300         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
23301         ADDR_EXPRS are include too.
23302
23303 2009-04-07  Richard Guenther  <rguenther@suse.de>
23304
23305         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
23306         decls are only used if passes as parameters or if they are
23307         local statics and the call is not to a builtin.
23308         (call_may_clobber_ref_p_1): Likewise.
23309
23310 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
23311
23312         * expr.c (do_store_flag): Remove last argument.  Simplify code
23313         to avoid duplication of tests already done by can_compare_p.
23314         (expand_expr_real_1): Adjust caller.
23315
23316 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
23317
23318         * optabs.c (can_compare_p): Test the predicate of a
23319         cbranch and cstore pattern.
23320
23321 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
23322
23323         * expr.c (convert_move): Use emit_store_flag instead of
23324         "emulating" it.
23325
23326 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
23327
23328         * config/i386/i386.c (ix86_compare_emitted): Remove.
23329         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
23330         ix86_compare_op0 like ix86_compare_emitted used to be handled.
23331         * config/i386/i386.h (ix86_compare_emitted): Remove.
23332         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
23333         instead of ix86_compare_emitted.
23334         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
23335
23336 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
23337
23338         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
23339         Add t-sysroot-suffix to tmake_file.
23340         * config/print-sysroot-suffix.sh: New file.
23341         * config/t-sysroot-suffix: New file.
23342
23343 2009-04-07  Ben Elliston  <bje@au.ibm.com>
23344
23345         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
23346         as the latter produces a warning when the target does not support
23347         infinity.
23348
23349 2009-04-07  Ben Elliston  <bje@au.ibm.com>
23350
23351         * dfp.c: Replace type punning assignments with memcpy throughout.
23352         * Makefile.in (dfp.o-warn): Remove.
23353
23354 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
23355
23356         PR target/39634
23357         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
23358         Include soft-fp/t-softfp after rs6000/t-linux64.
23359
23360 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
23361
23362         * stor-layout.c (set_sizetype): Use the full precision of their
23363         machine mode for bitsize types.
23364
23365 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
23366
23367         * config/i386/i386.md: Revert 2 accidental checkins.
23368
23369 2009-04-06  Joey Ye  <joey.ye@intel.com>
23370             Xuepeng Guo  <xuepeng.guo@intel.com>
23371             H.J. Lu  <hongjiu.lu@intel.com>
23372
23373         Atom pipeline model, tuning and insn selection.
23374         * config.gcc (atom): Add atom config options and target.
23375
23376         * config/i386/atom.md: New.
23377
23378         * config/i386/i386.c (atom_cost): New cost.
23379         (m_ATOM): New macro flag.
23380         (initial_ix86_tune_features): Set m_ATOM.
23381         (x86_accumulate_outgoing_args): Likewise.
23382         (x86_arch_always_fancy_math_387): Likewise.
23383         (processor_target): Add Atom cost.
23384         (cpu_names): Add Atom cpu name.
23385         (override_options): Set Atom ISA.
23386         (ix86_issue_rate): New case PROCESSOR_ATOM.
23387         (ix86_adjust_cost): Likewise.
23388
23389         * config/i386/i386.h (TARGET_ATOM): New target macro.
23390         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
23391         (TARGET_OPT_AGU): New target option.
23392         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
23393         (processor_type): Add PROCESSOR_ATOM.
23394
23395         * config/i386/i386.md (cpu): Add new value "atom".
23396         (use_carry, movu): New attr.
23397         (atom.md): Include atom.md.
23398         (adddi3_carry_rex64): Set attr "use_carry".
23399         (addqi3_carry): Likewise.
23400         (addhi3_carry): Likewise.
23401         (addsi3_carry): Likewise.
23402         (*addsi3_carry_zext): Likewise.
23403         (subdi3_carry_rex64): Likewise.
23404         (subqi3_carry): Likewise.
23405         (subhi3_carry): Likewise.
23406         (subsi3_carry): Likewise.
23407         (x86_movdicc_0_m1_rex64): Likewise.
23408         (*x86_movdicc_0_m1_se): Likewise.
23409         (x86_movsicc_0_m1): Likewise.
23410         (*x86_movsicc_0_m1_se): Likewise.
23411         (*adddi_1_rex64): Emit add insn as much as possible.
23412         (*addsi_1): Likewise.
23413         (return_internal): Set atom_unit.
23414         (return_internal_long): Likewise.
23415         (return_pop_internal): Likewise.
23416         (*rcpsf2_sse): Set atom_sse_attr attr.
23417         (*qrt<mode>2_sse): Likewise.
23418         (*prefetch_sse): Likewise.
23419
23420         * config/i386/i386-c.c (ix86_target_macros_internal): New case
23421         PROCESSOR_ATOM.
23422         (ix86_target_macros_internal): Likewise.
23423
23424         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
23425         (*prefetch_sse_rex): Likewise.
23426         (sse_rcpv4sf2): Likewise.
23427         (sse_vmrcpv4sf2): Likewise.
23428         (sse_sqrtv4sf2): Likewise.
23429         (<sse>_vmsqrt<mode>2): Likewise.
23430         (sse_ldmxcsr): Likewise.
23431         (sse_stmxcsr): Likewise.
23432         (*sse_sfence): Likewise.
23433         (sse2_clflush): Likewise.
23434         (*sse2_mfence): Likewise.
23435         (*sse2_lfence): Likewise.
23436         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
23437         (<sse>_movup<ssemodesuffixf2c>): Likewise.
23438         (avx_movdqu<avxmodesuffix>): Likewise.
23439         (avx_lddqu<avxmodesuffix>): Likewise.
23440         (sse2_movntv2di): Change attr "type" to "ssemov".
23441         (sse2_movntsi): Likewise.
23442         (rsqrtv8sf2): Change attr "type" to "sseadd".
23443         (sse3_addsubv2df3): Set attr "atom_unit".
23444         (sse3_h<plusminus_insn>v4sf3): Likewise.
23445         (*sse2_pmaddwd): Likewise.
23446         (*vec_extractv2di_1_rex64): Likewise.
23447         (*vec_extractv2di_1_avx): Likewise.
23448         (sse2_psadbw): Likewise.
23449         (ssse3_phaddwv8hi3): Likewise.
23450         (ssse3_phaddwv4hi3): Likewise.
23451         (ssse3_phadddv4si3): Likewise.
23452         (ssse3_phadddv2si3): Likewise.
23453         (ssse3_phaddswv8hi3): Likewise.
23454         (ssse3_phaddswv4hi3): Likewise.
23455         (ssse3_phsubwv8hi3): Likewise.
23456         (ssse3_phsubwv4hi3): Likewise.
23457         (ssse3_phsubdv4si3): Likewise.
23458         (ssse3_phsubdv2si3): Likewise.
23459         (ssse3_phsubswv8hi3): Likewise.
23460         (ssse3_phsubswv4hi3): Likewise.
23461         (ssse3_pmaddubsw128): Likewise.
23462         (sse3_pmaddubsw: Likewise.
23463         (ssse3_palignrti): Likewise.
23464         (ssse3_palignrdi): Likewise.
23465
23466 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
23467
23468         * doc/install.texi (Specific): Fix two cross-references to MinGW.
23469
23470 2009-04-06  Richard Guenther  <rguenther@suse.de>
23471
23472         PR tree-optimization/28868
23473         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
23474         of which PHI results we inserted.
23475         (insert_into_preds_of_block): Record inserted PHIs.
23476         (eliminate): Eliminate redundant PHI nodes.
23477         (init_pre): Init inserted_phi_names.
23478
23479 2009-04-06  Richard Guenther  <rguenther@suse.de>
23480
23481         PR tree-optimization/39643
23482         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
23483         IMAGPART_EXPRs of complex constants.
23484         (execute_fold_all_builtins): If we folded a call queue
23485         TODO_update_address_taken.
23486
23487 2009-04-06  Jan Hubicka  <jh@suse.cz>
23488
23489         PR middle-end/39659
23490         * except.c (remove_unreachable_regions): Propagate may_contain_throw
23491         flag.
23492
23493 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
23494
23495         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
23496         delay slot.
23497         (ic_invalidate_array): Likewise.
23498
23499 2009-04-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
23500
23501         * calls.c (emit_library_call_value_1): Fix a problem with parameter
23502         alignment for library calls.
23503
23504 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
23505
23506         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
23507         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
23508         * config/i386/mingw-stdint.h:  New file.
23509
23510 2009-04-05  Richard Guenther  <rguenther@suse.de>
23511
23512         PR tree-optimization/39648
23513         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
23514         our &A vs. &A[0] IL deficiencies.
23515
23516 2009-04-04  Jan Hubicka  <jh@suse.cz>
23517
23518         * except.c (sjlj_find_directly_reachable_regions): Be ready for
23519         removed toplevel regions.
23520         (sjlj_mark_call_sites): Likewise.
23521
23522 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
23523
23524         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
23525         (cygwin tm clause use_gcc_stdint):  Set to wrap.
23526         * config/i386/cygwin-stdint.h:  New file.
23527
23528 2009-04-04  Richard Guenther  <rguenther@suse.de>
23529
23530         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
23531         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
23532         single-argument PHIs if we are in loop-closed SSA form.
23533         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
23534         for the pre-condition.
23535         (slpeel_tree_peel_loop_to_edge): Likewise.
23536         (vect_build_loop_niters): Take an optional sequence to append stmts.
23537         (vect_generate_tmps_on_preheader): Likewise.
23538         (vect_do_peeling_for_loop_bound): Take extra guards for the
23539         pre-condition.
23540         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
23541         the cost model check.
23542         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
23543         guards if we are going to peel.  Do not apply versioning in that case.
23544         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
23545         (vect_do_peeling_for_loop_bound): Likewise.
23546         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
23547         loop bound only record extra pre-conditions, do not apply loop
23548         versioning.
23549
23550 2009-04-04  Richard Guenther  <rguenther@suse.de>
23551
23552         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
23553         renaming code.
23554
23555 2009-04-04  Jan Hubicka  <jh@suse.cz>
23556
23557         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
23558         last_basic_block for size of bb->index indexed array.
23559         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
23560         compute_out, link_btr_uses, build_btr_def_use_webs,
23561         build_btr_def_use_webs, migrate_btr_defs): Likewise.
23562
23563 2009-04-04  Jan Hubicka  <jh@suse.cz>
23564
23565         * except.c (remove_eh_handler_and_replace): Break out from ...
23566         (remove_eh_handler): ... here.
23567         (bring_to_root): New function.
23568         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
23569         handled ones, bring others to root of tree.
23570
23571 2009-04-04  Jan Hubicka  <jh@suse.cz>
23572
23573         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
23574         (all_phis_safe_to_merge): New function.
23575         (update_info): New structure.
23576         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
23577         (cleanup_empty_eh): Update SSA if possible.
23578
23579 2009-04-04  Richard Guenther  <rguenther@suse.de>
23580
23581         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
23582         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
23583         (append_vuse): Likewise.
23584
23585 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
23586
23587         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
23588         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
23589         instead of REG_UNSAVED for DW_CFA_undefined.
23590         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
23591         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
23592         outermost frame.
23593
23594 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
23595
23596         PR target/39501
23597         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
23598
23599 2009-04-04  Richard Guenther  <rguenther@suse.de>
23600
23601         PR tree-optimization/8781
23602         PR tree-optimization/37892
23603         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
23604         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
23605         (valueize_refs): Call it for *& valueizations.
23606         (shared_reference_ops_from_ref): Rename to ...
23607         (valueize_shared_reference_ops_from_ref): ... this and valueize.
23608         (shared_reference_ops_from_call): Rename to ...
23609         (valueize_shared_reference_ops_from_call): ... this and valueize.
23610         (vn_reference_lookup): Update.
23611         (visit_reference_op_call): Likewise.
23612         * tree-ssa-pre.c (phi_translate_1): Fold *&.
23613         (eliminate): Value-replace the call address in call statements.
23614
23615 2009-04-04  Richard Guenther  <rguenther@suse.de>
23616
23617         PR tree-optimization/39636
23618         * tree-ssa-forwprop.c
23619         (forward_propagate_addr_into_variable_array_index): Check for
23620         GIMPLE_ASSIGN before accessing the rhs code.
23621
23622 2009-04-03  Jason Merrill  <jason@redhat.com>
23623
23624         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
23625
23626 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
23627
23628         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
23629         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
23630         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
23631         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
23632         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
23633         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
23634         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
23635         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
23636         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
23637         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
23638         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
23639         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
23640         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
23641         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
23642         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
23643         Use fr_reg_or_fp01_operand instead of fr_register_operand
23644
23645         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
23646         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
23647         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
23648
23649 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
23650
23651         PR rtl-optimization/39607
23652         PR rtl-optimization/39631
23653
23654         Revert:
23655
23656         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
23657         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
23658         instead of DF_LR_OUT.
23659         * ira-lives.c (process_bb_node_lives): Ditto.
23660         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
23661         instead of DF_LR_{OUT,IN}.
23662         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
23663         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
23664
23665 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
23666
23667         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
23668         (execute_lower_omp): Always run but take the short way out if -fopenmp
23669         is not given.
23670         (gate_lower_omp): Remove, forcing the pass manager to always run the
23671         pass and always set PROP_gimple_lomp.
23672         (pass_lower_omp): Remove gate function.
23673         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
23674         PROP_trees.  Instead, require it.
23675         * ipa-cp.c (pass_ipa_cp): Likewise.
23676         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
23677         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
23678         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
23679         and PROP_gimple_leh.
23680
23681 2009-04-03  Richard Guenther  <rguenther@suse.de>
23682
23683         PR middle-end/13146
23684         PR tree-optimization/23940
23685         PR tree-optimization/33237
23686         PR middle-end/33974
23687         PR middle-end/34093
23688         PR tree-optimization/36201
23689         PR tree-optimization/36230
23690         PR tree-optimization/38049
23691         PR tree-optimization/38207
23692         PR tree-optimization/38230
23693         PR tree-optimization/38301
23694         PR tree-optimization/38585
23695         PR middle-end/38895
23696         PR tree-optimization/38985
23697         PR tree-optimization/39299
23698         * tree-ssa-structalias.h: Remove.
23699         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
23700         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
23701         (struct vuse_element_d): Remove.
23702         (struct vuse_vec_d): Likewise.
23703         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
23704         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
23705         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
23706         VUSE_ELEMENT_VAR): Likewise.
23707         (struct voptype_d): Likewise.
23708         (NUM_VOP_FREE_BUCKETS): Likewise.
23709         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
23710         (struct stmt_operands_d): Remove.
23711         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
23712         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
23713         VDEF_NUM, VDEF_VECT): Likewise.
23714         (copy_virtual_operands): Remove.
23715         (operand_build_cmp): Likewise.
23716         (create_ssa_artificial_load_stmt): Likewise.
23717         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
23718         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
23719         vuse_index and mayuse_index members.  Pack and move done and iter_type
23720         members to the front.
23721         (SSA_OP_VMAYUSE): Remove.
23722         (SSA_OP_VIRTUAL_USES): Adjust.
23723         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
23724         (unlink_stmt_vdef): Declare.
23725         (add_to_addressable_set): Remove.
23726         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
23727         (vrp_visit_stmt): Likewise.
23728         * doc/tree-ssa.texi (Alias analysis): Update.
23729         * doc/invoke.texi (max-aliased-vops): Remove docs.
23730         (avg-aliased-vops): Likewise.
23731         * tree-into-ssa.c (syms_to_rename): Remove.
23732         (need_to_update_vops_p): Likewise.
23733         (need_to_initialize_update_ssa_p): Rename to ...
23734         (update_ssa_initialized_fn): ... this.  Track function we are
23735         initialized for.
23736         (symbol_marked_for_renaming): Simplify.
23737         (add_new_name_mapping): Do not set need_to_update_vops_p.
23738         (dump_currdefs): Use SYMS_TO_RENAME.
23739         (rewrite_update_stmt): Always walk all uses/defs.
23740         (dump_update_ssa): Adjust.
23741         (init_update_ssa): Take function argument.  Track what we are
23742         initialized for.
23743         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
23744         (create_new_def_for): Initialize for cfun, assert we are initialized
23745         for cfun.
23746         (mark_sym_for_renaming): Simplify.
23747         (mark_set_for_renaming): Do not initialize update-ssa.
23748         (need_ssa_update_p): Simplify.  Take function argument.
23749         (name_mappings_registered_p): Assert we ask for the correct function.
23750         (name_registered_for_update_p): Likewise.
23751         (ssa_names_to_replace): Likewise.
23752         (release_ssa_name_after_update_ssa): Likewise.
23753         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
23754         (dump_decl_set): Do not print a newline.
23755         (debug_decl_set): Do it here.
23756         (dump_update_ssa): And here.
23757         * tree-ssa-loop-im.c (move_computations): Adjust.
23758         (movement_possibility): Likewise.
23759         (determine_max_movement): Likewise.
23760         (gather_mem_refs_stmt): Likewise.
23761         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
23762         or NAME_MEMORY_TAG.
23763         * tree-complex.c (update_all_vops): Remove.
23764         (expand_complex_move): Adjust.
23765         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
23766         Simplify test for memory referencing statement.  Exclude
23767         non-invariant ADDR_EXPRs.
23768         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
23769         * tree-loop-distribution.c (generate_memset_zero): Adjust.
23770         (rdg_flag_uses): Likewise.
23771         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
23772         related code.
23773         (tree_optimize_tail_calls_1): Also split the
23774         edge from the entry block if we have degenerate PHI nodes in
23775         the first basic block.
23776         * tree.c (init_ttree): Remove memory-tag related code.
23777         (tree_code_size): Likewise.
23778         (tree_node_structure): Likewise.
23779         (build7_stat): Re-write to be build6_stat.
23780         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
23781         (SSA_VAR_P): Adjust.
23782         (struct tree_memory_tag): Remove.
23783         (struct tree_memory_partition_tag): Likewise.
23784         (union tree_node): Adjust.
23785         (build7): Re-write to be build6.
23786         * tree-pass.h (pass_reset_cc_flags): Remove.
23787         (TODO_update_address_taken): New flag.
23788         (pass_simple_dse): Remove.
23789         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
23790         * params.h (MAX_ALIASED_VOPS): Remove.
23791         (AVG_ALIASED_VOPS): Likewise.
23792         * omp-low.c (expand_omp_taskreg): Update SSA form.
23793         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
23794         aliases the lhs in a copy stmt.
23795         * tree-ssa-dse.c (struct address_walk_data): Remove.
23796         (memory_ssa_name_same): Likewise.
23797         (memory_address_same): Likewise.
23798         (get_kill_of_stmt_lhs): Likewise.
23799         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
23800         unused stores.  Look through PHI nodes into post-dominated regions.
23801         (dse_optimize_stmt): Simplify.  Properly remove stores.
23802         (tree_ssa_dse): Compute dominators.
23803         (execute_simple_dse): Remove.
23804         (pass_simple_dse): Likewise.
23805         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
23806         gimple_loaded_syms and gimple_stored_syms computation.
23807         * toplev.c (dump_memory_report): Dump alias and pta stats.
23808         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
23809         (vn_reference_eq): Likewise.
23810         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
23811         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
23812         valueize_vuses): Remove.
23813         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
23814         (get_def_ref_stmt_vuse): ... this.
23815         (vn_reference_lookup_2): New function.
23816         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
23817         walking equivalent vuses.  Simplify.
23818         (vn_reference_lookup): Likewise.
23819         (vn_reference_insert): Likewise.
23820         (vn_reference_insert_pieces): Likewise.
23821         (visit_reference_op_call): Simplify.
23822         (visit_reference_op_load): Likewise.
23823         (visit_reference_op_store): Likewise.
23824         (init_scc_vn): Remove shared_lookup_vuses initialization.
23825         (free_scc_vn): Remove shared_lookup_vuses freeing.
23826         (sort_vuses, sort_vuses_heap): Remove.
23827         (get_ref_from_reference_ops): Export.
23828         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
23829         vector with single vuse pointer.
23830         (vn_reference_lookup_pieces, vn_reference_lookup,
23831         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
23832         (shared_vuses_from_stmt): Remove.
23833         (get_ref_from_reference_ops): Declare.
23834         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
23835         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
23836         memory-tag related code.
23837         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
23838         (likely_value): Add comment, skip static-chain of call statements.
23839         (surely_varying_stmt_p): Adjust.
23840         (gimplify_and_update_call_from_tree): Likewise.
23841         (execute_fold_all_builtins): Do not rebuild alias info.
23842         (gimplify_and_update_call_from_tree): Properly update VOPs.
23843         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
23844         (copy_ref_info): Remove memory-tag related code.
23845         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
23846         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
23847         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
23848         computation.
23849         * tree-ssa-dom.c (gimple_p): Remove typedef.
23850         (eliminate_redundant_computations): Adjust.
23851         (record_equivalences_from_stmt): Likewise.
23852         (avail_expr_hash): Likewise.
23853         (avail_expr_eq): Likewise.
23854         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
23855         (stmt_makes_single_load): Likewise.
23856         (stmt_makes_single_store): Likewise.
23857         * tree-ssa-alias.c: Rewrite completely.
23858         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
23859         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
23860         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
23861         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
23862         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
23863         Remove public functions.
23864         (pass_reset_cc_flags): Remove.
23865         (pass_build_alias): Move ...
23866         * tree-ssa-structalias.c (pass_build_alias): ... here.
23867         * tree-ssa-alias.c (may_be_aliased): Move ...
23868         * tree-flow-inline.h (may_be_aliased): ... here.
23869         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
23870         count_uses_and_derefs): Move ...
23871         * gimple.c: ... here.
23872         * gimple.h (count_uses_and_derefs): Declare.
23873         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
23874         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
23875         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
23876         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
23877         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
23878         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
23879         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
23880         New functions.
23881         * tree-dfa.c (refs_may_alias_p): Move ...
23882         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
23883         * tree-ssa-alias.h: New file.
23884         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
23885         (statement_sink_location): Likewise.
23886         * opts.c (decode_options): Do not adjust max-aliased-vops or
23887         avg-aliased-vops values.
23888         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
23889         (TV_CALL_CLOBBER): Likewise.
23890         (TV_FLOW_SENSITIVE): Likewise.
23891         (TV_FLOW_INSENSITIVE): Likewise.
23892         (TV_MEMORY_PARTITIONING): Likewise.
23893         (TV_ALIAS_STMT_WALK): New timevar.
23894         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
23895         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
23896         (get_address_description): Remove memory-tag related code.
23897         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
23898         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
23899         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
23900         and immediate uses in statements.  Document.
23901         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
23902         (dump_symbols): Remove.
23903         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
23904         * alias.c (get_deref_alias_set): New function split out from ...
23905         (get_alias_set): ... here.
23906         * alias.h (get_deref_alias_set): Declare.
23907         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
23908         type parameter.  Remove restrict pointer handling.  Create a
23909         ref-all pointer in case type-based alias sets do not conflict.
23910         (vect_analyze_data_refs): Remove SMT related code.
23911         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
23912         (vectorizable_load): Likewise.
23913         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
23914         (DR_SYMBOL_TAG, DR_VOPS): Remove.
23915         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
23916         Ignore vops and SMTs.
23917         (dr_analyze_alias): Likewise..
23918         (free_data_ref): Likewise.
23919         (create_data_ref): Likewise.
23920         (analyze_all_data_dependences): Likewise.
23921         (get_references_in_stmt): Adjust.
23922         * tree-flow-inline.h (gimple_aliases_computed_p,
23923         gimple_addressable_vars, gimple_call_clobbered_vars,
23924         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
23925         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
23926         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
23927         gimple_mem_ref_stats): Remove.
23928         (gimple_vop): New function.
23929         (op_iter_next_use): Remove vuses and mayuses cases.
23930         (op_iter_next_def): Remove vdefs case.
23931         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
23932         (clear_and_done_ssa_iter): Do not set removed fields.
23933         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
23934         Assert we are not iterating over vuses or vdefs if not also
23935         iterating over uses or defs.
23936         (op_iter_init_use): Likewise.
23937         (op_iter_init_def): Likewise.
23938         (op_iter_next_vdef): Remove.
23939         (op_iter_next_mustdef): Likewise.
23940         (op_iter_init_vdef): Likewise.
23941         (compare_ssa_operands_equal): Likewise.
23942         (link_use_stmts_after): Handle vuse operand.
23943         (is_call_used): Use is_call_clobbered.
23944         (is_call_clobbered): Global variables are always call clobbered,
23945         query the call-clobbers bitmap.
23946         (mark_call_clobbered): Ignore global variables.
23947         (clear_call_clobbered): Likewise.
23948         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
23949         virtual operands sanity check.
23950         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
23951         Remove.
23952         (TARGET_MEM_REF): Remove TMR_TAG operand.
23953         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
23954         Remove call-clobber related code.
23955         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
23956         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
23957         partitions or escape reason.
23958         (get_single_def_stmt, get_single_def_stmt_from_phi,
23959         get_single_def_stmt_with_phi): Remove.
23960         (dump_referenced_vars): Tidy.
23961         (get_ref_base_and_extent): Allow bare decls.
23962         (collect_dfa_stats): Adjust.
23963         * graphite.c (rename_variables_in_stmt): Adjust.
23964         (graphite_copy_stmts_from_block): Likewise.
23965         (translate_clast): Likewise.
23966         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
23967         (EXPR_DIES): New.
23968         (translate_vuse_through_block): Use the oracle.
23969         (phi_translate_1): Adjust.
23970         (value_dies_in_block_x): Use the oracle.  Cache the outcome
23971         in EXPR_DIES.
23972         (valid_in_sets): Check if the VUSE for
23973         a REFERENCE is available.
23974         (eliminate): Do not remove stmts during elimination,
23975         instead queue and remove them afterwards.
23976         (do_pre): Do not rebuild alias info.
23977         (pass_pre): Run TODO_rebuild_alias before PRE.
23978         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
23979         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
23980         (mark_all_v_defs_stmt): Remove.
23981         (mark_all_v_defs_seq): Adjust.
23982         (sra_replace): Likewise.
23983         (scalarize_use): Likewise.
23984         (scalarize_copy): Likewise.
23985         (scalarize_init): Likewise.
23986         (scalarize_ldst): Likewise.
23987         (todoflags): Remove.
23988         (tree_sra): Do not rebuild alias info.
23989         (tree_sra_early): Adjust.
23990         (pass_sra): Run TODO_update_address_taken before SRA.
23991         * tree-predcom.c (set_alias_info): Remove.
23992         (prepare_initializers_chain): Do not call it.
23993         (mark_virtual_ops_for_renaming): Adjust.
23994         (mark_virtual_ops_for_renaming_list): Remove.
23995         (initialize_root_vars): Adjust.
23996         (initialize_root_vars_lm): Likewise.
23997         (prepare_initializers_chain): Likewise.
23998         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
23999         (may_propagate_copy_into_stmt): Likewise.
24000         (merge_alias_info): Do nothing for now.
24001         (propagate_tree_value_into_stmt): Adjust.
24002         (stmt_may_generate_copy): Likewise.
24003         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
24004         not mark symbols for renaming.
24005         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
24006         with the same statement, make sure to update the new pointed-to one.
24007         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
24008         call statements, do not mark symbols for renaming.
24009         (mark_operand_necessary): Dump something.
24010         (ref_may_be_aliased): New function.
24011         (mark_aliased_reaching_defs_necessary_1): New helper function.
24012         (mark_aliased_reaching_defs_necessary): Likewise.
24013         (mark_all_reaching_defs_necessary_1): Likewise.
24014         (mark_all_reaching_defs_necessary): Likewise.
24015         (propagate_necessity): Do not process virtual PHIs.  For
24016         non-aliased loads mark all reaching definitions as necessary.
24017         For aliased loads and stores mark the immediate dominating
24018         aliased clobbers as necessary.
24019         (visited): New global static.
24020         (perform_tree_ssa_dce): Free visited bitmap after propagating
24021         necessity.
24022         (remove_dead_phis): Perform simple dead virtual PHI removal.
24023         (remove_dead_stmt): Properly unlink virtual operands when
24024         removing stores.
24025         (eliminate_unnecessary_stmts): Schedule PHI removal after
24026         stmt removal.
24027         * tree-ssa-ter.c (is_replaceable_p): Adjust.
24028         (process_replaceable): Likewise.
24029         (find_replaceable_in_bb): Likewise.
24030         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
24031         based on the single gimple vop.
24032         (verify_flow_insensitive_alias_info): Remove.
24033         (verify_flow_sensitive_alias_info): Likewise.
24034         (verify_call_clobbering): Likewise.
24035         (verify_memory_partitions): Likewise.
24036         (verify_alias_info): Likewise.
24037         (verify_ssa): Adjust..
24038         (execute_update_addresses_taken): Export.  Update SSA
24039         manually.  Optimize only when optimizing.  Use a local bitmap.
24040         (pass_update_address_taken): Remove TODO_update_ssa, add
24041         TODO_dump_func.
24042         (pass_update_address_taken): Just use TODO_update_address_taken.
24043         (init_tree_ssa): Do not initialize addressable_vars.
24044         (verify_ssa): Verify new VUSE / VDEF properties.
24045         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
24046         Do not call verify_alias_info.
24047         (delete_tree_ssa): Clear the VUSE, VDEF operands.
24048         Do not free the loaded and stored syms bitmaps.  Reset the escaped
24049         and callused solutions.  Do not free addressable_vars.
24050         Remove memory-tag related code.
24051         (warn_uninitialized_var): Aliases are always available.
24052         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
24053         * lambda-code.c (can_put_in_inner_loop): Adjust.
24054         (can_put_after_inner_loop): Likewise.
24055         (perfect_nestify): Likewise.
24056         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
24057         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
24058         (vectorizable_conversion): Do not mark symbols for renaming.
24059         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
24060         (expand_call_inline): Unlink the calls virtual operands before
24061         replacing it.
24062         (tree_function_versioning): Do not call update_ssa if we are not
24063         updating clones.  Simplify.
24064         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
24065         (propagate_with_phi): Likewise..
24066         * tree-outof-ssa.c (create_temp): Remove memory tag and call
24067         clobber code.  Assert we are not aliased or global.
24068         * tree-flow.h: Include tree-ssa-alias.h
24069         (enum escape_type): Remove.
24070         (struct mem_sym_stats_d): Likewise.
24071         (struct mem_ref_stats_d): Likewise.
24072         (struct gimple_df): Add vop member.  Remove global_var,
24073         call_clobbered_vars, call_used_vars, addressable_vars,
24074         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
24075         escaped and callused members.
24076         (struct ptr_info_def): Remove all members, add points-to solution
24077         member pt.
24078         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
24079         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
24080         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
24081         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
24082         (tree-ssa-alias.o): Likewise.
24083         (toplev.o): Add tree-ssa-alias.h
24084         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
24085         * gimple.c (gimple_set_bb): Fix off-by-one error.
24086         (is_gimple_reg): Do not handle memory tags.
24087         (gimple_copy): Also copy virtual operands.
24088         Delay updating the statement.  Do not reset loaded and stored syms.
24089         (gimple_set_stored_syms): Remove.
24090         (gimple_set_loaded_syms): Likewise.
24091         (gimple_call_copy_skip_args): Copy the virtual operands
24092         and mark the new statement modified.
24093         * tree-ssa-structalias.c (may_alias_p): Remove.
24094         (set_uids_in_ptset): Take the alias set to prune with as
24095         parameter.  Fold in the alias test of may_alias_p.
24096         (compute_points_to_sets): Compute whether a ptr is dereferenced
24097         in a local sbitmap.
24098         (process_constraint): Deal with &ANYTHING on the lhs, reject all
24099         other ADDRESSOF constraints on the lhs.
24100         (get_constraint_for_component_ref): Assert that we don't get
24101         ADDRESSOF constraints from the base of the reference.
24102         Properly generate UNKNOWN_OFFSET for DEREF if needed.
24103         (struct variable_info): Remove collapsed_to member.
24104         (get_varinfo_fc): Remove.
24105         (new_var_info): Do not set collapsed_to.
24106         (dump_constraint): Do not follow cycles.
24107         (dump_constraint_graph): Likewise.
24108         (build_pred_graph): Likewise.
24109         (build_succ_graph): Likewise.
24110         (rewrite_constraints): Likewise.
24111         (do_simple_structure_copy): Remove.
24112         (do_rhs_deref_structure_copy): Remove.
24113         (do_lhs_deref_structure_copy): Remove.
24114         (collapse_rest_of_var): Remove.
24115         (do_structure_copy): Re-implement.
24116         (pta_stats): New global variable.
24117         (dump_pta_stats): New function.
24118         (struct constraint_expr): Make offset signed.
24119         (UNKNOWN_OFFSET): Define special value.
24120         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
24121         (solution_set_expand): New helper function split out from ...
24122         (do_sd_constraint): ... here.
24123         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
24124         (do_ds_constraint): Likewise.
24125         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
24126         and CALLUSED = *CALLUSED.
24127         (set_union_with_increment): Make inc argument signed.
24128         (type_safe): Remove.
24129         (get_constraint_for_ptr_offset): Handle unknown and negative
24130         constant offsets.
24131         (first_vi_for_offset): Handle offsets before start.  Bail
24132         out early for offsets beyond the variable extent.
24133         (first_or_preceding_vi_for_offset): New function.
24134         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
24135         Together with ESCAPED = *ESCAPED this properly computes reachability.
24136         (find_what_var_points_to): New function.
24137         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
24138         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
24139         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
24140         pt_solutions_intersect): New functions.
24141         (compute_call_used_vars): Remove.
24142         (compute_may_aliases): New main entry into PTA computation.
24143         * gimple.h (gimple_p): New typedef.
24144         (struct gimple_statement_base): Remove references_memory_p.
24145         (struct gimple_statement_with_memory_ops_base): Remove
24146         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
24147         members.
24148         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
24149         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
24150         gimple_set_references_memory): Remove.
24151         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
24152         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
24153         New functions.
24154         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
24155         (verify_expr): Allow RESULT_DECL.
24156         (gimple_duplicate_bb): Do not copy virtual operands.
24157         (gimple_duplicate_sese_region): Adjust.
24158         (gimple_duplicate_sese_tail): Likewise.
24159         (mark_virtual_ops_in_region): Remove.
24160         (move_sese_region_to_fn): Do not call it.
24161         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
24162         and pass_simple_dse.
24163         (execute_function_todo): Handle TODO_update_address_taken,
24164         call execute_update_addresses_taken for TODO_rebuild_alias.
24165         (execute_todo): Adjust.
24166         (execute_one_pass): Init dump files early.
24167         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
24168         call-clobbered.
24169         (create_general_new_stmt): Clear vops.
24170         * tree-ssa-reassoc.c (get_rank): Adjust.
24171         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
24172         symbols for renaming.
24173         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
24174         (PARAM_AVG_ALIASED_VOPS): Likewise.
24175         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
24176         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
24177         * tree-ssa-operands.c: Simplify for new virtual operand representation.
24178         (operand_build_cmp, copy_virtual_operands,
24179         create_ssa_artificial_load_stmt, add_to_addressable_set,
24180         gimple_add_to_addresses_taken): Remove public functions.
24181         (unlink_stmt_vdef): New function.
24182
24183 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
24184
24185         * config.gcc (powerpc-*-linux*): Merge variants.
24186
24187 2009-04-02  Chao-ying Fu  <fu@mips.com>
24188             James Grosbach  <james.grosbach@microchip.com>
24189
24190         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
24191         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
24192         cop0_sp_offset.
24193         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
24194         keep_interrupts_masked_p, use_debug_exception_return_p.
24195         (mips_attribute_table): Add interrupt, use_shadow_register_set,
24196         keep_interrupts_masked, use_debug_exception_return.
24197         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
24198         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
24199         New functions.
24200         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
24201         (mips_print_operand): Process COP0 registers to print $0 .. $31
24202         correctly for GAS to process.
24203         (mips_interrupt_extra_call_saved_reg_p): New function.
24204         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
24205         extra registers.
24206         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
24207         (mips_compute_frame_info): Add supports for interrupt context that
24208         includes doubleword accumulators and COP0 registers.
24209         (mips_for_each_saved_acc): New function.
24210         (mips_for_each_saved_gpr_and_fpr): Change the function name from
24211         mips_for_each_saved_reg.
24212         (mips_save_reg): Save accumulators.
24213         (mips_kernel_reg_p): A new for_each_rtx callback.
24214         (mips_expand_prologue): Support interrupt handlers.
24215         (mips_restore_reg): Restore accumulators.
24216         (mips_expand_epilogue): Support interrupt handlers.
24217         (mips_can_use_return_insn): Return false for interrupt handlers.
24218         (mips_epilogue_uses): New function.
24219         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
24220         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
24221         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
24222         cop0_move): New instructions.
24223         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
24224         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
24225         defines.
24226         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
24227         New defines.
24228         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
24229         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
24230         interrupt handlers, we use K0 as the temporary register.
24231         (EPILOGUE_USES): Change to a function call.
24232         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
24233         handlers, we use K0 as the temporary register.
24234
24235         * doc/extend.texi (Function Attributes): Document interrupt,
24236         use_shadow_register_set, keep_interrupts_masked,
24237         use_debug_exception_return for MIPS attributes.
24238
24239 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
24240
24241         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
24242         Remove a number of t-files from tmake_file.
24243         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
24244         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
24245         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
24246         target_prototype, not TARGET_PROTOTYPE.
24247         (LINK_OS_GNU_SPEC): Define.
24248         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
24249         and darwin-ldoubdle.c.
24250
24251 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
24252
24253         PR driver/39293
24254         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
24255         (cpp_options): Ditto.
24256         (default_compilers): Ditto.
24257         (display_help): Ditto.
24258         (process_command): Ditto.
24259         (do_spec_1): Ditto.
24260         (set_input): Use lbasename instead of duplicate code.
24261         (save_temps_prefix): New static for -save-temps=obj.
24262         (save_temps_length): Ditto.
24263
24264         * doc/invoke.texi (-save-temps=obj): Document new variant to
24265         -save-temps switch.
24266
24267 2009-04-02  Jeff Law  <law@redhat.com>
24268
24269         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
24270         variable.
24271
24272 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
24273
24274         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
24275         * configure: Regenerated.
24276
24277 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
24278
24279         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
24280         share the argument list.
24281
24282 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
24283
24284         Merge
24285
24286         2009-02-12  Diego Novillo  <dnovillo@google.com>
24287
24288         * varpool.c (debug_varpool): New.
24289         * cgraph.h (debug_varpool): Declare.
24290
24291 2009-04-02  Jan Hubicka  <jh@suse.cz>
24292
24293         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
24294         pass.
24295
24296 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
24297
24298         * config/i386/i386.c (ix86_abi): Move initialization to ...
24299         (override_options): Here.
24300
24301 2009-04-02  Christian Bruel  <christian.bruel@st.com>
24302
24303         * config/sh/sh.c (sh_dwarf_register_span): New function.
24304         (TARGET_DWARF_REGISTER_SPAN): Define.
24305         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
24306
24307 2009-04-02  Ira Rosen  <irar@il.ibm.com>
24308
24309         PR tree-optimization/39595
24310         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
24311         interleaved loads group is not  greater than the SLP group size.
24312
24313 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
24314
24315         * builtins.c (is_builtin_name): New.
24316         (called_as_built_in): Use is_builtin_name.
24317         * tree.h (is_builtin_name): New.
24318         * varasm.c (incorporeal_function_p): Use is_builtin_name
24319
24320 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
24321
24322         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
24323
24324 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
24325
24326         PR c++/26693
24327         * c-decl.c (clone_underlying_type): Move this ...
24328         * c-common.c (set_underlying_type): ... here.
24329         Also, make sure the function properly sets TYPE_STUB_DECL() on
24330         the newly created typedef variant type.
24331         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
24332         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
24333         points.
24334
24335 2009-04-02  Richard Guenther  <rguenther@suse.de>
24336
24337         PR tree-optimization/37221
24338         * tree-flow.h (degenerate_phi_result): Declare.
24339         * tree-ssa-dom.c (degenerate_phi_result): Export.
24340         * tree-scalar-evolution.c (analyze_initial_condition): If
24341         the initial condition is defined by a degenerate PHI node
24342         use the degenerate value.
24343
24344 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
24345
24346         PR rtl-optimization/39588
24347         * combine.c (merge_outer_ops): Do not set the constant when this
24348         is not necessary.
24349         (simplify_shift_const_1): Do not modify it either in this case.
24350
24351 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
24352
24353         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
24354         tuning is deprecated if -mtune value is set to an Itanium1 variant.
24355
24356 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
24357
24358         PR c/29027
24359         * c-lex.c (interpret_float): Default (no suffix) is double.
24360
24361 2009-04-1  Xinliang David Li  <davidxl@google.com>
24362
24363         * config/i386/i386.c (legitimate_constant_p): Recognize
24364         all one vector constant.
24365
24366 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
24367
24368         * config/vax/vax.c: Add #includes to silence warnings.
24369         Change #include order to silence two warnings.
24370
24371 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
24372
24373         * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
24374         (ASM_SPEC): Pass -k to the assembler for PIC code.
24375
24376 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
24377
24378         * config.gcc: Add vax-*-linux* to the switch.
24379         * config/vax/linux.h: New file. (TARGET_VERSION,
24380         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
24381
24382 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
24383
24384         * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
24385         Use predicate macros instead of GET_CODE() == foo.
24386         * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
24387         ashlsi3, rotrsi3, <unnamed>): Likewise.
24388
24389 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
24390
24391         * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
24392         jbbccihi, jbbccisi): Remova trailing whitespace.
24393         * config/vax/constraints.md: Likewise.
24394         * config/vax/elf.h (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
24395         * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
24396         * config/vax/predicates.md: Likewise.
24397         * config/vax/vax.c (print_operand_address, vax_output_int_move,
24398         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
24399         * config/vax/vax.h: Likewise.
24400         * config/vax/vax.md (nonlocal_goto): Likewise.
24401
24402 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
24403
24404         * config/vax/vax.c (vax_float_literal, vax_output_int_move)
24405         (indirectable_address_p, adjacent_operands_p): Add spaces around
24406         braces.
24407         * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
24408
24409 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
24410
24411         * config/vax/vax.c (legitimate_constant_address_p,
24412         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
24413         index_term_p, reg_plus_index_p, legitimate_address_p,
24414         vax_mode_dependent_address_p): Update comments to match functions
24415         modified by the recent int->bool conversion.
24416
24417 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
24418
24419         * config/vax/builtins.md: Update copyright message.
24420         * config/vax/constraints.md: Likewise.
24421         * config/vax/netbsd-elf.h: Likewise.
24422         * config/vax/predicates.md: Likewise.
24423         * config/vax/vax-protos.h: Likewise.
24424         * config/vax/vax.c: Likewise.
24425         * config/vax/vax.h: Likewise.
24426         * config/vax/vax.md: Likewise.
24427         * config/vax/vax.opt: Likewise.
24428
24429 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
24430
24431         * config/vax/builtins.md (ffssi2, ffssi2_internal,
24432         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
24433         * config/vax/constraints.md (B, R): Likewise.
24434         * config/vax/predicates.md (external_memory_operand,
24435         nonimmediate_addsub_di_operand): Likewise.
24436         * config/vax/vax.c (vax_output_int_add): Likewise.
24437         * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
24438         untyped_call): Likewise.
24439
24440 2009-04-01  Matt Thomas  <matt@3am-software.com>
24441
24442         * config/vax/predicates.md: New file.
24443         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
24444         external_const_operand, nonsymbolic_operand, external_memory_operand,
24445         indirect_memory_operand, indexed_memory_operand,
24446         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
24447         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
24448         predicate.
24449         * config/vax/constraints.md: New file.
24450         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
24451         New constraint.
24452         * config/vax/builtins.md: New file.
24453         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
24454         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
24455         jbbccisi): Define.
24456         * config/vax/vax.opt (mqmath): Add option.
24457         * config/vax/vax.md (isfx): Extend with DI.
24458         (VAXintQH, VAXintQHSD): Define.
24459         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
24460         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
24461         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
24462         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
24463         (movdi): Update constraints and use vax_output_int_move().
24464         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
24465         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
24466         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
24467         nonlocal_goto): New.
24468         (mov<mode>): Extend accepted operand types.
24469         (subdi3_old): Rename from subdi3, change update constraints and use
24470         a new implementation.
24471         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
24472         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
24473         MOVE_RATIO, CLEAR_RATIO): Define.
24474         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
24475         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
24476         (PRINT_OPERAND): Redefine using a function instead of inlined code.
24477         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
24478         (split_quadword_operands): Make static and really allow variable
24479         splitting.
24480         (print_operand_address): Update for PIC generation.
24481         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
24482         indexable_address_p, fixup_mathdi_operand,
24483         vax_expand_addsub_di_operands, adjacent_operands_p): New.
24484         (vax_float_literal, legitimate_constant_p,
24485         indirectable_constant_address_p, index_term_p,
24486         reg_plus_index_p): Return bool instead of int.
24487         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
24488         where needed.
24489         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
24490         generation.
24491         (vax_output_conditional_branch): Indent.
24492         (legitimate_constant_address_p, indirectable_constant_address_p,
24493         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
24494         vax_mode_dependent_address_p): Return bool instead of int, update for
24495         PIC generation.
24496         * config/vax/vax-protos.h (legitimate_constant_address_p,
24497         legitimate_constant_p, legitimate_address_p,
24498         vax_mode_dependent_address_p): Change declaration to bool.
24499         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
24500         vax_expand_addsub_di_operands, vax_output_int_subtract,
24501         vax_output_movmemsi): Declare.
24502         (split_quadword_operands, vax_float_literal): Delete declaration.
24503         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
24504         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
24505         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
24506         ASM_OUTPUT_DWARF_PCREL): Define.
24507         (ASM_SPEC): Change definition to allow PIC generation.
24508
24509 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
24510
24511         * doc/sourcebuild.texi: Update front-end requirements.
24512
24513 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
24514
24515         PR target/39226
24516         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
24517         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
24518         (booldi3_internal3): Use boolean_or_operator instead of
24519         boolean_operator.
24520
24521 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
24522
24523         PR c/39605
24524         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
24525         declarator whose size is not an integer constant expression but
24526         folds to an integer constant, then treat it as a constant
24527         subsequently.
24528
24529 2009-04-01  Richard Guenther  <rguenther@suse.de>
24530
24531         * fold-const.c (fold_plusminus_mult_expr): Do not fold
24532         i * 4 + 2 to (i * 2 + 1) * 2.
24533
24534 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
24535
24536         PR c/37772
24537         * c-parser.c (c_parser_asm_statement): Skip until close paren and
24538         return if c_parser_asm_string_literal returned NULL.
24539
24540 2009-04-01  Nick Clifton  <nickc@redhat.com>
24541
24542         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
24543         already defined.
24544         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
24545         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
24546         other typedefs to avoid conflicts with libgcc2.c.  Define labels
24547         to gain 16-bit bit-manipulation functions from libgcc2.c and then
24548         include it.
24549         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
24550         to gain 16-bit trapping arithmetic functions from libgcc2.c and
24551         then include it.
24552
24553 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
24554
24555         * varasm.c (default_function_rodata_section): Declare DOT as
24556         const char*.
24557
24558 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
24559             Andrey Galkin  <agalkin@hypercom.com>
24560
24561         PR/39492
24562         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
24563         Make object_name unique for each process.
24564
24565 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
24566
24567         PR other/39591
24568         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
24569         addressable variables in the parallel that could go out of scope while
24570         running queued tasks.
24571
24572 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
24573
24574         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
24575         (CASE_VALUES_THRESHOLD): Redefine.
24576         * config/avr/avr.c (avr_override_options): Remove initialization of
24577         avr_case_values_threshold variable.
24578         (avr_case_values_threshold): Remove variable. Add new function.
24579         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
24580         * config/avr/avr.opt (mno-tablejump): Remove option.
24581         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
24582
24583 2009-04-01  DJ Delorie  <dj@redhat.com>
24584
24585         * varasm.c (default_function_rodata_section): Don't assume
24586         anything about where the first '.' in the section name is.
24587
24588 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
24589
24590         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
24591         rs6000_emit_stack_tie.
24592
24593 2009-03-31  Ian Lance Taylor  <iant@google.com>
24594
24595         * tree-eh.c (tree_remove_unreachable_handlers): Compare
24596         gimple_code with GIMPLE_RESX, not RESX.
24597
24598 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
24599
24600         * c-common.c (c_get_ident): New.
24601         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
24602
24603 2009-04-01  Ben Elliston  <bje@au.ibm.com>
24604
24605         * config/rs6000/sysv4.opt (msdata): Improve option description.
24606
24607 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
24608
24609         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
24610         (divdf3_internal_lat): Remove.
24611         (divxf3_internal_lat): Remove.
24612         (divxf3_internal_thr): Remove.
24613         (divxf): Use divxf3_internal.
24614         * config/ia64/div.md (divsf3_internal_lat): New.
24615         (divdf3_internal_lat): New.
24616         (divxf3_internal): New.
24617
24618 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
24619
24620         PR c/448
24621         * Makefile.in (USE_GCC_STDINT): Define.
24622         (stmp-int-hdrs): Install stdint.h if applicable.
24623         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
24624         if known.
24625         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
24626         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
24627         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
24628         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
24629         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
24630         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
24631         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
24632         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
24633         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
24634         (c_common_nodes_and_builtins): Initialize
24635         underlying_wchar_type_node.  Do not initialize
24636         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
24637         nodes for new types.
24638         (c_stddef_cpp_builtins): Define macros for new types.
24639         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
24640         Remove.
24641         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
24642         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
24643         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
24644         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
24645         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
24646         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
24647         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
24648         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
24649         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
24650         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
24651         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
24652         int16_type_node, int32_type_node, int64_type_node,
24653         uint8_type_node, uint16_type_node, c_uint32_type_node,
24654         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
24655         int_least32_type_node, int_least64_type_node,
24656         uint_least8_type_node, uint_least16_type_node,
24657         uint_least32_type_node, uint_least64_type_node,
24658         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
24659         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
24660         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
24661         uintptr_type_node): Define.
24662         * c-cppbuiltin.c (builtin_define_constants,
24663         builtin_define_type_minmax): New.
24664         (builtin_define_stdint_macros): Define more macros.
24665         (c_cpp_builtins): Define more limit macros.
24666         (type_suffix): New.
24667         (builtin_define_type_max): Define in terms of
24668         builtin_define_type_minmax.  Remove is_long parameter.  All
24669         callers changed.
24670         * config.gcc (use_gcc_stdint): Define.
24671         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
24672         Add newlib-stdint.h for generic targets.
24673         * config/glibc-stdint.h, config/newlib-stdint.h,
24674         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
24675         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
24676         * config/score/score.h (UINTPTR_TYPE): Define.
24677         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
24678         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
24679         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
24680         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
24681         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
24682         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
24683         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
24684         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
24685         * config/spu/spu.h (STDINT_LONG32): Define.
24686         * configure.ac (use_gcc_stdint): Substitute.
24687         * configure: Regenerate.
24688         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
24689         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
24690         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
24691         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
24692         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
24693         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
24694         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
24695         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
24696         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
24697         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
24698         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
24699         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
24700         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
24701         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
24702         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
24703         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
24704         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
24705         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
24706         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
24707         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
24708         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
24709         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
24710         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
24711         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
24712         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
24713         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
24714         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
24715         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
24716         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
24717
24718 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
24719
24720         * loop-iv.c (suitable_set_for_replacement): Renamed from
24721         simplify_using_assignment; changed to return bool and to accept new
24722         args DEST and SRC.  Return true iff we find a source/destination pair
24723         that can be used to make a replacement, and fill SRC and DEST if so.
24724         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
24725         changed.
24726         (simplify_using_initial_values): Deal with altered regs here and track
24727         more precisely the effect they have on the validity of our expression.
24728
24729         * loop-iv.c (simplify_using_condition): A condition of the form
24730         (EQ REG CONST) can be used to simply make a substitution.
24731         (simplify_using_initial_values): Keep track of conditions we have seen
24732         and keep using them to simplify new expressions, while applying the
24733         same substitutions to them as to the expression.
24734
24735         * simplify-rtx.c (simplify_relational_operation_1): Simplify
24736         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
24737         GEU/LTU reversed.
24738
24739         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
24740         changed.  Use this when trying to improve the upper bound.
24741         Generate the comparison by using simplify_gen_relational.
24742
24743         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
24744
24745         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
24746         functions.
24747         (simplify_using_assignment, simplify_using_initial_values): Call
24748         replace_in_expr to make replacements.  Call replace_single_def_regs
24749         once on the initial version of the expression.
24750
24751 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24752
24753         PR target/27237
24754         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
24755
24756 2009-03-31  Richard Guenther  <rguenther@suse.de>
24757
24758         PR middle-end/31029
24759         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
24760         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
24761
24762 2009-03-31  Richard Guenther  <rguenther@suse.de>
24763
24764         * tree.h (div_if_zero_remainder): Declare.
24765         * fold-const.c (div_if_zero_remainder): Export.
24766         * tree-ssa-forwprop.c
24767         (forward_propagate_addr_into_variable_array_index): Handle
24768         constant array index addition outside of the variable index.
24769
24770 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
24771
24772         PR target/39592
24773         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
24774         define_splits, floatunssi<mode>2): Require x87 conversions from
24775         DImode to be permitted.
24776
24777 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
24778
24779         PR preprocessor/15638
24780         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
24781
24782 2009-03-31  Richard Guenther  <rguenther@suse.de>
24783
24784         PR middle-end/23401
24785         PR middle-end/27810
24786         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
24787         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
24788         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
24789         a separate statement.
24790         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
24791         (lookup_tmp_var): Likewise.
24792         (is_gimple_formal_tmp_or_call_rhs): Remove.
24793         (is_gimple_reg_or_call_rhs): Rename to ...
24794         (is_gimple_reg_rhs_or_call): ... this.
24795         (is_gimple_mem_or_call_rhs): Rename to ...
24796         (is_gimple_mem_rhs_or_call): ... this.
24797         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
24798         DECL_GIMPLE_REG_P only if is_formal is true.
24799         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
24800         for non-proper post-modify expression gimplification.
24801         (gimplify_self_mod_expr): For post-modify expressions gimplify
24802         the lvalue to a minimal lvalue.
24803         (rhs_predicate_for): Remove formal temp case.
24804         (gimplify_modify_expr_rhs): Likewise.
24805         (gimplify_addr_expr): Use is_gimple_reg.
24806         (gimplify_expr): Remove formal temp cases.
24807         (gimple_regimplify_operands): Likewise.
24808         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
24809         and FILTER_EXPR like constants.
24810         * gimple.c (walk_gimple_op): Fix val_only initialization, use
24811         is_gimple_reg.
24812         (is_gimple_formal_tmp_rhs): Remove.
24813         (is_gimple_reg_rhs): Remove special casing.
24814         (is_gimple_mem_rhs): Fix.
24815         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
24816         (is_gimple_formal_tmp_var): Remove.
24817         (is_gimple_formal_tmp_reg): Likewise.
24818         (is_gimple_min_lval): Allow invariant component ref parts.
24819         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
24820         is_gimple_formal_tmp_reg): Remove declarations.
24821         * tree-cfg.c (verify_expr): Verify that variables with address
24822         taken do not have DECL_GIMPLE_REG_P set.
24823         * tree-mudflap.c (mf_build_check_statement_for): Use
24824         force_gimple_operand instead of gimplify_expr.
24825
24826 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
24827
24828         * modulo-sched.c (sms_schedule_by_order): Pass the actual
24829         schedulable rows to compute_split_row.
24830
24831 2009-03-31  Ben Elliston  <bje@au.ibm.com>
24832
24833         PR target/31635
24834         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
24835         OPT_mvrsave.
24836
24837 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
24838
24839         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
24840         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
24841         * configure: Regenerate.
24842         * config.in: Regenerate.
24843         * config/rs6000/rs6000.opt (mtls-markers): Add.
24844         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
24845         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
24846         (tls_ld_aix, tls_ld_sysv): Likewise.
24847         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
24848         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
24849
24850 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
24851
24852         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
24853
24854 2009-03-30  Jan Hubicka  <jh@suse.cz>
24855
24856         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
24857         out of RESX.
24858         (tree_remove_unreachable_handlers): Cleanup EH predecestor
24859         detection and label handling.
24860
24861 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
24862
24863         * ira-int.h (ira_allocno): Rename left_conflicts_num to
24864         left_conflicts_size.
24865         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
24866         ALLOCNO_LEFT_CONFLICTS_SIZE.
24867
24868         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
24869         remove_allocno_from_bucket_and_push,
24870         allocno_spill_priority_compare, push_allocnos_to_stack,
24871         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
24872         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
24873         (setup_allocno_left_conflicts_num): Ditto.  Rename to
24874         setup_allocno_left_conflicts_size.
24875         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
24876         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
24877         setup_allocno_left_conflicts_size instead of
24878         setup_allocno_left_conflicts_num.
24879
24880         * ira-build.c (ira_create_allocno): Use
24881         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
24882         ALLOCNO_LEFT_CONFLICTS_NUM.
24883
24884 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
24885
24886         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
24887         instead of DF_LR_OUT.
24888
24889         * ira-lives.c (process_bb_node_lives): Ditto.
24890
24891         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
24892         instead of DF_LR_{OUT,IN}.
24893
24894         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
24895
24896         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
24897
24898 2009-03-30  Jan Hubicka  <jh@suse.cz>
24899
24900         * except.c (label_to_region_map): Fix thinko.
24901
24902 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
24903
24904         PR middle-end/38237
24905         * tree.h (tree_find_value): New declaration.
24906         * tree.c (tree_find_value): New function.
24907         * varasm.c (assemble_external): Avoid duplicate entries on lists.
24908
24909 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
24910
24911         PR debug/39563
24912         * c-decl.c (struct c_binding): Add locus field.
24913         (bind): Add locus argument, set locus field from it.
24914         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
24915         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
24916         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
24917         implicitly_declare, undeclared_variable, lookup_label,
24918         declare_label, c_make_fname_decl, c_builtin_function,
24919         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
24920         bind callers.
24921
24922 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
24923
24924         PR target/38781
24925         * config/i386/i386.c (classify_argument): Check total size of
24926         structure.
24927
24928 2009-03-30  Martin Jambor  <mjambor@suse.cz>
24929
24930         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
24931         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
24932         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
24933         respectively.
24934
24935         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
24936         seen_variable_array_ref while also traversing a union.
24937
24938         * tree-inline.c (optimize_inline_calls): Do not call
24939         cgraph_node_remove_callees.
24940         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
24941         (pass_remove_cgraph_callee_edges): New variable.
24942         * passes.c (init_optimization_passes): Add
24943         pass_remove_cgraph_callee_edges after early inlining and before all
24944         late intraprocedural passes.
24945
24946         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
24947
24948 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
24949
24950         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
24951         Fix typos in names.
24952
24953 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
24954
24955         * combine.c (simplify_comparison): Use have_insn_for.
24956         * dojump.c (do_jump): Likewise.
24957
24958 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
24959
24960         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
24961         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
24962         sparc_compare_op0 like sparc_compare_emitted used to be handled.
24963         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
24964         instead of sparc_compare_emitted.
24965         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
24966         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
24967         instead of sparc_compare_emitted.
24968
24969 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
24970
24971         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
24972         enter/exit cfglayout mode.
24973         (pass_partition_block): Require it.
24974         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
24975         (combine_instructions): Track basic blocks instead of labels.
24976         (update_cfg_for_uncondjump): New.
24977         (try_combine): Use it.  Update jumps after rescanning.
24978         (pass_combine): Require PROP_cfglayout.
24979         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
24980
24981 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
24982
24983         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
24984         Provide/destroy PROP_cfglayout respectively.
24985         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
24986         * tree-pass.h (PROP_cfglayout): New.
24987
24988 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
24989
24990         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
24991         fold_convert_const_fixed_from_fixed,
24992         fold_convert_const_fixed_from_int,
24993         fold_convert_const_fixed_from_real, fold_negate_const): Do not
24994         set TREE_CONSTANT_OVERFLOW.
24995         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
24996         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
24997
24998 2009-03-30  Ira Rosen  <irar@il.ibm.com>
24999
25000         * tree-vect-loop-manip.c: New file.
25001         * tree-vectorizer.c: Update documentation and included files.
25002         (vect_loop_location): Make extern.
25003         (rename_use_op): Move to tree-vect-loop-manip.c
25004         (rename_variables_in_bb, rename_variables_in_loop,
25005         slpeel_update_phis_for_duplicate_loop,
25006         slpeel_update_phi_nodes_for_guard1,
25007         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
25008         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
25009         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
25010         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
25011         find_loop_location): Likewise.
25012         (new_stmt_vec_info): Move to tree-vect-stmts.c.
25013         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
25014         get_vectype_for_scalar_type, vect_is_simple_use,
25015         supportable_widening_operation, supportable_narrowing_operation):
25016         Likewise.
25017         (bb_in_loop_p): Move to tree-vect-loop.c.
25018         (new_loop_vec_info, destroy_loop_vec_info,
25019         reduction_code_for_scalar_code, report_vect_op,
25020         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
25021         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
25022         (vect_supportable_dr_alignment): Likewise.
25023         * tree-vectorizer.h (tree-data-ref.h): Include.
25024         (vect_loop_location): Declare.
25025         Reorganize function declarations according to the new file structure.
25026         * tree-vect-loop.c: New file.
25027         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
25028         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
25029         * tree-vect-data-refs.c: New file.
25030         * tree-vect-patterns.c (timevar.h): Don't include.
25031         * tree-vect-stmts.c: New file.
25032         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
25033         tree-vect-slp.c, tree-vect-loop.c.
25034         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
25035         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
25036         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
25037         (tree-vect-analyze.o): Remove.
25038         (tree-vect-transform.o): Likewise.
25039         (tree-vect-data-refs.o): Add rule.
25040         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
25041         tree-vect-slp.o): Likewise.
25042         (tree-vect-patterns.o): Remove redundant dependencies.
25043         (tree-vectorizer.o): Likewise.
25044         * tree-vect-slp.c: New file.
25045
25046 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25047
25048         * optc-gen.awk: Warn if an option flag has multiple different
25049         help strings.
25050
25051 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
25052
25053         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
25054         -floop-block): Document dependences on PPL, CLooG and Graphite.
25055
25056 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
25057
25058         PR rtl-optimization/323
25059         * c-common.c (c_fully_fold, convert_and_check,
25060         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
25061         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
25062         * c-common.def (EXCESS_PRECISION_EXPR): New.
25063         * c-cppbuiltin.c (builtin_define_float_constants): Define
25064         constants with enough digits for long double.
25065         * c-lex.c (interpret_float): Interpret constant with excess
25066         precision where appropriate.
25067         * c-opts.c (c_common_post_options): Set
25068         flag_excess_precision_cmdline.  Give an error for
25069         -fexcess-precision=standard for C++ for processors where the
25070         option is significant.
25071         * c-parser.c (c_parser_conditional_expression): Handle excess
25072         precision in condition.
25073         * c-typeck.c (convert_arguments): Handle arguments with excess
25074         precision.
25075         (build_unary_op): Move excess precision outside operation.
25076         (build_conditional_expr): Likewise.
25077         (build_compound_expr): Likewise.
25078         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
25079         (build_modify_expr): Handle excess precision in RHS.
25080         (convert_for_assignment): Handle excess precision in converted
25081         value.
25082         (digest_init, output_init_element, process_init_element): Handle
25083         excess precision in initializer.
25084         (c_finish_return): Handle excess precision in return value.
25085         (build_binary_op): Handle excess precision in operands and add
25086         excess precision as needed for operation.
25087         * common.opt (-fexcess-precision=): New option.
25088         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
25089         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
25090         For standard excess precision, output explicit conversion to and
25091         truncation from XFmode.
25092         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
25093         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
25094         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
25095         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
25096         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
25097         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
25098         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
25099         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
25100         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
25101         define_splits, sqrt<mode>2): Disable where appropriate for
25102         standard excess precision.
25103         * convert.c (convert_to_real): Do not shorten arithmetic to type
25104         for which excess precision would be used.
25105         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
25106         * doc/invoke.texi (-fexcess-precision=): Document option.
25107         (-mfpmath=): Correct index entry.
25108         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
25109         flag_excess_precision): New.
25110         * langhooks.c (lhd_post_options): Set
25111         flag_excess_precision_cmdline.
25112         * opts.c (common_handle_option): Handle -fexcess-precision=.
25113         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
25114         init_excess_precision): New.
25115         (lang_dependent_init_target): Call init_excess_precision.
25116         * tree.c (excess_precision_type): New.
25117         * tree.h (excess_precision_type): Declare.
25118
25119 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
25120
25121         PR c/35235
25122         * c-typeck.c (build_component_ref): Do not copy qualifiers from
25123         non-lvalue to component.
25124
25125 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
25126
25127         PR preprocessor/34695
25128         * Makefile.in (c-opts.o): Depend on c-tree.h.
25129         * c-common.c: Move down include of diagnostic.h.
25130         (done_lexing, c_cpp_error): New.
25131         * c-common.h (done_lexing): Declare.
25132         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
25133         (parse_in).
25134         * c-opts.c: Include c-tree.h.
25135         (c_common_init_options): Set preprocessor error callback.
25136         (c_common_handle_option): Do not set preprocessor
25137         inhibit_warnings, warnings_are_errors, warn_system_headers,
25138         pedantic_errors or inhibit_warnings flags.
25139         (c_common_post_options): Do not check cpp_errors (parse_in).
25140         (c_common_finish): Do not output dependencies if there were
25141         errors.  Do not check return value of cpp_finish.
25142         * c-ppoutput.c (pp_file_change): Set input_location.
25143         * c-tree.h (c_cpp_error): Declare.
25144         * diagnostic.c (diagnostic_set_info_translated): Also initialize
25145         override_column.
25146         (diagnostic_build_prefix): Check override_column.
25147         * diagnostic.h (diagnostic_info): Add override_column field.
25148         (diagnostic_override_column): Define.
25149
25150 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
25151
25152         * c-common.c (c_expand_expr, c_staticp): Remove.
25153         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
25154         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
25155         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
25156         * c-gimplify.c (gimplify_compound_literal_expr,
25157         optimize_compound_literals_in_ctor): Remove.
25158         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
25159         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
25160         * c-semantics.c (emit_local_var): Remove.
25161
25162         * langhooks-def.h (lhd_expand_expr): Remove.
25163         * langhooks.c (lhd_expand_expr): Remove.
25164         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
25165
25166         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
25167         handling from c-semantics.c; don't call into langhook.
25168         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
25169         * gimplify.c (gimplify_compound_literal_expr,
25170         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
25171         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
25172         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
25173         as was done in c-gimplify.c.
25174         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
25175         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
25176         Move from c-common.h.
25177         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
25178
25179         * tree.c (staticp): Do not call langhook.
25180         * langhooks.c (lhd_staticp): Delete.
25181         * langhooks-def.h (lhd_staticp): Delete prototype.
25182         (LANG_HOOKS_STATICP): Delete.
25183         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
25184
25185         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
25186         instead of DECL_STMTs.
25187
25188 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
25189
25190         PR c/456
25191         PR c/5675
25192         PR c/19976
25193         PR c/29116
25194         PR c/31871
25195         PR c/35198
25196         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
25197         void_type_node.
25198         (fold_call_expr): Return a NOP_EXPR from folding rather than the
25199         contained expression.
25200         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
25201         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
25202         conditional expressions for C.
25203         (decl_constant_value_for_optimization): Move from
25204         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
25205         whether optimizing and that the expression is a VAR_DECL not of
25206         array type instead of doing such checks in the caller.  Do not
25207         check pedantic.  Call gcc_unreachable for C++.
25208         * c-common.def (C_MAYBE_CONST_EXPR): New.
25209         * c-common.h (c_fully_fold, c_save_expr,
25210         decl_constant_value_for_optimization): New prototypes.
25211         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
25212         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
25213         EXPR_INT_CONST_OPERANDS): Define.
25214         * c-convert.c (convert): Strip nops from expression.
25215         * c-decl.c (groktypename): Take extra parameters expr and
25216         expr_const_operands.  Update call to grokdeclarator.
25217         (start_decl): Update call to grokdeclarator.  Add statement for
25218         expressions used in type of decl.
25219         (grokparm): Update call to grokdeclarator.
25220         (push_parm_decl): Update call to grokdeclarator.
25221         (build_compound_literal): Add parameter non_const and build a
25222         C_MAYBE_COSNT_EXPR if applicable.
25223         (grokdeclarator): Take extra parameters expr and
25224         expr_const_operands.  Track expressions used in declaration
25225         specifiers and declarators.  Fold array sizes and track whether
25226         they are constant expressions and whether they are integer
25227         constant expressions.
25228         (parser_xref_tag): Set expr and expr_const_operands fields in
25229         return value.
25230         (grokfield): Update call to grokdeclarator.
25231         (start_function): Update call to grokdeclarator.
25232         (build_null_declspecs): Set expr and expr_const_operands fields in
25233         return value.
25234         (declspecs_add_type): Handle expressions in typeof specifiers.
25235         * c-parser.c (c_parser_declspecs): Set expr and
25236         expr_const_operands fields for declaration specifiers.
25237         (c_parser_enum_specifier): Likewise.
25238         (c_parser_struct_or_union_specifier): Likewise.
25239         (c_parser_typeof_specifier): Likewise.  Update call to
25240         groktypename.  Fold expression as needed.  Return expressions with
25241         type instead of adding statements.
25242         (c_parser_attributes): Update calls to c_parser_expr_list.
25243         (c_parser_statement_after_labels): Fold expression before passing
25244         to objc_build_throw_stmt.
25245         (c_parser_condition): Fold expression.
25246         (c_parser_asm_operands): Fold expression.
25247         (c_parser_conditional_expression): Use c_save_expr.  Update call
25248         to build_conditional_expr.
25249         (c_parser_alignof_expression): Update call to groktypename.
25250         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
25251         original_code.  Fold expression argument of va_arg.  Create
25252         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
25253         argument to va_arg.  Update calls to groktypename.  Fold array
25254         index for offsetof.  Verify that first argument to
25255         __builtin_choose_expr has integer type.
25256         (c_parser_postfix_expression_after_paren_type): Update calls to
25257         groktypename and build_compound_literal.  Handle expressions with
25258         side effects in type name.
25259         (c_parser_postfix_expression_after_primary): Update call to
25260         c_parser_expr_list.  Set original_code for calls to
25261         __builtin_constant_p.
25262         (c_parser_expr_list): Take extra parameter fold_p.  Fold
25263         expressions if requested.
25264         (c_parser_objc_type_name): Update call to groktypename.
25265         (c_parser_objc_synchronized_statement): Fold expression.
25266         (c_parser_objc_receiver): Fold expression.
25267         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
25268         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
25269         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
25270         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
25271         (struct c_typespec): Add elements expr and expr_const_operands.
25272         (struct c_declspecs): Add elements expr and expr_const_operands.
25273         (groktypename, build_conditional_expr, build_compound_literal):
25274         Update prototypes.
25275         (in_late_binary_op): Declare.
25276         * c-typeck.c (note_integer_operands): New function.
25277         (in_late_binary_op): New variable.
25278         (decl_constant_value_for_broken_optimization): Move to c-common.c
25279         and rename to decl_constant_value_for_optimization.
25280         (default_function_array_conversion): Do not strip nops.
25281         (default_conversion): Do not call
25282         decl_constant_value_for_broken_optimization.
25283         (build_array_ref): Do not fold result.
25284         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
25285         result when operand is a VLA.
25286         (c_expr_sizeof_type): Update call to groktypename.  Handle
25287         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
25288         result when operand names a VLA type.
25289         (build_function_call): Update call to build_compound_literal.
25290         Only fold result for calls to __builtin_* functions.  Strip
25291         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
25292         the function designator.
25293         (convert_arguments): Fold arguments.  Update call to
25294         convert_for_assignment.
25295         (build_unary_op): Handle increment and decrement of
25296         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
25297         decrement earlier.  Fold operand of increment and decrement.
25298         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
25299         built for integer operand.  Wrap returns that are INTEGER_CSTs
25300         without being integer constant expressions or that have integer
25301         constant operands without being INTEGER_CSTs.
25302         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
25303         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
25304         result is an integer constant expression or can be used in
25305         unevaluated parts of one and avoid folding and wrap as
25306         appropriate.  Fold operands before possibly doing -Wsign-compare
25307         warnings.
25308         (build_compound_expr): Wrap result for C99 if operands can be used
25309         in integer constant expressions.
25310         (build_c_cast): Update call to digest_init.  Do not ignore
25311         overflow from casting floating-point constants to integers.  Wrap
25312         results that could be confused with integer constant expressions,
25313         null pointer constants or floating-point constants.
25314         (c_cast_expr): Update call to groktypename.  Handle expressions
25315         included in type name.
25316         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
25317         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
25318         Update calls to convert_for_assignment.
25319         (convert_for_assignment): Take new parameter
25320         null_pointer_constant.  Do not strip nops or call
25321         decl_constant_value_for_broken_optimization.  Set
25322         in_late_binary_op for conversions to boolean.
25323         (store_init_value): Update call to digest_init.
25324         (digest_init): Take new parameter null_pointer_constant.  Do not
25325         call decl_constant_value_for_broken_optimization.  pedwarn for
25326         initializers not constant expressions.  Update calls to
25327         convert_for_assignment.
25328         (constructor_nonconst): New.
25329         (struct constructor_stack): Add nonconst element.
25330         (really_start_incremental_init, push_init_level, pop_init_level):
25331         Handle constructor_nonconst and nonconst element.
25332         (set_init_index): Call constant_expression_warning for array
25333         designators.
25334         (output_init_element): Fold value.  Set constructor_nonconst as
25335         applicable.  pedwarn for initializers not constant expressions.
25336         Update call to digest_init.  Call constant_expression_warning
25337         where constant initializers are required.
25338         (process_init_element): Use c_save_expr.
25339         (c_finish_goto_ptr): Fold expression.
25340         (c_finish_return): Fold return value.  Update call to
25341         convert_for_assignment.
25342         (c_start_case): Fold switch expression.
25343         (c_process_expr_stmt): Fold expression.
25344         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
25345         ensure statement expression is not evaluated in constant expression.
25346         (build_binary_op): Track whether results are integer constant
25347         expressions or may occur in such, disable folding and wrap results
25348         as applicable.  Fold operands for -Wsign-compare warnings unless
25349         in_late_binary_op.
25350         (c_objc_common_truthvalue_conversion): Handle results folded to
25351         integer constants that are not integer constant expressions.
25352         * doc/extend.texi: Document when typeof operands are evaluated,
25353         that condition of __builtin_choose_expr is an integer constant
25354         expression, and more about use of __builtin_constant_p in
25355         initializers.
25356
25357 2009-03-29  Richard Guenther  <rguenther@suse.de>
25358
25359         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
25360         propagate addresses of array references.
25361
25362 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
25363
25364         * regmove.c (perhaps_ends_bb_p): Remove.
25365         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
25366         from INSN and check that the main loop stays within that basic block.
25367         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
25368         (regmove_forward_pass): Split out from regmove_optimize.  Use
25369         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
25370         (regmove_backward_pass): Split out from regmove_optimize.  Use
25371         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
25372         (regmove_optimize): Simplify.
25373
25374 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
25375
25376         PR target/39545
25377         * config/i386/i386.c (classify_argument): Ignore flexible array
25378         member in struct and warn ABI change.
25379
25380 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
25381
25382         * config/i386/i386-protos.h (ix86_agi_dependent): New.
25383
25384         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
25385         (ix86_adjust_cost): Updated.
25386
25387 2009-03-29  Jan Hubicka  <jh@suse.cz>
25388
25389         PR middle-end/28850
25390         * tree-pass.h (pass_cleanup_eh): New function.
25391         (remove_unreachable_regions): Break code handling RTL
25392         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
25393         that can not be reached by runtime.
25394         (can_be_reached_by_runtime): New function.
25395         (label_to_region_map): New function.
25396         (num_eh_regions): New function.
25397         (rtl_remove_unreachable_regions): New function.
25398         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
25399         (remove_eh_region): New function.
25400         * except.h: Include sbitmap and vecprim.
25401         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
25402         num_eh_regions): Declare.
25403         * passes.c (init_optimization_passes): Schedule cleanup_eh.
25404         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
25405         * tree-eh.c (tree_remove_unreachable_handlers): New function.
25406         (tree_empty_eh_handler_p): New function.
25407         (cleanup_empty_eh): New function.
25408         (cleanup_eh): New function.
25409         (pass_cleanup_eh): New function.
25410
25411 2009-03-29  Jan Hubicka  <jh@suse.cz>
25412
25413         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
25414         for removed regions.
25415
25416 2009-03-29  Jan Hubicka  <jh@suse.cz>
25417
25418         * except.c (dump_eh_tree): Dump all datastructures.
25419
25420 2009-03-29  Jan Hubicka  <jh@suse.cz>
25421
25422         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
25423         (duplicate_eh_regions_1): Likewise.
25424         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
25425         vector; call EH verification.
25426         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
25427         Be ready for region being removed.
25428
25429 2009-03-29  Jan Hubicka  <jh@suse.cz>
25430
25431         * bitmap.c (bitmap_last_set_bit): New function.
25432         * bitmap.h (bitmap_last_set_bit): Declare.
25433
25434 2009-03-29  David Ayers  <ayers@fsfe.org>
25435
25436         PR objc/27377
25437         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
25438         by calling objc_compare_types and surpress warnings about
25439         incompatible C pointers that are compatible ObjC pointers.
25440
25441 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
25442
25443         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
25444         call initialize_inline_failed.
25445         (initialize_inline_failed): Move it from here ...
25446         * cgraph.c (initialize_inline_failed): ... to here.
25447         (cgraph_create_edge): Call initialize_inline_failed rather than
25448         setting inline_failed directly.
25449
25450 2009-03-29  Ben Elliston  <bje@au.ibm.com>
25451
25452         PR target/32542
25453         * sysv4.opt (msdata): Improve comment.
25454         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
25455         * sysv4.h (SVR4_ASM_SPEC): Likewise.
25456
25457 2009-03-29  Ben Elliston  <bje@au.ibm.com>
25458
25459         PR target/30451
25460         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
25461         load and store attributes.
25462
25463 2009-03-29  Ben Elliston  <bje@au.ibm.com>
25464
25465         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
25466         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
25467         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
25468         * doc/extend.texi (X86 Built-in Functions): Add index entries for
25469         __builtin_infq and __builtin_huge_valq.
25470
25471 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
25472
25473         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
25474         atmega8m1 devices.
25475         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
25476         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
25477
25478 2009-03-28  Xinliang David Li  <davidxl@google.com>
25479
25480         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
25481         (do_dbg_cnt): New function.
25482
25483 2009-03-28  Jan Hubicka  <jh@suse.cz>
25484
25485         Merge from pretty-ipa:
25486
25487         2009-03-27  Jan Hubicka  <jh@suse.cz>
25488
25489         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
25490         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
25491         * passes.c (function_called_by_processed_nodes_p): New.
25492         * ipa-pure-const.c (check_call): Fix handling of operands.
25493         (analyze_function): Dump debug output for skipped bodies.
25494         (local_pure_const): Use function_called_by_processed_nodes_p.
25495         * dwarf2out.c (reference_to_unused): Use output.
25496         * passes.c (do_per_function_toporder): Likewise.
25497
25498         2008-11-12  Jan Hubicka  <jh@suse.cz>
25499
25500         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
25501         * ipa-pure-const.c (funct_state_d): Add can throw field; make
25502         state_set_in_source enum
25503         (check_decl): Ignore memory tags; do not set fake looping flags;
25504         dump diagnostics.
25505         (check_operand, check_tree, check_rhs_var, check_lhs_var,
25506         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
25507         (check_call, analyze_function): Rewrite.
25508         (check_stmt): New.
25509         (add_new_function): Update call of analyze_function.
25510         (generate_summary): Add call of analyze_function.
25511         (propagate): Propagate can_throw; handle state_set_in_source correctly.
25512         (local_pure_const): New function.
25513         (pass_local_pure_const): New pass.
25514         * ipa-inline.c (inline_transform): Set after_inlining.
25515         * tree-eh.c (stmt_can_throw_external): New.
25516         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
25517         work with aliasing built.
25518         * tree-flow.h (stmt_can_throw_external): New.
25519         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
25520         and local pure/const pass in early and late optimization queue.
25521
25522 2009-03-28  Martin Jambor  <mjambor@suse.cz>
25523
25524         * fold-const.c (get_pointer_modulus_and_residue): New parameter
25525         allow_func_align.
25526         (fold_binary): Allow function decl aligment consideration is the
25527         second argument is integer constant one.
25528         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
25529         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
25530         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
25531
25532 2009-03-28  Jan Hubicka  <jh@suse.cz>
25533
25534         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
25535         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
25536         * function.h (rtl_data): Add nothrow flag.
25537         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
25538         set DECL_NOTHROW for AVAILABLE functions.
25539
25540 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
25541
25542         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
25543         following vector keyword has expansion starting with pixel or bool
25544         keyword, expand vector to __vector and pixel or bool to __pixel or
25545         __bool.
25546
25547         PR c++/39554
25548         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
25549         warn_if_disallowed_function_p): Removed.
25550         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
25551         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
25552         warning_if_disallowed_function_p.
25553         * flags.h (warn_if_disallowed_function_p,
25554         warn_disallowed_functions): Removed.
25555         * common.opt (Wdisallowed-function-list=): Removed.
25556         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
25557
25558 2009-03-28  Richard Guenther  <rguenther@suse.de>
25559
25560         PR tree-optimization/38723
25561         * tree-ssa-pre.c (compute_avail): Add all default definitions to
25562         the entry block.
25563
25564 2009-03-28  Jan Hubicka  <jh@suse.cz>
25565
25566         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
25567         test introduced by my previous patch.
25568
25569 2009-03-28  Richard Guenther  <rguenther@suse.de>
25570
25571         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
25572         the PHIs value undefined.
25573
25574 2009-03-28  Jan Hubicka  <jh@suse.cz>
25575
25576         * tree-pass.h (pass_fixup_cfg): New pass.
25577         * ipa-inline.c (inline_transform): Set
25578         always_inline_functions_inlined/after_inlining.
25579         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
25580         (pass_fixup_cfg): New pass.
25581         * passes.c (init_optimization_passes): Add fixup_cfg.
25582
25583 2009-03-28  Richard Guenther  <rguenther@suse.de>
25584
25585         PR tree-optimization/38458
25586         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
25587         argument use the arguments copy-of value.
25588
25589 2009-03-28  Richard Guenther  <rguenther@suse.de>
25590
25591         PR tree-optimization/38180
25592         * tree-ssa-ccp.c (get_default_value): Simplify.
25593         (likely_value): Likewise.
25594         (surely_varying_stmt_p): Properly handle VOP case.
25595         (ccp_initialize): Likewise.
25596         (ccp_fold): Handle propagating through *&.
25597         (fold_const_aggregate_ref): Also handle decls.
25598
25599 2009-03-28  Jan Hubicka  <jh@suse.cz>
25600
25601         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
25602         * cgraph.h (cgraph_node): Likewise.
25603         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
25604         (cgraph_reset_node): Use process flag.
25605         (cgraph_mark_functions_to_output): Likewise.
25606         (cgraph_expand_function): Likewise.
25607         (cgraph_expand_all_functions): Likewise.
25608         (cgraph_output_in_order): Likewise.
25609         * dwarf2out.c (reference_to_unused): Likewise.
25610         * passes.c do_per_function_toporder): Likewise.
25611
25612 2009-03-28  Jan Hubicka  <jh@suse.cz>
25613
25614         Bring from lto-branch:
25615
25616         2008-09-03  Doug Kwan  <dougkwan@google.com>
25617
25618         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
25619         enums instead of reason strings.
25620         * cgraph.c (cgraph_create_edge): Same.
25621         (cgraph_inline_failed_string): New function.
25622         * cgraph.h (cgraph_inline_failed_t): New enum type.
25623         (cgraph_inline_failed_string): New prototype.
25624         (struct cgraph_edge): Change type of INLINED_FAILED from constant
25625         char pointer to cgraph_inline_failed_t.
25626         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
25627         (cgraph_default_inline_p): Ditto.
25628         * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
25629         to cgraph_inline_failed_t pointer.
25630         * cif-code.def: New file.
25631         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
25632         reason string.
25633         (cgraph_check_inline_limits): Change type of REASON to pointer to
25634         cgraph_inline_failed_t.  Replace reason strings with enums.
25635         (cgraph_default_inline_p): Ditto.
25636         (cgraph_recursive_inlining_p): Ditto.
25637         (update_caller_keys): Change type of FAILED_REASON to
25638         cgraph_inline_failed_t.
25639         (cgraph_set_inline_failed): Change type of REASON to pointer to
25640         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
25641         convert enums to strings for text output.
25642         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
25643         to be of type cgraph_inline_failed_t.  Replace reason strings with
25644         enums.  Call cgraph_inline_failed_string to covert enums
25645         to strings for text output.
25646         (cgraph_decide_inlining): Replace reason strings with enums.
25647         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
25648         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
25649         for text output.
25650         * tree-inline.c (expand_call_inline): Change type of REASON
25651         to cgraph_inline_failed_t.  Replace reason strings with enums.
25652         Call cgraph_inline_failed_string for text output.
25653         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
25654         (cgraph.o): Ditto.
25655
25656 2009-03-28  Jan Hubicka  <jh@suse.cz>
25657
25658         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
25659         cgraph_clone_node): Remove master clone handling.
25660         (cgraph_is_master_clone, cgraph_master_clone): Remove.
25661         * cgraph.h (master_clone): Remove.
25662         (cgraph_is_master_clone, cgraph_master_clone): Remove.
25663         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
25664         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
25665
25666 2009-03-28  Jan Hubicka  <jh@suse.cz>
25667
25668         * cgraph.c (cgraph_function_body_availability): Functions declared
25669         inline are always safe to assume that it is not going to be replaced.
25670
25671 2009-03-28  Richard Guenther  <rguenther@suse.de>
25672
25673         PR tree-optimization/38513
25674         * tree-ssa-pre.c (eliminate): Remove redundant stores.
25675         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
25676         EXC_PTR_EXPR and FILTER_EXPR.
25677         (get_ref_from_reference_ops): Likewise.
25678
25679 2009-03-28  Richard Guenther  <rguenther@suse.de>
25680
25681         PR tree-optimization/38968
25682         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
25683         Use FLOOR_MOD_EXPR to compute misalignment.
25684
25685 2009-03-28  Richard Guenther  <rguenther@suse.de>
25686
25687         PR tree-optimization/37795
25688         * tree.h (combine_comparisons): Declare.
25689         * fold-const.c (combine_comparisons): Export.
25690         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
25691         comparisons.
25692         (ifcombine_iforif): Use combine_comparisons.
25693
25694 2009-03-28  Jan Hubicka  <jh@suse.cz>
25695
25696         * tree-eh.c (inlinable_call_p): New function.
25697         (make_eh_edges): Use it.
25698         (verify_eh_edges): Use it.
25699         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
25700         * except.c (reachable_next_level): Add inlinable_function argument
25701         (sjlj_find_directly_reachable_regions): Update.
25702         (add_reachable_handler): Do not set saw_any_handlers.
25703         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
25704         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
25705         Add new inlinable call parameter.
25706         (can_throw_internal, can_throw_external): Update.
25707         * except.h (can_throw_internal_1, can_throw_external_1,
25708         foreach_reachable_handler): Update declaration.
25709
25710 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
25711
25712         * config/arm/t-arm-coff, config/h8300/coff.h,
25713         config/i386/i386-aout.h, config/i386/i386-coff.h,
25714         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
25715         config/pdp11/2bsd.h, config/rs6000/aix41.h,
25716         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
25717         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
25718         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
25719         sys-types.h: Remove.
25720         * Makefile.in: Remove protoize and fixproto support and references
25721         in comments.
25722         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
25723         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
25724         Remove.
25725         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
25726         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
25727         unprotoize$(exeext).
25728         (rest.encap): Don't depend on $(STMP_FIXPROTO)
25729         (.PHONY): Don't depend on proto.
25730         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
25731         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
25732         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
25733         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
25734         build/gen-protos.o, build/scan.o, xsys-protos.h,
25735         build/fix-header$(build_exeext), build/fix-header.o,
25736         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
25737         stmp-install-fixproto): Remove.
25738         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
25739         SYSCALLS.c or fixproto files.
25740         (install-common): Don't install protoize.
25741         (install-headers-tar, install-headers-cpio, install-headers-cp):
25742         Don't depend on $(STMP_FIXPROTO).
25743         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
25744         install fixproto files or write out fixproto settings.
25745         (uninstall): Don't uninstall protoize.
25746         * config.gcc (use_fixproto): Remove.
25747         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
25748         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
25749         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
25750         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
25751         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
25752         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
25753         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
25754         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
25755         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
25756         * config/t-vxworks (STMP_FIXPROTO): Remove.
25757         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
25758         STMP_FIXPROTO): Remove.
25759         * config.in, configure: Regenerate.
25760         * crtstuff.c (gid_t, uid_t): Don't undefine.
25761         * doc/install.texi: Change m68k-coff to m68k-elf in example.
25762         (arm-*-coff, arm-*-aout: Remove target entries.
25763         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
25764         Remove mention of AIX 4.1.
25765         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
25766         * doc/invoke.texi (Running Protoize): Remove.
25767         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
25768         (Protoize Caveats): Remove.
25769         * tsystem.h: Update comments on headers assumed to exist.
25770
25771 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
25772
25773         * genautomata.c: Add a new year to the copyright.  Add a new
25774         reference.
25775         (struct insn_reserv_decl): Add comments for member bypass_list.
25776         (find_bypass): Remove.
25777         (insert_bypass): New.
25778         (process_decls): Use insert_bypass.
25779         (output_internal_insn_latency_func): Output all bypasses with the
25780         same input insn in one switch case.
25781
25782         * rtl.def (define_bypass): Describe bypass choice.
25783         * doc/md.texi (define_bypass): Ditto.
25784
25785 2009-03-27  Richard Guenther  <rguenther@suse.de>
25786
25787         * gimplify.c (mark_addressable): Export.
25788         * tree-flow.h (mark_addressable): Declare.
25789         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
25790         * tree-ssa.c (verify_phi_args): Verify that address taken
25791         variables have TREE_ADDRESSABLE set.
25792
25793 2009-03-27  Richard Guenther  <rguenther@suse.de>
25794
25795         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
25796         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
25797         Do not mark decls TREE_ADDRESSABLE.
25798         (build_fold_addr_expr): Adjust.
25799         (fold_addr_expr): Remove.
25800         (fold_unary): Use build_fold_addr_expr.
25801         (fold_comparison): Likewise.
25802         (split_address_to_core_and_offset): Likewise.
25803         * coverage.c (tree_coverage_counter_addr): Mark the array decl
25804         TREE_ADDRESSABLE.
25805         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
25806         (gimplify_modify_expr_to_memcpy): Mark source and destination
25807         addressable.
25808         * omp-low.c (create_omp_child_function): Mark the object decl
25809         TREE_ADDRESSABLE.
25810         (lower_rec_input_clauses): Mark the var we take the address of
25811         TREE_ADDRESSABLE.
25812         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
25813
25814 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25815
25816         PR middle-end/39315
25817         * cfgexpand.c (expand_one_stack_var_at): Change alignment
25818         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
25819
25820 2009-03-27  Richard Guenther  <rguenther@suse.de>
25821
25822         PR tree-optimization/39120
25823         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
25824         constraints.
25825         (handle_lhs_call): Process return constraints.  Add escape
25826         constraints if necessary.
25827         (handle_const_call): Fill out return constraints.  Make nested
25828         case more precise.  Avoid consttmp if possible.
25829         (handle_pure_call): Fill out return constraints.  Avoid
25830         callused if possible.
25831         (find_func_aliases): Simplify call handling.
25832
25833 2009-03-27  Richard Guenther  <rguenther@suse.de>
25834
25835         PR tree-optimization/39120
25836         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
25837         as a representative.
25838         (solve_graph): Do propagate CALLUSED.
25839         (handle_pure_call): Use a scalar constraint from CALLUSED for
25840         the return value.
25841         (find_what_p_points_to): CALLUSED shall not appear in poins-to
25842         solutions.
25843
25844 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25845
25846         PR c/39323
25847         * c-common.c (handle_aligned_attribute): Properly check alignment
25848         overflow.  Use (1U << i) instead of (1 << i).
25849
25850         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
25851
25852         * expr.h (get_mem_align_offset): Updated.
25853
25854         * tree.h (tree_decl_common): Change align to "unsigned int" and
25855         move it before pointer_alias_set.
25856
25857 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25858             Jakub Jelinek  <jakub@redhat.com>
25859
25860         PR target/38034
25861         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
25862         gr_register_operand with gr_reg_or_0_operand.
25863         (cmpxchg_rel_di): Likewise.
25864         (sync_lock_test_and_set<mode>): Likewise.
25865
25866 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25867
25868         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
25869         (true_regnum): Likewise.
25870
25871         * rtlanal.c (subreg_info): Moved to ...
25872         * rtl.h (subreg_info): Here.  New.
25873         (subreg_get_info): New.
25874
25875         * rtlanal.c (subreg_get_info): Make it extern.
25876
25877 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25878
25879         PR target/39472
25880         * config/i386/i386.c (ix86_abi): New.
25881         (override_options): Handle -mabi=.
25882         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
25883         (ix86_call_abi_override): Likewise.
25884         (init_cumulative_args): Likewise.
25885         (function_arg_advance): Likewise.
25886         (function_arg_64): Likewise.
25887         (function_arg): Likewise.
25888         (ix86_pass_by_reference): Likewise.
25889         (ix86_function_value_regno_p): Likewise.
25890         (ix86_build_builtin_va_list_abi): Likewise.
25891         (setup_incoming_varargs_64): Likewise.
25892         (is_va_list_char_pointer): Likewise.
25893         (ix86_init_machine_status): Likewise.
25894         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
25895         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
25896         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
25897         (ix86_function_abi): Make it static and return enum calling_abi.
25898         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
25899         with ix86_abi.
25900         (ix86_fn_abi_va_list): Updated.
25901
25902         * config/i386/i386.h (ix86_abi): New.
25903         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
25904         (CONDITIONAL_REGISTER_USAGE): Likewise.
25905         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
25906         (machine_function): Likewise.
25907
25908         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
25909         with ix86_abi.
25910         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
25911         (STACK_BOUNDARY): Likewise.
25912         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
25913
25914         * config/i386/i386.opt (mabi=): New.
25915
25916         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
25917         return enum calling_abi.
25918         (ix86_function_type_abi): Likewise.
25919         (ix86_function_abi): Removed.
25920
25921         * doc/invoke.texi: Document -mabi= option for x86.
25922
25923 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
25924
25925         * builtins.c (real_dconstp): Delete.
25926         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
25927
25928 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
25929             Jakub Jelinek  <jakub@redhat.com>
25930
25931         PR debug/37959
25932         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
25933         (gen_subprogram_die): When a function is explicit, generate the
25934         DW_AT_explicit attribute.
25935         * langhooks.h (struct lang_hooks_for_decls): Add
25936         function_decl_explicit_p langhook.
25937         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
25938         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
25939
25940 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
25941
25942         * builtins.c (fold_builtin_memory_op): Optimize memmove
25943         into memcpy if we can prove source and destination don't overlap.
25944
25945         * tree-inline.c: Include gt-tree-inline.h.
25946         (clone_fn_id_num): New variable.
25947         (clone_function_name): New function.
25948         (tree_function_versioning): Use it.
25949         * Makefile.in (GTFILES): Add tree-inline.c.
25950
25951 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
25952
25953         * BASE-VER: Change to 4.5.0.
25954
25955 2009-03-27  Xinliang David Li  <davidxl@google.com>
25956
25957         PR tree-optimization/39557
25958         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
25959
25960 2009-03-27  Xinliang David Li  <davidxl@google.com>
25961
25962         PR tree-optimization/39548
25963         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
25964         candidate check.
25965
25966 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25967
25968         * c-common.c (pointer_int_sum): Use %wd on return from
25969         tree_low_cst.
25970
25971 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25972
25973         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
25974         on return from tree_low_cst.
25975
25976 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
25977
25978         PR c++/36799
25979         * ginclude/stdarg.h (va_copy): Define also for
25980         __GXX_EXPERIMENTAL_CXX0X__.
25981
25982 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25983
25984         PR c++/35652
25985         * builtins.h (c_strlen): Do not warn here.
25986         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
25987         * c-common.c (pointer_int_sum): Take an explicit location.
25988         Warn about offsets out of bounds.
25989         * c-common.h (pointer_int_sum): Adjust declaration.
25990
25991 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25992
25993         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
25994         markup glitch.
25995
25996 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
25997
25998         PR c++/39554
25999         * opts.c (warn_if_disallowed_function_p): Don't assume
26000         get_callee_fndecl must return non-NULL.
26001
26002 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
26003
26004         PR rtl-optimization/39522
26005         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
26006         when reg_reloaded_valid is set.
26007
26008 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26009
26010         * config/spu/divv2df3.c: New file.
26011         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
26012         (DPBIT_FUNCS): Filter out _div_df.
26013
26014 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
26015
26016         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
26017         a jump insn, count that jump in the distance to the loop start.
26018
26019 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
26020
26021         PR target/39523
26022         * config/sh/sh.c (calc_live_regs): Fix condition for global
26023         registers except PIC_OFFSET_TABLE_REGNUM.
26024
26025 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
26026
26027         PR/39518
26028         * doc/invoke.texi (-mconsole): New.
26029         (-mcygwin): New.
26030         (-mno-cygwin): New.
26031         (-mdll): New.
26032         (-mnop-fun-dllimport): New.
26033         (-mthread): New.
26034         (-mwin32): New.
26035         (-mwindows): New.
26036         (sub section "i386 and x86-64 Windows Options"): New.
26037
26038 2009-03-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
26039
26040         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
26041         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
26042
26043 2009-03-25  Richard Guenther  <rguenther@suse.de>
26044
26045         PR middle-end/39497
26046         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
26047         of -Wno-error.
26048
26049 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
26050
26051         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
26052         neither of haifa/selective schedulers are working.
26053
26054 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26055
26056         * doc/invoke.texi (Debugging Options): Fix description of
26057         -fno-merge-debug-strings.
26058
26059 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
26060
26061         * config/cris/libgcc.ver: New version-script.
26062         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
26063
26064         * configure.ac <GAS features, nop mnemonic>: Add pattern
26065         crisv32-*-* for "nop".
26066         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
26067         * configure: Regenerate.
26068
26069 2009-03-24  Ira Rosen  <irar@il.ibm.com>
26070
26071         PR tree-optimization/39529
26072         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
26073         mark_sym_for_renaming for the tag copied to the new vector
26074         pointer.
26075
26076 2009-03-24  Arthur Loiret  <aloiret@debian.org>
26077
26078         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
26079         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
26080         EXTRA_SPEC_FUNCTIONS.
26081         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
26082         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
26083         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
26084         -march and -mtune options.
26085
26086 2009-03-24  Ralf Corsépius  <ralf.corsepius@rtems.org>
26087
26088         * config/m68k/t-rtems: Add m5329 multilib.
26089
26090 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
26091             Jakub Jelinek  <jakub@redhat.com>
26092
26093         PR debug/39524
26094         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
26095         nodes.
26096
26097 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
26098
26099         PR c/39495
26100         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
26101         instead of c_parser_expression_conv, if original_code isn't one of the
26102         4 allowed comparison codes, fail.
26103
26104 2009-03-23  Richard Guenther  <rguenther@suse.de>
26105
26106         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
26107         * tree.h (struct tree_type): Likewise.
26108         * reload.h (struct insn_chain): Likewise.
26109         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
26110         * function.h (struct function): Likewise.
26111         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
26112
26113 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
26114
26115         PR tree-optimization/39516
26116         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
26117
26118 2009-03-23  Bingfeng Mei  <bmei@broadcom.com>
26119
26120         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
26121         should be set true if BITS_PER_WORD of target is bigger than 32
26122
26123 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
26124
26125         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
26126         Translate -B-options to -rpath-link.  Correct existing
26127         rpath-link and conditionalize on !nostdlib.
26128
26129 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26130
26131         * doc/extend.texi (Function Attributes, Variable Attributes):
26132         Fix typos.
26133         * doc/invoke.texi (Debugging Options, Optimize Options)
26134         (i386 and x86-64 Options, MCore Options): Likewise.
26135
26136 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
26137
26138         PR debug/37890
26139         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
26140         it for block local namespace aliases.
26141         (gen_decl_die): Pass context_die to gen_namespace_die.
26142
26143 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
26144
26145         PR c/39495
26146         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
26147         minimum or maximum value.
26148
26149 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
26150
26151         * reginfo.c (globalize_reg): Recompute derived reg sets.
26152
26153 2009-03-19  Ozkan Sezer  <sezeroz@gmail.com>
26154
26155         PR target/39063
26156         * libgcc2.c (mprotect): Do not use signed arguments for
26157         VirtualProtect, use DWORD arguments.  Also fix the 'may
26158         be used uninitialized' warning for the np variable.
26159
26160 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
26161
26162         PR target/39496
26163         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
26164         functions using regparm calling conventions when not optimizing.
26165         (ix86_function_sseregparm): Similarly for sseregparm calling
26166         conventions.
26167
26168 2009-03-19  Li Feng  <nemokingdom@gmail.com>
26169
26170         PR middle-end/39500
26171         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
26172         dependence if the first conflict is after niter iterations.
26173
26174 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
26175
26176         PR middle-end/38609
26177         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
26178         functions with dynamic stack-pointer adjustments.
26179
26180 2009-03-19  Ben Elliston  <bje@au.ibm.com>
26181
26182         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
26183         option; change to -msdata=data.
26184
26185 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26186
26187         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
26188         and -fopenmp.
26189
26190 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
26191
26192         PR target/35180
26193         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
26194
26195 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
26196
26197         * doc/invoke.texi (Code Gen Options): Expand discussion of
26198         -fno-common.
26199
26200 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
26201
26202         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
26203         * matrix-reorg.c (struct matrix_info): Likewise.
26204         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
26205         * rtl.h (struct mem_attrs): Likewise.
26206         * df.h (struct df): Likewise.
26207         * tree-data-ref.h (struct data_dependence_relation): Likewise.
26208         * ira-int.h (struct ira_allocno): Likewise.
26209         * df-scan.c (struct df_collection_rec): Likewise.
26210         * ira.c (struct equivalence): Likewise.
26211         * function.c (struct temp_slot): Likewise.
26212         * cfgloop.h (struct loop): Likewise.
26213
26214         PR debug/39485
26215         * function.c (use_register_for_decl): When not optimizing, disregard
26216         register keyword for variables with types containing methods.
26217
26218 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
26219
26220         PR middle-end/39447
26221         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
26222         (is_simple_operand): Call contains_component_ref_p before calling data
26223         reference analysis that would fail on COMPONENT_REFs.
26224
26225         * tree-vrp.c (search_for_addr_array): Fix formatting.
26226
26227 2009-03-18  Richard Guenther  <rguenther@suse.de>
26228
26229         * tree-vect-transform.c (vect_loop_versioning): Fold the
26230         generated comparisons.
26231         * tree-vectorizer.c (set_prologue_iterations): Likewise.
26232         (slpeel_tree_peel_loop_to_edge): Likewise.
26233
26234 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26235
26236         PR middle-end/37805
26237         * opts.c (print_specific_help): In addition to `undocumented',
26238         accept `separate' and `joined' flags if passed alone.  Describe
26239         output by the first matched one of those.
26240         (common_handle_option): Skip over empty strings.
26241         * gcc.c (display_help): Fix help string for `--help='.
26242         * doc/invoke.texi (Option Summary, Overall Options): With
26243         `--help=', classes and qualifiers can both be repeated, but
26244         only the latter can be negated.  One should not pass only
26245         negated qualifiers.  Fix markup and examples.
26246
26247         Revert
26248         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
26249         PR middle-end/37805
26250         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
26251         and -fhelp=separate.
26252
26253 2009-03-17  Jing Yu  <jingyu@google.com>
26254
26255         PR middle-end/39378
26256         * function.h (struct rtl_data): Move is_thunk from here...
26257         (struct function): ...to here.
26258         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
26259         * varasm.c (assemble_start_function): Change is_thunk from crtl to
26260         cfun.
26261         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
26262         cfun.
26263         (alpha_does_function_need_gp, alpha_start_function): Likewise.
26264         (alpha_output_function_end_prologue): Likewise.
26265         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
26266         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
26267         (rs6000_output_function_epilogue): Likewise.
26268         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
26269
26270 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
26271
26272         PR target/39482
26273         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
26274         from different units in a single alternative.
26275         (*truncdfsf_i387): Ditto.
26276         (*truncxfsf2_mixed): Ditto.
26277         (*truncxfdf2_mixed): Ditto.
26278
26279 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
26280
26281         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
26282         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
26283
26284         PR debug/39474
26285         * tree-ssa-live.c (remove_unused_locals): Don't remove local
26286         unused non-artificial variables when not optimizing.
26287
26288         PR debug/39471
26289         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
26290         DW_TAG_imported_module even if decl is IMPORTED_DECL with
26291         NAMESPACE_DECL in its DECL_INITIAL.
26292
26293         PR middle-end/39443
26294         * optabs.c (set_user_assembler_libfunc): New function.
26295         * expr.h (set_user_assembler_libfunc): New prototype.
26296         * c-common.c: Include libfuncs.h.
26297         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
26298         for memcmp, memset, memcpy, memmove and abort.
26299         * Makefile.in (c-common.o): Depend on libfuncs.h.
26300
26301         PR debug/39412
26302         * dwarf2out.c (gen_inlined_enumeration_type_die,
26303         gen_inlined_structure_type_die, gen_inlined_union_type_die,
26304         gen_tagged_type_instantiation_die): Removed.
26305         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
26306         do nothing.
26307
26308 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
26309
26310         PR testsuite/38526
26311         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
26312         its use.
26313         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
26314         (check-parallel-%): Ditto.
26315         (check-consistency): Ditto.
26316
26317 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
26318
26319         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
26320         local variable rhs by NULL_TREE.
26321
26322 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
26323
26324         PR target/39477
26325         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
26326
26327 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
26328
26329         PR target/39476
26330         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
26331
26332 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
26333
26334         PR target/39473
26335         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
26336         for ms->sysv ABI calls only in 64bit mode.
26337
26338         * config/i386/i386.md (untyped_call): Support 32bit.
26339
26340 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
26341
26342         * doc/extend.texi: Replace x86_65 with x86_64.
26343
26344 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
26345
26346         PR tree-optimization/39455
26347         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
26348         mismatches for POINTER_TYPE_P (type).
26349         (number_of_iterations_le): Likewise.
26350
26351 2009-03-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
26352
26353         * config/picochip/picochip.c: Removed profiling support.
26354         * config/picochip/picochip.md: Removed profiling instruction.
26355         * config/picochip/picochip.h: Removed profiling builtin.
26356
26357 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
26358
26359         * doc/install.texi (--with-host-libstdcxx): Document.
26360
26361 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
26362
26363         PR target/34299
26364         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
26365         generate a warning if the function name does not begin with
26366         "__vector" and the function has either the 'signal' or 'interrupt'
26367         attribute, from here to ...
26368         (avr_declare_function_name): ...here. New function.
26369         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
26370         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
26371
26372 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
26373
26374         PR bootstrap/39454
26375         * cse.c (fold_rtx): Don't modify original const_arg1 when
26376         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
26377         separate variable instead.
26378         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
26379         from out of range shift counts.
26380         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
26381
26382 2009-03-13  Catherine Moore  <clm@codesourcery.com>
26383
26384         * config/i386/x-mingw32 (host-mingw32.o): Replace
26385         diagnostic.h with $(DIAGNOSTIC_H).
26386
26387 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
26388
26389         PR target/39431
26390         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
26391         predicate.
26392         * config/i386/sync.md (sync_compare_and_swap<mode>,
26393         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
26394         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
26395         into a register.
26396         (sync_double_compare_and_swapdi_pic,
26397         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
26398         cmpxchg8b_pic_memory_operand instead of just memory_operand.
26399
26400 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
26401
26402         PR target/39445
26403         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
26404
26405 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
26406
26407         PR target/39327
26408         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
26409         (avx_addsubv4df3): Likewise.
26410         (*avx_addsubv4sf3): Likewise.
26411         (sse3_addsubv4sf3): Likewise.
26412
26413 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
26414
26415         PR target/38824
26416         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
26417
26418 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
26419
26420         PR debug/39432
26421         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
26422         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
26423         registers for allocnos created from user-defined variables.
26424
26425 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26426
26427         PR target/39181
26428         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
26429         of non-integer mode as well.
26430
26431 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
26432
26433         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
26434         for functions for which the parameter types are unknown.
26435
26436 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
26437
26438         PR target/39137
26439         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
26440         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
26441         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
26442         * config/i386/i386.c (ix86_local_alignment): For
26443         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
26444         long long variables on the stack to avoid dynamic realignment.
26445         Allow the first argument to be a decl rather than type.
26446         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
26447
26448 2009-03-11  Nick Clifton  <nickc@redhat.com>
26449
26450         PR target/5362
26451         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
26452         options.
26453         Add description to mno-lsim option.
26454         * config/mcore/mcore.h: Remove comment about deprecated m4align
26455         option.
26456         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
26457         * doc/invoke.texi: Add description of mno-lsim and
26458         mstack-increment options.
26459
26460         * config/fr30/fr30.opt: Document the -mno-lsim option.
26461         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
26462         and -mno-lsim options.
26463
26464 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26465
26466         * fold-const.c (fold_comparison): Only call fold_inf_compare
26467         if the mode supports infinities.
26468
26469 2009-03-11  Jason Merrill  <jason@redhat.com>
26470
26471         PR debug/39086
26472         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
26473         end already did.  Notice GIMPLE_CALL modifications of the result.
26474         Don't copy debug information from an ignored decl or a decl from
26475         another function.
26476
26477 2009-03-10  Richard Guenther  <rguenther@suse.de>
26478             Nathan Froyd  <froydnj@codesourcery.com>
26479
26480         PR middle-end/37850
26481         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
26482         (__divMODE3): Likewise.
26483
26484 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
26485
26486         PR tree-optimization/39394
26487         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
26488         DECL_SIZE_UNIT of variable length FIELD_DECLs.
26489
26490 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26491
26492         * recog.c (verfiy_changes): Disallow renaming of hard regs in
26493         inline asms for register asm ("") declarations.
26494
26495 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
26496
26497         * fold-const.c (fold_unary): Fix comment.
26498
26499 2009-03-07  Jan Hubicka  <jh@suse.cz>
26500
26501         PR target/39361
26502         * tree-inline.c (setup_one_parameter): Do replacement of const
26503         argument by constant in SSA form.
26504
26505 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26506
26507         PR middle-end/38028
26508         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
26509         determine alignment passed to assign_stack_local.
26510         (assign_parms_unsplit_complex): Likewise.
26511         * except.c (sjlj_build_landing_pads): Likewise.
26512
26513 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
26514
26515         PR middle-end/39360
26516         * tree-flow.h (add_referenced_var): Return bool instead of void.
26517         * tree-dfa.c (add_referenced_var): Return result of
26518         referenced_var_check_and_insert call.
26519         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
26520         of referenced_var_check_and_insert.
26521
26522         PR debug/39372
26523         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
26524         (gen_variable_die): Emit DW_AT_location on abstract static variable's
26525         DIE, don't emit it if abstract origin already has it.
26526         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
26527         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
26528
26529 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
26530
26531         * genpreds.c (needs_variable): Fix parentheses at variable name
26532         detection.
26533         (write_tm_constrs_h): Indent generated code.
26534
26535 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26536
26537         * doc/extend.texi (Function Attributes): Add documentation
26538         for isr attributes.
26539
26540 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
26541
26542         PR debug/39387
26543         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
26544         take locus from its DECL_SOURCE_LOCATION instead of input_location.
26545
26546 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
26547
26548         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
26549         the loop as bad.
26550
26551 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
26552
26553         PR debug/39379
26554         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
26555         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
26556
26557 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
26558
26559         * config/i386/i386.md (R8_REG, R9_REG): New constants.
26560         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
26561         constants instead of magic numbers.
26562         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
26563         (QI_REG_P): Ditto.
26564         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
26565         (x86_64_ms_abi_int_parameter_registers): Ditto.
26566         (x86_64_int_return_registers): Ditto.
26567         (ix86_maybe_switch_abi): Ditto.
26568         (ix86_expand_call): Ditto for clobbered_registers array.
26569         (ix86_hard_regno_mode_ok): Ditto.
26570         (x86_extended_QIreg_mentioned_p): Ditto.
26571
26572 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
26573
26574         PR tree-optimization/39349
26575         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
26576
26577         * combine.c (gen_lowpart_for_combine): Use omode when generating
26578         clobber.
26579
26580 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
26581
26582         PR rtl-optimization/39235
26583         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
26584
26585 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
26586
26587         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
26588
26589 2009-03-04  Richard Guenther  <rguenther@suse.de>
26590
26591         PR tree-optimization/39362
26592         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
26593         that occur in abnormal PHIs should be varying.
26594
26595 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
26596
26597         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
26598         Extend comments.
26599         (simple_iv):  Take loop as an argument instead of statement.
26600         * tree-scalar-evolution.h (simple_iv): Declaration changed.
26601         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
26602         to simple_iv.
26603         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
26604         Ditto.
26605         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
26606         * matrix-reorg.c (analyze_transpose): Ditto.
26607         * tree-data-ref.c (dr_analyze_innermost): Ditto.
26608         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
26609         * tree-predcom.c (ref_at_iteration): Ditto.
26610         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
26611
26612 2009-03-04  Richard Guenther  <rguenther@suse.de>
26613
26614         PR tree-optimization/39358
26615         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
26616         escaped_id and callused_id.
26617         (solve_graph): Likewise.
26618
26619 2009-03-04  Richard Guenther  <rguenther@suse.de>
26620
26621         PR tree-optimization/39339
26622         * tree-sra.c (try_instantiate_multiple_fields): Make it
26623         no longer ICE on the above.
26624
26625 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
26626
26627         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
26628         that fits within Pmode.
26629
26630 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
26631
26632         PR middle-end/10109
26633         * tm.texi (LIBCALL_VALUE): Update description.
26634
26635 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
26636
26637         PR middle-end/34443
26638         * doc/extend.texi (section): Update description.
26639
26640 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
26641
26642         PR middle-end/39345
26643         * tree-inline.c (remapped_type): New.
26644         (can_be_nonlocal): Call remapped_type instead of remap_type.
26645
26646 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
26647
26648         PR fortran/39354
26649         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
26650         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
26651
26652 2009-03-03  Richard Guenther  <rguenther@suse.de>
26653
26654         PR middle-end/39272
26655         * tree.c (tree_nonartificial_location): New function.
26656         * tree.h (tree_nonartificial_location): Declare.
26657         * builtins.c (expand_builtin_memory_chk): Provide location
26658         of the call location for artificial function pieces.
26659         (maybe_emit_chk_warning): Likewise.
26660         (maybe_emit_sprintf_chk_warning): Likewise.
26661         (maybe_emit_free_warning): Likewise.
26662         * expr.c (expand_expr_real_1): Likewise.
26663
26664 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
26665
26666         PR tree-optimization/39343
26667         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
26668         COMPONENT_REF t has ARRAY_TYPE.
26669
26670 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
26671
26672         PR middle-end/39335
26673         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
26674         when the type precision of the induction variable should be
26675         larger than the type precision of nit.
26676         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
26677         * graphite.c (graphite_loop_normal_form): Same.
26678         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
26679
26680 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
26681
26682         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
26683         (*call_1_rex64_ms_sysv): Use named constants instead of magic
26684         numbers to describe clobbered registers.
26685         (*call_value_0_rex64_ms_sysv): Ditto.
26686         * config/i386/mmx.md (mmx_emms): Ditto.
26687         (mmx_femms): Ditto.
26688
26689 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
26690
26691         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
26692         of ABI_64.
26693
26694 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26695
26696         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
26697         (spu_section_type_flags): New function.
26698
26699 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
26700
26701         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
26702         reg_class_contents of FLOAT_REGS into a temporary.
26703
26704 2009-03-02  Richard Guenther  <rguenther@suse.de>
26705             Ira Rosen  <irar@il.ibm.com>
26706
26707         PR tree-optimization/39318
26708         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
26709         information to the vectorized statement.
26710
26711 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
26712
26713         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
26714         variable.  Use defined names instead of magic constants for REX SSE
26715         registers.
26716
26717 2009-03-01  Richard Guenther  <rguenther@suse.de>
26718
26719         PR tree-optimization/39331
26720         * omp-low.c (lower_send_shared_vars): Do not receive new
26721         values for the reference of DECL_BY_REFERENCE parms or results.
26722
26723 2009-03-01  Jan Hubicka  <jh@suse.cz>
26724
26725         PR debug/39267
26726         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
26727         BLOCK_NONLOCALIZED_VAR): New macros.
26728         (tree_block): Add nonlocalized_vars.
26729         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
26730         gen_decl_die): Add origin argument.  Allow generation of die with
26731         origin at hand only.
26732         (gen_member_die, gen_type_die_with_usage, force_decl_die,
26733         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
26734         of gen_*.
26735         (gen_block_die): Fix checking for unused blocks.
26736         (process_scope_var): Break out from .... ; work with origins only.
26737         (decls_for_scope) ... here; process nonlocalized list.
26738         (dwarf2out_ignore_block): Look for nonlocalized vars.
26739         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
26740         vars.
26741         (dump_scope_block): Dump them.
26742         * tree-inline.c (remap_decls): Handle nonlocalized vars.
26743         (remap_block): Likewise.
26744         (can_be_nonlocal): New predicate.
26745         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
26746
26747 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26748
26749         * configure: Regenerate.
26750
26751 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26752
26753         * optc-gen.awk: No need to duplicate option flags twice.
26754         Reuse help texts for duplicate options which do not have any.
26755
26756         * gcc.c (display_help): Document --version.
26757
26758         * gcc.c (main): If print_help_list and verbose_flag, ensure
26759         driver output comes before subprocess output.
26760
26761         * optc-gen.awk: Assign all remaining fields to help string,
26762         space-separated, for multi-line help in *.opt.
26763
26764         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
26765         -Wno-pedantic-ms-format is for MinGW targets only.
26766
26767         * doc/options.texi (Option file format): Fix bad indentation,
26768         restoring dropped sentence.
26769
26770 2009-02-28  Jan Hubicka  <jh@suse.cz>
26771
26772         * tree-inline.c (tree_function_versioning): Output debug info.
26773
26774 2009-02-28  Jan Hubicka  <jh@suse.cz>
26775
26776         PR debug/39267
26777         * tree-inline.c (setup_one_parameter): Do not copy propagate
26778         arguments when not optimizing.
26779
26780 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
26781
26782         PR target/39327
26783         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
26784         (avx_addsubv4df3): Likewise.
26785         (*avx_addsubv4sf3): Likewise.
26786         (sse3_addsubv4sf3): Likewise.
26787         (*avx_addsubv2df3): Likewise.
26788         (sse3_addsubv2df3): Likewise.
26789         (avx_unpckhps256): Correct item selectors.
26790         (avx_unpcklps256): Likewise.
26791         (avx_unpckhpd256): Likewise.
26792         (avx_unpcklpd256): Likewise.
26793
26794 2009-02-28  Jan Hubicka  <jh@suse.cz>
26795
26796         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
26797         static vars.
26798         (copy_arguments_for_versioning): If var is declared don't declare it.
26799         (tree_function_versioning): First setup substitutions and then copy
26800         args.
26801
26802 2009-02-27  Jan Hubicka  <jh@suse.cz>
26803
26804         PR debug/39267
26805         * cgraph.h (varpool_output_debug_info): Remove.
26806         * cgraphunit.c (varpool_output_debug_info): Remove.
26807         * dwarf2out.c (deferred_locations_struct): New struct
26808         (deferred_locations): New type.
26809         (deferred_locations_list): New static var.
26810         (deffer_location): New function.
26811         (gen_variable_die): Use it.
26812         (decls_for_scope): Output info on local static vars.
26813         (dwarf2out_finish): Process deferred locations.
26814         * varpool.c (varpool_output_debug_info): Remove.
26815
26816 2009-02-27  Jan Hubicka  <jh@suse.cz>
26817
26818         PR debug/39267
26819         * tree.h (TREE_PROTECTED): Fix comment.
26820         (BLOCK_HANDLER_BLOCK): Remove.
26821         (struct tree_block): Remove handler_block add body_block.
26822         (inlined_function_outer_scope_p): New.
26823         (is_body_block): Remove.
26824         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
26825         * dwarf2out.c (is_inlined_entry_point): Remove.
26826         (add_high_low_attributes): Use inlined_function_outer_scope_p.
26827         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
26828         code.
26829         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
26830         * gimplify.c (gimplify_expr): Gimplify body blocks.
26831         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
26832         block with multiple subblocks.
26833         (dump_scope_block): Prettier output; dump more flags and info.
26834         (dump_scope_blocks): New.
26835         (remove_unused_locals): Use dump_scope_blocks.
26836         * tree-flow.h (dump_scope_blocks): Declare.
26837         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
26838         * stmt.c (is_body_block): Remove.
26839         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
26840         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
26841
26842 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
26843
26844         PR middle-end/39308
26845         * graphite.c (graphite_loop_normal_form): Do not call
26846         number_of_iterations_exit from a gcc_assert.
26847
26848 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26849
26850         * config/s390/s390.c (s390_swap_cmp): Look for conditional
26851         jumps if COND is NULL.
26852         (find_cond_jump): New function.
26853         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
26854         * config/s390/s390.md: Remove z10_cobra attribute value.
26855
26856 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
26857
26858         * config/alpha/alpha.h (alpha_expand_mov): Return false if
26859         force_const_mem returns NULL_RTX.
26860
26861 2009-02-26  Jan Hubicka  <jh@suse.cz>
26862
26863         PR debug/39267
26864         * cgraph.h (varpool_output_debug_info): Remove.
26865         * cgraphunit.c (varpool_output_debug_info): Remove.
26866         * dwarf2out.c (deferred_locations_struct): New struct
26867         (deferred_locations): New type.
26868         (deferred_locations_list): New static var.
26869         (deffer_location): New function.
26870         (gen_variable_die): Use it.
26871         (decls_for_scope): Output info on local static vars.
26872         (dwarf2out_finish): Process deferred locations.
26873         * varpool.c (varpool_output_debug_info): Remove.
26874
26875 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
26876
26877         PR rtl-optimization/39241
26878         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
26879         to subreg_offset_representable_p.
26880
26881 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
26882
26883         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
26884         execute function prototype.  Get f and nregs from max_reg_num
26885         and get_insns.  Remove the first backward pass as it's dead,
26886         guard the forward pass by flag_expensive_optimizations.
26887         (rest_of_handle_regmove): Delete.
26888         (pass_regmove): Replace it with regmove_optimize.
26889
26890 2009-02-25  Martin Jambor  <mjambor@suse.cz>
26891
26892         PR tree-optimization/39259
26893         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
26894         calls_alloca function flags.
26895         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
26896         calls are detected.
26897
26898 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
26899
26900         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
26901         flags_set_1_rtx, flags_set_1_set): Delete.
26902         (regmove_optimize): Do not call mark_flags_life_zones.
26903
26904 2009-02-24  Julian Brown  <julian@codesourcery.com>
26905
26906         PR target/35965
26907         * config/arm/arm.c (require_pic_register): Only set
26908         cfun->machine->pic_reg once per function.
26909
26910 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
26911
26912         * doc/invoke.texi (Link Options): Document an easier way to pass
26913         options that take arguments to the GNU linker using -Xlinker and -Wl.
26914
26915 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
26916
26917         PR target/33785
26918         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
26919
26920 2009-02-24  Richard Guenther  <rguenther@suse.de>
26921
26922         PR debug/39285
26923         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
26924
26925 2009-02-24  Richard Guenther  <rguenther@suse.de>
26926             Zdenek Dvorak  <ook@ucw.cz>
26927
26928         PR tree-optimization/39233
26929         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
26930         from converting them to a generic type.
26931
26932 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
26933
26934         PR tree-optimization/39260
26935         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
26936         contains a condition with a real type.
26937         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
26938
26939 2009-02-23  Jason Merrill  <jason@redhat.com>
26940
26941         PR c++/38880
26942         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
26943         narrowing_initializer_constant_valid_p.
26944         (narrowing_initializer_constant_valid_p): Don't return
26945         null_pointer_node for adding a pointer to itself.
26946
26947 2009-02-23  Jan Hubicka  <jh@suse.cz>
26948
26949         PR c/12245
26950         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
26951         resizing.
26952
26953 2009-02-23  Jan Hubicka  <jh@suse.cz>
26954
26955         PR tree-optimization/37709
26956         * tree.c (block_ultimate_origin): Move here from dwarf2out.
26957         * tree.h (block_ultimate_origin): Declare.
26958         * dwarf2out.c (block_ultimate_origin): Move to tree.c
26959         * tree-ssa-live.c (remove_unused_scope_block_p):
26960         Eliminate blocks containig no instructions nor live variables nor
26961         nested blocks.
26962         (dump_scope_block): New function.
26963         (remove_unused_locals): Enable removal of dead blocks by default;
26964         enable dumping at TDF_DETAILS.
26965
26966 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
26967
26968         * config/i386/i386.c (classify_argument): Don't allow COImode
26969         and OImode.
26970         (function_arg_advance_32): Don't allow OImode.
26971         (function_arg_32): Likewise.
26972         (function_value_32): Likewise.
26973         (return_in_memory_32): Likewise.
26974         (function_arg_64): Remove OImode comment.
26975
26976 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
26977
26978         PR target/39261
26979         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
26980         ix86_expand_vector_set for V4DImode in 64bit mode only.
26981         (ix86_expand_vector_init_one_var): Likewise.
26982
26983 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
26984
26985         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
26986
26987 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
26988
26989         PR bootstrap/39257
26990         * loop-iv.c: Revert last change.
26991         * emit-rtl.c: Likewise.
26992
26993 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
26994
26995         PR target/39256
26996         * config/i386/i386.c (type_natural_mode): Remove an extra
26997         space in the warning message.
26998         (function_value_32): Handle 32-byte vector modes.
26999         (return_in_memory_32): Likewise.
27000
27001 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
27002
27003         * loop-iv.c (truncate_value): New function.
27004         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
27005         of lowpart_subreg.
27006         (lowpart_subreg): Move to...
27007         * emit-rtl.c: ...here.
27008
27009 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
27010
27011         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
27012         accidental and undocumented change at revision 140860.
27013
27014 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
27015
27016         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
27017         take gimple_seq * arguments.
27018         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
27019         types_compatible_p langhook.
27020
27021 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
27022             Joseph Myers  <joseph@codesourcery.com>
27023
27024         * config/arm/arm.c (arm_builtin_va_list): New function.
27025         (arm_expand_builtin_va_start): Likewise.
27026         (arm_gimplify_va_arg_expr): Likewise.
27027         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
27028         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
27029         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
27030         (va_list_type): New variable.
27031         (arm_mangle_type): Mangle va_list_type appropriately.
27032
27033 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
27034
27035         PR middle-end/39157
27036         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
27037         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
27038         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
27039         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
27040         parameter to 1000 for -O1 by default.
27041         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
27042         parameter.
27043         * loop-invariant.c: Include params.h.
27044         (move_loop_invariants): Don't call move_single_loop_invariants on
27045         very large loops.
27046
27047 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
27048
27049         * calls.c (emit_library_call_value_1): Use slot_offset instead of
27050         offset when calculating bounds for indexing stack_usage_map.  Fixes
27051         a buffer overflow with certain target setups.
27052
27053 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
27054
27055         PR target/39240
27056         * calls.c (expand_call): Clear try_tail_call if caller and callee
27057         disagree in promotion of function return value.
27058
27059 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
27060
27061         PR target/39175
27062         * c-common.c (c_determine_visibility): If visibility changed and
27063         DECL_RTL has been already set, call make_decl_rtl to update symbol
27064         flags.
27065
27066 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
27067
27068         PR c++/39188
27069         * varasm.c (assemble_variable): Don't check DECL_NAME when
27070         globalizing a variable.
27071
27072 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
27073
27074         PR c/38483
27075         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
27076         expression before any __builtin_trap call.
27077         * c-typeck.c (build_function_call): Convert and check function
27078         arguments before generating a call to a trap.  Evaluate the
27079         function arguments before the trap.
27080
27081 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
27082
27083         PR target/39228
27084         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
27085         (UNSPEC_FXAM_MEM): New unspec.
27086         (fxam<mode>2_i387_with_temp): New insn and split pattern.
27087         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
27088         memory using fxam<mode>2_i387_with_temp to remove excess precision.
27089
27090 2009-02-19  Richard Guenther  <rguenther@suse.de>
27091
27092         PR tree-optimization/39207
27093         PR tree-optimization/39074
27094         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
27095         storedanything_tree): New.
27096         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
27097         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
27098         (build_succ_graph): Add edges from STOREDANYTHING to all
27099         non-direct nodes.
27100         (init_base_vars): Initialize STOREDANYTHING.
27101         (compute_points_to_sets): Free substitution info after
27102         building the succ graph.
27103         (ipa_pta_execute): Likewise.
27104
27105         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
27106         field.
27107         (do_ds_constraint): Do not add to special var or non-pointer
27108         field solutions.
27109         (type_could_have_pointers): Split out from ...
27110         (could_have_pointers): ... here.  For arrays use the element type.
27111         (create_variable_info_for): Initialize may_have_pointers.
27112         (new_var_info): Likewise.
27113         (handle_lhs_call): Make the HEAP variable unknown-sized.
27114         (intra_create_variable_infos): Use a type with pointers for
27115         PARM_NOALIAS, make it unknown-sized.
27116
27117 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
27118
27119         PR target/39224
27120         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
27121
27122 2009-02-18  Jason Merrill  <jason@redhat.com>
27123
27124         PR target/39179
27125         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
27126         value if DECL_EXTERNAL.
27127         * tree-sra.c (sra_walk_gimple_assign): Likewise.
27128         * target.h (gcc_target::binds_local_p): Clarify "module".
27129         * tree.h (TREE_PUBLIC): Clarify "module".
27130
27131 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
27132
27133         PR target/38891
27134         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
27135         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
27136
27137 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
27138
27139         PR target/39082
27140         * c.opt (Wabi): Support C and ObjC.
27141         (Wpsabi): New.
27142
27143         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
27144
27145         * config/i386/i386.c (classify_argument): Warn once about the ABI
27146         change when passing union with long double.
27147
27148         * doc/invoke.texi: Update -Wabi for warning psABI changes.
27149
27150 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
27151
27152         PR c/35447
27153         * c-parser.c (c_parser_compound_statement): Always enter and leave
27154         a scope.
27155
27156 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27157
27158         PR target/34587
27159         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
27160
27161 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
27162
27163         PR tree-optimization/36922
27164         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
27165         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
27166         Likewise.
27167
27168 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
27169
27170         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
27171         to 0 for EABI64.
27172
27173 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
27174
27175         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
27176
27177 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
27178
27179         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
27180         tree sharing.
27181
27182 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
27183             Richard Sandiford  <rdsandiford@googlemail.com>
27184
27185         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
27186         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
27187         (loongson_biadd): ...this.
27188
27189 2009-02-17  Richard Guenther  <rguenther@suse.de>
27190
27191         PR tree-optimization/39202
27192         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
27193         a var make sure to follow existing collapses.
27194
27195 2009-02-17  Richard Guenther  <rguenther@suse.de>
27196
27197         PR middle-end/39214
27198         * langhooks.c (lhd_print_error_function): Check for NULL block.
27199
27200 2009-02-17  Richard Guenther  <rguenther@suse.de>
27201
27202         PR tree-optimization/39204
27203         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
27204         of the PHI arg.
27205
27206 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
27207
27208         * config/soft-fp/double.h: Update from glibc CVS.
27209
27210 2009-02-17  Richard Guenther  <rguenther@suse.de>
27211
27212         PR tree-optimization/39207
27213         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
27214         strict-aliasing warnings for pointers pointing to NULL.
27215
27216 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
27217
27218         PR c/35446
27219         * c-parser.c (c_parser_braced_init): Call pop_init_level when
27220         skipping until next close brace.
27221
27222 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
27223
27224         PR target/37049
27225         * config/i386/i386.c (ix86_expand_push): Set memory alignment
27226         to function argument boundary.
27227
27228 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
27229
27230         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
27231         in the lea_add. Reload eventually constraints it properly.
27232         * config/picochip/constraints.md: Remove the target constraint
27233         "b", since it is not needed anymore.
27234
27235 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
27236
27237         * gthr-dce.h: Uglify function parameter and local variable names.
27238         * gthr-gnat.h: Likewise.
27239         * gthr-mipssde.h: Likewise.
27240         * gthr-nks.h: Likewise.
27241         * gthr-posix95.h: Likewise.
27242         * gthr-posix.h: Likewise.
27243         * gthr-rtems.h: Likewise.
27244         * gthr-single.h: Likewise.
27245         * gthr-solaris.h: Likewise.
27246         * gthr-tpf.h: Likewise.
27247         * gthr-vxworks.h: Likewise.
27248         * gthr-win32.h: Likewise.
27249
27250 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
27251
27252         PR target/39196
27253         * config/i386/i386.md: Restrict the new peephole2 to move
27254         between MMX/SSE registers.
27255
27256 2009-02-15  Richard Guenther  <rguenther@suse.de>
27257
27258         Revert
27259         2009-02-13  Richard Guenther  <rguenther@suse.de>
27260
27261         * configure.ac: Enable LFS.
27262         * configure: Re-generate.
27263         * config.in: Likewise.
27264
27265 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27266
27267         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
27268         spu_srqwbyte, spu_srqwbytebc): Define.
27269         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
27270         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
27271         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
27272         "shrqby_<mode>"): New insn-and-split patterns.
27273         * config/spu/spu.c (expand_builtin_args): Determine and return
27274         number of operands using spu_builtin_description data.
27275         (spu_expand_builtin_1): Use it.
27276
27277 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
27278
27279         PR target/38056
27280         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
27281         TARGET_CONST_GP.
27282
27283 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
27284
27285         PR target/39149
27286         * config/i386/i386.c (override_options): Correct warning
27287         messages for -malign-loops, -malign-jumps and -malign-functions.
27288
27289 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
27290
27291         PR target/39152
27292         * config/i386/i386.md: Restrict the new peephole2 to move
27293         between the general purpose registers.
27294
27295 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
27296
27297         PR target/39162
27298         * config/i386/i386.c (type_natural_mode): Add a new argument.
27299         Return the original mode and warn ABI change if vector size is 32byte.
27300         (function_arg_advance): Updated.
27301         (function_arg): Likewise.
27302         (ix86_function_value): Likewise.
27303         (ix86_return_in_memory): Likewise.
27304         (ix86_sol10_return_in_memory): Likewise.
27305         (ix86_gimplify_va_arg): Likewise.
27306         (function_arg_32): Don't warn ABX ABI change here.
27307         (function_arg_64): Likewise.
27308
27309 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
27310
27311         * loop-iv.c (implies_p): In the final case, test that operands 0
27312         of the two comparisons match.
27313
27314         * config/bfin/bfin.c (find_prev_insn_start): New function.
27315         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
27316         (find_next_insn_start): Move.
27317
27318 2009-02-13  Richard Guenther  <rguenther@suse.de>
27319
27320         * configure.ac: Enable LFS.
27321         * configure: Re-generate.
27322         * config.in: Likewise.
27323
27324 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
27325
27326         PR c/35444
27327         * c-parser.c (c_parser_parms_list_declarator): Discard pending
27328         sizes on syntax error after some arguments have been parsed.
27329
27330 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
27331
27332         * doc/invoke.texi (-fira): Remove.
27333
27334 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
27335
27336         * caller-save.c: Replace regclass.c with reginfo.c in comments.
27337         * recog.c: Likewise.
27338         * rtl.h: Likewise.
27339
27340 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
27341
27342         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
27343         (umul_ppmm): Likewise.
27344         (count_leading_zeros): Likewise.
27345         (count_trailing_zeros): Likewise.
27346         (UMUL_TIME): Likewise.
27347
27348 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
27349
27350         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
27351         soft-fp/t-softfp to tmake_file.
27352
27353         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
27354         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
27355         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
27356         IA64_BUILTIN_INFQ]: New.
27357         (ia64_init_builtins): Initialize __builtin_infq,
27358         __builtin_fabsq and __builtin_copysignq if not HPUX.
27359         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
27360         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
27361
27362         * config/ia64/lib1funcs.asm (__divtf3): Define only if
27363         SHARED is defined.
27364         (__fixtfti): Likewise.
27365         (__fixunstfti): Likewise.
27366         (__floattitf): Likewise.
27367
27368         * config/ia64/libgcc-glibc.ver: New.
27369         * config/ia64/t-fprules-softfp: Likewise.
27370         * config/ia64/sfp-machine.h: Likewise.
27371
27372         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
27373         (LIBGCC2_TF_CEXT): Likewise.
27374         (TF_SIZE): Likewise.
27375         (TARGET_INIT_LIBFUNCS): Likewise.
27376
27377         * config/ia64/t-glibc (SHLINB_MAPFILES):
27378         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
27379
27380 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
27381
27382         * config/i386/i386.c (construct_container): Rewrite processing
27383         BLKmode with X86_64_SSE_CLASS.
27384
27385 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
27386
27387         PR target/39152
27388         * config/i386/i386.md: Replace simplify_replace_rtx with
27389         replace_rtx in the new peephole2.
27390
27391 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
27392
27393         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
27394         loop unrolling do not happen at -O2.
27395
27396 2009-02-12  Michael Matz  <matz@suse.de>
27397
27398         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
27399
27400 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
27401
27402         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
27403         for -g3.
27404
27405 2009-02-12  Ben Elliston  <bje@au.ibm.com>
27406
27407         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
27408         patterns when updating the back chain.  Missed in the 2009-02-10
27409         change.
27410
27411 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
27412
27413         * doc/extend.texi (Decimal Floating Types): Update identifier of
27414         draft TR and list of missing support.
27415
27416 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
27417
27418         PR middle-end/39154
27419         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
27420         bit to variable length decl's flags, add it also to its
27421         pointer replacement variable.
27422
27423 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
27424             Jakub Jelinek  <jakub@redhat.com>
27425
27426         PR target/39118
27427         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
27428         (memory_blockage): New expander.
27429         (*memory_blockage): New insn pattern.
27430         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
27431         instead of general blockage at the end of function prologue when
27432         frame pointer is used to access red zone area.  Do not emit blockage
27433         when profiling, it is emitted in generic code.
27434         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
27435         function epilogue when frame pointer is used to access red zone area.
27436
27437 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
27438
27439         PR target/38824
27440         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
27441         by arithmetic with memory operands.
27442         * config/i386/predicates.md (commutative_operator): New.
27443
27444 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
27445
27446         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
27447         bulleted lists.
27448
27449 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
27450
27451         * alias.h (record_alias_subset): Declare.
27452         * alias.c (record_alias_subset): Make global.
27453
27454 2009-02-10  Nick Clifton  <nickc@redhat.com>
27455
27456         * tree-parloops.c: Change license to GPLv3.
27457         * ipa-struct-reorg.c: Change license to GPLv3.
27458         * ipa-struct-reorg.h: Change license to GPLv3.
27459
27460 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
27461
27462         PR c/39084
27463         * c-decl.c (start_struct): Return NULL on error.
27464
27465 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
27466
27467         PR middle-end/39124
27468         * cfgloopmanip.c (remove_path): Call remove_bbs after
27469         cancel_loop_tree, not before it.
27470
27471         PR target/39139
27472         * function.h (struct function): Add has_local_explicit_reg_vars bit.
27473         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
27474         VAR_DECLs were seen.
27475         * tree-ssa-live.c (remove_unused_locals): Recompute
27476         cfun->has_local_explicit_reg_vars.
27477         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
27478         copies or clearings if cfun->has_local_explicit_reg_vars.
27479
27480 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
27481
27482         PR target/39118
27483         * config/i386/i386.c (expand_prologue): Emit blockage at the end
27484         of function prologue when frame pointer is used to access
27485         red zone area.
27486
27487 2009-02-10  Richard Guenther  <rguenther@suse.de>
27488
27489         PR middle-end/39127
27490         * gimplify.c (gimple_regimplify_operands): Always look if
27491         we need to create a temporary.
27492
27493 2009-02-10  Richard Guenther  <rguenther@suse.de>
27494
27495         PR tree-optimization/39132
27496         * tree-loop-distribution.c (todo): New global var.
27497         (generate_memset_zero): Trigger TODO_rebuild_alias.
27498         (tree_loop_distribution): Return todo.
27499
27500 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
27501
27502         PR target/39119
27503         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
27504         (x86_64_reg_class_name): Removed.
27505         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
27506         first one isn't X86_64_SSE_CLASS or any other ones aren't
27507         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
27508         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
27509         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
27510         and 3 X86_64_SSEUP_CLASS.
27511         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
27512         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
27513
27514 2009-02-10  Ben Elliston  <bje@au.ibm.com>
27515
27516         * config/rs6000/rs6000.md (allocate_stack): Always use an update
27517         form instruction to update the stack back chain word, even if the
27518         user has disabled the generation of update instructions.
27519         (movdi_<mode>_update_stack): New.
27520         (movsi_update_stack): Likewise.
27521         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
27522         always use an update form instruction to update the stack back
27523         chain word.
27524
27525 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
27526
27527         PR middle-end/38953
27528         * graphite.c (if_region_set_false_region): After moving a region in
27529         the false branch of a condition, remove the empty dummy basic block.
27530         (gloog): Remove wrong fix for PR38953.
27531
27532 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27533
27534         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
27535         generation due to implicit sign extension.
27536
27537 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
27538
27539         PR middle-end/38981
27540         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
27541         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
27542
27543 2009-02-09  Richard Guenther  <rguenther@suse.de>
27544
27545         PR middle-end/35202
27546         * convert.c (convert_to_real): Disable (float)fn((double)x)
27547         to fnf(x) conversion if errno differences may occur and
27548         -fmath-errno is set.
27549
27550 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
27551
27552         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
27553         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
27554         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
27555
27556 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
27557
27558         PR c/35434
27559         * c-common.c (handle_alias_attribute): Disallow attribute for
27560         anything not a FUNCTION_DECL or VAR_DECL.
27561
27562 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
27563
27564         PR c/39035
27565         * real.c (do_compare): Special-case compare of zero against
27566         decimal float value.
27567
27568 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
27569
27570         PR c/36432
27571         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
27572         as indicating flexible array members unless the field itself is
27573         being declarared as the incomplete array.
27574
27575 2009-02-06  Jan Hubicka  <jh@suse.cz>
27576
27577         PR tree-optimization/38844
27578         * ipa-inline.c (try_inline): Stop inlining recursion when edge
27579         is already inlined.
27580
27581 2009-02-06  Richard Guenther  <rguenther@suse.de>
27582
27583         PR middle-end/38977
27584         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
27585         fork because we may expand it as __gcov_fork.
27586
27587 2009-02-06  Nick Clifton  <nickc@redhat.com>
27588
27589         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
27590
27591 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
27592
27593         PR tree-optimization/35659
27594         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
27595         vn_phi_eq): Shortcut if hashcode does not match.
27596         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
27597         NULL operands.
27598         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
27599         and avoid iterative_hash_expr.
27600         (FOR_EACH_VALUE_ID_IN_SET): New.
27601         (value_id_compare): Remove.
27602         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
27603         sort expressions by value id.
27604
27605 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
27606
27607         PR target/38991
27608         * config/sh/predicates.md (general_movsrc_operand): Don't check
27609         the subreg of system registers here.
27610
27611 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
27612
27613         PR c++/39106
27614         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
27615         on the copied decl.
27616
27617 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
27618
27619         PR rtl-optimization/39110
27620         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
27621         addresses, not aligned ones.
27622
27623 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
27624             Richard Guenther  <rguenther@suse.de>
27625
27626         PR tree-optimization/39100
27627         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
27628         comment says and add edges.
27629
27630 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
27631
27632         PR c/35435
27633         * c-common.c (handle_tls_model_attribute): Ignore attribute for
27634         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
27635
27636 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
27637
27638         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
27639         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
27640         register_bb_in_sese, new_sese, free_sese): Moved.
27641         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
27642         outermost_loop_in_scop, build_scop_iteration_domain,
27643         expand_scalar_variables_ssa_name, get_vdef_before_scop,
27644         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
27645         Use loop_in_sese_p instead of loop_in_scop_p.
27646         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
27647         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
27648         (scopdet_basic_block_info): Fix bug in scop detection.
27649         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
27650         eq_loop_to_cloog_loop): Remove.
27651         (nb_loops_around_loop_in_scop, nb_loop
27652         ref_nb_loops): Moved here...
27653         * graphite.h (ref_nb_loops): ... from here.
27654         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
27655         (loop_domain_dim, loop_iteration_vector_dim): Remove.
27656         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
27657
27658 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
27659             Hans-Peter Nilsson  <hp@axis.com>
27660
27661         PR rtl-optimization/37889
27662         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
27663         Move offset handling from PLUS to before the switch.  Use new
27664         arguments when considering SYMBOL_REFs too.
27665         (rtx_addr_can_trap_p): Pass dummy offset and size.
27666         (enum may_trap_p_flags): Remove.
27667         (may_trap_p_1): Pass size from MEM_SIZE.
27668
27669         PR rtl-optimization/38921
27670         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
27671         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
27672         * rtlanal.c (may_trap_after_code_motion_p): Delete.
27673         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
27674
27675 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
27676
27677         AVX Programming Reference (January, 2009)
27678         * config/i386/sse.md (*vpclmulqdq): New.
27679
27680 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
27681
27682         PR tree-optimization/38977
27683         PR gcov-profile/38292
27684         * calls.c (special_function_p): Disregard __builtin_ prefix.
27685
27686 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
27687
27688         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
27689         non-indexable addresses even before reload.
27690
27691 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
27692
27693         PR c/29129
27694         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
27695         as having variable size.  Do not give an error for unnamed
27696         parameters with [*] declarators.  Give a warning for type names
27697         with [*] declarators and mark them as variable size.
27698         * c-parser.c (c_parser_sizeof_expression): Do not give an error
27699         for sizeof applied to [*] type names.
27700
27701 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
27702
27703         PR C++/36607
27704         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
27705
27706 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
27707
27708         * gcc.c (process_command): Update copyright notice dates.
27709         * gcov.c (print_version): Likewise.
27710         * gcov-dump.c (print_version): Likewise.
27711         * mips-tfile.c (main): Likewise.
27712         * mips-tdump.c (main): Likewise.
27713
27714 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
27715
27716         PR c/35433
27717         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
27718         for composite type involving a zero-length array type.
27719
27720 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
27721
27722         PR target/35318
27723         * function.c (match_asm_constraints_1): Skip over
27724         initial optional % in the constraint.
27725
27726         PR inline-asm/39059
27727         * c-parser.c (c_parser_postfix_expression): If fixed point is not
27728         supported, don't accept FIXED_CSTs.
27729         * c-decl.c (finish_declspecs): Error if fixed point is not supported
27730         and _Sat is used without _Fract/_Accum.  Set specs->type to
27731         integer_type_node for cts_fract/cts_accum if fixed point is not
27732         supported.
27733
27734 2009-02-02  Catherine Moore  <clm@codesourcery.com>
27735
27736         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
27737
27738 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
27739
27740         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
27741         (ABI_HAS_64BIT_SYMBOLS): Use it.
27742         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
27743
27744 2009-02-02  Paul Brook  <paul@codesourcery.com>
27745
27746         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
27747
27748 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
27749
27750         PR inline-asm/39058
27751         * recog.h (asm_operand_ok): Add constraints argument.
27752         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
27753         recurse on matching constraint.
27754         (check_asm_operands): Pass constraints as 3rd argument to
27755         asm_operand_ok.  Don't look up matching constraint here.
27756         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
27757         to asm_operand_ok.
27758
27759 2009-02-02  Ben Elliston  <bje@au.ibm.com>
27760
27761         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
27762         TARGET_NARROW_VOLATILE_BITFIELD macro names.
27763
27764 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27765
27766         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
27767         information.  Remove some obsolete information.  Reorganize.
27768
27769         * config/pa/fptr.c: Revert license to GPL 2.
27770         * config/pa/milli64.S: Likewise.
27771
27772 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
27773
27774         PR target/38904
27775         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
27776         LIBRARY name in, instead of hard-coding it.
27777         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
27778         extra target make frag to tmake_files according to EH model.
27779         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
27780         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
27781         frags that define makefile variable EH_MODEL appropriately.
27782         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
27783         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
27784         to "-sjlj" according to type of EH configured.
27785         (LIBGCC_SONAME):  Concatenate it to shared library base name.
27786         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
27787         to "_sjlj" according to type of EH configured.
27788         (LIBGCC_SONAME):  Concatenate it to shared library base name.
27789         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
27790         (SHLIB_LINK):  Add missing semicolon to if-else construct.
27791         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
27792         string value of "pe_dll" command-line option.
27793         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
27794         (SHLIB_SONAME):  Use it when overriding t-cygming default.
27795         (SHLIB_IMPLIB):  Override t-cygming default.
27796         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
27797         string value of "pe_dll" command-line option.
27798
27799 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
27800
27801         PR target/38952
27802         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
27803         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
27804
27805 2009-01-31  Richard Guenther  <rguenther@suse.de>
27806
27807         PR tree-optimization/38937
27808         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
27809         computing the transitive closure.
27810
27811 2009-01-30  Richard Guenther  <rguenther@suse.de>
27812
27813         PR tree-optimization/39041
27814         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
27815         Propagate variable indices only if the types match for this stmt.
27816
27817 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
27818
27819         PR target/39013
27820         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
27821         inline but never defined.
27822
27823 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
27824
27825         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
27826         (*insv_h_di_reg_extimm): New insn.
27827         (*insv_l<mode>_reg_extimm): New insn.
27828
27829 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
27830
27831         * config/picochip/picochip.c (flag_conserve_stack): set
27832         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
27833         fconserve-stack. Reduce call-overhead used by inliner.
27834
27835 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
27836
27837         PR/38157
27838         * common.opt (flag_conserve_stack): Initialised to zero.
27839
27840 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
27841
27842         PR/39002
27843         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
27844         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
27845         method.
27846
27847 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
27848
27849         * ira-color.c (allocno_reload_assign): Update comments.
27850         * regmove.c (regmove_optimize): Likewise.
27851
27852         * ra.h: Removed.
27853
27854 2009-01-29  Robert Millan  <rmh@aybabtu.com>
27855
27856         * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
27857         * config/i386/kopensolaris-gnu.h: New file.  Undefine
27858         `MD_UNWIND_SUPPORT'.
27859         * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
27860
27861 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
27862
27863         PR tree-optimization/39007
27864         * tree-loop-distribution.c (generate_builtin): Use
27865         recompute_dominator to compute the immediate dominator of the
27866         basic block just after the loop.
27867
27868 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
27869
27870         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
27871         (ASM_OUTPUT_DWARF_PCREL): Define.
27872
27873 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
27874
27875         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
27876         * doc/passes.texi: Remove entries about regclass, local-alloc, and
27877         global.  Modify entries about regmove and IRA.
27878
27879         * ra-conflict.c: Remove the file.
27880
27881         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
27882
27883         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
27884         (pass_regclass_init): Rename to pass_reginfo_init.
27885
27886         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
27887
27888         * toplev.h (flag_ira): Remove.
27889
27890         * caller-save.c (setup_save_areas): Remove flag_ira.
27891
27892         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
27893
27894         * global.c: Remove the file.
27895
27896         * opts.c (decode_options): Remove flag_ira.
27897
27898         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
27899
27900         * regmove.c: Modify file description.
27901         (find_use_as_address, try_auto_increment): Define them only if
27902         AUTO_INC_DEC is defined.
27903         (replacement_quality, replace_in_call_usage, fixup_match_1,
27904         stable_and_no_regs_but_for_p): Remove.
27905         (reg_set_in_bb): Make it static.
27906         (regmove_optimize): Remove flag_ira and code which worked for
27907         !flag_ira.
27908
27909         * local-alloc.c: Remove the file.
27910
27911         * common.opt (fira): Remove.
27912
27913         * ira.c: Include except.h.
27914         (eliminable_regset): Move from global.c.
27915         (mark_elimination): Ditto.  Remove flag_ira.
27916         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
27917         equiv_mem_modified, validate_equiv_mem_from_store,
27918         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
27919         contains_replace_regs, memref_referenced_p, memref_used_between_p,
27920         no_equiv, recorded_label_ref): Move from local-alloc.c.
27921         (update_equiv_regs): Ditto.  Make it static.
27922         (print_insn_chain, print_insn_chains): Move it from global.c.
27923         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
27924         (build_insn_chain): Ditto.  Make it static.
27925         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
27926         Rename to init_live_subregs.
27927         (gate_ira): Remove flag_ira.
27928
27929         * regclass.c: Rename reginfo.c.  Change file description.
27930         (FORBIDDEN_INC_DEC_CLASSES): Remove.
27931         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
27932         (init_reg_sets_1): Remove code for evaluation of
27933         reg_class_superclasses and losing_caller_save_reg_set.
27934         (init_regs): Remove init_reg_autoinc.
27935         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
27936         ok_for_base_p_nonstrict): Remove.
27937         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
27938         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
27939         corresponding entries.
27940         (dump_regclass, record_operand_costs, scan_one_insn,
27941         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
27942         record_address_regs, auto_inc_dec_reg_p): Remove.
27943         (gt-regclass.h): Rename to gt-reginfo.h.
27944
27945         * rtl.h (dump_global_regs, retry_global_alloc,
27946         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
27947
27948         * Makefile.in (RA_H): Remove.
27949         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
27950         Rename regclass.o to reginfo.o.
27951         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
27952         gt-reginfo.h.
27953         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
27954         (GTFILES): Rename regclass.c to reginfo.c.
27955
27956         * passes.c (init_optimization_passes): Remove pass_local_alloc and
27957         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
27958
27959         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
27960         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
27961         Remove flag_ira.
27962         (finish_spills): Ditto.  Remove code for !flag_ira.
27963
27964 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
27965
27966         PR middle-end/35854
27967         * doc/invoke.texi (rtl debug options): Complete rewrite.
27968         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
27969         to auto_inc_dec".
27970         * mode-switching.c (pass_mode_switching): Rename pass from
27971         "mode-sw" to "mode_sw".
27972         * except.c (pass_convert_to_eh_ranges): Rename pass from
27973         "eh-ranges" to "eh_ranges".
27974         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
27975         to "subreg1".
27976
27977
27978 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
27979             Alexander Monakov  <amonakov@ispras.ru>
27980
27981         PR middle-end/38857
27982         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
27983         register.
27984         (move_exprs_to_boundary): Change return type and pass through
27985         should_move from move_op.  Relax assert.  Update usage ...
27986         (schedule_expr_on_boundary): ... here.  Use should_move instead of
27987         cant_move.
27988         (move_op_orig_expr_found): Indicate that insn was disconnected from
27989         stream.
27990         (code_motion_process_successors): Do not call after_merge_succs
27991         callback if original expression was not found when traversing any of
27992         the branches.
27993         (code_motion_path_driver): Change return type.  Update prototype.
27994         (move_op): Update comment.  Add a new parameter (should_move).  Update
27995         prototype.  Set *should_move based on indication provided by
27996         move_op_orig_expr_found.
27997
27998 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
27999
28000         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
28001         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
28002         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
28003         * config/rs6000/rs6000.c (rs6000_override_options): Default
28004         avoid-indexed-addresses on for Power6, off for everything else.
28005         (avoiding_indexed_address_p): New function.
28006         (rs6000_legitimize_address): Use it.
28007         (rs6000_legitimate_address): Likewise.
28008         * config/rs6000/rs6000.md (movXX_updateX): Likewise
28009
28010 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
28011
28012         PR tree-optimization/38997
28013         * tree-loop-distribution.c (generate_memset_zero): Use
28014         POINTER_PLUS_EXPR for a pointer addition.
28015
28016 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
28017
28018         * config/s390/s390.md (bswap<mode>2): New pattern added.
28019
28020 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
28021
28022         * config/s390/s390.md (*tls_load_31): Added type attribute.
28023
28024 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
28025
28026         * config/s390/s390.md: Fix a few comments.
28027
28028 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
28029
28030         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
28031         (*tm<mode>_full): Fixed z10prop attribute.
28032         (*tst<mode>_extimm): Fixed z10prop attribute.
28033         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
28034         (*tstqiCCT_cconly): Fixed z10prop attribute.
28035         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
28036         (*movsi_larl): Fixed z10prop attribute.
28037         (*movsi_zarch): Fixed z10prop attribute.
28038         (*movsi_eas): Fixed z10prop attribute.
28039         (*movhi): Fixed z10prop attribute.
28040         (*movqi): Fixed z10prop attribute.
28041         (*movstrictqi): Fixed z10prop attribute.
28042         (*mov<mode>): Fixed z10prop attribute.
28043         (*movcc): Fixed z10prop attribute.
28044         (*sethighpartdi_64): Fixed z10prop attribute.
28045         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
28046         (*negdi2_sign_cc): Fixed z10prop attribute.
28047         (*negdi2_sign): Fixed z10prop attribute.
28048         (*absdi2_sign_cc): Fixed z10prop attribute.
28049         (*absdi2_sign): Fixed z10prop attribute.
28050         (*negabsdi2_sign_cc): Fixed z10prop attribute.
28051         (*negabsdi2_sign): Fixed z10prop attribute.
28052         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
28053         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
28054         (doloop_si64): Fixed z10prop attribute.
28055         (doloop_si31): Fixed z10prop attribute.
28056         (doloop_long): Fixed z10prop attribute.
28057         (indirect_jump): Fixed z10prop attribute.
28058         (nop): Fixed z10prop attribute.
28059         (main_base_64): Fixed z10prop attribute.
28060         (reload_base_64): Fixed z10prop attribute.
28061
28062 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
28063
28064         PR rtl-optimization/38740
28065         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
28066         if !optimize.
28067         * config/mips/mips.c (mips_reorg): Likewise.
28068
28069 2009-01-28  Richard Guenther  <rguenther@suse.de>
28070
28071         PR tree-optimization/38926
28072         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
28073         with the correct value id to a value.
28074         (do_regular_insertion): Use the value number of edoubleprime
28075         for the value number of the expr.
28076
28077         Revert
28078         2008-08-21  Richard Guenther  <rguenther@suse.de>
28079
28080         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
28081         a PHI ask VN if it is already available.
28082         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
28083         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
28084
28085 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
28086
28087         PR middle-end/38934
28088         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
28089         set to varying whenever max has TREE_OVERFLOW set, similarly
28090         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
28091
28092 2009-01-28  Richard Guenther  <rguenther@suse.de>
28093
28094         PR middle-end/38908
28095         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
28096         uninitialized aggregate uses in call arguments.
28097
28098 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
28099
28100         PR tree-optimization/38984
28101         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
28102         the nothing_id variable if -fno-delete-null-pointer-checks.
28103
28104 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
28105
28106         PR target/38988
28107         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
28108         (set_got_offset_rex64): Ditto.
28109
28110 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
28111
28112         PR target/38941
28113         * doc/extend.texi: Improve local variable with asm reg.
28114
28115 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
28116
28117         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
28118         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
28119         was not supplied then set warn_packed_bitfield_compat to the
28120         default value of 1.
28121         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
28122         against 1.
28123
28124 2009-01-27  Richard Guenther  <rguenther@suse.de>
28125
28126         PR tree-optimization/38503
28127         * cfgexpand.c (expand_gimple_basic_block): Ignore
28128         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
28129         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
28130         variables that cannot have TBAA applied.
28131         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
28132         statements.
28133
28134 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
28135
28136         PR middle-end/38969
28137         * calls.c (initialize_argument_information): Do not wrap complex
28138         arguments in SAVE_EXPR.
28139
28140 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
28141
28142         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
28143         (INSTALL_LIBGCC): Revert typo commit.
28144
28145 2009-01-26  Richard Guenther  <rguenther@suse.de>
28146
28147         PR tree-optimization/38745
28148         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
28149         from special handling.
28150
28151 2009-01-26  Richard Guenther  <rguenther@suse.de>
28152
28153         PR tree-optimization/38745
28154         * tree-ssa.c (execute_update_addresses_taken): Do not include
28155         variables that cannot possibly be a register in not_reg_needs.
28156         Do not clear TREE_ADDRESSABLE on vars that may not become
28157         registers.
28158         * tree-ssa.c (update_alias_info_1): Include those in the set
28159         of addressable vars.
28160
28161 2009-01-26  Richard Guenther  <rguenther@suse.de>
28162
28163         PR middle-end/38851
28164         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
28165         * tree-ssa-dse.c: Include langhooks.h
28166         (execute_simple_dse): Remove stores with zero size.
28167
28168 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
28169
28170         PR c/38957
28171         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
28172         as PLUS_EXPR.
28173
28174 2009-01-24  Julian Brown  <julian@codesourcery.com>
28175
28176         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
28177         config/arm/linux-atomic.c.
28178         * config/arm/linux-atomic.c: New.
28179
28180 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
28181
28182         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
28183         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
28184         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
28185
28186 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
28187
28188         PR c/38938
28189         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
28190         properly.
28191
28192 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
28193
28194         PR tree-optimization/38953
28195         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
28196         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
28197         (gloog): Split the exit of the scop when the scop exit is a loop exit.
28198         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
28199         changed the CFG.
28200
28201 2009-01-24  Paul Brook  <paul@codesourcery.com>
28202
28203         * config/arm/neon.md (neon_type): Move to arm.md.
28204         (neon_mov<VSTRUCT>): Add neon_type attribute.
28205         * config/arm/arm.md (neon_type): Move to here.
28206         (conds): Add "unconditioal" and use as default for NEON insns.
28207
28208 2009-01-24  Ben Elliston  <bje@au.ibm.com>
28209
28210         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
28211         void *' warning from -Wc++-compat.
28212         * Makefile.in (dominance.o-warn): Remove.
28213
28214 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
28215
28216         PR tree-optimization/38932
28217         * fold-const.c (fold_unary_ignore_overflow): New.
28218         * tree.h (fold_unary_ignore_overflow): Declare.
28219         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
28220         * tree-ssa-sccvn.c (visit_reference_op_load,
28221         simplify_unary_expression): Likewise.
28222
28223 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
28224
28225         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
28226         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
28227         regardless of their type.
28228         * c-common.c (handle_packed_attribute): Don't ignore packed on
28229         bitfields.
28230         * c.opt (Wpacked-bitfield-compat): New warning option.
28231         * stor-layout.c (place_field): Warn if offset of a field changed.
28232         * doc/extend.texi (packed): Mention the ABI change.
28233         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
28234         (Warning Options): Add it to the list.
28235
28236 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
28237
28238         * c-opts.c (c_common_post_options): Fix a typo in comments.
28239
28240 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
28241
28242         PR middle-end/38615
28243         * gimplify.c (gimplify_init_constructor): Fix promotion of const
28244         variables to static.
28245         * doc/invoke.texi (-fmerge-all-constants): Update description.
28246
28247 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
28248
28249         PR target/38931
28250         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
28251         (*movdi_1_rex64): Use type "mmx" for alternative 5.
28252
28253 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
28254
28255         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
28256         a word boundary.
28257         (LOCAL_ALIGNMENT): Similarly.
28258
28259 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
28260             Joseph Myers  <joseph@codesourcery.com>
28261
28262         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
28263         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
28264         * config/arm/arm-tune.md: Regenerate.
28265         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
28266         -march=iwmmxt2.
28267
28268 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
28269
28270         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
28271         version number to five.
28272
28273 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
28274
28275         PR c++/38930
28276         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
28277         * c-common.c (set_underlying_type): Likewise.
28278         (is_typedef_decl ): Likewise
28279         * tree.h: Likewise
28280         (set_underlying_type): Likewise.
28281         (is_typedef_type): Likewise.
28282
28283 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
28284
28285         PR middle-end/38587
28286         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
28287         crossing setjmps.
28288
28289 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
28290
28291         PR bootstrap/37660
28292         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
28293         (LIBGCC_SPEC):  Don't define.
28294         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
28295
28296 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
28297
28298         PR rtl-optimization/38879
28299         * alias.c (base_alias_check): Unaligned access via AND address can
28300         alias all surrounding object types except those with sizes equal
28301         or wider than the size of unaligned access.
28302
28303 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
28304
28305         PR c++/26693
28306         * c-decl.c (clone_underlying_type): Move this ...
28307         * c-common.c (set_underlying_type): ... here.
28308         Also, make sure the function properly sets TYPE_STUB_DECL() on
28309         the newly created typedef variant type.
28310         (is_typedef_decl ): New entry point.
28311         * tree.h: Added a new member member_types_needing_access_check to
28312         struct tree_decl_non_common.
28313         (set_underlying_type): New entry point.
28314         (is_typedef_type): Likewise.
28315
28316 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
28317
28318         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
28319         Check whether two instructions have memory references that
28320         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
28321         are helper functions for traversing.
28322         * alias.h (insn_alias_sets_confilict_p): New prototypes.
28323         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
28324         not to draw dependency edge for instructions with non-conflicting
28325         alias sets.
28326
28327 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
28328
28329         PR other/38758
28330         * longlong.h: Update copyright years.  Use soft-fp license notice.
28331         Sync __clz_tab declaration with glibc.
28332
28333 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
28334
28335         PR target/30687
28336         * doc/extend.texi (syscall_linkage): New.
28337         (version_id): Modify.
28338
28339 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
28340             Richard Guenther  <rguenther@suse.de>
28341
28342         PR tree-optimization/38747
28343         PR tree-optimization/38748
28344         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
28345         conversion if the base address is an indirect reference and the
28346         aliasing sets could cause issues.
28347
28348 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
28349
28350         * common.opt (fgraphite, fgraphite-identity): Add comment for
28351         explaining why these options are not documented.
28352
28353 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
28354
28355         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
28356         gimple_call_lhs is NULL.
28357
28358 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
28359
28360         PR target/38868
28361         * emit-rtl.c (adjust_address_1): Make sure memref is never
28362         overwritten.
28363
28364 2009-01-20  Ben Elliston  <bje@au.ibm.com>
28365
28366         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
28367         const qualifier from arg parameter. Remove unnecessary cast to char *.
28368         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
28369         const qualifier from arg 2.
28370
28371 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
28372
28373         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
28374
28375 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
28376
28377         PR c/38869
28378         * rtl.h (reinit_regs): New prototype.
28379         * regclass.c: Include ira.h.
28380         (reinit_regs): New.
28381         * Makefile.in (regclass.o): Add ira.h.
28382         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
28383
28384 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
28385
28386         PR target/38736
28387         * c-common.c (handle_aligned_attribute): Use
28388         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
28389         default alignment value.
28390
28391         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
28392
28393         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
28394         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
28395
28396         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
28397         __BIGGEST_ALIGNMENT__.
28398
28399         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
28400
28401 2009-01-18  Richard Guenther  <rguenther@suse.de>
28402
28403         PR tree-optimization/38819
28404         * tree-flow.h (operation_could_trap_helper_p): Declare.
28405         * tree-eh.c (operation_could_trap_helper_p): Export.
28406         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
28407         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
28408         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
28409         are about to insert a possibly trapping instruction and fail
28410         in this case.
28411
28412 2009-01-18  Andreas Schwab  <schwab@suse.de>
28413
28414         * doc/install.texi (Configuration): Remove obsolete paragraph
28415         about use of --with-gnu-ld with --with-gnu-as.
28416
28417 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
28418
28419         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
28420         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
28421         Follow spelling conventions.
28422
28423 2009-01-18  Ben Elliston  <bje@au.ibm.com>
28424
28425         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
28426         C++ warning about implicit conversion from void * to struct
28427         bitmap_head_def *.
28428         (bitmap_obstack_free): Likewise for bitmap_element *.
28429         * Makefile.in (bitmap.o-warn): Remove.
28430
28431 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
28432
28433         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
28434
28435 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
28436             Tobias Grosser  <tobi.grosser@amd.com>
28437
28438         * graphite.c (graphite_trans_scop_block): Do not block single
28439         nested loops.
28440
28441 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
28442
28443         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
28444         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
28445         test with assertion.
28446
28447 2009-01-16  Richard Guenther  <rguenther@suse.de>
28448
28449         PR tree-optimization/38835
28450         PR middle-end/36227
28451         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
28452         and INT + PTR -> (INT)(PTR p+ INT) folding.
28453         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
28454
28455 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
28456
28457         PR target/38554
28458         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
28459         the subreg from a lowpart subreg if it is also casting the value.
28460
28461 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
28462             Tobias Grosser  <tobi.grosser@amd.com>
28463
28464         * graphite.c (compare_prefix_loops): New.
28465         (build_scop_canonical_schedules): Rewritten.
28466         (graphite_transform_loops): Move build_scop_canonical_schedules
28467         after build_scop_iteration_domain.
28468
28469 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
28470             Tobias Grosser  <tobi.grosser@amd.com>
28471
28472         * graphite.c (add_conditions_to_domain): Add the loops to
28473         the dimension of the iteration domain.  Do copy the domain
28474         only when it exists.
28475         (build_scop_conditions_1): Do not call add_conditions_to_domain.
28476         (add_conditions_to_constraints): New.
28477         (can_generate_code_stmt, can_generate_code): Removed.
28478         (gloog): Do not call can_generate_code.
28479         (graphite_transform_loops): Call add_conditions_to_constraints
28480         after building the iteration domain.
28481
28482 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
28483
28484         PR tree-optimization/38789
28485         * tree-ssa-threadedge.c
28486         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
28487         __builtin_constant_p.
28488
28489 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
28490
28491         * dce.c (delete_unmarked_insns): Reversed the order that insns are
28492         examined before deleting them.
28493
28494 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
28495
28496         * function.c (aggregate_value_p): Correctly extract the function
28497         type from CALL_EXPR_FN lookup.
28498
28499 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
28500
28501         * config/picochip/picochip.c (picochip_override_options): Revert
28502         CFI asm flag disable commited previously.
28503
28504 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
28505             Tobias Grosser  <tobi.grosser@amd.com>
28506             Jan Sjodin  <jan.sjodin@amd.com>
28507
28508         * graphite.c (scan_tree_for_params): On substractions negate
28509         all the coefficients of the term.
28510         (clast_to_gcc_expression_red): New.  Handle reduction expressions
28511         of more than two operands.
28512         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
28513         (get_vdef_before_scop): Handle also the case of default definitions.
28514
28515 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
28516
28517         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
28518         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
28519         Also use them when walking CALL_INSN_FUNCTION_USAGE.
28520
28521 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
28522             Joey Ye  <joey.ye@intel.com>
28523
28524         PR middle-end/37843
28525         * cfgexpand.c (expand_stack_alignment): Don't update stack
28526         boundary nor check incoming stack boundary here.
28527         (gimple_expand_cfg): Update stack boundary and check incoming
28528         stack boundary here.
28529
28530 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
28531
28532         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
28533
28534 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
28535
28536         PR rtl-optimization/38245
28537         * calls.c (expand_call): Add stack arguments to
28538         CALL_INSN_FUNCTION_USAGE even for pure calls (when
28539         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
28540         in regs and partially in memory or BLKmode arguments.
28541         (emit_library_call_value_1): Add stack arguments to
28542         CALL_INSN_FUNCTION_USAGE even for pure calls (when
28543         ACCUMULATE_OUTGOING_ARGS).
28544         * dce.c: Include tm_p.h.
28545         (find_call_stack_args): New function.
28546         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
28547         argument.
28548         (mark_insn): Call find_call_stack_args for CALL_Ps.
28549         (prescan_insns_for_dce): Walk insns backwards in bb rather than
28550         forwards.  Allocate and free arg_stores bitmap if needed, pass it
28551         down to deletable_insn_p, don't mark stores set in arg_stores
28552         bitmap, clear the bitmap at the beginning of each bb.
28553         * Makefile.in (dce.o): Depend on $(TM_P_H).
28554
28555 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
28556
28557         PR target/22599
28558         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
28559         to make sure the insn is a conditional test (bug 22599).  Reformat a
28560         few long lines.
28561
28562 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
28563
28564         PR middle-end/38431
28565         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
28566         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
28567         (gloog): Do not call cleanup_tree_cfg.
28568         (graphite_transform_loops): Call cleanup_tree_cfg after all
28569         scops have been code generated.
28570
28571 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
28572         * doc/gty.texi (Invoking the garbage collector): Added new node
28573         and section documenting ggc_collect.
28574
28575 2009-01-14  Richard Guenther  <rguenther@suse.de>
28576
28577         PR tree-optimization/38826
28578         PR middle-end/38477
28579         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
28580         initialization notes only if we actually emitted a warning.
28581         (intra_create_variable_infos): Add constraints for a result decl
28582         that is passed by hidden reference.
28583         (build_pred_graph): Mark all related variables non-direct on
28584         address-taking.
28585
28586 2009-01-14  Nick Clifton  <nickc@redhat.com>
28587
28588         * ira-conflicts.c: Include addresses.h for the definition of
28589         base_reg_class.
28590         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
28591         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
28592
28593 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
28594
28595         PR target/38811
28596         * Makefile.in (ira-lives.o): Add except.h.
28597
28598         * ira-lives.c: Include except.h.
28599         (process_bb_node_lives): Process can_throw_internal.
28600
28601 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
28602
28603         PR rtl-optimization/38774
28604         * combine.c (simplify_set): When undoing cc_use change, don't do
28605         PUT_CODE on the newly created comparison, but instead put back the
28606         old comparison.
28607
28608 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
28609
28610         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
28611         values.  Remove duplicate arm8 entry.
28612
28613 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
28614
28615         PR tree-optimization/38786
28616         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
28617         the SSA_NAME case of expand_scalar_variables_expr.
28618         Set the type of an expression to the type of its assign statement.
28619         (expand_scalar_variables_expr): Also gather the scalar computation
28620         used to index the memory access.  Do not pass loop_p.
28621         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
28622         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
28623         the gimple_stmt_iterator where it inserts new code.
28624         Do not pass loop_p.
28625         (copy_bb_and_scalar_dependences): Do not pass loop_p.
28626         (translate_clast): Update call to copy_bb_and_scalar_dependences.
28627
28628 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
28629
28630         * graphite.h (debug_value): Removed.
28631         * graphite.c (debug_value): Removed.
28632
28633 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
28634
28635         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
28636         ldrd/strd with two 32-bit instructions.
28637
28638 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
28639
28640         * config/arm/arm.c (struct processors): Pass for speed down into
28641         cost helper functions.
28642         (const_ok_for_op): Handle COMPARE and inequality nodes.
28643         (arm_rtx_costs_1): Rewrite.
28644         (arm_size_rtx_costs): Update prototype.
28645         (arm_rtx_costs): Pass speed down to helper functions.
28646         (arm_slowmul_rtx_costs): Rework cost calculations.
28647         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
28648         (arm_9e_rtx_costs): Likewise.
28649
28650 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
28651
28652         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
28653         relocations of local symbols wider than UNITS_PER_WORD are not valid.
28654         (alpha_legitimize_address): Do not split local symbols wider than
28655         UNITS_PER_WORD into HIGH/LO_SUM parts.
28656
28657 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
28658
28659         PR bootstrap/38580
28660         * gcc.c (process_command): Replace call to execvp with calls
28661         to pex_one and exit.
28662
28663 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
28664
28665         PR target/29141
28666         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
28667         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
28668         variant for devices with 3-byte PC.
28669         (__tablejump_elpm__): New.
28670
28671 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
28672
28673         PR c/32041
28674         * c-parser.c (c_parser_postfix_expression): Allow `->' in
28675         offsetof member-designator, handle it as `[0].'.
28676
28677 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28678
28679         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
28680         function when not using named sections on targets with named sections
28681         if branch distance is less than 262132.
28682
28683 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
28684
28685         * combine.c (combine_instructions):  Recompute
28686         optimize_this_for_speed_p  for each BB in the main combine loop.
28687
28688 2009-01-12  Tomas Bily  <tbily@suse.cz>
28689
28690         PR middlend/38385
28691         * tree-loop-distribution.c (prop_phis): New function.
28692         (generate_builtin): Call prop_phis.
28693
28694 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
28695
28696         PR tree-optimization/38807
28697         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
28698         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
28699
28700 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
28701
28702         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
28703         subreg of op0 to the original op0.
28704
28705 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
28706
28707         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
28708
28709 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
28710
28711         PR debug/7055
28712         * mips-tfile.c (parse_def): Fix parsing of def strings
28713         starting with digits.
28714
28715 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
28716
28717         PR target/38695
28718         * config/arm/arm.c (arm_is_long_call_p): Don't call
28719         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
28720
28721 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
28722
28723         * regrename.c (regrename_optimize): Fix dumping.
28724         (find_oldest_value_reg): Preserve REG_POINTER.
28725         (copy_hardreg_forward_1): Likewise.
28726
28727 2009-01-09  Diego Novillo  <dnovillo@google.com>
28728
28729         * gimple.h (struct gimple_statement_base) <uid>: Document
28730         the restrictions on its use.
28731         (gimple_uid): Tidy.
28732         (gimple_set_uid): Tidy.
28733
28734 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
28735
28736         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
28737         zero guard even if align_bytes != 0 and count is smaller than
28738         size_needed.
28739
28740 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
28741
28742         PR rtl-optimization/38495
28743         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
28744         (add_range_and_copies_from_move_list): Print all added ranges.
28745         Add ranges to memory optimized destination.
28746
28747 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
28748
28749         PR target/38686
28750         PR target/38708
28751         * config/i386/i386.c (override_options): Reject
28752         -mstringop-strategy=rep_8byte with -m32.
28753         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
28754         to 1.  Do count comparison against epilogue_size_needed at compile
28755         time even when count_exp was constant forced into register.  For
28756         size_needed don't jump to epilogue, instead just avoid aligning
28757         and invoke the body algorithm.  If need_zero_guard, add zero guard
28758         even if count is non-zero, but smaller than size_needed + number of
28759         bytes that could be stored for alignment.
28760         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
28761         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
28762         but smaller than size_needed + number of bytes that could be stored
28763         for alignment.  Compare size_needed with epilogue_size_needed instead
28764         of desired_align - align, don't adjust size_needed, pass
28765         epilogue_size_needed to the epilogue expanders.
28766
28767         PR c/35742
28768         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
28769
28770 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28771
28772         * pa.c (last_address): Change to unsigned.
28773         (update_total_code_bytes): Change argument to unsigned.  Don't
28774         check if insn addresses are set.
28775         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
28776         addresses are not set.
28777         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
28778
28779 2009-01-09  Nick Clifton  <nickc@redhat.com>
28780
28781         * config/sh/symbian.c: Replace uses of DECL_INLINE with
28782         DECL_DECLARED_INLINE_P.
28783
28784 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
28785
28786         PR middle-end/38347
28787         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
28788         GET_MODE (op0) in operand_subword_force calls.
28789
28790         PR middle-end/38771
28791         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
28792         fold_convert arg0 operands to TREE_TYPE (op0) first.
28793
28794 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
28795
28796         * params.def (ira-max-conflict-table-size): Decrease default value
28797         to 1000.
28798
28799 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
28800
28801         PR tree-optimization/37031
28802         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
28803         on parameter_set.
28804         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
28805         allocate it using gc instead of heap, use VEC_quick_push instead of
28806         VEC_safe_push.
28807         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
28808         instead of heap, use VEC_quick_push instead of VEC_safe_push.
28809         * tree-data-ref.h (struct access_matrix): Change matrix to gc
28810         allocated vector from heap allocated.
28811         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
28812         * tree-loop-linear.c (linear_transform_loops): Allocate nest
28813         vector only after perfect_loop_nest_depth call.
28814
28815 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
28816             Jan Sjodin  <jan.sjodin@amd.com>
28817
28818         PR tree-optimization/38559
28819         * graphite.c (debug_value, copy_constraint,
28820         swap_constraint_variables, scale_constraint_variable, ): New.
28821         (get_lower_bound, get_upper_bound): Removed.
28822         (graphite_trans_bb_strip_mine): Clean up this code that works
28823         only for constant number of iterations.  Fully copy upper and
28824         lower bound constraints, not only the constant part of them.
28825         * graphite.h (debug_value): Declared.
28826
28827 2009-01-08  Ira Rosen  <irar@il.ibm.com>
28828
28829         PR tree-optimization/37194
28830         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
28831         Don't add the cost of cost model guard in prologue to scalar
28832         outside cost in case of known number of iterations.
28833
28834 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
28835             Alan Modra  <amodra@bigpond.net.au>
28836
28837         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
28838         non-word-aligned REG+CONST addressing.
28839
28840 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
28841
28842         PR target/38706
28843         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
28844         free_after_compilation when outputting a thunk.
28845         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
28846         Do not call free_after_compilation here.
28847
28848 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
28849
28850         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
28851         (ix86_valid_target_attribute_inner_p): Ditto.
28852
28853 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
28854
28855         PR tree-optimization/38492
28856         PR tree-optimization/38498
28857         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
28858         * tree-chrec.h (scev_is_linear_expression): Declared.
28859         * graphite.c (graphite_cannot_represent_loop_niter): New.
28860         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
28861         (graphite_loop_normal_form): Use gcc_assert.
28862         (scan_tree_for_params): Use CASE_CONVERT.
28863         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
28864         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
28865         Use gcc_assert.  Discard scops that contain unhandled cases.
28866         (build_scop_conditions): Return a boolean status for unhandled cases.
28867         (strip_mine_profitable_p): Print the loop number, not its depth.
28868         (is_interchange_valid): Pass the depth of the loop nest, don't
28869         recompute it wrongly.
28870         (graphite_trans_bb_block): Same.
28871         (graphite_trans_bb_block): Print tentative of loop blocking.
28872         (graphite_trans_scop_block): Do not print that the loop has been
28873         blocked.
28874         (graphite_transform_loops): Do not handle scops that contain condition
28875         scalar phi nodes.
28876
28877 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
28878
28879         AVX Programming Reference (December, 2008)
28880         * config/i386/avxintrin.h (_mm256_stream_si256): New.
28881         (_mm256_stream_pd): Likewise.
28882         (_mm256_stream_ps): Likewise.
28883
28884         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
28885         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
28886         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
28887         (bdesc_special_args): Add __builtin_ia32_movntdq256,
28888         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
28889         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
28890         (ix86_expand_special_args_builtin): Likewise.
28891
28892         * config/i386/sse.md (AVXMODEDI): New.
28893         (avx_movnt<mode>): Likewise.
28894         (avx_movnt<mode>): Likewise.
28895         (<sse>_movnt<mode>): Remove AVX support.
28896         (sse2_movntv2di): Likewise.
28897
28898 2009-01-07  Richard Guenther  <rguenther@suse.de>
28899
28900         PR middle-end/38751
28901         * fold-const.c (extract_muldiv): Remove obsolete comment.
28902         (fold_plusminus_mult_expr): Undo MINUS_EXPR
28903         to PLUS_EXPR canonicalization for the canonicalization.
28904
28905 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
28906
28907         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
28908         hosted cross-compilers generating less efficient code.
28909
28910 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
28911
28912         * function.h (rtl_data): Add a dbr_scheduled_p field.
28913         * reorg.c (dbr_schedule): Set it.
28914         (gate_handle_delay_slots): Check it.
28915         * config/mips/mips.c (mips_base_delayed_branch): Delete.
28916         (mips_reorg): Check flag_delayed_branch instead of
28917         mips_base_delayed_branch.
28918         (mips_override_options): Don't set mips_base_delayed_branch
28919         or flag_delayed_branch.
28920
28921 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
28922
28923         PR rtl-optimization/38426.
28924         * ira.c (ira): Set current_function_is_leaf earlier.
28925
28926 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
28927
28928         PR rtl-optimization/38722
28929         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
28930         too early, only set a flag and modify after last possible
28931         undo_all point.
28932
28933 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
28934
28935         PR c/34252
28936         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
28937         * real.c (decimal_single_format): Correct values of emin and emax.
28938         (decimal_double_format): Ditto.
28939         (decimal_quad_format): Ditto.
28940         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
28941         computation of DECnn_MIN and DECnn_MAX for corrected values of
28942         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
28943         __DECnn_MIN__, and adjust its computation for the corrected value
28944         of emin.
28945
28946 2009-01-06  Jan Hubicka  <jh@suse.cz>
28947
28948         PR target/38744
28949         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
28950
28951 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
28952
28953         * doc/contrib.texi (Contributors): Slightly adjust the end note.
28954         Add Robert Clark to the list of testers.
28955
28956 2009-01-06  Jan Hubicka  <jh@suse.cz>
28957             Kai Tietz  <kai.tietz@onevision.com>
28958
28959         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
28960         * config/i386/i386.c (ix86_expand_call): Add clobbers.
28961
28962 2009-01-06  Jan Hubicka  <jh@suse.cz>
28963             Kai Tietz  <kai.tietz@onevision.com>
28964
28965         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
28966         for w64 ABI.
28967         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
28968         (ix86_nsaved_regs): Count only general purpose regs.
28969         (ix86_nsaved_sseregs): New.
28970         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
28971         to 16 for w64; compute padding and size of sse reg save area.
28972         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
28973         general purpose regs.
28974         (ix86_emit_save_sse_regs_using_mov): New.
28975         (ix86_expand_prologue): Save SSE regs if needed.
28976         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
28977         (ix86_emit_restore_sse_regs_using_mov): New.
28978         (ix86_expand_epilogue): Save SSE regs if needed.
28979
28980 2009-01-06  Jan Hubicka  <jh@suse.cz>
28981             Kai Tietz  <kai.tietz@onevision.com>
28982
28983         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
28984         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
28985         functions when accumulate outgoing args is off.
28986
28987 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
28988
28989         PR bootstrap/38742
28990         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
28991         before using pseudos_have_intersected_live_ranges_p.
28992
28993         * ira-int.h (ira_assert): Always define.
28994
28995 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
28996
28997         AVX Programming Reference (December, 2008)
28998         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
28999         (_mm256_permute2_pd): Likewise.
29000         (_mm_permute2_ps): Likewise.
29001         (_mm256_permute2_ps): Likewise.
29002         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
29003         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
29004
29005         * config/i386/i386.c (ix86_builtins): Remove
29006         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
29007         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
29008         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
29009         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
29010         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
29011         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
29012         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
29013         __builtin_ia32_vpermil2ps256.
29014         (ix86_init_mmx_sse_builtins): Updated.
29015         (ix86_expand_args_builtin): Likewise.
29016
29017 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29018
29019         * pa.c (output_call): Relocate non-jump insns in the delay slot of
29020         long absolute calls when generating PA 2.0 code.
29021
29022 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
29023
29024         PR rtl-optimization/38583
29025         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
29026
29027         * params.def (ira-max-conflict-table-size): New.
29028
29029         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
29030
29031         * ira.h (ira_conflicts_p): New external definition.
29032
29033         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
29034         table.  Report this.  Return result of building.
29035         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
29036         building conflict table.
29037
29038         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
29039         (ira_color): Use ira_conflicts_p.
29040
29041         * global.c: Include ira.h.
29042         (pseudo_for_reload_consideration_p, build_insn_chain): Use
29043         ira_conflicts_p.
29044
29045         * Makefile.in (global.o): Add ira.h.
29046
29047         * ira-build.c (mark_all_loops_for_removal,
29048         propagate_some_info_from_allocno): New.
29049         (remove_unnecessary_allocnos): Call
29050         propagate_some_info_from_allocno.
29051         (remove_low_level_allocnos): New.
29052         (remove_unnecessary_regions): Add parameter.  Call
29053         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
29054         parameter to remove_unnecessary_regions.
29055         (ira_build): Remove all regions but root if the conflict table was
29056         not built.  Update conflict hard regs for allocnos crossing calls.
29057
29058         * ira.c (ira_conflicts_p): New global.
29059         (ira): Define and use ira_conflicts_p.
29060
29061         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
29062         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
29063         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
29064
29065 2009-01-06  Ben Elliston  <bje@au.ibm.com>
29066
29067         * gengtype-lex.l (YY_NO_INPUT): Define.
29068
29069 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
29070
29071         PR c/34911
29072         * c-common.c (handle_vector_size_attribute): Also reject
29073         BOOLEAN_TYPE types.
29074
29075 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
29076
29077         PR tree-optimization/38492
29078         * graphite.c (rename_map_elt, debug_rename_elt,
29079         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
29080         rename_map_elt_info, eq_rename_map_elts,
29081         get_new_name_from_old_name, bb_in_sese_p): Moved around.
29082         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
29083         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
29084         (sese_build_livein_liveouts): New.
29085         (new_sese, free_sese): New.
29086         (new_scop): Call new_sese.
29087         (free_scop): Call free_sese.
29088         (rename_variables_from_edge, rename_phis_end_scop): Removed.
29089         (register_old_new_names): Renamed register_old_and_new_names.
29090         (register_scop_liveout_renames, add_loop_exit_phis,
29091         insert_loop_close_phis, struct igp,
29092         default_liveout_before_guard, add_guard_exit_phis,
29093         insert_guard_phis, copy_renames): New.
29094         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
29095         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
29096         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
29097         (scop_adjust_phis_for_liveouts): New.
29098         (gloog): Call scop_adjust_phis_for_liveouts.
29099
29100         * graphite.h (struct sese): Documented.  Added fields liveout,
29101         num_ver and livein.
29102         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
29103         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
29104         (struct scop): Added field liveout_renames.
29105         (SCOP_LIVEOUT_RENAMES): New.
29106
29107 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
29108
29109         PR tree-optimization/38510
29110         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
29111         (translate_clast): Call recompute_all_dominators before
29112         graphite_verify.
29113         (gloog): Call recompute_all_dominators before graphite_verify.
29114
29115 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
29116             Jan Sjodin  <jan.sjodin@amd.com>
29117
29118         PR tree-optimization/38500
29119         * graphite.c (create_sese_edges): Call fix_loop_structure after
29120         splitting blocks.
29121
29122 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
29123
29124         * config.gcc: Add m32r*-*-rtems*.
29125         * config/m32r/rtems.h: New file.
29126
29127 2009-01-05  Ben Elliston  <bje@au.ibm.com>
29128
29129         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
29130         (.po.pox): Likewise.
29131         (po/gcc.pot): Likewise.
29132
29133 2009-01-04  David S. Miller  <davem@davemloft.net>
29134
29135         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
29136         (STARTING_FRAME_OFFSET): Always set to zero.
29137
29138 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
29139
29140         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
29141         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
29142         fixed-point types, and vectors of the same.
29143
29144 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
29145
29146         * config/mips/sync.md (*mb_barrier): Rename to...
29147         (*memory_barrier): ...this.
29148
29149 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
29150
29151         * doc/extend.texi (Function Attributes): Move @cindex after @item
29152         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
29153         and put in alphabetical order. Fix 'target' name and put in order.
29154         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
29155         typos.
29156
29157 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
29158
29159         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
29160         (memory_barrier): Expand as unspec instead of unspec_volatile.
29161         Remove mem:BLK from insn operands.  Use Pmode scratch register.
29162         (*memory_barrier): Define as unspec instead of unspec_volatile.
29163         Use (match_dup 0) as input operand.
29164
29165         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
29166         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
29167         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
29168         scratch register.  Remove operand 1.
29169         (*stbar): Define as unspec instead of unspec_volatile.
29170         Use (match_dup 0) as input operand, remove (const_int 8).
29171         (*membar): Define as unspec instead of unspec_volatile.
29172         Use (match_dup 0) as input operand, remove input operand 2.
29173
29174         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
29175         (memory_barrier): Expand as unspec instead of unspec_volatile.
29176         Remove mem:BLK from insn operands.  Use Pmode scratch register.
29177         (*memory_barrier): Define as unspec instead of unspec_volatile.
29178         Use (match_dup 0) as input operand.
29179
29180         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
29181         Remove mem:BLK from insn operands.  Use Pmode scratch register.
29182         Set volatile flag on operand 0.
29183         (*memory_barrier): New insn pattern.
29184
29185         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
29186         insn operands.
29187         (*memory_barrier): Use (match_dup 0) as input operand.
29188
29189         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
29190         Remove mem:BLK from insn operands.  Use Pmode scratch register.
29191         Set volatile flag on operand 0.
29192         (*mb_internal): New insn pattern.
29193
29194         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
29195
29196 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
29197
29198         PR middle-end/38586
29199         * function.c (struct temp_slot): Move to the section of the file
29200         that deals with temp slots.  Remove field 'address'.
29201         (temp_slot_address_table): New hash table of address -> temp slot.
29202         (struct temp_slot_address_entry): New struct, items for the table.
29203         (temp_slot_address_compute_hash, temp_slot_address_hash,
29204         temp_slot_address_eq, insert_temp_slot_address): Support functions
29205         for the new table.
29206         (find_temp_slot_from_address): Rewrite to use the new hash table.
29207         (remove_unused_temp_slot_addresses): Remove addresses of temp
29208         slots that have been made available.
29209         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
29210         worker function for remove_unused_temp_slot_addresses.
29211         (assign_stack_temp_for_type): Don't clear the temp slot address list.
29212         Add the temp slot address to the address -> temp slot map.
29213         (update_temp_slot_address): Update via insert_temp_slot_address.
29214         (free_temp_slots): Call remove_unused_temp_slot_addresses.
29215         (pop_temp_slots): Likewise.
29216         (init_temp_slots): Allocate the address -> temp slot map, or empty
29217         the map if it is already allocated.
29218         (prepare_function_start): Initialize temp slot processing.
29219
29220 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
29221
29222         PR middle-end/38584
29223         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
29224         Calculate the size of all stack vars assuming no packing of stack
29225         vars will happen, replacing a quadratic algorithm with a linear one.
29226
29227 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
29228
29229         PR target/38707
29230         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
29231         can't be used.
29232
29233 2009-01-03  Diego Novillo  <dnovillo@google.com>
29234
29235         * doc/contrib.texi: Update contributions.
29236
29237 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
29238
29239         PR c++/38705
29240         * builtins.c (fold_builtin_memory_op): Give up if either operand
29241         is volatile.  Set srctype or desttype to non-qualified version
29242         of the other type.
29243
29244         PR c/38700
29245         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
29246         and FUNCTION_DECLs.
29247
29248 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
29249
29250         PR rtl-optimization/35805
29251         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
29252         problem if fast dce is able to remove any instructions.
29253         * dce.c (dce_process_block): Fix dump message.
29254
29255 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
29256
29257         PR 33649
29258         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
29259
29260 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
29261
29262         PR middle-end/38690
29263         * tree-flow.h (op_code_prio, op_prio): New prototypes.
29264         * tree-pretty-print.c (op_code_prio): New function.
29265         (op_prio): No longer static.  Use op_code_prio.
29266         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
29267         Use op_prio and op_code_prio to determine if () should be
29268         printed around operand(s) or not.
29269
29270         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
29271         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
29272         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
29273         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
29274         pp_character instead of pp_string for single letter printing.
29275
29276 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
29277
29278         * doc/extend.texi: Fix '#pragma GCC option' typo.
29279
29280 2009-01-02  Richard Guenther  <rguenther@suse.de>
29281
29282         * doc/install.texi (--enable-checking): Mention different
29283         default for stage1.
29284         (--enable-stage1-checking): Document.
29285
29286 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
29287
29288         PR middle-end/30142
29289         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
29290         case to be an error.
29291
29292 2009-01-02  Ben Elliston  <bje@au.ibm.com>
29293
29294         * config/fp-bit.h (pack_d): Constify argument.
29295         * config/fp-bit.c (makenan): Constify return type. Remove casts.
29296         (isnan): Constify argument.
29297         (isinf): Likewise.
29298         (iszero): Likewise.
29299         (pack_d): Likewise.
29300         (_fpadd_parts): Constify return type.
29301         (_fpmul_parts): Likewise.
29302         (_fpdiv_parts): Likewise.
29303
29304 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
29305
29306         PR c/36489
29307         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
29308         warn about overwriting initializer with side-effects or
29309         -Woverride-init if !IMPLICIT.
29310         (output_init_element): Likewise.  Pass IMPLICIT down to
29311         add_pending_init.
29312         (process_init_element): Add IMPLICIT argument.  Pass it down
29313         to output_init_element.
29314         (push_init_element, pop_init_level, set_designator): Adjust
29315         process_init_element callers.
29316         (set_nonincremental_init, set_nonincremental_init_from_string):
29317         Adjust add_pending_init callers.
29318         (output_pending_init_elements): Adjust output_init_element callers.
29319         * c-tree.h (process_init_element): Adjust prototype.
29320         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
29321         process_init_element callers.
29322
29323 \f
29324 Copyright (C) 2009 Free Software Foundation, Inc.
29325
29326 Copying and distribution of this file, with or without modification,
29327 are permitted in any medium without royalty provided the copyright
29328 notice and this notice are preserved.