OSDN Git Service

* config/sh/sh.c (nonpic_symbol_mentioned_p): Allow UNSPEC_TPOFF.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-10-21  Joseph Myers  <joseph@codesourcery.com>
2
3         * config/sh/sh.c (nonpic_symbol_mentioned_p): Allow UNSPEC_TPOFF.
4
5 2009-10-21  Jakub Jelinek  <jakub@redhat.com>
6
7         PR other/25507
8         * doc/invoke.texi: Document -print-multi-os-directory.
9
10 2009-10-21  Jack Howarth  <howarth@bromo.med.uc.edu>
11
12         PR c++/41313
13         * gcc/config/darwin10.h: Use default_emit_unwind_label.
14         * gcc/config/darwin.c: Disable -freorder-blocks-and-partition
15         when darwin_emit_unwind_label is used.
16
17 2009-10-21  Eric Botcazou  <ebotcazou@adacore.com>
18
19         * tree-vect-stmts.c (exist_non_indexing_operands_for_use_p): Tweak
20         order of checks.
21
22 2009-10-20  Richard Henderson  <rth@redhat.com>
23
24         * tree-eh.c (lower_try_finally_copy): Do lower_eh_constructs_1
25         before emit_post_landing_pad.
26
27 2009-10-20  Adam Nemet  <anemet@caviumnetworks.com>
28
29         * config/mips/mips.c (mips_binary_cost): Add new argument speed.
30         Use when calling rtx_costs.
31         (mips_rtx_costs): Fix formatting.  Use argument speed rather than the
32         global optimize_size.  Pass speed to mips_binary_cost.
33
34 2009-10-20  Jakub Jelinek  <jakub@redhat.com>
35
36         * config/rs6000/rs6000.c (def_builtin): Set TREE_READONLY instead
37         of TREE_CONSTANT.
38
39 2009-10-20  Richard Sandiford  <rdsandiford@googlemail.com>
40
41         * rtl.h (simplify_replace_fn_rtx): Declare.
42         (wrap_constant, unwrap_constant): Delete.
43         * cfgexpand.c (unwrap_constant, wrap_constant): Delete.
44         (expand_debug_expr): Don't call wrap_constant.
45         * combine.c (rtx_subst_pair): Only define for AUTO_INC_DEC.
46         (auto_adjust_pair): Fold into...
47         (propagate_for_debug_subst): ...here.  Only define for AUTO_INC_DEC.
48         Just return a new value.
49         (propagate_for_debug): Use simplify_replace_fn_rtx for AUTO_INC_DEC,
50         otherwise use simplify_replace_rtx.
51         * cselib.c (wrap_constant): Reinstate old definition.
52         (cselib_expand_value_rtx_1): Don't wrap constants.
53         * gcse.c (try_replace_reg): Don't use copy_rtx in the call to
54         simplify_replace_rtx.
55         (bypass_block): Fix formatting in calls to simplify_replace_rtx.
56         * reload1.c (reload): Skip all uses for an insn before adjusting it.
57         Use simplify_replace_rtx.
58         * simplify-rtx.c (simplify_replace_fn_rtx): New function,
59         adapted from...
60         (simplify_replace_rtx): ...here.  Turn into a wrapper for
61         simplify_replace_fn_rtx.
62         (simplify_unary_operation): Don't unwrap CONSTs.
63         * var-tracking.c (check_wrap_constant): Delete.
64         (vt_expand_loc_callback): Don't call it.
65         (vt_expand_loc): Likewise.
66
67 2009-10-20  Pascal Obry  <obry@adacore.com>
68             Eric Botcazou  <ebotcazou@adacore.com>
69
70         * config/i386/cygming.h (DWARF_FRAME_REGNUM): Add enclosing parens.
71
72 2009-10-20  Michael Matz  <matz@suse.de>
73
74         * loop-invariant.c (create_new_invariant): Use different magic number.
75
76 2009-10-20  Richard Earnshaw  <rearnsha@arm.com>
77
78         PR target/39247
79         * arm.c (arm_override_options): Forcibly disable hot/cold block
80         partitioning.
81
82 2009-10-20  Alexandre Oliva  <aoliva@redhat.com>
83
84         PR debug/41739
85         * haifa-sched.c (try_ready): Skip debug deps updating speculation
86         status.
87
88 2009-10-20  Richard Guenther  <rguenther@suse.de>
89
90         * ggc-page.c: Include cfgloop.h.
91         (struct max_alignment): Drop long double, add void *.
92         (extra_order_size_table): Add low non-power-of-two multiples
93         of MAX_ALIGNMENT.  Drop small type-based entries, add
94         tree_type, cgraph_node and loop.
95         * alloc-pool.c (struct allocation_object_def): Drop long double
96         aligning element.
97
98 2009-10-20  Jakub Jelinek  <jakub@redhat.com>
99
100         PR debug/41340
101         * loop-invariant.c (calculate_loop_reg_pressure): Don't count regs
102         referenced just in DEBUG_INSNs.
103
104 2009-10-20  Richard Guenther  <rguenther@suse.de>
105
106         PR lto/41761
107         * gimple.c (gimple_register_type): Make sure we register
108         the types main variant first.
109
110 2009-10-20  Richard Guenther  <rguenther@suse.de>
111
112         * gimple.c (gimple_types_compatible_p): Simplify.  Move
113         cheap checks before hashtable queries.  Add checks for
114         TYPE_NONALIASED_COMPONENT and DECL_NONADDRESSABLE_P.
115
116 2009-10-20  Eric Botcazou  <ebotcazou@adacore.com>
117
118         * tree-sra.c (build_ref_for_offset_1) <RECORD_TYPE>: Skip fields
119         without size or with size that can't be represented as a host integer.
120
121 2009-10-20  Alexandre Oliva  <aoliva@redhat.com>
122
123         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't regard
124         the removal of a debug stmt as a significant change.
125
126 2009-10-20  Wolfgang Gellerich  <gellerich@de.ibm.com>
127
128         * config/s390/s390.md: Added agen condition to operand
129         forwarding bypasses. 
130         Added bypass for early address generation use of int results.
131         Updated comments.
132
133 2009-10-20  Stefan Dösinger  <stefan@codeweavers.com>
134
135         * config/i386/i386.c: Remove signal.h #include.
136
137 2009-10-20  Jie Zhang  <jie.zhang@analog.com>
138
139         * simplify-rtx.c (simplify_const_unary_operation): Handle SS_ABS.
140         * doc/rtl.texi: Document ss_abs.
141
142 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
143
144         * c-common.c (c_parse_error): Handle CPP_UTF8STRING.
145         * c-lex.c (c_lex_with_flags): Likewise.  Test C_LEX_STRING_NO_JOIN
146         instead of C_LEX_RAW_STRINGS.
147         (lex_string): Handle CPP_UTF8STRING.
148         * c-parser.c (c_parser_postfix_expression): Likewise.
149         * c-pragma.h (C_LEX_RAW_STRINGS): Rename to ...
150         (C_LEX_STRING_NO_JOIN): ... this.
151
152 2009-10-19  Anatoly Sokolov  <aesok@post.ru>
153
154         * config/cris/cris.c (cris_function_value, cris_libcall_value,
155         cris_function_value_regno_p): New functions.
156         (cris_promote_function_mode): Update comment.
157         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
158         * config/cris/cris.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
159         (FUNCTION_VALUE_REGNO_P): Redefine, use cris_function_value_regno_p.
160         * config/cris/cris-protos.h (cris_function_value_regno_p): Declare.
161
162 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
163
164         * unwind-dw2.c (execute_stack_op): Fix operand order for
165         DW_OP_le, DW_OP_ge, DW_OP_lt and DW_OP_gt.
166
167 2009-10-19  Eric Botcazou  <ebotcazou@adacore.com>
168
169         * gimple-low.c (struct lower_data): Add cannot_fallthru field.
170         (lower_stmt) <GIMPLE_BIND>: Add comment.
171         <GIMPLE_COND, GIMPLE_GOTO, GIMPLE_SWITCH>: Set cannot_fallthru to true
172         and return.
173         <GIMPLE_RETURN>: Remove the statement if cannot_fallthru is set.
174         Otherwise lower it and set cannot_fallthru to true.
175         <GIMPLE_TRY>: Update cannot_fallthru for GIMPLE_TRY_FINALLY and return.
176         <GIMPLE_CATCH, GIMPLE_EH_FILTER>: Set cannot_fallthru to false.
177         <GIMPLE_CALL>: Set cannot_fallthru to false for BUILT_IN_SETJMP and
178         to true for a noreturn call.  Do not remove statements.
179         <GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TASK>: Set cannot_fallthru to false.
180         Set cannot_fallthru to false on function exit.
181         (gimple_stmt_may_fallthru) <GIMPLE_SWITCH>: Really return false.
182         <GIMPLE_ASSIGN>: Remove.
183
184 2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
185
186         * config/s390/s390.c (s390_z10_optimize_cmp): Don't touch FP compares.
187
188 2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
189
190         * config/s390/s390.c (s390_z10_optimize_cmp): Use
191         next/prev_active_insn to skip DEBUG_INSNs as well.
192
193 2009-10-19  Joseph Myers  <joseph@codesourcery.com>
194
195         * config/arm/arm.c (output_move_neon): Use DImode in call to
196         adjust_address.
197
198 2009-10-19  Matthias Klose  <doko@ubuntu.com>
199
200         PR target/40134
201         * config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.
202
203 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
204
205         * cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM op0.
206
207 2009-10-17  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
208
209         PR middle-end/41738
210         * optabs.c (expand_binop): Make mode of shift count expression mode
211         of shift count not target.
212         Remove indent nit.
213
214 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
215
216         * tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
217         case.  Force using values to replace references within the statement.
218         (convert_local_reference_stmt): Likewise.
219
220 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
221
222         * gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
223         remove a subsequent GOTO or RETURN statement.
224
225 2009-10-17  Andy Hutchinson  <hutchinsonandy@aim.com>
226
227         * config/avr.md (*movqi): Add zero as equally preferable constraint
228         as general register.
229         (*movhi): Ditto.
230
231 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
232
233         * print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.
234
235 2009-10-17  Richard Guenther  <rguenther@suse.de>
236
237         * lto-streamer-in.c (lto_input_location): Try to reuse previous maps.
238
239 2009-10-17  Richard Guenther  <rguenther@suse.de>
240
241         * lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL
242         operands in COMPONENT_REFs.
243
244 2009-10-17  Anatoly Sokolov  <aesok@post.ru>
245
246         * targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
247         if not defined. Change type of second argument to const_rtx.
248         (default_function_value): Call gcc_unreachable if FUNCTION_VALUE
249         macro not defined.
250         * targhooks.h (default_libcall_value): Update prototype.
251         * target.h (struct gcc_target): Change type of second argument of
252         libcall_value to const_rtx.
253         * config/arm/arm.c (arm_libcall_value): Change type of second argument
254         to const_rtx.
255         (arm_libcall_uses_aapcs_base): Change type of argument to const_rtx.
256         * doc/tm.texi (TARGET_LIBCALL_VALUE):  Revise documentation.
257
258 2009-10-17  Jakub Jelinek  <jakub@redhat.com>
259
260         PR debug/40521
261         * debug.h (struct gcc_debug_hooks): Add assembly_start hook.
262         * cgraphunit.c (cgraph_optimize): Call it.
263         * dwarf2out.c (dwarf2out_init): Move .cfi_sections printing into...
264         (dwarf2out_assembly_start): ... here.  New hook.
265         (dwarf2out_debug_hooks): Add dwarf2out_assembly_start.
266         * debug.c (do_nothing_debug_hooks): Do nothing for assembly_start
267         hook.
268         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
269         * sdbout.c (sdb_debug_hooks): Likewise.
270         * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_assembly_start.
271         (vmsdbgout_assembly_start): New hook.
272
273 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
274
275         * rtl.h (RTL_LOCATION): Fix typo.
276
277 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
278
279         * print-rtl.c (print_rtx): Print locators in asm_operands
280         and asm_input.
281
282 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
283
284         PR debug/41535
285         * sched-deps.c (depl_on_debug_p): New.
286         (attach_dep_link): Reject debug deps before nondebug deps.
287         (add_to_deps_list): Insert debug deps after nondebug deps.
288         (sd_lists_empty_p): Stop at first nonempty list.  Disregard debug
289         deps.
290         (sd_add_dep): Do not reject debug deps.
291         (add_insn_mem_dependence): Don't count debug deps.
292         (remove_from_deps): Likewise.
293         (sched_analyze_2): Set up mem deps on debug insns.
294         (sched_analyze_insn): Record reg uses for deps on debug insns.
295         * haifa-sched.c (schedule_insn): Reset deferred debug insn.  Don't
296         try_ready nondebug insn after debug insn.
297         * ddg.c (create_ddg_dep_from_intra_loop_link,
298         create_ddg_dep_no_link): Don't reject debug deps.
299
300 2009-10-16  Richard Guenther  <rguenther@suse.de>
301
302         * lto-symtab.c (merge_incomplete_and_complete_type): Remove.
303         (maybe_merge_incomplete_and_complete_type): Likewise.
304         (lto_symtab_merge): Do not call them.  Do not warn for
305         complete vs. incomplete compatible types.
306         (lto_symtab_merge_decls_2): Simplify.
307         * gimple.c (gimple_force_type_merge): Remove.
308         (gimple_types_compatible_p): Make it static.
309         * gimple.h (gimple_force_type_merge): Remove.
310         (gimple_types_compatible_p): Likewise.
311
312 2009-10-16  Jakub Jelinek  <jakub@redhat.com>
313
314         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
315         DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.
316
317 2009-10-16  Richard Guenther  <rguenther@suse.de>
318
319         PR tree-optimization/41728
320         * tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
321         if fold_stmt did anything.
322
323 2009-10-16  Richard Guenther  <rguenther@suse.de>
324
325         PR lto/41715
326         * lto-streamer-in.c (lto_input_tree_ref): Revert last change.
327         (maybe_fixup_handled_component): New function.
328         (input_gimple_stmt): Fixup mismatched decl replacements.
329
330 2009-10-16  Richard Guenther  <rguenther@suse.de>
331
332         PR lto/41713
333         * lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
334         the same as VAR_DECL.
335
336 2009-10-16  Richard Guenther  <rguenther@suse.de>
337
338         * gimple.c (iterative_hash_gimple_type): For integer types
339         also hash their minimum and maximum values and the string flag.
340         For array types hash their domain and the string flag.
341
342 2009-10-16  Richard Guenther  <rguenther@suse.de>
343
344         * gimple.c (gimple_types_compatible_p): Restrict completing
345         types to record or unions.  Simplify completion.
346         Do not merge records or unions with different
347         TYPE_STRUCTURAL_EQUALITY_P tag.
348         (iterative_hash_gimple_type): Restrict non-recursing into
349         pointer targets for records and unions.
350
351 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
352
353         PR debug/41717
354         * cfgexpand.c (expand_debug_expr): Handle CONJ_EXPR.
355         * dwarf2out.c (mem_loc_descriptor): Don't handle
356         POST_INT/POST_DEC/POST_MODIFY like SUBREG.  For SUBREG
357         punt if it is not lowpart subreg or if inner mode isn't
358         MODE_INT.
359
360 2009-10-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
361
362         * config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
363         investigating previous or next insns.
364
365 2009-10-16  Eric Botcazou  <ebotcazou@adacore.com>
366
367         * tree-sra.c (build_ref_for_offset_1): Update comment.
368
369 2009-10-16  Wolfgang Gellerich  <gellerich@de.ibm.com>
370
371         * config/s390/s390.md (atype): Added missing values.
372
373 2009-10-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
374
375         PR target/41702
376         * pa.md (casesi): Use sign extended index in call to gen_casesi64p.
377         (casesi64p): Update pattern to reflect above.
378
379 2009-10-15  Steve Ellcey  <sje@cup.hp.com>
380
381         PR rtl-optimization/41697
382         * sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.
383
384 2009-10-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
385
386         PR target/23983
387         * config/rs6000/predicates.md: Update copyright year.
388         * config/rs6000/altivec.md: Ditto.
389         
390         * config/rs6000/t-rs6000 (TM_H): Add rs6000-builtin.def.
391         (MD_INCLUDES): Add a2.md.
392         
393         * config/rs6000/rs6000.c (rs6000_builtin_decls): Change
394         RS6000_BUILTIN_COUNT to MAX_RS6000_BUILTINS.
395         (builtin_classify): New static vector to classify various builtins
396         to get the tree attributes correct.
397         (def_builtin): Set the attributes of builtins based on what the
398         builtin does (i.e. memory operation, floating point, saturation
399         need special attributes, others are pure functions).
400
401         * config/rs6000/rs6000.h (enum rs6000_btc): New enum to classify
402         the builtins.
403         (enum rs6000_builtins): Include rs6000-builtin.def to define the
404         builtins.  Change the end marker to MAX_RS6000_BUILTINS from
405         RS6000_BUILTIN_COUNT.
406         (rs6000_builtin_decls): Change RS6000_BUILTIN_COUNT to
407         MAX_RS6000_BUILTINS.
408
409         * config/rs6000/rs6000-builtin.def: New file that combines the
410         builtin enumeration name and attributes.
411
412 2009-10-15  H.J. Lu  <hongjiu.lu@intel.com>
413
414         * config/i386/linux.h (ASM_SPEC): Add --32.
415
416 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
417
418         * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
419         and DW_TAG_template_alias.
420         (dwarf_attr_name): Handle DW_AT_main_subprogram,
421         DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
422         DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
423         DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
424         DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
425         and DW_AT_GNU_odr_signature.
426         (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
427         DW_FORM_flag_present and DW_FORM_ref_sig8.
428         (output_signature): Only print name on the first byte.
429         (output_die): Likewise for dw_val_class_data8.
430
431 2009-10-15  Alexander Monakov  <amonakov@ispras.ru>
432
433         * doc/invoke.texi: Clarify that most optimizations are not enabled
434         without -O.
435
436 2009-10-15  Richard Guenther  <rguenther@suse.de>
437
438         PR lto/41668
439         * gimple.c (compare_type_names_p): Handle anonymous names
440         differently based on new mode argument.
441         (gimple_types_compatible_p): For structs also compare the tags.
442         (iterative_hash_type_name): Rename to ...
443         (iterative_hash_name): ... this.  Hash all names.
444         (iterative_hash_gimple_type): Fix hashing the struct tag of
445         pointer targets.  Hash field decl names.
446
447 2009-10-15  Richard Guenther  <rguenther@suse.de>
448
449         PR lto/41669
450         * gimple.c (gimple_get_alias_set): Avoid recursing on
451         invalid type topology.
452
453 2009-10-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
454
455         * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
456
457 2009-10-15  Richard Guenther  <rguenther@suse.de>
458
459         * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
460
461 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
462
463         * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
464         add --with-tune{,-32,-64} configured default for -mtune if explicit
465         -mcpu is used.
466
467 2009-10-14  Daniel Gutson  <dgutson@codesourcery.com>
468
469         * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds fixed.
470
471 2009-10-14  DJ Delorie  <dj@redhat.com>
472         
473         * config/h8300/h8300.c (F): New.
474         (Fpa): New.
475         (h8300_emit_stack_adjustment): Call them.
476         (push): Likewise.
477         (h8300_push_pop): Likewise.
478         (h8300_expand_prologue): Likewise.
479         * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
480         (MUST_USE_SJLJ_EXCEPTIONS): Define.
481         (INCOMING_RETURN_ADDR_RTX): Define.
482         (INCOMING_FRAME_SP_OFFSET): Define.
483         (DWARF_CIE_DATA_ALIGNMENT): Define.
484
485 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
486
487         * stor-layout.c (place_field): Don't emit -Wpadded warnings for
488         fields in builtin structs.
489         (finalize_record_size): Likewise.
490
491 2009-10-14  Richard Guenther  <rguenther@suse.de>
492
493         * gimple.c (gtc_ob): New global.
494         (struct type_pair_d): Replace pointers with type UIDs.
495         (type_pair_hash): Adjust.
496         (type_pair_eq): Likewise.
497         (lookup_type_pair): Likewise.  Allocate from an obstack.
498         (gimple_force_type_merge): Adjust.
499         (gimple_types_compatible_p): Likewise.
500         (free_gimple_type_tables): Free the obstack.
501
502 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
503
504         * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
505         stmts setting DEBUG_EXPR_DECLs.
506
507         * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
508         Don't crash if mode1 is VOIDmode.
509
510 2009-09-26  Vladimir Makarov  <vmakarov@redhat.com>
511
512         * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
513         * params.h (IRA_LOOP_RESERVED_REGS): New.
514         * tree-pass.h (pass_subregs_of_mode_init,
515         pass_subregs_of_mode_finish): Remove.
516         * passes.c (pass_subregs_of_mode_init,
517         pass_subregs_of_mode_finish): Remove.
518         (pass_reginfo_init): Move before loop optimizations.
519         * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
520         * common.opt (fira-loop-pressure): New.
521         * toplev.h (flag_ira_loop_pressure): New.
522         * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New externals.
523         * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
524         Make external and void type functions.
525         (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
526         pass_subregs_of_mode_finish): Remove.
527         * ira-costs.c (init_costs): Call init_subregs_of_mode.
528         * regmove.c: Include ira.h.
529         (regmove_optimize): Call ira_set_pseudo_classes after IRA based
530         register pressure calculation in loops.
531         * loop-invariant.c: Include REGS_H and ira.h.
532         (struct loop_data): New members max_reg_pressure, regs_ref, and
533         regs_live.
534         (struct invariant): New member orig_regno.
535         (curr_loop): New variable.
536         (find_exits): Initialize regs_ref and regs_live.
537         (create_new_invariant): Initialize orig_regno.
538         (get_cover_class_and_nregs): New.
539         (get_inv_cost): Make aregs_needed an array.  Use regs_needed as an
540         array.  Add code for flag_ira_loop_pressure.
541         (gain_for_invariant): Make new_regs an array.  Add code for
542         flag_ira_loop_pressure.
543         (best_gain_for_invariant): Ditto.
544         (set_move_mark): New parameter gain.  Use it for debugging output.
545         (find_invariants_to_move): Make regs_needed and new_regs an array.
546         Add code for flag_ira_loop_pressure.
547         (move_invariant_reg): Set up orig_regno.
548         (move_invariants): Set up reg classes for pseudos for
549         flag_ira_loop_pressure.
550         (free_loop_data): Clear regs_ref and regs_live.
551         (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
552         get_regno_cover_class, change_pressure, mark_regno_live,
553         mark_regno_death, mark_reg_store, mark_reg_clobber,
554         mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
555         (move_loop_invariants): Calculate pressure.  Initialize curr_loop.
556         * ira.c (ira): Call ira_set_pseudo_classes after IRA based
557         register pressure calculation in loops if new regs were added.
558         Call finish_subregs_of_mode.
559         * opts.c (decode_options): Set up flag_ira_loop_pressure.
560         * Makefile.in (loop-invariant.o): Add ira.h.
561         (regmove.o): Ditto.
562         * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
563         Describe.
564         * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
565         
566 2009-10-14  Richard Guenther  <rguenther@suse.de>
567
568         * lto-symtab.c (lto_symtab_compatible): Fold in ...
569         (lto_symtab_merge): ... here.  Rewrite both to take the
570         prevailing and a to-be-merged entry and to queue diagnostics properly.
571         (lto_symtab_resolve_replaceable_p): New predicate for
572         symbol resolution.
573         (lto_symtab_resolve_can_prevail_p): Likewise.
574         (lto_symtab_resolve_symbols): Rewrite.  Fold in code that
575         handles merging commons by choosing the largest decl.  Fold
576         in code that gives ODR errors.
577         (lto_symtab_merge_decls_2): Simplify a lot.  Emit queued
578         diagnostics here.
579         (lto_symtab_merge_decls_1): Re-structure.  Deal with the
580         case of no prevailing decl here.  Diagnose mismatches
581         in object types here.  Drop all but the prevailing decls.
582         (lto_symtab_prevailing_decl): Return the single prevailing decl.
583         * lto-streamer-in.c (lto_input_tree_ref): Deal with
584         VIEW_CONVERT_EXPRs in decl slots.  Unshare the tree in this case.
585
586 2009-10-14  Richard Guenther  <rguenther@suse.de>
587
588         PR lto/41521
589         * lto-streamer-in.c (input_bb): Replace debug stmts with
590         nops instead of dropping them.
591
592 2009-10-14  Nick Clifton  <nickc@redhat.com>
593
594         * gcc/doc/extended.texi: Replace the dash character with @minus{}
595         in situations where it is being used as a minus symbol.
596         * gcc/doc/tm.texi: Likewise.
597         * gcc/doc/md.texi: Likewise.
598
599 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
600
601         PR preprocessor/41543
602         * input.h (BUILTINS_LOCATION): Change to 1 from 2.
603         Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
604         * tree.c: Include intl.h.
605         (expand_location): Handle BUILTINS_LOCATION.
606         * Makefile.in (tree.o): Depend on intl.h.
607
608         PR debug/41695
609         * dwarf2out.c (dwarf2out_var_location): Always clear
610         last_postcall_label when changing last_label.
611
612 2009-10-14  Pascal Obry  <obry@adacore.com>
613
614         * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
615         (process_command): Handle -E as done with -c and -S.  Do not add
616         the target executable suffix to the output file when -E is used.
617         (main): Adjust error message accordingly.
618
619 2009-10-14  Alexandre Oliva  <aoliva@redhat.com>
620
621         PR debug/41343
622         PR debug/41447
623         PR debug/41264
624         PR debug/41338
625         * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
626         decl with rtl.
627         (tree_code_size): Likewise.
628
629 2009-10-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
630
631         * builtins.c (fold_builtin_1): Support complex "arc" functions.
632         * real.h (HAVE_mpc_arc): Define.
633
634 2009-10-14  Kaz Kojima  <kkojima@gcc.gnu.org>
635
636         * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
637         (struct builtin_description): Add fndecl field.
638         (bdesc): Remove const qualifier.  Update initializer.
639         (sh_media_init_builtins): Remove const qualifier for d.  Record
640         the result of add_builtin_function to the fndecl field.
641         (sh_builtin_decl): New.
642         (sh_media_builtin_decl): New.
643
644 2009-10-14  Hans-Peter Nilsson  <hp@axis.com>
645
646         PR target/38948
647         * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
648         requests between special registers.
649
650 2009-10-13  Eric Botcazou  <ebotcazou@adacore.com>
651
652         * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
653
654 2009-10-13  Richard Henderson  <rth@redhat.com>
655
656         PR tree-optimization/41377
657         * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
658         (cleanup_empty_eh_merge_phis): New change_region parameter;
659         pass it on to redirect_eh_edge_1.  Update callers.
660         (cleanup_empty_eh_unsplit): Don't require an existing EH label
661         at the destination block.
662
663 2009-10-13  Basile Starynkevitch  <basile@starynkevitch.net>
664
665         * passes.c (register_pass): Replaced gcc_unreachable by
666         fatal_error on failure. Mentions plugins in comments & messages.
667
668 2009-10-13  Jakub Jelinek  <jakub@redhat.com>
669
670         PR target/41693
671         * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
672         * sched-vis.c (print_value): Use it.
673         * cselib.c (cselib_hash_rtx): Likewise.
674         * print-rtl.c (print_rtx): Likewise.
675         * cfgexpand.c (expand_debug_rtx): Likewise.
676         * var-tracking.c (vt_expand_loc_callback): Likewise.
677
678 2009-10-13  Richard Guenther  <rguenther@suse.de>
679
680         PR lto/41565
681         * opts.c (handle_option): Split out code to handle setting
682         the options flag var ...
683         (set_option): ... here.
684         * opts.h (set_option): Declare.
685         * lto-opts.c (register_user_option_p): Include -fexceptions
686         and all position independent code variants.
687         (handle_common_option): Remove.
688         (lto_reissue_options): Use set_option.
689
690 2009-10-13  Martin Jambor  <mjambor@suse.cz>
691
692         PR tree-optimization/41661
693         * ipa-prop.c (compute_complex_pass_through): Allow only operations
694         that are tcc_comparisons or do not change the type in any
695         un-usleless way.
696         * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
697         folding tcc_comparison operations.
698
699 2009-10-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
700
701         * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
702         properly.
703
704 2009-10-12  Alexandre Oliva  <aoliva@redhat.com>
705
706         PR debug/41343
707         PR debug/41447
708         PR debug/41264
709         PR debug/41338
710         * tree.def (DEBUG_EXPR_DECL): New.
711         * rtl.def (DEBUG_EXPR): New.
712         * gengtype.c (adjust_field_rtx_def): Handle it.
713         * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
714         (insert_debug_temp_for_var_def): ... this.  Drop support for
715         moving.  Take iterator for def stmt; insert debug stmt before it.
716         Scan early for use count and kind in debug stmts.
717         (propagate_defs_into_debug_stmts): Rename to...
718         (insert_debug_temps_for_defs): ... this.  Likewise.
719         * tree.h (DEBUG_TEMP_UID): New.
720         * tree.c (next_debug_decl_uid): New.
721         (make_node_stat): Count debug decls separately.
722         (copy_node_stat): Likewise.
723         * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
724         * var-tracking.c (dv_is_decl_p): Recognize it.
725         (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
726         (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
727         (vt_expand_loc_callback): Expand DEBUG_EXPRs.
728         (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
729         * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
730         (cselib_hash_rtx): Likewise.
731         (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
732         * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
733         debug bind stmts.
734         * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
735         (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
736         * rtl.c (copy_rtx): Likewise.
737         (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
738         * print-rtl.c (print_rtx): Likewise.
739         * sched-vis.c (print_value): Likewise.
740         (print_insn): Handle DEBUG_EXPR_DECL.
741         * tree-dump.c (dequeue_and_dump): Likewise.
742         * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
743         * gimple-iterator (gsi_replace): Check for same lhs.
744         (gsi_remove): Insert debug temps.
745         * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
746         (move_computations_stmt): Drop explicit propagation into debug stmts.
747         (rewrite_bittest): Likewise.  Use gsi_remove for propagation.
748         * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
749         * tree-ssa-sink.c (statement_sink_location): Likewise.
750         * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
751         * tree-ssanames.c (release_ssa_name): Adjust for rename.
752         * tree-flow.h: Likewise.
753         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
754         debug temps without values.
755         (eliminate_unnecessary_stmts): Don't discard just-inserted
756         debug stmts.
757
758 2009-10-12  Hans-Peter Nilsson  <hp@axis.com>
759
760         PR target/26515
761         * config/cris/cris.md (andu): Check that operand 1 is one of the
762         general registers.  Fix typo in head comment.
763
764 2009-10-12  Stefan Dösinger  <stefan@codeweavers.com>
765
766         * config/i386/i386.md (vswapmov): New.
767         * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
768         (ix86_function_ms_hook_prologue): New.
769         (ix86_expand_prologue): Handle ms_hook_prologue attribute.
770         * configure.ac: Test for swap suffix support in as.
771         * configure: Rebuild.
772
773 2009-10-12  Jakub Jelinek  <jakub@redhat.com>
774
775         PR target/41680
776         * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
777         paradoxical subregs to prevent partial register stalls if the inner
778         mode is integer mode.
779
780 2009-10-12  Uros Bizjak  <ubizjak@gmail.com>
781
782         * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
783
784 2009-10-12  Dodji Seketeli  <dodji@redhat.com>
785
786         PR c++/41570
787         * gcc/dwarf2out.c (template_parameter_pack_die,
788         gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
789
790 2009-10-12  Alexandre Oliva  <aoliva@redhat.com>
791
792         PR debug/41616
793         * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
794         on updates too.
795         (maybe_register_def): Likewise.  Take stmt iterator.
796         (rewrite_update_stmt): Take stmt iterator and pass it on.
797         (rewrite_update_enter_block): Pass stmt iterator.
798
799 2009-10-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
800
801         * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
802         (spu_builtin_decl): New function.
803
804 2009-10-12  Uros Bizjak  <ubizjak@gmail.com>
805
806         * config/i386/i386.md (SWIM): New mode iterator.
807         (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
808         using SWIM mode iterator.
809         (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
810         patterns using SWI48 mode iterator.
811         (*x86_mov<mode>cc_0_m1_se):  Macroize insn from
812         *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
813         (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
814         (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
815         patterns using SWI248 mode iterator.
816         * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
817         gen_x86_movdicc_0_m1_rex64 for renamed function
818
819 2009-10-11  Jose Ruiz  <ruiz@adacore.com>
820             Eric Botcazou  <ebotcazou@adacore.com>
821
822         PR target/33743
823         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
824         * config/sparc/sol2-unwind.h: New file.
825
826 2009-10-11  Olivier Hainque  <hainque@adacore.com>
827             Eric Botcazou  <ebotcazou@adacore.com>
828
829         PR target/33743
830         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
831         * config/i386/sol2-unwind.h: New file.
832
833 2009-10-11  H.J. Lu  <hongjiu.lu@intel.com>
834
835         PR target/41665
836         * config/i386/i386.md (addsi_1_zext): Get the proper second
837         operand for lea.
838
839 2009-10-11  Richard Sandiford  <rdsandiford@googlemail.com>
840
841         * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
842         all OLD_RTXes, not just REGs.  Use copy_rtx to create the
843         replacement value.
844
845 2009-10-11  Richard Guenther  <rguenther@suse.de>
846
847         * gimple.c (iterative_hash_type_name): Do not handle special
848         anonymous names.
849
850 2009-10-11  Uros Bizjak  <ubizjak@gmail.com>
851
852         * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
853         (*setcc_si_1_and): Ditto.
854         (*setcc_si_1_movzbl): Ditto.
855         (*setcc_<mode>_2): Ditto.
856         (*setcc_qi): Rename from *setcc_1.
857         (*setcc_qi_slp): Rename from *setcc_2.
858
859         (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
860         (*zero_extendqisi2_movzbw_and splitter): Ditto.
861
862         * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
863         "if" condition, there is already assert with reload_completed present.
864
865 2009-10-11  Gerald Pfeifer  <gerald@pfeifer.com>
866
867         * plugin.c (try_init_one_plugin): Improve constness of variable err.
868
869 2009-10-10  Gerald Pfeifer  <gerald@pfeifer.com>
870
871         * doc/install.texi (Final install): Refer to
872         http://gcc.gnu.org/bugs/ for bug reporting.
873
874 2009-10-10  Peter Bergner  <bergner@vnet.ibm.com>
875
876         * configure.ac: Add test for dci instruction.
877         * configure: Regenerate.
878         * config.in: Likewise.
879         * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
880         * doc/invoke.texi: Add cpu_type 476 and 476fp.
881         (-mmulhw): Add 476 to description.
882         (-mdlmzb): Likewise.
883         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
884         * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
885         (processor_target_table): Add 476 and 476fp entries.
886         (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
887         (rs6000_issue_rate): Add CPU_PPC476.
888         * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
889         (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
890         (processor_type): Add PROCESSOR_PPC476.
891         (EXTRA_SPECS): Add asm_cpu_476 string.
892         * config/rs6000/rs6000.md (define_attr "type"): Add isel attribute.
893         (define_attr "cpu"): Add ppc476.
894         Include 476.md.
895         Update comments for 476.
896         (isel_signed, isel_unsigned): Change to use "isel" type attribute.
897         * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
898         Update copyright year.
899         * config/rs6000/476.md: New file.
900         * config/rs6000/40x.md: Add description for "isel" attribute.
901         Update copyright year.
902         * config/rs6000/440.md: Likewise.
903         * config/rs6000/603.md: Likewise.
904         * config/rs6000/6xx.md: Likewise.
905         * config/rs6000/7450.md: Likewise.
906         * config/rs6000/7xx.md: Likewise.
907         * config/rs6000/8540.md: Likewise.
908         * config/rs6000/cell.md: Likewise.
909         * config/rs6000/e300c2c3.md: Likewise.
910         * config/rs6000/e500mc.md: Likewise.
911         * config/rs6000/mpc.md: Likewise.
912         * config/rs6000/power4.md: Likewise.
913         * config/rs6000/power5.md: Likewise.
914         * config/rs6000/power6.md: Likewise.
915         * config/rs6000/power7.md: Likewise.
916         * config/rs6000/rios1.md: Likewise.
917         * config/rs6000/rios2.md: Likewise.
918         * config/rs6000/rs64.md: Likewise.
919
920 2009-10-10  Richard Guenther  <rguenther@suse.de>
921
922         PR tree-optimization/41654
923         * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
924         a cond expr before calling gimple_cond_set_condition_from_tree.
925         (ifcombine_iforif): Likewise.
926
927 2009-10-09  Ian Lance Taylor  <iant@google.com>
928
929         * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
930         * configure: Rebuild.
931
932 2009-10-09  Neil Vachharajani <nvachhar@google.com>
933
934         * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
935         deprecated.
936
937 2009-10-09  Richard Guenther  <rguenther@suse.de>
938
939         PR lto/41638
940         * target-def.h (TARGET_BUILTIN_DECL): Define.
941         (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
942         * target.h (struct gcc_target): Add builtin_decl target hook.
943         * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
944         * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
945         target builtins.
946         * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
947         not gcc_unreachable.
948         (lto_output_builtin_tree): Sorry if the target does not support
949         streaming target builtins.
950         * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
951         (rs6000_builtin_decl): New function.
952         * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
953         (ix86_builtin_decl): New function.
954
955 2009-10-09  Jakub Jelinek  <jakub@redhat.com>
956
957         PR preprocessor/41445
958         * c-ppoutput.c (do_line_change): New function.
959         (cb_line_change): Use it.
960         (scan_translation_unit): Call do_line_change if
961         avoid_paste or PREV_WHITE and token location is on a different line
962         than print.src_line.
963
964         PR debug/40521
965         * dwarf2out.c (dwarf2out_init): Test whether
966         HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
967         it is defined.
968
969         PR rtl-optimization/41646
970         * calls.c (expand_call): For BLKmode types returned in registers
971         avoid likely spilled hard regs in copy_blkmode_from_reg generated
972         insns.
973
974 2009-10-09  Richard Guenther  <rguenther@suse.de>
975
976         PR tree-optimization/41634
977         * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
978         we remove the correct elements.
979         (optimize_stmt): Make sure to update stmt operands before
980         optimizing redundancies.
981
982 2009-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
983
984         * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
985
986 2009-10-09  Richard Guenther  <rguenther@suse.de>
987
988         PR driver/41637
989         * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
990         globals.
991         (lto_wrapper_exit): New function.
992         (fatal): Use it.
993         (fatal_perror): Likewise.
994         (fork_execute): Use global args_name, do not free it.
995         (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
996         * lto-streamer.h: Remove duplicate prototypes.
997
998 2009-10-09  Richard Guenther  <rguenther@suse.de>
999
1000         * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
1001         before calling stmt_can_throw_external.
1002
1003 2009-10-09  Eric Botcazou  <ebotcazou@adacore.com>
1004
1005         PR tree-optimization/40071
1006         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
1007         pointer if the original data reference doesn't conflict with the
1008         created vector data reference.  Fix long line.
1009
1010 2009-10-09  Uros Bizjak  <ubizjak@gmail.com>
1011
1012         * config/i386/i386.md (any_div): New code iterator.
1013         (u): Handle div and udiv.
1014         (sgnprefix): Ditto.
1015         (<u>divqi3): Macroize insn from {,u}divqi3  using any_div
1016         code iterator.
1017         (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
1018         lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
1019         (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
1020         lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
1021
1022 2009-10-08  Joseph Myers  <joseph@codesourcery.com>
1023
1024         * gcc.c (main): Remove trailing "." from diagnostics.
1025
1026 2009-10-08  Cary Coutant  <ccoutant@google.com>
1027
1028         Add support for debugging with ICF (Identical Code Folding).
1029         * calls.c (debug.h): New #include.
1030         (emit_call_1): Call virtual_call_token debug hook.
1031         * common.opt (-fenable-icf-debug): New option.
1032         * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
1033         locations in the source).
1034         (poc_label_num): New variable.
1035         (dcall_entry, vcall_entry): New typedefs.
1036         (dcall_table, vcall_table): New variables.
1037         (struct vcall_insn): New type.
1038         (vcall_insn_table): New variable.
1039         (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
1040         (size_of_dcall_table): New function.
1041         (output_dcall_table): New function.
1042         (size_of_vcall_table): New function.
1043         (output_vcall_table): New function.
1044         (dwarf2out_direct_call): New function.
1045         (vcall_insn_table_hash): New function.
1046         (vcall_insn_table_eq): New function.
1047         (dwarf2out_virtual_call_token): New function.
1048         (dwarf2out_virtual_call): New function.
1049         (dwarf2out_init): Allocate new tables and sections.
1050         (prune_unused_types): Mark DIEs referenced from direct call table.
1051         (dwarf2out_finish): Output direct and virtual call tables.
1052         * final.c (final_scan_insn): Call direct_call and virtual_call
1053         debug hooks.
1054         * debug.h (struct gcc_debug_hooks): Add direct_call,
1055         virtual_call_token, virtual_call hooks.
1056         (debug_nothing_uid): New function.
1057         * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
1058         (debug_nothing_uid): New function.
1059         * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
1060         (xcoff_debug_hooks): Likewise.
1061         * sdbout.c (sdb_debug_hooks): Likewise.
1062         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
1063         * doc/invoke.texi (-fenable-icf-debug): New option.
1064
1065 2009-10-08  Alexandre Oliva  <aoliva@redhat.com>
1066
1067         PR debug/41353
1068         * regmove.c (regmove_backward_pass): Replace src with dst in the
1069         debug insn, and check for dst before rather than after.
1070
1071 2009-10-08  Janis Johnson <janis187@us.ibm.com>
1072
1073         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
1074         (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
1075
1076 2009-10-08  Jan Hubicka  <jh@suse.cz>
1077
1078         PR middle-end/41626
1079         * cgraphbuild.c (record_reference): When parameter DATA is NULL,
1080         do not mark cgraph nodes as needed.
1081         (record_references_in_initializer): Add new only_vars parameter.
1082         * cgraph.h (record_references_in_initializer): New parameter.
1083         * varasm.c (assemble_variable): Update call.
1084         * varpool.c (varpool_analyze_pending_decls): Always look for
1085         referenced vars.
1086
1087 2009-10-08  Anatoly Sokolov  <aesok@post.ru>
1088
1089         * config/avr/avr.c (last_insn_address) Remove variable.
1090         (expand_prologue): Don't initialise last_insn_address variable.
1091         (final_prescan_insn): Don't output insn size.
1092         * config/avr/avr.opt (msize): Remove switch.
1093         * doc/invoke.texi (AVR Options): Remove documentation of -msize
1094         switch.
1095
1096 2009-10-08  Adam Nemet  <anemet@caviumnetworks.com>
1097
1098         * combine.c (label_tick_ebb_start): Fix comment.
1099         (combine_instructions): Set label_tick and label_tick_ebb_start before
1100         calling setup_incoming_promotions.  Start them from 1.  Increment
1101         label_tick instead of deriving it from the BB index.  Rather than
1102         comparing ticks use the block from the previous iteration to decide
1103         whether to start a new EBB.  Remove empty lines before function.
1104
1105 2009-10-08  Michael Matz  <matz@suse.de>
1106
1107         PR middle-end/41573
1108         * builtins.c (fold_builtin_isascii): Use fold_build2.
1109         (fold_builtin_isdigit): Ditto.
1110         * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
1111         * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
1112         remove_useless_stmts_cond, remove_useless_stmts_tf,
1113         remove_useless_stmts_tc, remove_useless_stmts_bind,
1114         remove_useless_stmts_goto, remove_useless_stmts_label,
1115         remove_useless_stmts_1, remove_useless_stmts,
1116         pass_remove_useless_stmts): Remove.
1117         * tree-pass.h (pass_remove_useless_stmts): Don't declare.
1118         * passes.c (init_optimization_passes): Don't add
1119         pass_remove_useless_stmts.
1120         * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
1121         * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
1122         static constants.
1123         * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
1124         for static constants.
1125         * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
1126         * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
1127
1128 2009-10-08  Richard Guenther  <rguenther@suse.de>
1129
1130         * gimple.c (free_gimple_type_tables): New function.
1131         * gimple.h (free_gimple_type_tables): Declare.
1132
1133 2009-10-07  Mark Heffernan  <meheff@google.com>
1134
1135         * ipa-prop.c (ipa_print_node_params) Only print
1136         names of named arguments.
1137
1138 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
1139
1140         * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
1141         being statically linked.
1142
1143 2009-10-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1144
1145         * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
1146
1147 2009-10-08  Jan Hubicka  <jh@suse.cz>
1148
1149         PR bootstrap/41620
1150         * ipa.c (cgraph_externally_visible_p,
1151         function_and_variable_visibility,
1152         whole_program_function_and_variable_visibility): Skip non-finalized
1153         nodes.
1154
1155 2009-10-08  Nick Clifton  <nickc@redhat.com>
1156
1157         * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
1158         CONST_DOUBLEs.
1159
1160 2009-10-08  Andreas Tobler  <a.tobler@schweiz.org>
1161
1162         PR bootstrap/37739
1163         * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
1164
1165 2009-10-07  Joseph Myers  <joseph@codesourcery.com>
1166
1167         PR c/41182
1168         * c-common.c (c_fully_fold_internal): Strip nops from the result
1169         of recursive calls to c_fully_fold_internal.
1170         (c_wrap_maybe_const): New.
1171         (c_save_expr): Use c_wrap_maybe_const.
1172         * c-common.h (c_wrap_maybe_const): Declare.
1173         * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
1174         build_binary_op): Use c_wrap_maybe_const.
1175
1176 2009-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1177
1178         * real.c: Fix comment to reflect actual exponent size.
1179
1180 2009-10-08  Ben Elliston  <bje@au.ibm.com>
1181
1182         * config/rs6000/a2.md: Add FSF comment header.
1183
1184 2009-10-07  Uros Bizjak  <ubizjak@gmail.com>
1185
1186         * config/i386/i386.md (any_extend): New code iterator.
1187         (u, s): New code attributes.
1188         (sgnprefix): Ditto.
1189         (DWIH): Rewrite as code iterator for SI and DI modes.
1190         (DWI): Rewrite as mode attribute.
1191         (dwi): New mode attribute.
1192         (di): Depend on SI mode and DI mode.
1193         (doubleint_general_operand): Remove mode attribute.
1194
1195         (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
1196         DWIH mode iterator.
1197
1198         (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
1199         (*sub<mode>3_doubleword): Ditto.
1200
1201         (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
1202         using SWIM248 mode iterator.
1203         (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
1204         using SWI48 mode iterator.
1205         (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
1206         patterns using DWIH mode iterator and any_extend code iterator.
1207         (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
1208         using any_extend code iterator.
1209         (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
1210         patterns using DWIH mode iterator and any_extend code iterator.
1211         (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
1212         using any_extend code iterator.
1213         (<s>mul<mode>3_highpart): Macroize expander from
1214         {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
1215         and any_extend code iterator.
1216         (*<s>muldi3_highpart_1): Macroize insn from
1217         *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
1218         (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
1219         patterns using any_extend code iterator.
1220         (*<s>mulsi3_highpart_zext): Macroize insn from
1221         *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
1222
1223 2009-10-07  Jakub Jelinek  <jakub@redhat.com>
1224
1225         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
1226         DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
1227         refering to a DIE with DW_AT_const_value.
1228
1229 2009-10-07  Vladimir Makarov  <vmakarov@redhat.com>
1230
1231         PR middle-end/22072
1232         * ira-lives.c (check_and_make_def_conflict): Process all operands.
1233
1234 2009-10-06  Jan Hubicka  <jh@suse.cz>
1235
1236         * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
1237         correctly.
1238
1239 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
1240
1241         * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
1242         *lea_2_rex64): Move before *add<mode>_1 pattern.
1243
1244 2009-10-07  Jan Hubicka  <jh@suse.cz>
1245
1246         * collect2.c (main): Add -fno-whole-program.
1247         * gcc.c (set_collect_gcc_options): Do not remove whole program here.
1248
1249 2009-10-07  Jan Hubicka  <jh@suse.cz>
1250
1251         * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
1252         has no address taken.
1253         * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
1254         never needed.
1255         (cgraph_clone_node): Clear externally_visible flag for clones.
1256         * cgraph.h (cgraph_only_called_directly_p,
1257         cgraph_can_remove_if_no_direct_calls_p): New predicates.
1258         * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
1259         * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
1260         (ipcp_initialize_node_lattices, ipcp_estimate_growth,
1261         ipcp_insert_stage): Likwise.
1262         * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
1263         externally_visible flag.
1264         (verify_cgraph_node): Verify that inline clones look right.
1265         (process_function_and_variable_attributes): Do not set
1266         externally_visible flags.
1267         (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
1268         been already run.
1269         * lto-cgraph.c (lto_output_node): Assert that inline clones are not
1270         boundaries.
1271         * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
1272         clear externally_visible when turning into inline clones
1273         (cgraph_mark_inline_edge): Use new predicates.
1274         (cgraph_estimate_growth): Likewise.
1275         (cgraph_decide_inlining): Likewise.
1276         * ipa.c (cgraph_postorder): Likewise.
1277         (cgraph_remove_unreachable_nodes): Likewise; sanity check
1278         that inline clones are not needed.
1279         (cgraph_externally_visible_p): New predicate.
1280         (function_and_variable_visibility): Add whole_program parameter;
1281         always set externally_visible flag; handle COMDAT function
1282         privatization.
1283         (local_function_and_variable_visibility): New function.
1284         (gate_whole_program_function_and_variable_visibility): New function.
1285         (whole_program_function_and_variable_visibility): New function.
1286         (pass_ipa_whole_program_visibility): New function.
1287         * passes.c  (init_optimization_passes): Add whole program visibility
1288         pass.
1289         (do_per_function_toporder, function_called_by_processed_nodes_p): Do
1290         not care about needed/reachable flags.
1291         * varpool.c: Include flags.h
1292         (decide_is_variable_needed): When doing LTO assume whole-program mode.
1293         (varpool_finalize_decl): When we are in LTO read-back, all variables
1294         are analyzed.
1295         (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
1296
1297 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1298
1299         * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
1300         add MASK_HARD_DFP.
1301
1302 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1303
1304         * config.gcc: Don't include the makefile fragments intended for
1305         libgcc.
1306         * config/s390/fixdfdi.h: File removed.
1307         * config/s390/libgcc-glibc.ver: File removed.
1308         * config/s390/s390.h: Remove the fixdfdi.h hack.
1309         * config/s390/t-crtstuff: File moved to libgcc dir.
1310         * config/s390/t-linux: Likewise.
1311         * config/s390/t-tpf: libgcc specific parts removed.
1312         * config/s390/t-linux64: Likewise.
1313
1314 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
1315
1316         * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
1317         (lto-compress.o): Likewise.
1318
1319 2009-10-07  Danny Smith  <dannysmith@users.sourceforge.net>
1320
1321         PR target/41512
1322         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
1323         dllexport to class members here.
1324         (i386_pe_determine_dllimport_p): Only check static class data for
1325         definition.
1326         (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
1327         * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
1328         functions for vague linkage.
1329         (i386_pe_type_dllexport_p): Fix formatting.
1330         (maybe_add_dllexport) New function.
1331         (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
1332         to class members.
1333
1334 2009-10-07  Ben Elliston  <bje@au.ibm.com>
1335
1336         * config/rs6000/a2.md: Remove duplicated lines.
1337
1338 2009-10-07  Ben Elliston  <bje@au.ibm.com>
1339
1340         * config.gcc (powerpc*-*-*): Handle a2.
1341         * config/rs6000/rs6000.md (cpu): Add ppca2.  Include "a2.md".
1342         * config/rs6000/a2.md: New file.
1343         * config/rs6000/rs6000.opt (mno-update): New.
1344         (mupdate): Return to using a mask, not a var.
1345         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
1346         (enum processor_type): Add PROCESSOR_PPCA2.
1347         * config/rs6000/rs6000.c (ppca2_cost): New costs.
1348         (rs6000_override_options): Add "a2" to processor_target_table.
1349         Update rs6000_always_hint logic.  Correctly set rs6000_cost for a2.
1350         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
1351
1352 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
1353
1354         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
1355         Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
1356         reference to nonexistent gen_truncxfxf2 function.
1357
1358 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
1359
1360         * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
1361         (DWIH, g, di, doubleint_general_operand): New mode attributes.
1362         (general_operand): Handle TI mode.
1363         (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
1364         using SDWIM mode iterator.
1365         (*add<mode>3_doubleword): New insn_and_split pattern.  Macroize
1366         pattern from *add{di,ti}3_1 patterns and corresponding splitters
1367         using DWI mode iterator.
1368         (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
1369         patterns using SWI mode iterator.
1370         (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
1371         using SWI48 mode iterator.
1372         (*add<mode>_1): Ditto from add{si,di}_1 patterns.
1373         (*add<mode>_2): Ditto from add{si,di}_2 patterns.
1374         (*add<mode>_3): Ditto from add{si,di}_3 patterns.
1375         (*add<mode>_5): Ditto from add{si,di}_5 patterns.
1376         (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
1377         using SDWIM mode iterator.
1378         (*sub<mode>3_doubleword): New insn_and_split pattern.  Macroize
1379         pattern from *sub{di,ti}3_1 patterns and corresponding splitters
1380         using DWI mode iterator.
1381         (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
1382         patterns using SWI mode iterator.
1383         (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
1384         (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
1385         (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
1386         (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
1387         patterns using plusminus code iterator.
1388         (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
1389         sub<mode>3 patterns using plusminus code iterator.
1390         * config/i386/i386.c (override_options): Update the call to
1391         gen_subdi_carry_rex64 for renamed function.
1392         (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
1393         and gen_adddi3_carry_rex64 for renamed functions.  Use indirect
1394         calls to instruction expanders.
1395
1396 2009-10-06  Martin Jambor  <mjambor@suse.cz>
1397
1398         PR bootstrap/41395
1399         * opts.c (decode_options): Run IPA-SRA at -O2.
1400
1401 2009-10-06  Richard Guenther  <rguenther@suse.de>
1402
1403         * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
1404
1405 2009-10-06  Tobias Burnus  <burnus@net-b.de>
1406
1407         PR lto/41591
1408         * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
1409         -flto and -fwhole-program flags can be combined.
1410
1411 2009-10-06  Ryan Mansfield  <rmansfield@qnx.com>
1412
1413         PR driver/41217
1414         * gcc.c (process_command): Check that -o argument was specified.
1415
1416 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
1417
1418         * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
1419
1420 2009-10-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1421
1422         * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
1423         * doc/invoke.texi (Warning Options): Annotate allowed languages
1424         for -Wunsuffixed-float-constants.
1425
1426 2009-10-05  Jakub Jelinek  <jakub@redhat.com>
1427
1428         * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
1429         DW_TAG_{const,volatile}_type if its DW_AT_type already has the
1430         same name and isn't the main variant.
1431
1432         PR debug/41558
1433         * dwarf2out.c (loc_by_reference): Removed.
1434         (dw_loc_list_1): New function.
1435         (dw_loc_list): Remove toplev argument, add want_address argument.
1436         Don't look at decl_by_reference_p at all.  Use dw_loc_list_1.
1437         (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
1438         want_address == 2 to dw_loc_list.  For successful dw_loc_list
1439         set have_address to 1 only if want_address is not 0.
1440
1441 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
1442
1443         * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
1444         * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
1445         a code block followed by two pointers.
1446         (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
1447         * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
1448         (MIPS_MOVE): Likewise.
1449         (MIPS_LUI): Likewise.
1450         (MIPS_JR): Likewise.
1451         (MIPS_BAL): Likewise.
1452         (MIPS_NOP): Likewise.
1453         (mips_asm_trampoline_template): Delete.
1454         (mips_trampoline_code_size): New function.
1455         (mips_trampoline_init): Add shorter sequences for all cases
1456         except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
1457         Calculate the opcodes directly, rather than copying from a template.
1458         Only flush the code part of the trampoline.
1459         (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
1460
1461 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
1462
1463         * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
1464         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
1465         (INCOMING_RETURN_ADDR_RTX): Likewise.
1466         (FUNCTION_PROFILER): Likewise.  Replace GP_REG_FIRST + 1
1467         with AT_REGNUM.
1468         * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
1469         with RETURN_ADDR_REGNUM.
1470         (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
1471         * config/mips/mips.c (mips16_build_call_stub): Replace
1472         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
1473         with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
1474         (mips_print_operand_punctuation): Likewise.
1475         (mips_frame_set): Likewise.
1476         (mips16e_output_save_restore): Likewise.
1477         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
1478         (mips_save_reg_p): Likewise.
1479         (mips_return_addr): Likewise.
1480         (mips_set_return_address): Likewise.
1481         (mips_direct_save_slot_move_p): Likewise.
1482         (mips_output_function_prologue): Likewise.
1483         (mips_restore_reg): Likewise.
1484         (mips_expand_epilogue): Likewise.
1485         (mips_epilogue_uses): Likewise.
1486         * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
1487         (*mov<mode>_ra): Use it instead of a hard-coded 31.
1488         (clear_hazard_<mode>): Likewise.
1489         (call_internal): Likewise.
1490         (call_internal_direct): Likewise.
1491         (call_direct_split): Likewise.
1492         (call_value_internal): Likewise.
1493         (call_value_split): Likewise.
1494         (call_value_internal_direct): Likewise.
1495         (call_value_direct_split): Likewise.
1496         (call_value_multiple_internal): Likewise.
1497         (call_value_multiple_split): Likewise.
1498
1499 2009-10-05  Eric Botcazou  <ebotcazou@adacore.com>
1500             Jakub Jelinek  <jakub@redhat.com>
1501
1502         PR rtl-optimization/41511
1503         * combine.c (record_value_for_reg): Pass explicit values as argument
1504         to get_last_value_validate.
1505         (get_last_value_validate): Document INSN parameter.
1506         For non-readonly MEMs, assume they might have been modified if INSN
1507         was in another basic block.
1508         (get_last_value): Minor reformatting.
1509
1510 2009-10-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1511
1512         PR tree-opt/40992
1513         * final.c (asm_str_count): Split out from asm_insn_count.
1514         * rtl.h (asm_str_count): New prototype.
1515         * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
1516         asm_str_count.
1517
1518 2009-10-05  Sriraman Tallam  <tmsriram@google.com>
1519
1520         * doc/plugins.texi: Change plugin_pass to register_pass_info.
1521
1522 2009-10-05  Basile Starynkevitch  <basile@starynkevitch.net>
1523             Rafael Espindola  <espindola@google.com>
1524
1525         * gengtype.c (write_types): Moved call to write_func_for_structure
1526         into seperate loops.
1527
1528 2009-10-05  Richard Guenther  <rguenther@suse.de>
1529
1530         PR lto/41281
1531         * lto-cgraph.c (output_cgraph): Output toplevel asms.
1532         (input_cgraph_1): Input toplevel asms.
1533
1534 2009-10-05  Richard Guenther  <rguenther@suse.de>
1535
1536         PR lto/40902
1537         * lto-symtab.c (lto_compatible_attributes_p): Remove.
1538         (external_aggregate_decl_p): Likewise.
1539         (lto_symtab_compatible): Re-structure.  Remove dead code.
1540         For variables ignore toplevel qualifiers when comparing types.
1541         Issue warnings, not errors for mismatched user-alignment.
1542
1543 2009-10-05  Richard Guenther  <rguenther@suse.de>
1544
1545         PR lto/41552
1546         PR lto/41487
1547         * lto-symtab.c (struct lto_symtab_base_def): Remove.
1548         (struct lto_symtab_identifier_def): Likewise.
1549         (struct lto_symtab_decl_def): Likewise.
1550         (struct lto_symtab_entry_def): New.
1551         (lto_symtab_identifier_t): Rename to ...
1552         (lto_symtab_entry_t): ... this.
1553         (lto_symtab_decls): Remove.
1554         (lto_symtab_base_hash): Rename to ...
1555         (lto_symtab_entry_hash): ... this.
1556         (lto_symtab_base_eq): Rename to ...
1557         (lto_symtab_entry_eq): ... this.
1558         (lto_symtab_base_marked_p): Rename to ...
1559         (lto_symtab_entry_marked_p): ... this.
1560         (lto_symtab_identifier_marked_p): Remove.
1561         (lto_symtab_decl_marked_p): Likewise.
1562         (lto_symtab_maybe_init_hash_tables): Rename to ...
1563         (lto_symtab_maybe_init_hash_table): ... this.
1564         (lto_symtab_set_resolution_and_file_data): Remove.
1565         (lto_symtab_register_decl): New function.
1566         (lto_symtab_get_identifier): Remove.
1567         (lto_symtab_get): New function.
1568         (lto_symtab_get_resolution): Adjust.
1569         (lto_symtab_get_identifier_decl): Remove.
1570         (lto_symtab_set_identifier_decl): Likewise.
1571         (lto_symtab_merge_decl): Rename to ...
1572         (lto_symtab_merge): ... this.  Rewrite.
1573         (lto_symtab_merge_var): Remove.
1574         (lto_symtab_merge_fn): Likewise.
1575         (lto_symtab_prevailing_decl): Adjust.
1576         (lto_cgraph_replace_node): New function.
1577         (lto_symtab_merge_decls_2): Likewise.
1578         (lto_symtab_merge_decls_1): Likewise.
1579         (lto_symtab_fixup_var_decls): Likewise.
1580         (lto_symtab_resolve_symbols): Likewise.
1581         (lto_symtab_merge_decls): Likewise.
1582         (lto_symtab_prevailing_decl): Adjust.
1583         (lto_symtab_get_symtab_def): Remove.
1584         (lto_symtab_get_file_data): Likewise.
1585         (lto_symtab_clear_resolution): Adjust.
1586         (lto_symtab_clear_resolution): Likewise.
1587         * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
1588         (input_cgraph_1): Likewise.
1589         * lto-streamer-in.c (get_resolution): Do not provide fake
1590         symbol resolutions here.
1591         (deferred_global_decls): Remove.
1592         (lto_register_deferred_decls_in_symtab): Likewise.
1593         (lto_register_var_decl_in_symtab): Change signature, register
1594         variable via lto_symtab_register_decl.
1595         (lto_register_function_decl_in_symtab): Likewise.
1596         (lto_read_tree): Adjust.
1597         * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
1598         (lto_symtab_merge_var): Likewise.
1599         (lto_symtab_merge_fn): Likewise.
1600         (lto_symtab_register_decl): Declare.
1601         (lto_symtab_merge_decls): Likewise.
1602
1603 2009-10-05  Richard Guenther  <rguenther@suse.de>
1604
1605         PR tree-optimization/23821
1606         * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
1607         * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
1608         simple IV increments.
1609
1610 2009-10-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1611
1612         * config/arm/arm.c (arm_override_options): Really initialize
1613         flag_dwarf2_cfi_asm to 0.
1614
1615 2009-10-05  Doug Kwan  <dougkwan@google.com>
1616
1617         PR rtl-optimization/41574
1618         * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
1619         floating point and we are not doing unsafe math optimizations.
1620
1621 2009-10-03  Simon Baldwin  <simonb@google.com>
1622             Cary Coutant  <ccoutant@google.com>
1623             Rafael Espindola  <espindola@google.com>
1624             Richard Guenther  <rguenther@suse.de>
1625             Jan Hubicka  <jh@suse.cz>
1626             Doug Kwan <dougkwan@google.com>
1627             H.J. Lu  <hongjiu.lu@intel.com>
1628             Bill Maddox  <maddox@google.com>
1629             Ryan Mansfield  <rmansfield@qnx.com>
1630             Diego Novillo  <dnovillo@google.com>
1631             Ollie Wild  <aaw@google.com>
1632             Kenneth Zadeck <zadeck@naturalbridge.com>
1633
1634         * lto-cgraph.c: New file.
1635         * lto-compress.c: New file.
1636         * lto-compress.h: New file.
1637         * lto-opts.c: New file.
1638         * lto-section-in.c: New file.
1639         * lto-section-out.c: New file.
1640         * lto-streamer-in.c: New file.
1641         * lto-streamer-out.c: New file.
1642         * lto-streamer.c: New file.
1643         * lto-streamer.h: New file.
1644         * lto-symtab.c: New file.
1645         * lto-wpa-fixup.c: New file.
1646         * lto-wrapper.c: New file.
1647
1648 2009-10-03  Simon Baldwin  <baldwin@google.com>
1649             Ben Elliston  <bje@au.ibm.com>
1650             Rafael Espindola  <espindola@google.com>
1651             Nathan Froyd  <froydnj@codesourcery.com>
1652             Jan Hubicka  <jh@suse.cz>
1653             Doug Kwan  <dougkwan@google.com>
1654             Diego Novillo  <dnovillo@google.com>
1655             Kenneth Zadeck  <zadeck@naturalbridge.com>
1656
1657         * Makefile.in (enable_lto): New.
1658         (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
1659         (LINKER_PLUGIN_API_H): Define.
1660         (LTO_SYMTAB_H): Define.
1661         (LTO_STREAMER_H): Define.
1662         (TREE_VECTORIZER_H): Define.
1663         (INCLUDES): Add LIBELFINC.
1664         (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
1665         lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
1666         lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
1667         (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
1668         (native): Add lto-wrapper$(exeext)
1669         (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
1670         lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
1671         lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
1672         (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
1673         (varasm.o): Add dependency on tree-iterator.h.
1674         (cgraph.o): Add dependency on cif-code.def.
1675         (ipa-reference.o): Add dependency on LTO_STREAMER_H.
1676         (ipa-pure-const.o): Likewise.
1677         (GTFILES): Add lto-symtab.c.
1678         (install-lto-wrapper): New.
1679         * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
1680         and enable_lto.  If LIBELFLIBS is set, define HAVE_libelf.
1681         * config.in: Regenerate.
1682
1683 2009-10-03  Rafael Espindola  <espindola@google.com>
1684             Diego Novillo  <dnovillo@google.com>
1685
1686         * cgraphunit.c (ipa_passes): Prevent lto1 from calling
1687         ipa_write_summaries.
1688         Call execute_ipa_summary_passes for all_regular_ipa_passes and
1689         all_lto_gen_passes.
1690         (cgraph_optimize): Make extern.
1691
1692 2009-10-03  Nathan Froyd  <froydnj@codesourcery.com>
1693             Kenneth Zadeck <zadeck@naturalbridge.com>
1694
1695         * toplev.c (in_lto_p): Declare.
1696         * collect2.c (scan_prog_file): Read all the output when reading
1697         information for LTO.
1698         (enum lto_mode_d): Declare.
1699
1700 2009-10-03  Richard Guenther  <rguenther@suse.de>
1701             Diego Novillo  <dnovillo@google.com>
1702
1703         * gimple.c: Include target.h and alias.h.
1704         (gimple_types): Declare.
1705         (type_hash_cache): Declare.
1706         (gimple_alloc_stat): Make extern.
1707         (gimple_build_eh_must_not_throw): Call
1708         gimple_eh_must_not_throw_set_fndecl.
1709         (struct type_pair_d): Declare.
1710         (type_pair_t): Declare.
1711         (type_pair_hash): New.
1712         (type_pair_eq): New.
1713         (lookup_type_pair): New.
1714         (gimple_force_type_merge): New.
1715         (compare_type_names_p): New.
1716         (compare_field_offset): New.
1717         (gimple_types_compatible_p): New.
1718         (struct sccs): Declare.
1719         (next_dfs_num): Declare.
1720         (iterative_hash_gimple_type): New.
1721         (visit): New.
1722         (iterative_hash_type_name): New.
1723         (iterative_hash_gimple_type): New.
1724         (gimple_type_hash): New.
1725         (gimple_type_eq): New.
1726         (gimple_register_type): New.
1727         (print_gimple_types_stats): New.
1728         (gimple_signed_or_unsigned_type): New.
1729         (gimple_unsigned_type): New.
1730         (gimple_signed_type): New.
1731         (gimple_get_alias_set): New.
1732         (gimple_decl_printable_name): Do not use DMGL_TYPES.
1733         * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
1734         (gimple_force_type_merge): Declare.
1735         (gimple_types_compatible_p): Declare.
1736         (gimple_register_type): Declare.
1737         (print_gimple_types_stats): Declare.
1738         (gimple_unsigned_type): Declare.
1739         (gimple_signed_type): Declare.
1740         (gimple_get_alias_set): Declare.
1741         (gimple_eh_must_not_throw_set_fndecl): New.
1742
1743 2009-10-03  Jan Hubicka  <jh@suse.cz>
1744             Kenneth Zadeck <zadeck@naturalbridge.com>
1745
1746         * ipa-pure-const.c: Include lto-streamer.h.
1747         (register_hooks): Factor out of ...
1748         (generate_summary): ... here.
1749         (pure_const_write_summary): New.
1750         (pure_const_read_summary): New.
1751         (pass_ipa_pure_const): Add pure_const_write_summary and
1752         pure_const_read_summary.
1753         * ipa-reference.c: Include lto-streamer.h.
1754         (add_new_function): New.
1755         (remove_node_data): New.
1756         (duplicate_node_data): New.
1757         (ipa_init): Guard against multiple calls.
1758         Move hook setup from analyze_function.
1759         (write_node_summary_p): New.
1760         (ipa_reference_write_summary): New.
1761         (ipa_reference_read_summary): New.
1762         (pass_ipa_reference): Add ipa_reference_write_summary and
1763         ipa_reference_read_summary.
1764         * cgraph.h (cgraph_local_info): Add field lto_file_data.
1765         (struct cgraph_edge): Add fields lto_stmt_uid and
1766         call_stmt_cannot_inline_p.
1767         (cgraph_optimize): Declare.
1768         (cgraph_decide_is_function_needed): Declare.
1769         (reset_inline_failed): Declare.
1770         (enum LTO_cgraph_tags): Declare.
1771         (LTO_cgraph_tag_names): Declare.
1772         (LCC_NOT_FOUND): Define.
1773
1774 2009-10-03  Doug Kwan  <dougkwan@google.com>
1775             Rafael Espindola  <espindola@google.com>
1776             Jan Hubicka  <jh@suse.cz>
1777             Diego Novillo  <dnovillo@google.com>
1778             Kenneth Zadeck  <zadeck@naturalbridge.com>
1779
1780         * passes.c (all_regular_ipa_passes): New.
1781         (all_ipa_passes): Rename to all_small_ipa_passes.
1782         (init_optimization_passes): Init all_regular_ipa_passes.
1783         * tree-pass.h (all_regular_ipa_passes): New.
1784         (all_ipa_passes): Rename to all_small_ipa_passes.
1785         * passes.c (all_lto_gen_passes): New.
1786         (init_optimization_passes): Initialize all_lto_gen_passes.
1787         (execute_ipa_summary_passes): Make non-static.
1788         (ipa_write_summaries_1): New.
1789         (ipa_write_summaries_2): New.
1790         (ipa_write_summaries): New.
1791         (ipa_write_summaries_of_cgraph_node_set): New.
1792         (ipa_read_summaries_1): New.
1793         (ipa_read_summaries): New.
1794         (execute_ipa_pass_list): Call cgraph_process_new_functions.
1795         (execute_regular_ipa_pass_list): Remove.
1796         (init_optimization_passes): Schedule
1797         pass_rebuild_cgraph_edges and pass_early_inline outside
1798         of pass_all_early_optimizations.  Document reason.
1799         (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
1800         pass_ipa_lto_finish_out): New pass.
1801         (pass_ipa_summary_passes): Start and stop timers if the pass has them.
1802         (execute_all_ipa_transforms): New.
1803         (execute_one_pass): Don't call execute_one_ipa_transform_pass.
1804         (dump_properties, debug_properties): New.
1805         * tree-optimize.c (gate_all_early_local_passes): Return
1806         false if we are in lto1.
1807         (tree_rest_of_compilation): Call execute_all_ipa_transforms.
1808         * tree-pass.h (execute_all_ipa_transforms): Declare.
1809         (pass_ipa_function_and_variable_visibility): Declare.
1810         (pass_ipa_early_inline): Declare.
1811         (pass_ipa_lto_gimple_out): Declare.
1812         (pass_ipa_lto_wpa_fixup): Declare.
1813         (pass_ipa_lto_finish_out): Declare.
1814         (all_small_ipa_passes, all_regular_ipa_passes,
1815         all_lto_gen_passes): Declare.
1816         (execute_ipa_summary_passes): Declare.
1817         (execute_all_ipa_transforms): Declare.
1818         (ipa_write_summaries): Declare
1819         (ipa_write_summaries_of_cgraph_node_set): Declare.
1820         (ipa_read_summaries): Declare.
1821
1822 2009-10-03  Doug Kwan  <dougkwan@google.com>
1823             Ollie Wild  <aaw@google.com>
1824
1825         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
1826
1827         * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
1828         (lto_mode): New variable.
1829         (maybe_run_lto_and_relink): Handle the -fwpa option.
1830         (main): Handle the -fwpa option.
1831         (maybe_unlink_list): New function.
1832         * gcc.c (link_lto_options): Replace -flto with -fwpa.
1833         * common.opt (flto): New flag.
1834         * toplev.c (flag_generate_lto): Declare.
1835
1836 2009-10-03  Simon Baldwin  <simonb@google.com>
1837
1838         * common.opt (flto-compression-level): New flag.
1839
1840         * opts.c: Include lto-opts.h.
1841         (handle_option): Call lto_register_user_option for each
1842         valid option handled.
1843         (decode_options): Clear registered options before the options
1844         handling loop.
1845
1846 2009-10-03  Cary Coutant  <ccoutant@google.com>
1847
1848         * collect2.c (is_elf): New function.
1849         (scan_prog_file): Require LTO object to be in ELF format.
1850
1851 2009-10-03  Rafael Espindola  <espindola@google.com>
1852
1853         * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
1854         libgcc to the linker.
1855
1856         * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
1857
1858         * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
1859         (collect_execute): Add flags argument. Pass flags to pex_run. Update
1860         all callers.
1861         * collect2.h (collect_execute): Add flags argument.
1862         * tlink.c (tlink_execute): Update call to collect_execute.
1863         * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
1864         (use_linker_plugin): New.
1865         (use_linker_plugin_spec_function): New.
1866         (LINK_COMMAND_SPEC): Pass plugin options to the linker.
1867         (linker_plugin_file_spec): New.
1868         (lto_wrapper_spec): New.
1869         (lto_gcc_spec): New.
1870         (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
1871         (static_spec_functions): Add use-linker-plugin.
1872         (process_command): Handle -use-linker-plugin.
1873         (main): Use lto_wrapper_spec instead of lto_wrapper. Set
1874         linker_plugin_file_spec and lto_gcc_spec.
1875         (use_linker_plugin_spec_function): New.
1876
1877 2009-10-03  Richard Guenther  <rguenther@suse.de>
1878
1879         PR lto/41547
1880         PR lto/41548
1881         * tree.h (is_lang_specific): Include LANG_TYPE.
1882         * tree.c (find_decls_types_r): Manually add interesting parts
1883         of TYPE_FIELDS.  Walk BINFO_VIRTUALS.  Do not walk TYPE_METHODS.
1884
1885         * gimple.c (type_pair_hash): Make symmetric.
1886         (type_pair_eq): Likewise.
1887         (lookup_type_pair): Increase initial hashtable size.
1888         (gimple_force_type_merge): Rely on type-pair symmetry.
1889         (visit): Remove excessive checking code.
1890         (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
1891         (gimple_register_type): Remove getenv calls, shrink initial
1892         hashtable size.
1893
1894         PR middle-end/41502
1895         * cgraphunit.c (ipa_passes): Do not remove bodies of extern
1896         inline functions if not generating lto output.
1897
1898         PR lto/41379
1899         * toplev.c (finalize): In WPA mode remove the asm file.
1900
1901 2009-10-03  Doug Kwan  <dougkwan@google.com>
1902
1903         * ipa-inline.c (cgraph_mark_inline): Check
1904         edge->call_stmt_cannot_inline_p instead of calling
1905         gimple_call_cannot_inline_p.
1906         (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
1907         (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
1908         (inline_generate_summary): Do nothing in LTRANS.
1909         * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
1910         exists before calling gimple_call_cannot_inline_p.
1911         (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
1912         (cgraph_clone_edge): Add argument STMT_UID.  Modify all callers.
1913         Update new_edge->lto_stmt_uid.
1914         * cgraphbuild.c (reset_inline_failed): New.
1915
1916         * common.opt (fwpa): New flag.
1917         (fltrans): New option.
1918         * gcc.c (gcc_lto_option_t): New type.
1919         (current_lto_option): New variable.
1920         (lto_single_spec_function): Remove and is replaced by ..
1921         (lto_option_spec_function): New function.
1922         (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
1923         passing the -flto flag.
1924         (cc1_options): Separate non-LTO related parts into ..
1925         (cc1_non_lto_options): Non-LTO related options shared by all FEs.
1926         (lto1_options): New spec for lto FE.
1927         (link_lto_options): New spec for handling LTO flags in linker.
1928         (invoke_lto_single): Re-format to fit in 80 column.  Replace
1929         lto-single with lto-option.
1930         (static_specs): Add cc1_non_lto_options, lto1_options and
1931         link_lto_options.
1932         (static_spec_function): Replace lto-single with lto-option.
1933         (process_command): Handle -flto, -fwpa and -fltran by setting
1934         current_lto_option and not passing it to subprocess unconditionally.
1935
1936 2009-10-03  Bill Maddox  <maddox@google.com>
1937
1938         Add `gcc' driver support for link-time code generation (LTO).
1939
1940         * collect2.c (enum pass): Add new literal PASS_LTOINFO.
1941         (lto_flag, lto_objects, lto_o_file): New variables.
1942         (struct lto_object, struct lto_object_list): New structures.
1943         (collect_exit, handler): Remove LTO temporary output file on exit.
1944         (add_lto_object): New function.
1945         (maybe_run_lto_and_relink): New function. Perform link time code
1946         generation and relinking for object files containing LTO information.
1947         (main): Invoke maybe_run_lto_and_relink().
1948         (dump_argv): New function.  For debugging, currently disabled.
1949         (scan_prog_file): Add LTO information pass.
1950         * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
1951         collect2.
1952         * toplev.c (compile_file): Emit assembler directive to create
1953         the `gnu_lto_v1' marker symbol when compiling with `-flto'.
1954
1955 2009-10-03  Diego Novillo  <dnovillo@google.com>
1956
1957         * c.opt: Add LTO to warn_abi and warn_psabi.
1958
1959         * tree.c (fld_worklist_push): Rename from PUSH.  Convert to static
1960         inline function.  Ignore language-specific nodes.  Update all users.
1961         (find_decls_types_r): Do not traverse the subtrees of
1962         language-specific nodes.  Do not traverse DECL_INITIAL for TYPE_DECLs.
1963         * tree.h (is_lang_specific): New.
1964         * langhooks.h (struct lang_hooks_for_decls): Remove
1965         may_need_assembler_name_p.  Update all users.
1966
1967         * c-common.c (set_builtin_user_assembler_name): Move ...
1968         * builtins.c (set_builtin_user_assembler_name): ... here.
1969         (is_builtin_name): Add comment
1970         (is_builtin_fn): New.
1971         * except.c (output_ttype): Only call
1972         lookup_type_for_runtime if TYPE is not a runtime type.
1973
1974         * passes.c (register_pass): Call position_pass on
1975         all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
1976         * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
1977         (TV_IPA_LTO_DECL_IO): Define.
1978         (TV_IPA_LTO_CGRAPH_IO): Define.
1979         (TV_LTO): Define.
1980         (TV_WHOPR_WPA): Define.
1981         (TV_WHOPR_WPA_IO): Define.
1982         (TV_WHOPR_LTRANS): Define.
1983         (TV_WHOPR_WPA_FIXUP): Define.
1984         (TV_WHOPR_WPA_LTRANS_EXEC): Define.
1985         * tree-cfg.c (tree_node_can_be_shared): Make extern.
1986         * tree-flow.h (tree_node_can_be_shared): Declare.
1987         * tree-inline.c (tree_can_inline_p): Check that E has a
1988         statement associated with it.
1989         * tree.c (free_lang_data_in_binf): Factor out of ...
1990         (free_lang_data_in_type): ... here.
1991         Call RECORD_OR_UNION_TYPE_P.
1992         (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
1993         set.  Call lang_hooks.decls.may_need_assembler_name_p if set.
1994         (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
1995         (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE.  Set
1996         write_symbols to NO_DEBUG.  Set debug_hooks to do_nothing_debug_hooks.
1997         (gate_free_lang_data): Return true if flag_generate_lto is set.
1998         (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
1999         * c-common.h (set_builtin_user_assembler_name): Move ...
2000         * tree.h (set_builtin_user_assembler_name): ... here.
2001
2002         * common.opt (flto-report): New flag.
2003         * opts.c (complain_wrong_lang): Do not complain if running lto1.
2004         * collect2.c (scan_prog_file): Send the error output of
2005         'nm' to HOST_BIT_BUCKET.
2006
2007 2009-10-03  Ollie Wild  <aaw@google.com>
2008
2009         * langhooks-def.h (lhd_begin_section): New function declaration.
2010         (lhd_write_section): New function declaration.
2011         (lhd_end_section): New function declaration.
2012         (LANG_HOOKS_BEGIN_SECTION): New macro.
2013         (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
2014         (LANG_HOOKS_END_SECTION): New macro.
2015         (LANG_HOOKS_LTO): New macro.
2016         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
2017         * langhooks.c (output.h): Add include.
2018         (saved_section): New static variable.
2019         (lhd_begin_section): New function.
2020         (lhd_write_section_data): New function.
2021         (lhd_end_section): New function.
2022         * langhooks.h (struct lang_hooks_for_lto): New structure.
2023         (struct lang_hooks): Add member lto.
2024         * Makefile.in (langhooks.o): Add dependency on output.h.
2025
2026         * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
2027
2028 2009-10-03  Richard Guenther  <rguenther@suse.de>
2029
2030         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
2031         Handle LTO.
2032
2033 2009-10-03  Simon Baldwin  <simonb@google.com>
2034             Richard Guenther  <rguenther@suse.de>
2035             Janis Johnson  <janis187@us.ibm.com>
2036             Doug Kwan  <dougkwan@google.com>
2037             Diego Novillo  <dnovillo@google.com>
2038             Ramana Radhakrishnan  <ramana.r@gmail.com>
2039             Ollie Wild  <aaw@google.com>
2040
2041         * doc/install.texi: Add documentation for libelf and --enable-lto.
2042         * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
2043         -flto-report, -flto-compression-level and -use-linker-plugin.
2044         * doc/sourcebuild.texi: Document use of zlib.  Document lto-plugin.
2045         Add section for LTO Testing.
2046
2047 2009-10-02  Cary Coutant  <ccoutant@google.com>
2048
2049         Add support for comdat type sections for DWARF v4.
2050         Merge from dwarf4 branch.
2051
2052         * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
2053         (dw_die_ref): Define vector type.
2054         (enum dw_val_class): Add dw_val_class_data8.
2055         (struct dw_val_struct): Add v.val_data8.
2056         (comdat_type_node_ref): New type.
2057         (struct die_struct): Move die_symbol into a union; add new field
2058         die_type_node.  Change all uses.
2059         (comdat_type_node): New type.
2060         (skeleton_chain_node): New type.
2061         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
2062         (comdat_type_list): New variable.
2063         (dwarf_tag_name): Add DW_TAG_type_unit.
2064         (dwarf_attr_name): Add DW_AT_signature.
2065         (add_AT_data8): New function.
2066         (replace_child): New function.
2067         (move_all_children): New function.
2068         (print_signature): New function.
2069         (print_die): Print signature information; add dw_val_class_data8.
2070         (attr_checksum): Support dw_val_class_data8.
2071         (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
2072         (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
2073         (checksum_sleb128, checksum_uleb128): New functions.
2074         (checksum_die_context): New function.
2075         (loc_checksum_ordered): New function.
2076         (attr_checksum_ordered): New function.
2077         (struct checksum_attributes): New structure.
2078         (collect_checksum_attributes): New function.
2079         (die_checksum_ordered): New function.
2080         (generate_type_signature): New function.
2081         (same_dw_val_p): Add dw_val_class_data8.
2082         (is_symbol_die): Use new is_declaration_die function.
2083         (is_declaration_die): New function.
2084         (should_move_die_to_comdat): New function.
2085         (clone_die): New function.
2086         (clone_tree): New function.
2087         (clone_as_declaration): New function.
2088         (copy_declaration_context): New function.
2089         (generate_skeleton_ancestor_tree): New function.
2090         (generate_skeleton_bottom_up): New function.
2091         (generate_skeleton): New function.
2092         (remove_child_or_replace_with_skeleton): New function.
2093         (break_out_comdat_types): New function.
2094         (struct decl_table_entry): New type.
2095         (htab_decl_hash): New function.
2096         (htab_decl_eq): New function.
2097         (htab_decl_del): New function.
2098         (copy_ancestor_tree): New function.
2099         (copy_decls_walk): New function.
2100         (copy_decls_for_unworthy_types): New function.
2101         (build_abbrev_table): Don't assert on missing die_symbol when doing
2102         comdat type sections.
2103         (size_of_die): Use DW_FORM_sig8 for external references.  Add
2104         dw_val_class_data8.
2105         (unmark_dies): Don't assert for unmarked dies when doing comdat
2106         type sections.
2107         (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
2108         (output_signature): New function.
2109         (output_die): Likewise.
2110         (output_compilation_unit_header): Mark output as DWARF version 3
2111         even if generating DWARF 4.
2112         (output_comdat_type_unit): New function.
2113         (output_line_info): Mark output as DWARF version 3 even if generating
2114         DWARF 4.
2115         (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
2116         DWARF-4.
2117         (dwarf2out_end_source_file): Likewise.
2118         (prune_unused_types_walk_attribs): Don't follow references into
2119         comdat type sections.
2120         (prune_unused_types_mark): When generating type units, do not mark
2121         children of non-defining declarations of types; do mark children of
2122         type entries.
2123         (prune_unused_types): Process comdat type sections.
2124         (htab_ct_hash): New function.
2125         (htab_ct_eq): New function.
2126         (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
2127         Add a pointer to the line table from type unit entries so
2128         DW_AT_decl_file has meaning.
2129         * varasm.c (default_elf_asm_named_section): Use identifier name as
2130         comdat key instead of lang hook.
2131
2132 2009-10-02  Neil Vachharajani  <nvachhar@google.com>
2133
2134         * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
2135
2136 2009-10-02  Uros Bizjak  <ubizjak@gmail.com>
2137
2138         * config/i386/i386.md (SWIM248): New mode iterator.
2139         (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
2140         divmodhi4 patterns using SWIM248 macro.
2141         (*divmod<mode>4): Macroize insn_and_split pattern from
2142         *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
2143         and their corresponding splitters usign SWIM248 macro.  Split SImode
2144         insn to generate cltd and DImode insn to generate cqto instead of
2145         move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
2146         (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
2147         (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
2148         *divmodsi_noext patterns using SWIM248 macro.
2149         (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
2150         udivmodhi4 patterns using SWIM248 macro.
2151         (*udivmod<mode>4): Macroize insn_and_split pattern from
2152         *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
2153         corresponding splitters using SWIM248 macro.
2154         (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
2155         *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
2156
2157 2009-10-02  Eric Botcazou  <ebotcazou@adacore.com>
2158
2159         * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
2160         of zero-sized element is zero-sized regardless of its extent.
2161
2162 2009-10-02  Jakub Jelinek  <jakub@redhat.com>
2163
2164         PR debug/40521
2165         * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
2166         * configure: Regenerated.
2167         * config.in: Regenerated.
2168         * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
2169         !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
2170         (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
2171         not emitting .eh_frame, emit .cfi_sections .debug_frame
2172         directive.
2173
2174         PR debug/41404
2175         PR debug/41353
2176         * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
2177         CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
2178         with '\0'.
2179         (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
2180         vars use DECL_RTL with resetting it back to NULL afterwards.
2181         * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
2182         rtx_equal_p instead of asserting it is a SYMBOL_REF.
2183         (value_format): For dw_val_class_addr only use DW_FORM_addr if
2184         the attribute type allows it, otherwise use DW_FORM_dataN.
2185         (mem_loc_descriptor): Handle CONST_STRING.
2186         (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
2187         Handle MEM with CONST_STRING address using add_AT_string.
2188         (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
2189         CONST_STRING for const arrays initialized with a string literal.
2190         (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
2191         (dwarf2out_finish): Call resolve_addr.
2192
2193 2009-10-02  Andreas Schwab  <schwab@linux-m68k.org>
2194             Maxim Kuvyrkov  <maxim@codesourcery.com>
2195
2196         * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
2197
2198 2009-10-02  Nick Clifton  <nickc@redhat.com>
2199
2200         * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
2201         (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
2202
2203 2009-10-01  Jan Hubicka  <jh@suse.cz>
2204
2205         * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
2206         (cgraph_create_virtual_clone): Just pass redirect_callers
2207         around.
2208         * cgraph.h (cgraph_clone_node): Update prototype.
2209         * ipa-pure-const.c (self_recursive_p): New function.
2210         (propagate): Use it.
2211         * ipa-inline.c (cgraph_clone_inlined_nodes,
2212         cgraph_decide_recursive_inlining): Update.
2213
2214 2009-10-01  David Daney  <ddaney@caviumnetworks.com>
2215
2216         * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
2217         instructions for TARGET_OCTEON.
2218
2219 2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2220
2221         * config/arm/arm.c (arm_override_options): Turn off
2222         flag_dwarf2_cfi_asm for AAPCS variants.
2223
2224 2009-10-01  Martin Jambor  <mjambor@suse.cz>
2225
2226         PR middle-end/12392
2227         * tree-sra.c (convert_callers): Do not call
2228         compute_inline_parameters on one caller more than once.
2229
2230 2009-10-01  Nick Clifton  <nickc@redhat.com>
2231
2232         * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
2233         an empty string if not already defined.
2234
2235 2009-10-01  Martin Jambor  <mjambor@suse.cz>
2236
2237         PR bootstrap/41395
2238         * tree-sra.c (is_va_list_type): New function.
2239         (find_var_candidates): Call is_va_list_type.
2240         (find_param_candidates): Check that the type or the type pointed
2241         to are not va_list types.
2242
2243 2009-10-01  Martin Jambor  <mjambor@suse.cz>
2244
2245         PR c++/41503
2246         * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
2247         DECL_ARTIFICIAL (param_decl) is true.
2248
2249 2009-09-30  Gabriel Dos Reis  <gdr@cs.tamu.edu>
2250
2251         * tree.h (tree_decl_common::lang_flag_8): New.
2252         * c-common.c (c_common_reswords): Include "constexpr" as C++0x
2253         keyword.
2254         * c-common.h (RID_CONSTEXPR): New.
2255
2256 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
2257
2258         * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
2259         Use ref-all pointers.
2260         (alpha_gimplify_va_arg): Ditto.
2261
2262 2009-09-30  Jakub Jelinek  <jakub@redhat.com>
2263
2264         PR target/41279
2265         * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
2266         before insn counting loop now that BB_END (bb) is counted.  Ensure
2267         the return value isn't zero.
2268
2269 2009-09-30  Nick Clifton  <nickc@redhat.com>
2270
2271         * config.gcc (sh-symbianelf): Replace definition of extra_objs
2272         with separate definitions of c_target_objs and cxx_target_objs.
2273         * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
2274         and symbian-base.o.
2275         * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
2276         sh_symbian_import_export_class.
2277         * config/sh/sh-protos.h: Fix names of exported symbian functions.
2278         * config/sh/symbian.c: Delete, moving code into...
2279         * config/sh/symbian-base.c: ... here
2280         * config/sh/symbian-c.c: ... and here
2281         * config/sh/symbian-cxx.c: ... and here.
2282
2283 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
2284
2285         PR target/22093
2286         * config/alpha/alpha.md (unaligned_storehi_be): Force operand
2287         of plus RTX into register.
2288
2289 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2290
2291         * doc/install.texi: Linguistic and markup fixes.
2292         (Configuration) <--disable-cpp>: Remove description.
2293         <--enable-maintainer-mode>: Autotools files are affected, too.
2294         <--with-sysroot>: Improve description.
2295         (Building): Bump required GNU make version.
2296
2297 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
2298
2299         * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
2300         (x86_64-*-*): Ditto.
2301
2302         * config/i386/fma4intrin.h: New file, provide common x86 compiler
2303         intrinisics for FMA4.
2304         * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
2305         * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
2306         Add FMA4 check and fma4intrin.h.
2307         * config/i386/i386-c.c(ix86_target_macros_internal): Check
2308         ISA_FLAG for FMA4.
2309         * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
2310         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
2311         constant for FMA4 support.
2312         (UNSPEC_FMA4_FMADDSUB): Ditto.
2313         (UNSPEC_FMA4_FMSUBADD): Ditto.
2314         * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
2315         * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
2316         (ix86_expand_fma4_multiple_memory): Ditto.
2317         * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
2318         (OPTION_MASK_ISA_FMA4_UNSET): New.
2319         (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
2320         (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
2321         (ix86_handle_option): Handle -mfma4.
2322         (isa_opts): Handle -mfma4.
2323         (enum pta_flags): Add PTA_FMA4.
2324         (override_options): Add FMA4 support.
2325         (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
2326         (IX86_BUILTIN_VFMADDSD): Ditto.
2327         (IX86_BUILTIN_VFMADDPS): Ditto.
2328         (IX86_BUILTIN_VFMADDPD): Ditto.
2329         (IX86_BUILTIN_VFMSUBSS): Ditto.
2330         (IX86_BUILTIN_VFMSUBSD): Ditto.
2331         (IX86_BUILTIN_VFMSUBPS): Ditto.
2332         (IX86_BUILTIN_VFMSUBPD): Ditto.
2333         (IX86_BUILTIN_VFMADDSUBPS): Ditto.
2334         (IX86_BUILTIN_VFMADDSUBPD): Ditto.
2335         (IX86_BUILTIN_VFMSUBADDPS): Ditto.
2336         (IX86_BUILTIN_VFMSUBADDPD): Ditto.
2337         (IX86_BUILTIN_VFNMADDSS): Ditto.
2338         (IX86_BUILTIN_VFNMADDSD): Ditto.
2339         (IX86_BUILTIN_VFNMADDPS): Ditto.
2340         (IX86_BUILTIN_VFNMADDPD): Ditto.
2341         (IX86_BUILTIN_VFNMSUBSS): Ditto.
2342         (IX86_BUILTIN_VFNMSUBSD): Ditto.
2343         (IX86_BUILTIN_VFNMSUBPS): Ditto.
2344         (IX86_BUILTIN_VFNMSUBPD): Ditto.
2345         (IX86_BUILTIN_VFMADDPS256): Ditto.
2346         (IX86_BUILTIN_VFMADDPD256): Ditto.
2347         (IX86_BUILTIN_VFMSUBPS256): Ditto.
2348         (IX86_BUILTIN_VFMSUBPD256): Ditto.
2349         (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
2350         (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
2351         (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
2352         (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
2353         (IX86_BUILTIN_VFNMADDPS256): Ditto.
2354         (IX86_BUILTIN_VFNMADDPD256): Ditto.
2355         (IX86_BUILTIN_VFNMSUBPS256): Ditto.
2356         (IX86_BUILTIN_VFNMSUBPD256): Ditto.
2357         (enum multi_arg_type): New enum for describing the various FMA4
2358         intrinsic argument types.
2359         (bdesc_multi_arg): New table for FMA4 intrinsics.
2360         (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
2361         (ix86_expand_multi_arg_builtin): New function for creating FMA4
2362         intrinsics.
2363         (ix86_expand_builtin): Add FMA4 intrinsic support.
2364         (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
2365         operand instructions.
2366         (ix86_expand_fma4_multiple_memory): New function to split the
2367         second memory reference from FMA4 instructions.
2368         * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
2369         (ssemodesuffixf2s): Ditto.
2370         (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
2371         instructions.
2372         (fma4_fmsub<mode>4): Ditto.
2373         (fma4_fnmadd<mode>4): Ditto.
2374         (fma4_fnmsub<mode>4): Ditto.
2375         (fma4_vmfmadd<mode>4): Ditto.
2376         (fma4_vmfmsub<mode>4): Ditto.
2377         (fma4_vmfnmadd<mode>4): Ditto.
2378         (fma4_vmfnmsub<mode>4): Ditto.
2379         (fma4_fmadd<mode>4256): Ditto.
2380         (fma4_fmsub<mode>4256): Ditto.
2381         (fma4_fnmadd<mode>4256): Ditto.
2382         (fma4_fnmsub<mode>4256): Ditto.
2383         (fma4_fmaddsubv8sf4): Ditto.
2384         (fma4_fmaddsubv4sf4): Ditto.
2385         (fma4_fmaddsubv4df4): Ditto.
2386         (fma4_fmaddsubv2df4): Ditto.
2387         (fma4_fmsubaddv8sf4): Ditto.
2388         (fma4_fmsubaddv4sf4): Ditto.
2389         (fma4_fmsubaddv4df4): Ditto.
2390         (fma4_fmsubaddv2df4): Ditto.
2391         (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
2392         instructions for intrinsics.
2393         (fma4i_fmsub<mode>4): Ditto.
2394         (fma4i_fnmadd<mode>4): Ditto.
2395         (fma4i_fnmsub<mode>4): Ditto.
2396         (fma4i_vmfmadd<mode>4): Ditto.
2397         (fma4i_vmfmsub<mode>4): Ditto.
2398         (fma4i_vmfnmadd<mode>4): Ditto.
2399         (fma4i_vmfnmsub<mode>4): Ditto.
2400         (fma4i_fmadd<mode>4256): Ditto.
2401         (fma4i_fmsub<mode>4256): Ditto.
2402         (fma4i_fnmadd<mode>4256): Ditto.
2403         (fma4i_fnmsub<mode>4256): Ditto.
2404         (fma4i_fmaddsubv8sf4): Ditto.
2405         (fma4i_fmaddsubv4sf4): Ditto.
2406         (fma4i_fmaddsubv4df4): Ditto.
2407         (fma4i_fmaddsubv2df4): Ditto.
2408         (fma4i_fmsubaddv8sf4): Ditto.
2409         (fma4i_fmsubaddv4sf4): Ditto.
2410         (fma4i_fmsubaddv4df4): Ditto.
2411         (fma4i_fmsubaddv2df4): Ditto.
2412
2413         * doc/invoke.texi (-mfma4): Add documentation.
2414         * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
2415
2416 2009-09-29  Richard Henderson  <rth@redhat.com>
2417
2418         * tree-eh.c (unsplit_eh): Do not unsplit if there's already
2419         an edge to the new destination block.
2420
2421 2009-09-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2422
2423         PR target/41393
2424         * pa.c (hppa_profile_hook): Use
2425         make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
2426
2427 2009-09-29  Steve Ellcey  <sje@cup.hp.com>
2428             Alexander Monakov  <amonakov@ispras.ru>
2429
2430         PR target/41365
2431         * config/ia64/predicates.md (not_postinc_destination_operand): New.
2432         (not_postinc_memory_operand): New.
2433         (not_postinc_move_operand): New.
2434         * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
2435         (*cmovsi_internal): Ditto.
2436
2437 2009-09-29  Pat Haugen  <pthaugen@us.ibm.com>
2438
2439         * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
2440         restrict issue_rate in first pass when scheduling for register
2441         pressure.
2442
2443 2009-09-29  Basile Starynkevitch  <basile@starynkevitch.net>
2444             Rafael Avila de Espindola  <espindola@google.com>
2445
2446         * gengtype.c (plugin_output): New.
2447         (get_output_file_with_visibility): Return plugin_output for plugins.
2448         (main): Parse and use the -P option.
2449         * gty.texi: Update the command line format.
2450
2451 2009-09-29  Jakub Jelinek  <jakub@redhat.com>
2452
2453         PR debug/41438
2454         * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
2455         functions.
2456         (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
2457         out if !const_ok_for_output.
2458
2459         PR debug/41474
2460         * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
2461         case VAR_LOCATION>: Remove gcc_unreachable ().
2462
2463 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
2464
2465         * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
2466         (x86_64-*-*): Ditto.
2467         * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
2468         back to smmintrin.h.
2469         * config/i386/cpuid.h (bit_SSE5): Remove SSE5 bit.
2470         * config/i386/x86intrin.h: Remove SSE5.
2471         * config/i386/mmintrin-common.h: Delete file.
2472         * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
2473
2474 2009-09-29  Richard Guenther  <rguenther@suse.de>
2475
2476         * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
2477         resulting from stack temporaries on STRICT_ALIGNMENT targets.
2478
2479 2009-09-29  Nick Clifton  <nickc@redhat.com>
2480
2481         * function.c (current_function_name): If there is no current
2482         function just return "<none>".
2483
2484 2009-09-28  Sriraman Tallam  <tmsriram@google.com>
2485
2486         * tree-pass.h (register_pass_info): New structure.
2487         (pass_positioning_ops): Move enum from gcc-plugin.h.
2488         (register_pass): New function.
2489         * gcc-plugin.h (plugin_pass): Delete structure.
2490         (pass_positioning_ops): Delete enum.
2491         * plugin.c (regsiter_pass): Delete function.
2492         (position_pass): Delete function.
2493         (added_pass_nodes): Delete variable.
2494         (prev_added_pass_nodes): Delete variable.
2495         (pass_list_node): Delete structure.
2496         * passes.c (make_pass_instance): New function.
2497         (next_pass_1): Change to call make_pass_instance.
2498         (pass_list_node): Move structure from gcc-plugin.h.
2499         (added_pass_nodes): Move variable from plugin.c.
2500         (prev_added_pass_nodes): Move variable from plugin.c.
2501         (position_pass): New function.
2502         (register_pass): New function.
2503
2504 2009-09-28  Easwaran Raman  <eraman@google.com>
2505
2506         * ifcvt.c (noce_try_abs): Recognize pattern and call
2507         expand_one_cmpl_abs_nojump.
2508         * optabs.c (expand_one_cmpl_abs_nojump): New function.
2509         * optabs.h (expand_one_cmpl_abs_nojump): Declare.
2510
2511 2009-09-28  Ian Lance Taylor  <iant@google.com>
2512
2513         PR middle-end/40500
2514         * c-opts.c (c_common_handle_option): Don't set
2515         warn_jump_misses_init for -Wall.
2516         * doc/invoke.texi (Warning Options): Update documentation.
2517
2518 2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2519
2520         * Makefile.in ($(out_object_file)): Depend on
2521         gt-$(basename $(notdir $(out_file))).h.
2522
2523 2009-09-28  Richard Henderson  <rth@redhat.com>
2524
2525         * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
2526         * except.c (gen_eh_region): Set it.
2527         (duplicate_eh_regions_1): Copy it.
2528         * tree-eh.c (lower_resx): Use it to determine which function
2529         to call to resume.
2530
2531         * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
2532         * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
2533         * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
2534         * tree.c (build_common_builtin_nodes): Remove parameter.  Build
2535         BUILT_IN_CXA_END_CLEANUP if necessary.
2536
2537         * c-common.c (c_define_builtins): Update call to
2538         build_common_builtin_nodes.
2539
2540 2009-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2541
2542         * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
2543
2544 2009-09-28  Michael Matz  <matz@suse.de>
2545
2546         * builtins.c (interclass_mathfn_icode): New helper.
2547         (expand_builtin_interclass_mathfn): Use it here, and split folding
2548         into ...
2549         (fold_builtin_interclass_mathfn): ... this new folder.
2550         (build_call_nofold_loc): New static helper.
2551         (build_call_nofold): New wrapper macro for above.
2552         (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
2553         (expand_builtin_pow): Ditto.
2554         (expand_builtin_memset_args): Ditto.
2555         (expand_builtin_printf): Ditto.
2556         (expand_builtin_fprintf): Ditto.
2557         (expand_builtin_sprintf): Ditto.
2558         (expand_builtin_memory_chk): Ditto.
2559         (expand_builtin_mempcpy_args): Ditto and don't call folders.
2560         (expand_builtin_stpcpy): Ditto.
2561         (expand_builtin_strcmp): Ditto.
2562         (expand_builtin_strncmp): Ditto.
2563         (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
2564         (expand_builtin_strcpy_args): Don't call folders.
2565         (expand_builtin_memcmp): Ditto.
2566         (expand_builtin_strncpy): Ditto, and use target.
2567         (expand_builtin_memcpy): Ditto.
2568         (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
2569         expand_builtin_strpbrk, expand_builtin_memmove,
2570         expand_builtin_memmove_args, expand_builtin_bcopy,
2571         expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
2572         expand_builtin_strspn, expand_builtin_strcspn,
2573         expand_builtin_fputs): Remove these.
2574         (expand_builtin): Don't call the above, change calls to other
2575         expanders that changed prototype.
2576         (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
2577         (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
2578         fold_builtin_interclass_mathfn.
2579         (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
2580         (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
2581
2582         * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
2583         * passes.c (init_optimization_passes): Move pass_fold_builtins
2584         after last phiopt pass.
2585         * tree-inline.c (fold_marked_statements): When folding builtins
2586         iterate over all instruction potentially generated.
2587         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
2588         earlier.
2589         (fold_gimple_call): Use it to always fold calls (into potentially
2590         multiple instructions).
2591         * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
2592         calls into zero at this time.
2593         * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
2594         statements generated by builtin folding.
2595
2596 2009-09-28  Nick Clifton  <nickc@redhat.com>
2597
2598         * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
2599
2600 2009-09-28  Duncan Sands  <baldrick@free.fr>
2601
2602         * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
2603         * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
2604         (register_callback): Dispatch it.
2605         (invoke_plugin_callbacks): Incorporate in sanity check.
2606         * ggc.h (ggc_register_cache_tab): Add declaration.
2607         * ggc-common.c (ggc_register_root_tab): Simplify.
2608         (const_ggc_cache_tab_t): New typedef.
2609         (extra_cache_vec): New vector of dynamically added cache tables.
2610         (ggc_register_cache_tab): New function.
2611         (ggc_scan_cache_tab): New function.
2612         (ggc_mark_roots): Simplify dynamic roots.  Handle dynamic caches.
2613         * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
2614
2615 2009-09-27  Richard Henderson  <rth@redhat.com>
2616
2617         * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
2618         which we remove __builtin_stack_restore.
2619
2620 2009-09-27  Bernd Schmidt  <bernd.schmidt@analog.com>
2621
2622         * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
2623         to test for GRD_INVARIANT.
2624         (simple_rhs_p): Anything that's function_invariant_p is fine.
2625
2626 2009-09-27  Rafael Avila de Espindola  <espindola@google.com>
2627
2628         * gengtype.c (main): Use plunge_files instead of plugin_output.
2629
2630 2009-09-27  Basile Starynkevitch  <basile@starynkevitch.net>
2631             Rafael Avila de Espindola  <espindola@google.com>
2632
2633         * gengtype.c (write_root, write_roots): Add a emit_pch argument.
2634         Don't print pch related info if it is false.
2635         (main): Don't print pch info in plugin mode.
2636
2637 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
2638
2639         * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
2640         with dw_val_class_const_double.
2641         (struct dw_val_struct): Replace val_long_long with val_double and
2642         adjust for above change.
2643         (output_loc_operands): Likewise.
2644         (add_AT_long_long): Rename into...
2645         (add_AT_double): ...this.
2646         (print_die): Replace dw_val_class_long_long with
2647         dw_val_class_const_double and adjust.
2648         (attr_checksum): Likewise.
2649         (same_dw_val_p): Likewise.
2650         (size_of_die): Likewise.
2651         (value_format): Likewise.
2652         (output_die): Likewise.
2653         (loc_descriptor) <CONST_DOUBLE>: Likewise.
2654         (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
2655         instead of add_AT_long_long.
2656         (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
2657         value with the precision of its type.
2658
2659 2009-09-27  Andreas Schwab  <schwab@linux-m68k.org>
2660
2661         PR c/41476
2662         * c-typeck.c (build_conditional_expr): Use the readonly and
2663         volatile flags of the operand types, not of the operands itself.
2664
2665 2009-09-27  Peter O'Gorman  <pogma@thewrittenword.com>
2666
2667         * collect2.c (main): Look for -brtl before adding libraries.
2668
2669 2009-09-27  Jonathan Gray  <jsg@openbsd.org>
2670
2671         * config.gcc: Update OpenBSD targets.
2672         * config/openbsd-stdint.h: New file.
2673         * config/openbsd-libpthread.h: New file.
2674         * config/openbsd.h: Update and break out LIB_SPEC definition.
2675         * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
2676         * config/i386/openbsdelf.h: Correct types.
2677         * config/m68k/openbsd.h: Likewise.
2678         * config/mips/openbsd.h: Likewise.
2679         * config/vax/openbsd.h: Likewise.
2680
2681 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
2682
2683         * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
2684         (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
2685         * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
2686         of the length and zero.
2687
2688 2009-09-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2689
2690         * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
2691         (FLAGS_H): Add options.h $(REAL_H).
2692         (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
2693         (TREE_VECTORIZER_H): New.
2694         (EBITMAP_H): Renamed from EBIMAP_H.
2695         (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
2696         (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
2697         (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
2698         (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
2699         (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
2700         (graphite-clast-to-gimple.o, graphite-dependences.o)
2701         (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
2702         (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
2703         (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
2704         (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
2705         (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
2706         (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
2707         (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
2708         (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
2709         (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
2710         updated and fixed as per above changes and per
2711         check_makefile_deps.sh output.
2712
2713         PR bootstrap/40928
2714         * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
2715         * configure: Regenerate.
2716
2717 2009-09-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2718
2719         * doc/install.texi: Update minimum MPC version to 0.7.
2720
2721 2009-09-26  Gerald Pfeifer  <gerald@pfeifer.com>
2722
2723         * doc/install.texi (Binaries): Remove reference to the binary
2724         distribution CD-ROM from the FSF.
2725
2726 2009-09-26  Michael Matz  <matz@suse.de>
2727
2728         PR lto/40758
2729         PR middle-end/41470
2730         * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
2731         that are mentioned in the body.
2732
2733 2009-09-26  Michael Matz  <matz@suse.de>
2734
2735         PR tree-optimization/41454
2736         * tree-ssa-dom (stmts_to_rescan): Remove variable.
2737         (tree_ssa_dominator_optimize): Don't allocate and free it.
2738         (dom_opt_leave_block): Don't iterate over it.
2739         (eliminate_redundant_computations): Don't return a value.
2740         (cprop_operand, cprop_into_stmt): Ditto.
2741         (optimize_stmt): Don't defer updating stmts.
2742
2743 2009-09-25  Dodji Seketeli  <dodji@redhat.com>
2744
2745         * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
2746         generic_parameter_die, template_parameter_pack_die,
2747         gen_formal_parameter_die, gen_subprogram_die): Adjust after
2748         renaming DW_TAG_formal_parameter_pack and
2749         DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
2750         and DW_TAG_GNU_template_parameter_pack.
2751
2752 2009-09-25  Anatoly Sokolov  <aesok@post.ru>
2753
2754         * config/v850/v850.h (FUNCTION_VALUE): Remove.
2755         * config/v850/v850.c (v850_function_value): New function.
2756         (TARGET_FUNCTION_VALUE): Define.
2757
2758 2009-09-25  Jakub Jelinek  <jakub@redhat.com>
2759
2760         * tree-vect-stmts.c (vectorizable_call): Call
2761         mark_symbols_for_renaming after vect_finish_stmt_generation.
2762
2763         * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
2764         to loc_descriptor_from_tree.
2765         (add_location_or_const_value_attribute): Pass 0 instead of 2
2766         for decl_by_reference_p decls.
2767
2768 2009-09-25  Richard Guenther  <rguenther@suse.de>
2769
2770         PR middle-end/41463
2771         * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
2772         arrays again.
2773
2774 2009-09-25  Ben Elliston  <bje@au.ibm.com>
2775
2776         * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
2777         after `power7'.
2778
2779 2009-09-25  Alan Modra  <amodra@bigpond.net.au>
2780
2781         * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
2782         form of instruction.
2783
2784 2009-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2785
2786         PR middle-end/41435
2787         * fold-const.c (const_binop): Handle complex int division.
2788         * tree-complex.c (expand_complex_div_straight,
2789         expand_complex_div_wide): Update comments.
2790
2791 2009-09-24  DJ Delorie  <dj@redhat.com>
2792
2793         PR target/41456
2794         * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
2795         (reg_class): Likewise.
2796         (REG_CLASS_NAMES): Likewise.
2797         * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
2798         (m32c_override_options): Disable -fivopts for M32C.
2799
2800 2009-09-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
2801
2802         * config/rs6000/predicates.md (indexed_or_indirect_operand):
2803         Delete VSX load/store with update support.
2804         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
2805         * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
2806         (vsx_movti): Ditto.
2807         (VSX_U): Delete.
2808         (VSbit): Ditto.
2809         (VStype_load_update): Ditto.
2810         (VStype_store_update): Ditto.
2811         (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
2812         (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
2813
2814         * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
2815         load/store with update builtins.
2816
2817 2009-09-24  Kai Tietz  <kai.tietz@onevision.com>
2818
2819         * libgcc2.c (L_trampoline): Prototype for getpagesize
2820         and mprotect in WINNT case.
2821
2822 2009-09-24  Anatoly Sokolov  <aesok@post.ru>
2823
2824         * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
2825         * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
2826         * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
2827         'outgoing' argument.
2828         (TARGET_FUNCTION_VALUE): Define.
2829
2830 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
2831
2832         * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
2833
2834 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
2835
2836         PR bootstrap/41405
2837         * common.opt: Initialize dwarf_strict to -1.
2838         * toplev.c (process_options): Catch unset dwarf_strict
2839         and set to 0 for all targets not overriding.
2840         * config/darwin.c (darwin_override_options): Catch unset
2841         dwarf_strict and override to 1.
2842
2843 2009-09-24  Jeff Law  <law@redhat.com>
2844
2845         * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
2846
2847 2009-09-24  Richard Guenther  <rguenther@suse.de>
2848
2849         PR tree-optimization/36143
2850         PR tree-optimization/38747
2851         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
2852         create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
2853
2854 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
2855
2856         PR bootstrap/41457
2857         * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
2858         return false instead of gcc_unreachable ().  For CONST return the
2859         value returned by recursive call instead of always returning true.
2860         (tree_add_const_value_attribute): Return the value returned by
2861         add_const_value_attribute instead of always returning true if rtl
2862         is non-NULL.
2863
2864 2009-09-23  Justin Seyster  <jrseys@gmail.com>
2865
2866         * Makefile.in (PLUGIN_HEADERS): Include real.h.
2867
2868 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
2869
2870         * cgraphunit.c (cgraph_lower_function): Revert last change.
2871         * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
2872         instead of DECL_NO_STATIC_CHAIN.
2873         * tree-cfg.c (verify_gimple_call): Likewise.
2874         * tree-nested.c (get_chain_decl, get_chain_field,
2875         convert_tramp_reference_op, convert_gimple_call): Likewise.
2876         (convert_all_function_calls): Likewise.  Always set or clear
2877         DECL_STATIC_CHAIN initially, for !n->outer clear it.
2878         (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
2879         * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
2880         if nested.
2881         * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
2882         DECL_NO_STATIC_CHAIN.
2883         * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
2884         instead of DECL_NO_STATIC_CHAIN.
2885         (ix86_function_regparm, find_drap_reg): Likewise.  Don't test
2886         decl_function_context.
2887         * varasm.c (initializer_constant_valid_p): Likewise.
2888         * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
2889         (DECL_STATIC_CHAIN): ... this.
2890         * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
2891         instead of DECL_NO_STATIC_CHAIN.
2892
2893 2009-09-23  Basile Starynkevitch  <basile@starynkevitch.net>
2894             Rafael Avila de Espindola  <espindola@google.com>
2895
2896         * gengtype.c (nb_plugin_files): Make it unsigned to match
2897         num_gt_files. Adjust other variables to avoid warnings.
2898         (main): Allocate an all zero lang_bitmap before each plugin file name
2899         to match regular file names.
2900
2901 2009-09-23  Richard Henderson  <rth@redhat.com>
2902
2903         * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
2904         (TARGET_STATIC_CHAIN): Mention that this hook must be used for
2905         static chain passed in memory.
2906         * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
2907         * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
2908         STATIC_CHAIN_INCOMING.  Issue a sorry if there's no
2909         STATIC_CHAIN_REGNUM defined.
2910
2911         * config/picochip/picochip-protos.h: s/class/klass/.
2912         * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
2913         (picochip_static_chain): New.
2914         * config/picochip/picochip.h (STATIC_CHAIN): Remove.
2915         (STATIC_CHAIN_INCOMING): Remove.
2916
2917         * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
2918         (xtensa_static_chain): New.
2919         * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
2920         (STATIC_CHAIN_INCOMING): Remove.
2921
2922 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
2923
2924         * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
2925         * config/pa/pa-protos.h (function_value): Remove.
2926         * config/pa/pa.c (pa_function_value): Rename from function_value.
2927         Make static, add 'outgoing' argument.
2928         (TARGET_FUNCTION_VALUE): Define.
2929
2930 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
2931
2932         * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
2933         instead of cfun->machine->is_leaf.
2934         * config/avr/avr.h (machine_function): Remove is_leaf field.
2935
2936 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
2937
2938         PR debug/41439
2939         * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
2940         DW_OP_piece after DW_OP_stack_value, adjust size calculations
2941         for it, when DW_OP_stack_value and DW_OP_implicit_value has
2942         the same size, prefer DW_OP_stack_value.
2943         (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
2944         loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
2945
2946 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
2947
2948         PR debug/41353
2949         * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
2950
2951 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
2952
2953         PR debug/41248
2954         * cfgexpand.c (convert_debug_memory_address): New.
2955         (expand_debug_expr): Convert base address and offset to the same
2956         mode.  Use it to convert addresses to other modes.  Accept
2957         ptr_mode addresses.
2958
2959 2009-09-23  Richard Guenther  <rguenther@suse.de>
2960
2961         * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
2962         produced for bigendian targets with promoted subregs.
2963
2964 2009-09-23  Richard Guenther  <rguenther@suse.de>
2965
2966         * value-prof.c (gimple_ic): Purge old EH edges only after building
2967         the new ones.
2968
2969 2009-09-23  Nick Clifton  <nickc@redhat.com>
2970
2971         * config/arc/arc.c (arc_trampoline_init): Fix typo.
2972
2973 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
2974
2975         PR bootstrap/41405
2976         * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
2977
2978         PR bootstrap/41436
2979         * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
2980         on non-nested functions.
2981
2982 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
2983             Jan Hubicka  <jh@suse.cz>
2984
2985         * dwarf2out.c (loc_list_plus_const): Only define if
2986         DWARF2_DEBUGGING_INFO.
2987         (address_of_int_loc_descriptor): Likewise.
2988
2989         PR debug/41411
2990         * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
2991
2992 2009-09-23  Uros Bizjak  <ubizjak@gmail.com>
2993
2994         PR c/39779
2995         * c-typeck.c (build_binary_op) <short_shift>: Check that integer
2996         constant is more than zero.
2997
2998 2009-09-23  Alan Modra  <amodra@bigpond.net.au>
2999
3000         PR target/40473
3001         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
3002         call final to emit non-scheduled prologue, instead insert at entry.
3003
3004 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
3005             Joseph S. Myers  <joseph@codesourcery.com>
3006
3007         * doc/install.texi (*-*-freebsd*): Add proper format codes.
3008
3009 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
3010             Rafael Avila de Espindola  <espindola@google.com>
3011
3012         * gengtype.c (is_file_equal): New function.
3013         (close_output_files): Use is_file_equal. Free of->buf.
3014
3015 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
3016             Rafael Avila de Espindola  <espindola@google.com>
3017
3018         * gengtype.c (write_types, write_local): Add the output_header
3019         argument. Update all callers.
3020
3021 2009-09-22  Dodji Seketeli  <dodji@redhat.com>
3022
3023         * dwarf2out.c (template_parameter_pack_die,
3024         gen_formal_parameter_pack_die ): New functions.
3025         (make_ith_pack_parameter_name): Remove this function.
3026         (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
3027         DW_TAG_formal_parameter_pack.
3028         (gen_generic_params_dies): Represent each template parameter pack
3029         by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
3030         represented by usual DW_TAG_template_*_parameter DIEs that are
3031         children of the DW_TAG_template_parameter_pack element DIE.
3032         (generic_parameter_die): This doesn't deal with parameter pack
3033         names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
3034         of parameter pack DIEs.
3035         (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
3036         in certain cases, e.g. for pack elements.
3037         (gen_formal_types_die, gen_decl_die): Adjust usage of
3038         gen_formal_parameter_die.
3039         (gen_subprogram_die): Represent each function parameter pack by a
3040         DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
3041         represented by usual DW_TAG_formal_parameter DIEs that are children
3042         of the DW_TAG_formal_parameter_pack DIE. Remove references to
3043         ____builtin_va_alist decls as no part of the compiler uses those
3044         anymore.
3045         * langhooks.h (struct lang_hooks_for_decls): Add
3046         function_parm_expanded_from_pack_p, get_generic_function_decl
3047         and function_parameter_pack_p hooks.  Fix comment for
3048         get_innermost_generic_parms hook.
3049         * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
3050         LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
3051         macros and use them to initialize lang_hook.
3052
3053 2009-09-22  Richard Henderson  <rth@redhat.com>
3054
3055         * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
3056         (TRAMPOLINE_ADJUST_ADDRESS): Poison.
3057         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
3058         on TRAMPOLINE_TEMPLATE.
3059         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
3060         TRAMPOLINE_ADJUST_ADDRESS.
3061         * targhooks.c (default_asm_trampoline_template): Remove.
3062         (default_trampoline_adjust_address): Remove.
3063         (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
3064         * targhooks.h: Update decls.
3065
3066 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
3067
3068         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
3069         * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
3070         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
3071
3072 2009-09-22  Alexandre Oliva  <aoliva@redhat.com>
3073
3074         PR debug/41295
3075         * reload1.c (reload): Reset debug insns with pseudos without
3076         equivalences.
3077
3078 2009-09-22  Janis Johnson  <janis187@us.ibm.com>
3079
3080         * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
3081         unconditional true for decimal float modes.
3082         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
3083         * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
3084
3085 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
3086
3087         * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
3088         Enable a new case for __FreeBSD__ >= 7.
3089         * crtstuff.c:  Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
3090         * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
3091         * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
3092         and USE_LD_AS_NEEDED.
3093
3094         * doc/install.texi (*-*-freebsd*): Update target information.
3095
3096 2009-09-22  Richard Guenther  <rguenther@suse.de>
3097
3098         PR middle-end/41395
3099         * tree-dfa.c (get_ref_base_and_extent): Handle trailing
3100         arrays really properly.
3101
3102 2009-09-22  Richard Henderson  <rth@redhat.com>
3103
3104         PR target/41246
3105         * target.h (struct gcc_target): Add asm_out.trampoline_template,
3106         calls.static_chain, calls.trampoline_init,
3107         calls.trampoline_adjust_address.
3108         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3109         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
3110         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
3111         * builtins.c (expand_builtin_setjmp_receiver): Use
3112         targetm.calls.static_chain; only clobber registers.
3113         (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
3114         set up memory attributes properly for the trampoline block.
3115         (expand_builtin_adjust_trampoline): Use
3116         targetm.calls.trampoline_adjust_address.
3117         * calls.c (prepare_call_address): Add fndecl argument.  Use
3118         targetm.calls.static_chain.
3119         * df-scan.c (df_need_static_chain_reg): Remove.
3120         (df_get_entry_block_def_set): Use targetm.calls.static_chain;
3121         consolodate static chain handling.
3122         * doc/tm.texi: Document new hooks.
3123         * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
3124         (init_emit_regs): Don't initialize them.
3125         * expr.h (prepare_call_address): Update decl.
3126         * final.c (profile_function): Use targetm.calls.static_chain.
3127         * function.c (expand_function_start): Likewise.
3128         * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
3129         * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
3130         only clobber registers.
3131         * targhooks.c (default_static_chain): New.
3132         (default_asm_trampoline_template, default_trampoline_init): New.
3133         (default_trampoline_adjust_address): New.
3134         * targhooks.h: Declare them.
3135         * varasm.c (assemble_trampoline_template): Use
3136         targetm.asm_out.trampoline_template.  Make the memory block const
3137         and set its size.
3138
3139         * config/alpha/alpha.c (alpha_trampoline_init): Rename from
3140         alpha_initialize_trampoline.  Make static.  Merge VMS parameter
3141         differences into the TARGET_ABI_OPEN_VMS code block.
3142         (TARGET_TRAMPOLINE_INIT): New.
3143         * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
3144         (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
3145         * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
3146         (INITIALIZE_TRAMPOLINE): Remove.
3147
3148         * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
3149         (TRAMPOLINE_TEMPLATE): Merge with ...
3150         (INITIALIZE_TRAMPOLINE): ... this and move ...
3151         * config/arc/arc.c (arc_trampoline_init): ... here.
3152         (TARGET_TRAMPOLINE_INIT): New.
3153
3154         * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3155         (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
3156         (arm_asm_trampoline_template): New.
3157         (arm_trampoline_init, arm_trampoline_adjust_address): New.
3158         * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
3159         THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
3160         code to arm_asm_trampoline_template.
3161         (TRAMPOLINE_ADJUST_ADDRESS): Move code to
3162         arm_trampoline_adjust_address.
3163         (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
3164         adjust for target hook parameters.
3165
3166         * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
3167         Remove.
3168
3169         * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
3170         * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
3171         (bfin_trampoline_init): Rename from initialize_trampoline;
3172         make static; update for target hook parameters.
3173         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
3174         * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
3175         bfin_asm_trampoline_template.
3176         (INITIALIZE_TRAMPOLINE): Remove.
3177
3178         * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3179         TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
3180         cris_trampoline_init): New.
3181         * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
3182         cris_asm_trampoline_template.
3183         (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
3184         adjust for target hook parameters.
3185
3186         * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
3187
3188         * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3189         TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
3190         fr30_trampoline_init): New.
3191         * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
3192         fr30_asm_trampoline_template.
3193         (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
3194         adjust for target hook parameters.
3195
3196         * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
3197         (frv_trampoline_init): Rename from frv_initialize_trampoline;
3198         make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
3199         * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
3200         * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
3201
3202         * config/h8300/h8300.c (h8300_trampoline_init): New.
3203         (TARGET_TRAMPOLINE_INIT): New.
3204         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
3205         to h8300_trampoline_init and adjust for hook parameters.
3206
3207         * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
3208         * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
3209         (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
3210         make static; adjust for hook parameters.
3211         * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
3212
3213         * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3214         (TARGET_TRAMPOLINE_INIT): New.
3215         (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
3216         * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
3217         iq2000_asm_trampoline_template.
3218         (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
3219         (TRAMPOLINE_CODE_SIZE): New.
3220         (TRAMPOLINE_SIZE): Use it.
3221         (TRAMPOLINE_ALIGNMENT): Follow Pmode.
3222
3223         * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
3224         * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
3225         (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
3226         adjust for hook parameters.
3227         * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
3228
3229         * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
3230         (m32r_trampoline_init): New.
3231         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
3232         m32r_trampoline_init.
3233
3234         * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
3235         (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
3236         make static; update for hook parameters.
3237         * config/m68hc11/m68hc11-protos.h: Update.
3238         * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
3239
3240         * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3241         (TARGET_TRAMPOLINE_INIT): New.
3242         (mcore_function_value): Fix typo.
3243         (mcore_asm_trampoline_template, mcore_trampoline_init): New.
3244         * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
3245         to mcore_asm_trampoline_template.
3246         (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
3247
3248         * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
3249         * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
3250         (mep_trampoline_init): Rename from mep_init_trampoline; make static;
3251         update for hook parameters.
3252         * config/mep/mep-protos.h (mep_init_trampoline): Remove.
3253
3254         * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3255         mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
3256         mips_trampoline_init): New.
3257         * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
3258         mips_asm_trampoline_template.
3259         (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
3260         update for hook parameters.
3261
3262         * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3263         (TARGET_TRAMPOLINE_INIT): New.
3264         (mmix_trampoline_size): Remove.
3265         (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
3266         make static.  Remove out-of-date tetra vs octa comment.
3267         (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
3268         make static; update for hook parameters.
3269         * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
3270         (INITIALIZE_TRAMPOLINE): Remove.
3271         (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
3272         (TRAMPOLINE_ALIGNMENT): New.
3273         * gcc/config/mmix/mmix-protos.h: Update.
3274
3275         * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3276         mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
3277         mn10300_trampoline_init): New.
3278         * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
3279         mn10300_asm_trampoline_template.
3280         (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
3281
3282         * config/moxie/moxie.c (moxie_static_chain,
3283         moxie_asm_trampoline_template, moxie_trampoline_init,
3284         TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
3285         TARGET_TRAMPOLINE_INIT): New.
3286         * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
3287         moxie_trampoline_init.
3288         (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
3289         (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
3290
3291         * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
3292         pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
3293         pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
3294         pa_trampoline_adjust_address): New.
3295         * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
3296         pa_asm_trampoline_template.
3297         (TRAMPOLINE_ALIGNMENT): New.
3298         (TRAMPOLINE_CODE_SIZE): Move to pa.c.
3299         (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
3300         adjust for hook parameters.
3301         (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
3302
3303         * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
3304         (TARGET_TRAMPOLINE_INIT): New.
3305         * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
3306         (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
3307
3308         * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
3309
3310         * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
3311         * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
3312         (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
3313         make static; adjust parameters for the hook.
3314         * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
3315
3316         * config/s390/s390.c (s390_asm_trampoline_template): Rename from
3317         s390_trampoline_template; make static.
3318         (s390_trampoline_init): Rename from s390_initialize_trampoline;
3319         make static; adjust for target hook.
3320         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
3321         * config/s390/s390-protos.h: Remove trampoline decls.
3322         * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
3323         (TRAMPOLINE_TEMPLATE): Remove.
3324         (TRAMPOLINE_ALIGNMENT): New.
3325
3326         * config/score/score-protos.h (score_initialize_trampoline): Remove.
3327         * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3328         (TARGET_TRAMPOLINE_INIT): New.
3329         (score_asm_trampoline_template): New.
3330         (score_trampoline_init): Rename from score_initialize_trampoline;
3331         make static; adjust for hook parameters.
3332         * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
3333         score[37]_asm_trampoline_template.
3334         (INITIALIZE_TRAMPOLINE): Remove.
3335         * config/score/score3.c (score3_asm_trampoline_template): New.
3336         (score3_trampoline_init): Rename from score3_initialize_trampoline;
3337         adjust for target hook.
3338         * config/score/score7.c (score7_asm_trampoline_template): New.
3339         (score7_trampoline_init): Rename from score7_initialize_trampoline;
3340         adjust for target hook.
3341         * config/score/score3.h, config/score/score7.h: Update.
3342
3343         * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
3344         * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
3345         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
3346         (sh_trampoline_init): Rename from sh_initialize_trampoline;
3347         make static; adjust for target hook parameters.
3348         (sh_trampoline_adjust_address): New.
3349         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
3350         (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
3351
3352         * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
3353         (sparc32_initialize_trampoline): Rename from
3354         sparc_initialize_trampoline; make static; replace tramp parameter
3355         with m_tramp and update memory accesses.
3356         (sparc64_initialize_trampoline): Similarly.
3357         (sparc_trampoline_init): New.
3358         * config/sparc/sparc-protos.h: Remove trampoline decls.
3359         * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
3360         * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
3361
3362         * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
3363         (array_to_constant): Make ARR parameter const.
3364         (spu_trampoline_init): Rename from spu_initialize_trampoline;
3365         make static; update for hook parameters.
3366         * config/spu/spu-protos.h: Update decls.
3367         * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
3368
3369         * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
3370         from xstormy16_initialize_trampoline; make static; update for
3371         hook parameters.
3372         (TARGET_TRAMPOLINE_INIT): New.
3373         * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
3374
3375         * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3376         (TARGET_TRAMPOLINE_INIT): New.
3377         (v850_can_eliminate): Make static.
3378         (v850_asm_trampoline_template, v850_trampoline_init): New.
3379         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
3380         v850_asm_trampoline_template.
3381         (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
3382         and adjust for target hook parameters.
3383
3384         * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3385         (TARGET_TRAMPOLINE_INIT): New.
3386         (vax_asm_trampoline_template, vax_trampoline_init): New.
3387         * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
3388         vax_asm_trampoline_template.
3389         (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
3390
3391         * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3392         (TARGET_TRAMPOLINE_INIT): New.
3393         (xtensa_asm_trampoline_template): Rename from
3394         xtensa_trampoline_template; make static.
3395         (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
3396         make static; update for hook parameters.
3397         * config/xtensa/xtensa-protos.h: Remove trampoline decls.
3398         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
3399         (INITIALIZE_TRAMPOLINE): Remove.
3400
3401         * config/i386/i386.c (ix86_function_regparm): Do not issue an
3402         error for nested functions with regparm=3.
3403         (ix86_compute_frame_layout): Adjust frame pointer offset for
3404         ix86_static_chain_on_stack.
3405         (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
3406         (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
3407         don't reset to UNITS_PER_WORD.
3408         (ix86_emit_leave): Adjust ix86_cfa_state.
3409         (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
3410         (ix86_static_chain): New.
3411         (ix86_trampoline_init): Rename from x86_initialize_trampoline;
3412         make static; update for target hook parameters; use ix86_static_chain.
3413         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
3414         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
3415         (INITIALIZE_TRAMPOLINE): Remove.
3416         (TRAMPOLINE_SIZE): Use 24 for 64-bit.
3417         (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
3418         to the end.  Add static_chain_on_stack.
3419         (ix86_static_chain_on_stack): New.
3420
3421         * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
3422         (m68k_output_mi_thunk): Don't use static_chain_rtx.
3423         (m68k_trampoline_init): New.
3424         * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
3425         m68k_trampoline_init and adjust for hook parameters.
3426         * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
3427         (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
3428
3429 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
3430
3431         * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
3432         for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
3433
3434         * reload1.c (reload): Call wrap_constant when substituting
3435         reg for equiv inside of DEBUG_INSNs.
3436
3437         PR bootstrap/41405
3438         * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
3439         add_call_src_coords_attributes, add_high_low_attributes,
3440         gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
3441         gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
3442         dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
3443         when -gdwarf-2 -gstrict-dwarf.
3444         (loc_list_from_tree): Likewise.  Avoid using DWARF4 additions when
3445         -gdwarf-[23] -gstrict-dwarf.
3446         (address_of_int_loc_descriptor, loc_descriptor,
3447         loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
3448         DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
3449         * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
3450
3451 2009-09-22  Richard Guenther  <rguenther@suse.de>
3452
3453         PR tree-optimization/41428
3454         * tree-ssa-ccp.c (ccp_fold_stmt): New function.
3455         (ccp_finalize): Pass it to substitute_and_fold.
3456
3457 2009-09-22  Richard Guenther  <rguenther@suse.de>
3458
3459         * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
3460         (substitute_and_fold): Adjust prototype.
3461         * tree-vrp.c (vrp_evaluate_conditional): Make static.
3462         (simplify_stmt_using_ranges): Likewise.
3463         (fold_predicate_in): Move here from tree-ssa-propagate.c.
3464         (vrp_fold_stmt): New function.
3465         (vrp_finalize): Pass it to substitute_and_fold.
3466         * tree-flow.h (vrp_evaluate_conditional): Remove.
3467         (simplify_stmt_using_ranges): Likewise.
3468         * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
3469         * tree-ssa-copy.c (fini_copy_prop): Likewise.
3470         * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
3471         member.
3472         (fold_predicate_in): Move to tree-vrp.c.
3473         (substitute_and_fold): Use the callback instead of calling into
3474         tree-vrp.c functions directly.
3475
3476 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
3477
3478         * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
3479         comparison warning on rs6000.
3480
3481         PR middle-end/41429
3482         * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
3483         GIMPLE_EH_MUST_NOT_THROW cleanup.
3484         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
3485
3486 2009-09-22  Jack Howarth  <howarth@bromo.med.uc.edu>
3487
3488         PR middle-end/41260
3489         * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
3490         * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
3491         LIB_SPEC for darwin10 and later since it always uses the unwinder in
3492         libSystem which is derived from the gcc 4.2.1 unwinder.
3493
3494 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
3495
3496         PR middle-end/41357
3497         * varasm.c (default_encode_section_info): Copy TLS model into
3498         sym_ref flags regardless of backend support for TLS, for all
3499         model types except TLS_MODEL_EMULATED.
3500
3501 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
3502
3503         PR bootstrap/41404
3504         * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
3505         we can handle it correctly.
3506
3507 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
3508
3509         * doc/install.texi (os2): Remove section.
3510
3511 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
3512
3513         * doc/standards.texi (Objective-C): Adjust two URLs.
3514
3515 2009-09-21  Giuseppe Scrivano <gscrivano@gnu.org>
3516
3517         * tree-tailcall.c (process_assignment): Don't check if a
3518         multiplication or an addition are already present.
3519         (find_tail_calls): Combine multiple additions and multiplications.
3520         (adjust_accumulator_values): Emit accumulators.
3521
3522 2009-09-21  Kai Tietz  <kai.tietz@onevision.com>
3523
3524         * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
3525         xmm register restore.
3526
3527 2009-09-21  Jan Hubicka  <jh@suse.cz>
3528
3529         * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
3530         (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
3531         restore at the end.
3532
3533 2009-09-21  Eric Botcazou  <ebotcazou@adacore.com>
3534
3535         * stor-layout.c (layout_type): Remove obsolete code.
3536
3537 2009-09-20  H.J. Lu  <hongjiu.lu@intel.com>
3538
3539         PR middle-end/41395
3540         * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
3541
3542 2009-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3543
3544         PR middle-end/30789
3545         * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
3546         (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
3547         (fold_builtin_2, do_mpc_arg1): Update accordingly.
3548         * fold-const.c (const_binop): Likewise.
3549         * real.h (do_mpc_arg2): Update prototype.
3550
3551 2009-09-20  Jan Hubicka  <jh@suse.cz>
3552
3553         * dwarf2out.c (add_const_value_attribute): Return true if successful.
3554         (add_location_or_const_value_attribute): Rewrite using
3555         loc_list_from_tree.
3556         (tree_add_const_value_attribute): Return true if successful.
3557         (tree_add_const_value_attribute_for_decl): Likewise.
3558
3559         * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
3560         (loc_descriptor): ... here;
3561         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
3562         (cst_pool_loc_descr): Break out from ...; do not reffer constant
3563         pool items that was not marked for output.
3564         (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
3565         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
3566         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
3567         handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
3568         IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
3569         CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
3570         DW_OP_stack_value to get address of items that are not available
3571         as addresses.
3572         (dw_loc_list): Handle single element lists correctly.
3573
3574 2009-09-20  Kai Tietz  <kai.tietz@onevision.com>
3575             Pascal Obry  <obry@adacore.com>
3576
3577         * unwind-dw2-fde.c (classify_object_over_fdes):
3578         Cast the constant 1 to _Unwind_Ptr.
3579         (add_fdes): Likewise.
3580         (linear_search_fdes): Likewise.
3581
3582 2009-09-20  Eric Botcazou  <ebotcazou@adacore.com>
3583
3584         * stor-layout.c (set_sizetype): Avoid useless type copy.
3585
3586 2009-09-20  Richard Sandiford  <rdsandiford@googlemail.com>
3587
3588         * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
3589         feature check.
3590         (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
3591         * configure, config.in: Regenerate.
3592         * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
3593         DW_EH_PE_absptr.
3594         * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
3595         (ASM_PREFERRED_EH_DATA_FORMAT): Define.  Use MIPS_EH_INDIRECT
3596         for global data if the output could be used in a shared library.
3597         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
3598         to 0 if TARGET_WRITABLE_EH_FRAME.
3599
3600 2009-09-20  Paolo Bonzini <bonzini@gnu.org>
3601
3602         PR rtl-optimization/39886
3603         * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
3604         just when insn is equal to BB_END (bb).
3605
3606 2009-09-19  Adam Nemet  <anemet@caviumnetworks.com>
3607
3608         * config/mips/mips.opt (mrelax-pic-calls): New option.
3609         * config/mips/mips.c (mips_strip_unspec_address): Move it up in
3610         the file.
3611         (mips_unspec_call): Change "unspec_call" expander into this.
3612         (mips_strip_unspec_call): New function.
3613         (mips_got_load): Call mips_unspec_call instead of
3614         gen_unspec_call<mode>.
3615         (mips16_build_call_stub): Fix comment for fp_code.  Adjust call to
3616         MIPS_CALL.
3617         (mips_cfg_in_reorg): New function.
3618         (mips16_lay_out_constants): Use it to decide whether to call
3619         CFG-aware insn splitting.
3620         (r10k_insert_cache_barriers): Move CFG set-up code from here to
3621         mips_reorg.  Move DF set-up code from here ...
3622         (mips_df_reorg): ... to here.  Call r10k_insert_cache_barriers
3623         from here.
3624         (mips_reorg): Call mips_df_reorg instead of
3625         r10k_insert_cache_barriers.  Move CFG set-up code here from
3626         r10k_insert_cache_barriers.
3627         (mips_call_expr_from_insn): New function.
3628         (mips_pic_call_symbol_from_set): Likewise.
3629         (mips_find_pic_call_symbol): Likewise.
3630         (mips_annotate_pic_call_expr): Likewise.
3631         (mips_get_pic_call_symbol): Likewise.
3632         (mips_annotate_pic_calls): Likewise.
3633         (mips_override_options): Disable -mrelax-pic-calls unless PIC
3634         calls are used.
3635         (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
3636         * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
3637         * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
3638         directive.
3639         * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
3640         (unspec_call<mode>): Remove it.
3641         (sibcall_internal, sibcall_value_internal,
3642         sibcall_value_multiple_internal, call_internal, call_split,
3643         call_value_internal, call_value_split,
3644         call_value_multiple_internal, call_value_multiple_split): Pass
3645         SIZE_OPNO to MIPS_CALL.
3646         (call_internal_direct, call_direct_split,
3647         call_value_internal_direct, call_value_direct_split): Pass -1 as
3648         SIZE_OPNO to MIPS_CALL.
3649         * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
3650         * configure: Regenerate.
3651         * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
3652         and -mno-relax-pic-calls.
3653         (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
3654
3655 2009-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3656
3657         PR bootstrap/35619
3658         * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
3659         in the directory this rule is called from, rather than the
3660         toplevel 'gcc' directory, to fix in-tree build.
3661
3662 2009-09-19  Chris Demetriou  <cgd@google.com>
3663
3664         PR preprocessor/28435:
3665         * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
3666         to cpplib that the preprocessor output is needed.
3667
3668 2009-09-19  Jakub Jelinek  <jakub@redhat.com>
3669
3670         * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
3671         *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
3672         *return_and_restore_fpregs_<mode>,
3673         *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
3674
3675         PR bootstrap/41397
3676         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
3677         instead of assuming it has always a REG inside of it.
3678
3679 2009-09-18  Gerald Pfeifer  <gerald@pfeifer.com>
3680
3681         * config/freebsd.h: Update comment on types.
3682         (WINT_TYPE): Define.
3683
3684 2009-09-18  Jason Merrill  <jason@redhat.com>
3685
3686         * c.opt: Add -fno-deduce-init-list.
3687
3688 2009-09-18  Neil Vachharajani  <nvachhar@google.com>
3689
3690         * value-prof.c (interesting_stringop_to_profile_p): Added output
3691         argument to indicate which parameter is the size parameter.
3692         * value-prof.c (gimple_stringop_fixed_value): Use
3693         INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
3694         * value-prof.c (gimple_stringops_transform): Update call sites to
3695         INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
3696
3697 2009-09-18  Uros Bizjak  <ubizjak@gmail.com>
3698
3699         PR target/38288
3700         From David Binderman <dcb314@hotmail.com>:
3701         * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
3702         local variable f.  Remove stale comments.
3703         (ix86_compute_frame_layout): Remove useless local variable total_size.
3704         Remove #if 0'd code.
3705         (legitimate_address_p): Remove useless local variables
3706         reason_rtx and reason.
3707         (ix86_split_copysign_const): Remove useless local variable op1.
3708         (scale_counter): Remove useless local variable piece_size_mask.
3709
3710 2009-09-18  Jakub Jelinek  <jakub@redhat.com>
3711
3712         * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
3713         output decl.
3714
3715 2009-09-17  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
3716
3717         PR target/40913
3718         * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
3719
3720 2009-09-17  Jakub Jelinek  <jakub@redhat.com>
3721
3722         * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
3723         TYPE_STUB_DECL.
3724
3725 2009-09-17  Alexandre Oliva  <aoliva@redhat.com>
3726
3727         * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
3728         DW_OP_implicit_value even without dwarf_version 4.
3729
3730 2009-09-17  Jan Hubicka  <jh@suse.cz>
3731
3732         * dwarf2out.c: Include tree-pass.h and gimple.h.
3733         (loc_list_plus_const): New function.
3734         (loc_descriptor_from_tree_1): Rename to ...
3735         (loc_descriptor_from_tree): ... remove original.
3736         (loc_list_from_tree): New function.
3737         (add_AT_location_description): Accept location list.
3738         (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
3739         (concatn_mem_loc_descriptor): Remove.
3740         (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
3741         returning NULL.
3742         (secname_for_decl): Move up.
3743         (hidden_reference_p): New function; break out from ...
3744         (loc_by_refernece): ... here; move up.
3745         (dw_loc_list): New function.
3746         (single_element_loc_list): New function.
3747         (single_element_loc_list_p): New function.
3748         (add_loc_descr_to_each): New function.
3749         (add_loc_list): New function.
3750         (loc_descr_from_tree): Make wraper of loc_list_from_tree.
3751         (loc_list_from_tree): Reroganized from loc_descr_from_tree;
3752         add diagnostics why expansion failed.
3753         (add_location_or_const_value_attribute): Support location lists.
3754         (add_bound_info): Likewise.
3755         (descr_info_loc): Update call of loc_descriptor_from_tree.
3756         (gen_variable_die): Work on location lists.
3757         * final.c (pass_final): Add dump file.
3758         * Makefile.in (dwarf2out.o): Add new dependencies.
3759
3760 2009-09-17  Janis Johnson  <janis187@us.ibm.com>
3761
3762         PR c/41049
3763         * real.c decimal_from_integer, decimal_integer_string): New.
3764         (real_from_integer): Use them as special case for decimal float.
3765         * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
3766         (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
3767         Do not append zero after the decimal point in string to convert.
3768
3769 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
3770
3771         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
3772         for ARRAY_REFs.  Use array_ref_{low,up}_bound to determine bounds.
3773
3774 2009-09-17  Martin Jambor  <mjambor@suse.cz>
3775
3776         * common.opt (fipa-sra): New switch.
3777         * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
3778         * timevar.def (TV_IPA_SRA): New timevar.
3779         * params.def (ipa-sra-ptr-growth-factor): New parameter.
3780         * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
3781         * tree-sra.c: Include cgraph.c.
3782         (enum sra_mode): Added SRA_MODE_EARLY_IPA.
3783         (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
3784         and grp_not_necessarilly_dereferenced.
3785         (func_param_count): New variable.
3786         (encountered_apply_args): New variable.
3787         (bb_dereferences): New variable.
3788         (final_bbs): New variable.
3789         (no_accesses_representant): New variable.
3790         (no_accesses_p): New function.
3791         (dump_access): Dump the new fields.
3792         (sra_initialize): Set encountered_apply_args to false.
3793         (get_ssa_base_param): New function.
3794         (mark_parm_dereference): New function.
3795         (create_access): Caring for INIDRECT_REFs and different handling of
3796         varialble length accesses in early IPA SRA.  Store the stmt - a new
3797         parameter - to the new access.
3798         (build_access_from_expr_1): New parameter stmt, passed to
3799         create_access.  Handle INDIRECT_REFs.
3800         (build_access_from_expr): Pass the current statement to
3801         build_access_from_expr_1.
3802         (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
3803         passes.
3804         (build_accesses_from_assign): Pass the current statement to
3805         build_access_from_expr_1.  Do not create assign links in IPA-SRA.
3806         (scan_function): Call handle_ssa_defs on phi nodes.  Set bits in
3807         final_bbs when necessary.  Check for calls to __builtin_apply_args.
3808         Fixup EH info if anythng was changed.
3809         (is_unused_scalar_param): New function.
3810         (ptr_parm_has_direct_uses): New function.
3811         (find_param_candidates): New function.
3812         (mark_maybe_modified): New function.
3813         (analyze_modified_params): New function.
3814         (propagate_dereference_distances): New function.
3815         (dump_dereferences_table): New function.
3816         (analyze_caller_dereference_legality): New function.
3817         (unmodified_by_ref_scalar_representative): New function.
3818         (splice_param_accesses): New function.
3819         (decide_one_param_reduction): New function.
3820         (enum ipa_splicing_result): New type.
3821         (splice_all_param_accesses): New function.
3822         (get_param_index): New function.
3823         (turn_representatives_into_adjustments): New function.
3824         (analyze_all_param_acesses): New function.
3825         (get_replaced_param_substitute): New function.
3826         (get_adjustment_for_base): New function.
3827         (replace_removed_params_ssa_names): New function.
3828         (sra_ipa_reset_debug_stmts): New function.
3829         (sra_ipa_modify_expr): New function.
3830         (sra_ipa_modify_assign): New function.
3831         (convert_callers): New function.
3832         (modify_function): New function.
3833         (ipa_sra_preliminary_function_checks): New function.
3834         (ipa_early_sra): New function.
3835         (ipa_early_sra_gate): New function.
3836         (pass_early_ipa_sra): New variable.
3837         * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
3838
3839 2009-09-17  Michael Matz  <matz@suse.de>
3840
3841         PR middle-end/41347
3842         * tree.c (build_type_attribute_qual_variant): Export.
3843         * tree.h (build_type_attribute_qual_variant): Declare.
3844         * tree-inline.c (remap_type_1): Use it to build variants with
3845         the original qualifiers and attributes.
3846
3847 2009-09-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3848
3849         * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
3850         without a fallthrough edge.
3851
3852 2009-09-16  DJ Delorie  <dj@redhat.com>
3853
3854         * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
3855         chip and ignore the "fast_interrupt" attribute if so.
3856
3857 2009-09-16  Richard Henderson  <rth@redhat.com>
3858
3859         PR middle-end/41360
3860         * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
3861         barrier fix.
3862
3863 2009-09-16  Richard Henderson  <rth@redhat.com>
3864
3865         PR target/41246
3866         * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
3867         is set only if DECL_NO_STATIC_CHAIN is unset.
3868         * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
3869         (FOR_EACH_NEST_INFO): New.
3870         (walk_all_functions): Use it.
3871         (finalize_nesting_tree): Likewise.
3872         (unnest_nesting_tree): Likewise.
3873         (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
3874         (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
3875         (convert_gimple_call): Early out if gimple_call_chain already set.
3876         (convert_all_function_calls): Iterate until no new functions
3877         require a static chain.
3878         (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
3879         when building a trampoline.  Use dump_function_to_file instead
3880         of dump_function.
3881         (lower_nested_functions): Open dump_file.  Validate that decls
3882         that have DECL_NO_STATIC_CHAIN from the front end don't have that
3883         bit reset by this pass.
3884
3885 2009-09-16  Michael Matz  <matz@suse.de>
3886
3887         PR fortran/41212
3888         * tree.h (struct tree_decl_common): Add decl_restricted_flag,
3889         shorten decl_common_unused.
3890         (DECL_RESTRICTED_P): New accessor.
3891         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
3892         to disambiguate marked decls and restrict pointers.
3893
3894 2009-09-16  Richard Henderson  <rth@redhat.com>
3895
3896         PR middle-end/41360
3897         * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
3898
3899 2009-09-16  Jakub Jelinek  <jakub@redhat.com>
3900
3901         * integrate.c (set_block_abstract_flags): Call
3902         set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
3903
3904 2009-09-16  Richard Guenther  <rguenther@suse.de>
3905
3906         PR middle-end/34011
3907         * tree-flow-inline.h (may_be_aliased): Compute readonly variables
3908         as non-aliased.
3909
3910 2009-09-16  DJ Delorie  <dj@redhat.com>
3911             Kaz Kojima  <kkojima@gcc.gnu.org>
3912
3913         * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
3914         (sh_expand_prologue): Update calls to output_stack_adjust.
3915         (sh_expand_epilogue): Likewise.
3916
3917 2009-09-15  Adam Nemet  <anemet@caviumnetworks.com>
3918
3919         PR bootstrap/41349
3920         * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
3921         trying to limit the extent of searches in the insn stream.
3922
3923 2009-09-15  Nathan Froyd  <froydnj@codesourcery.com>
3924             Jakub Jelinek  <jakub@redhat.com>
3925
3926         PR target/41175
3927         PR target/40677
3928         * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
3929         problem.
3930         (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
3931         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
3932         (rs6000_savres_strategy): Always save FP registers inline if the
3933         target doesn't support hardware double-precision.  Set the above
3934         bits in return value when needed.
3935         (rs6000_savres_routine_sym): Fix computation for cache selector.
3936         Mark the generated symbol as a function.  Rename exitp argument to
3937         lr.  Move code for determining the name of the symbol...
3938         (rs6000_savres_routine_name): ...here.  New function.  Add cases for
3939         getting the names right on AIX and 64-bit Linux.
3940         (savres_routine_name): New variable.
3941         (rs6000_make_savres_rtx): Rename exitp argument to lr.  Don't assert
3942         lr isn't set when savep.  Use r12 resp. r1 instead of r11 depending
3943         on what the target routine uses as a base register.  If savep && lr
3944         describe saving of r0 into memory slot.
3945         (rs6000_emit_prologue): Correct use of call_used_regs.  Fix out of
3946         line calls for AIX ABI.
3947         (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
3948         determine FP save/restore functions.
3949         (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
3950         frame_reg_rtx != sp_reg_rtx.  Use gen_add3_insn instead of
3951         gen_addsi3.
3952         (rs6000_emit_epilogue): Adjust computation of restore_lr.
3953         Duplicate restoration of LR and execute the appropriate one
3954         depending on whether GPRs are being restored inline.  Set r11 from
3955         offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
3956         r11, adjust sp_offset.  Use gen_add3_insn instead of gen_addsi3.
3957         Fix out of line calls for AIX ABI.
3958         * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
3959         New insn.
3960         * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
3961         register 11.
3962         (*restore_gpregs_spe): Likewise.
3963         (*return_and_restore_gpregs_spe): Likewise.
3964         * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
3965         Define to empty string unconditionally.
3966         * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
3967         Define to empty string unconditionally.
3968         (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
3969         !TARGET_64BIT.
3970
3971 2009-09-15  Jan Hubicka  <jh@suse.cz>
3972
3973         * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
3974         * params.def (inline-insns-auto): Likewise.
3975
3976 2009-09-15  Martin Jambor  <mjambor@suse.cz>
3977
3978         * ipa-inline.c (estimate_function_body_sizes): Dump info about
3979         individual statements only at TDF_DETAILS dump level.  Format
3980         source for 80 characters per line.
3981
3982 2009-09-15  Christian Bruel  <christian.bruel@st.com>
3983
3984         * regrename.c (do_replace): Update REG_DEAD notes.
3985
3986 2009-09-15  Revital Eres  <eres@il.ibm.com>
3987
3988         * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
3989         * targhooks.c (default_builtin_support_vector_misalignment):
3990         New builtin function.
3991         * targhooks.h (default_builtin_support_vector_misalignment):
3992         Declare.
3993         * target.h (builtin_support_vector_misalignment):
3994         New field in struct gcc_target.
3995         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
3996         new builtin function.
3997         * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
3998         Define.
3999         * config/rs6000/rs6000.c
4000         (rs6000_builtin_support_vector_misalignment): New function.
4001         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
4002
4003 2009-09-15  Jie Zhang  <jie.zhang@analog.com>
4004
4005         * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
4006         instead of INSN_P.
4007         (bfin_optimize_loop): Likewise.
4008         (bfin_gen_bundles): Likewise.
4009         (workaround_speculation): Likewise.
4010         (find_load): Return NULL_RTX for debug_insn.
4011
4012 2009-09-15  Uros Bizjak  <ubizjak@gmail.com>
4013
4014         * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
4015         (sminsf3): Ditto.
4016
4017 2009-09-14  DJ Delorie  <dj@redhat.com>
4018
4019         * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
4020         * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
4021         VLIW mode.
4022
4023 2009-09-14  Richard Henderson  <rth@redhat.com>
4024             Jakub Jelinek  <jakub@redhat.com>
4025
4026         * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
4027         * cfgbuild.c (make_edges): Handle asm goto.
4028         * cfglayout.c (fixup_reorder_chain): Likewise.
4029         * cfgrtl.c (patch_jump_insn): Likewise.
4030         * gimple-pretty-print.c (dump_gimple_asm): Likewise.
4031         * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
4032         (gimple_build_asm_vec): Add and use labels parameter.
4033         (gimple_build_asm): Remove.
4034         (walk_gimple_asm): Walk labels too.
4035         * gimple.def (GIMPLE_ASM): Update docs.
4036         * gimple.h: Update decls.
4037         (struct gimple_statement_asm): Change nc to use unsigned char;
4038         add nl member.
4039         (gimple_asm_nlabels): New.
4040         (gimple_asm_label_op, gimple_asm_set_label_op): New.
4041         * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
4042         into gimple_build_asm_vec.
4043         * jump.c (mark_jump_label_asm): New.
4044         (mark_jump_label): Use it.
4045         (redirect_jump_1): Handle asm goto.
4046         (invert_jump_1): Soft fail if X is null.
4047         * recog.c (extract_asm_operands): New.
4048         (asm_noperands): Use it; handle asm labels.
4049         (decode_asm_operands): Use extract_asm_operands.
4050         (asm_operand_ok): Properly handle empty string.
4051         * reg-stack.c (get_asm_operands_in_out): Rename from
4052         get_asm_operand_n_inputs; use extract_asm_operands; return both
4053         inputs and outputs by reference; update all callers.
4054         * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
4055         * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
4056         (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
4057         (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
4058         (extract_asm_operands): Declare.
4059         * stmt.c (expand_asm_operands): Add and use labels parameter.
4060         (check_unique_operand_names): Likewise.
4061         (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
4062         (expand_asm_stmt): Handle asm labels.
4063         * tree-cfg.c (make_gimple_asm_edges): New.
4064         (make_edges): Use it.
4065         (cleanup_dead_labels): Handle asm labels.
4066         (is_ctrl_altering_stmt): Likewise.
4067         (gimple_redirect_edge_and_branch): Likewise.
4068         * tree.def (ASM_EXPR): Add 5th operand.
4069         * tree.h (ASM_LABELS): New.
4070         (resolve_asm_operand_names): Update decl.
4071
4072         * c-parser.c (c_parser_asm_statement): Parse asm goto.
4073         (c_parser_asm_goto_operands): New.
4074         * c-tree.h (build_asm_expr): Update decl.
4075         * c-typeck.c (build_asm_expr): Add and use labels parameter.
4076         * doc/extend.texi: Document asm goto.
4077
4078 2009-09-14  Richard Henderson  <rth@redhat.com>
4079
4080         * except.h: Update declarations.
4081         (struct pointer_map_t): Forward declare.
4082         (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
4083         (struct eh_landing_pad_d, eh_landing_pad): New.
4084         (struct eh_catch_d, eh_catch): New.
4085         (struct eh_region_d): Remove next_region_sharing_label, aka,
4086         label, tree_label, landing_pad, post_landing_pad, resume,
4087         may_contain_throw.  Rename region_number to index.  Remove
4088         u.eh_catch, u.eh_throw.  Rename u.eh_try.eh_catch to first_catch.
4089         Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
4090         (VEC(eh_landing_pad,gc)): New.
4091         (struct eh_status): Remove last_region_number.  Add lp_array,
4092         throw_stmt_table, ttype_data, ehspec_data.
4093         (ehr_next, FOR_ALL_EH_REGION_AT): New.
4094         (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
4095         * except.c (lang_protect_cleanup_actions): Return tree.
4096         (struct ehl_map_entry): Remove.
4097         (init_eh_for_function): Push zero entries for region and lp_array.
4098         (gen_eh_region): Add to region_array immediately.
4099         (gen_eh_region_catch): Operate on eh_catch objects.
4100         (gen_eh_landing_pad): New.
4101         (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
4102         (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
4103         (get_eh_region_from_number, get_eh_region_from_number_fn): New.
4104         (get_eh_landing_pad_from_number_fn): New.
4105         (get_eh_landing_pad_from_number): New.
4106         (get_eh_region_from_lp_number_fn): New.
4107         (get_eh_region_from_lp_number): New.
4108         (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
4109         (get_exception_pointer, get_exception_filter): Remove.
4110         (collect_eh_region_array, can_be_reached_by_runtime): Remove.
4111         (current_function_has_exception_handlers): Simplify.
4112         (bring_to_root, eh_region_replaceable_by_p): Remove.
4113         (replace_region, hash_type_list, hash_eh_region): Remove.
4114         (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
4115         (label_to_region_map, num_eh_regions): Remove.
4116         (get_next_region_sharing_label, must_not_throw_labels): Remove.
4117         (find_exception_handler_labels): Remove.
4118         (duplicate_eh_regions_0, find_prev_try): Remove.
4119         (struct duplicate_eh_regions_data): New.
4120         (duplicate_eh_regions_1): Rewrite.
4121         (duplicate_eh_regions): Return a pointer map instead of an
4122         integer offset.
4123         (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
4124         (redirect_eh_edge_to_label): Remove.
4125         (eh_region_outermost): Rewrite using eh_region pointers
4126         instead of integers.
4127         (add_ttypes_entry): Update for ttype_data move to eh_status.
4128         (add_ehspec_entry): Rewrite with VEC instead of varray.
4129         (assign_filter_values): Likewise.  Export.
4130         (build_post_landing_pads, connect_post_landing_pads): Remove.
4131         (dw2_build_landing_pads): Rewrite to use lp_array.
4132         (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
4133         (sjlj_assign_call_site_values): Rewrite to use lp_array.
4134         (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
4135         (sjlj_mark_call_sites): Update for landing pad numbers.
4136         (finish_eh_generation): Rewrite.
4137         (gate_handle_eh): Do nothing for no eh tree.
4138         (pass_rtl_eh): Move up near finish_eh_generation.
4139         (remove_eh_landing_pad): New.
4140         (remove_eh_handler): Export.
4141         (remove_eh_region, remove_eh_handler_and_replace): Remove.
4142         (for_each_eh_label): Rewrite to use lp_array.
4143         (make_reg_eh_region_note): New.
4144         (make_reg_eh_region_note_nothrow_nononlocal): New.
4145         (insn_could_throw_p): New.
4146         (copy_reg_eh_region_note_forward): New.
4147         (copy_reg_eh_region_note_backward): New.
4148         (check_handled, add_reachable_handler): Remove.
4149         (reachable_next_level, foreach_reachable_handler): Remove.
4150         (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
4151         (get_eh_region_and_lp_from_rtx): New.
4152         (get_eh_region_from_rtx): New.
4153         (can_throw_internal_1, can_throw_external_1): Remove.
4154         (can_throw_internal): Use get_eh_region_from_rtx.
4155         (can_throw_external): Use get_eh_region_and_lp_from_rtx.
4156         (insn_nothrow_p, can_nonlocal_goto): New.
4157         (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
4158         (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
4159         (add_action_record): Use VEC not varray.
4160         (collect_one_action_chain): Update for eh_region changes.
4161         (convert_to_eh_region_ranges): Make static.  Use VEC not varray.
4162         Use get_eh_region_and_lp_from_rtx.
4163         (gate_convert_to_eh_region_ranges): New.
4164         (pass_convert_to_eh_region_ranges): Use it.
4165         (push_uleb128, push_sleb128): Use VEC not varray.
4166         (output_one_function_exception_table): Likewise.
4167         (dump_eh_tree): Update for eh_region changes.
4168         (verify_eh_tree): Likewise.
4169         (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
4170         * tree-eh.c: Include target.h.
4171         (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
4172         Don't disallow GIMPLE_RESX; adjust argument check.
4173         (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
4174         (record_stmt_eh_region): Update for landing pad numbers;
4175         generate a landing pad if necessary.
4176         (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
4177         (remove_stmt_from_eh_lp_fn): Similarly.
4178         (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
4179         Update for lp numbers; don't special case missing throw_stmt_table.
4180         (lookup_expr_eh_lp): Similarly.
4181         (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
4182         (eh_seq, eh_region_may_contain_throw): New.
4183         (struct leh_state): Add ehp_region.
4184         (struct leh_tf_state): Remove eh_label.
4185         (emit_post_landing_pad): New.
4186         (emit_resx, emit_eh_dispatch): New.
4187         (note_eh_region_may_contain_throw): New.
4188         (frob_into_branch_around): Take eh_region not eh label;
4189         emit eh code into eh_seq.
4190         (honor_protect_cleanup_actions): Early exit for no actions.  Don't
4191         handle EXC_PTR_EXPR, FILTER_EXPR.  Use gimple_build_eh_must_not_throw,
4192         lower_eh_must_not_throw.  Emit code to eh_seq.
4193         (lower_try_finally_nofallthru): Emit eh code to eh_seq.
4194         (lower_try_finally_onedest): Likewise.
4195         (lower_try_finally_copy): Likewise.
4196         (lower_try_finally_switch): Likewise.
4197         (lower_try_finally): Initialize ehp_region.
4198         (lower_catch): Update for eh_catch objects.
4199         (lower_eh_filter): Don't handle must_not_throw.
4200         (lower_eh_must_not_throw): New.
4201         (lower_cleanup): Don't set eh_label.
4202         (lower_eh_constructs_2): Resolve eh builtins.
4203         Handle GIMPLE_EH_MUST_NOT_THROW.
4204         (lower_eh_constructs): Initialize eh_region_may_contain_throw.
4205         Add eh_seq to the end of the function body.
4206         (make_eh_dispatch_edges): New.
4207         (make_eh_edge): Remove.
4208         (make_eh_edges): Simplify for landing pads.
4209         (redirect_eh_edge_1): New.
4210         (redirect_eh_edge): Use it.
4211         (redirect_eh_dispatch_edge): New.
4212         (stmt_could_throw_p): Use a switch.  Allow RESX.
4213         (stmt_can_throw_external): Use lookup_stmt_eh_lp.
4214         (stmt_can_throw_internal): Likewise.
4215         (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
4216         (maybe_clean_or_replace_eh_stmt): Update for landing pads.
4217         (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
4218         (gate_refactor_eh): New.
4219         (pass_refactor_eh): Use it.
4220         (lower_resx, execute_lower_resx, pass_lower_resx): New.
4221         (lower_eh_dispatch, execute_lower_eh_dispatch): New.
4222         (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
4223         (remove_unreachable_handlers): Rename from
4224         tree_remove_unreachable_handlers; rewrite for landing pads;
4225         call remove_eh_handler directly.
4226         (remove_unreachable_handlers_no_lp): New.
4227         (unsplit_eh, unsplit_all_eh): New.
4228         (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
4229         (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
4230         (cleanup_empty_eh_unsplit): New.
4231         (cleanup_empty_eh): Rewrite.
4232         (cleanup_all_empty_eh): New.
4233         (execute_cleanup_eh): Rename from cleanup_eh.  Remove unreachable
4234         handlers first.  Use unsplit_all_eh, cleanup_all_empty_eh.
4235         (gate_cleanup_eh): New.
4236         (pass_cleanup_eh): Use it.
4237         (verify_eh_edges): Move later in file.  Expect one EH edge.
4238         (verify_eh_dispatch_edge): New.
4239
4240         * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
4241         (gtype-desc.o): Add TARGET_H.
4242         (tree.o): Use EXCEPT_H, not except.h.
4243         (cfgbuild.o): Add EXPR_H.
4244         (GTFILES): Add vecprim.h.
4245         * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
4246         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
4247         * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
4248         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
4249         * calls.c (emit_call_1): Use make_reg_eh_region_note.
4250         * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
4251         calls to can_throw_internal.
4252         (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
4253         (make_edges): Don't handle RESX; use can_nonlocal_goto.
4254         * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
4255         (expand_gimple_stmt): Use make_reg_eh_region_note.
4256         (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
4257         (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
4258         or find_exception_handler_labels.
4259         * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX.  Assert
4260         there is exacly one EH edge.  Use can_nonlocal_goto and
4261         can_throw_internal.
4262         * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
4263         (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
4264         * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
4265         * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
4266         * dce.c (deletable_insn_p_1): Don't test may_trap_p.
4267         (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
4268         * dse.c (scan_insn): Use insn_could_throw_p.
4269         * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
4270         * expr.c (expand_expr_real): Use make_reg_eh_region_note.
4271         (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
4272         * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
4273         EXC_PTR_EXPR or FILTER_EXPR.
4274         (tree_expr_nonzero_warnv_p): Likewise.
4275         * function.h: Include vecprim.h, not varray.h
4276         (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
4277         move ttype_data and ehspec_data members to struct eh_status; change
4278         action_record_data member to a VEC.
4279         * gcse.c (hash_scan_set): Use can_throw_internal.
4280         * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
4281         * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
4282         * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
4283         (block_may_fallthru): Don't handle RESX_EXPR.
4284         * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
4285         (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
4286         (dump_gimple_stmt): Dump landing pad information with TDF_EH;
4287         handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
4288         * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
4289         GIMPLE_EH_DISPATCH, GIMPLE_RESX.
4290         (gimple_size): Likewise.
4291         (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
4292         (gimple_build_resx): Use gimple_build_with_ops.
4293         (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
4294         (is_gimple_val): Likewise.
4295         (is_gimple_stmt): Remove RESX_EXPR.
4296         * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
4297         (GIMPLE_RESX): Reorder with other EH constructs.
4298         * gimple.h (struct gimple_statement_eh_mnt): New.
4299         (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
4300         (gimple_eh_filter_must_not_throw): Remove.
4301         (gimple_eh_filter_set_must_not_throw): Remove.
4302         (gimple_eh_must_not_throw_fndecl): New.
4303         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
4304         (is_gimple_resx): New.
4305         * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
4306         Don't copy EH_FILTER_MUST_NOT_THROW.
4307         * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
4308         * ipa-inline.c (estimate_function_body_sizes): Don't try to
4309         handle must_not_throw_labels specially.
4310         * ipa-pure-const.c (check_call): Update debug statement for LP.
4311         * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
4312         * ipa-utils.c (get_base_var): Likewise.
4313         * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
4314         * lower-subreg.c (move_eh_region_note): Remove.
4315         (resolve_simple_move): Use copy_reg_eh_region_note_forward.
4316         * omp-low.c (new_omp_context): Update for eh_lp_nr.
4317         (create_task_copyfn): Likewise.
4318         (maybe_catch_exception): Use gimple_build_eh_filter.
4319         * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
4320         REG_EH_REGION.  Use make_reg_eh_region_note_nothrow_nononlocal.
4321         * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
4322         and pass_lower_resx.
4323         * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
4324         * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
4325         can_throw_internal, can_nonlocal_goto.
4326         * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
4327         copy_reg_eh_region_note_forward.
4328         (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
4329         (emit_output_reload_insns): Likewise.
4330         (copy_eh_notes): Remove.
4331         * rtl.def (RESX): Remove.
4332         * rtl.h: Update declarations.
4333         * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
4334         * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
4335         (update_eh_label): Remove.
4336         (cleanup_dead_labels_eh): New.
4337         (cleanup_deal_labels): Use it instead of update_eh_label.
4338         (gimple_merge_blocks): Update landing pad data structure when
4339         removing a landing pad label.
4340         (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
4341         test; handle GIMPLE_EH_MUST_NOT_THROW.
4342         (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
4343         (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
4344         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
4345         (verify_stmt): Likewise.  Verify landing pads.
4346         (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
4347         (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
4348         (struct move_stmt_d): Add eh_map.
4349         (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
4350         (move_stmt_r): Remap eh region numbers in builtin calls,
4351         resx and eh_dispatch.
4352         (move_block_to_fn): Remove eh_offset parameter.  Use
4353         maybe_duplicate_eh_stmt_fn.
4354         (find_outermost_region_in_block): Operate on eh_region pointers
4355         instead of region numbers.
4356         (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
4357         duplicate_eh_regions.
4358         * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
4359         test earlier.  Disallow EH landing pads.
4360         * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
4361         * tree-flow.h: Update declarations.
4362         (struct tree_ann_common_d): Replace rn with lp_nr.
4363         * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
4364         (remap_eh_region_nr, remap_eh_region_tree_nr): New.
4365         (remap_gimple_stmt): Remap eh region numbers in builtin calls,
4366         resx and eh_dispatch.
4367         (copy_bb): Use maybe_duplicate_eh_stmt_fn.
4368         (copy_edges_for_bb): Use make_eh_dispatch_edges.
4369         (copy_cfg_body): Expect eh_map instead of eh_region_offset
4370         from duplicate_eh_regions.
4371         (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
4372         update RESX; handle EH_DISPATCH.
4373         (expand_call_inline): Set eh_lp_nr, not eh_region.
4374         (maybe_inline_call_in_expr): Likewise.
4375         * tree-inline.h (struct copy_body_data): Replace eh_region with
4376         eh_lp_nr, eh_region_offset with eh_map.
4377         * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
4378         * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
4379         * tree-pretty-print.c (dump_generic_node): Don't handle
4380         EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
4381         * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
4382         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
4383         EXC_PTR_EXPR, FILTER_EXPR.
4384         * tree-ssa-operands.c (get_expr_operands): Likewise.
4385         * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
4386         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
4387         (ao_ref_init_from_vn_reference): Likewise.
4388         * tree-ssa-sink.c (statement_sink_location): Likewise.
4389         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
4390         (mark_virtual_phi_result_for_renaming): Export.  Tidy.
4391         * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
4392         EXC_PTR_EXPR, FILTER_EXPR.
4393         (is_exception_related): Remove.
4394         (compute_avail): Don't call it.
4395         * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
4396         * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
4397         (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
4398         (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
4399         Build EH builtins.
4400         (build_resx): Remove.
4401         * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
4402         * tree.h: Update declarations.
4403         (EH_FILTER_MUST_NOT_THROW): Remove.
4404         (struct tree_label_decl): Add eh_landing_pad_nr.
4405         (EH_LANDING_PAD_NR): New.
4406         * value-prof.c (gimple_ic): Tidy variable names.  Update for
4407         landing pad numbers.
4408         (gimple_stringop_fixed_value): Tidy variable names.  Assert
4409         that neither call stmt can throw.
4410         * vecprim.h (uchar): New.
4411         (VEC(uchar,heap), VEC(uchar,gc)): New.
4412
4413         * c-common.c (c_define_builtins): Update call to
4414         build_common_builtin_nodes.
4415         * c-parser.c (c_parse_file): Don't call
4416         default_init_unwind_resume_libfunc.
4417
4418 2009-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
4419
4420         * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
4421         (mips_cprestore_address_p): Likewise.
4422         (mips_save_gp_to_cprestore_slot): Likewise.
4423         (mips_restore_gp): Rename to...
4424         (mips_restore_gp_from_cprestore_slot): ...this.
4425         (mips_must_initialize_gp_p): Declare.
4426         (mips_emit_save_slot_move): Likewise.
4427         (mips_output_load_label): Return nothing.
4428         (mips_eh_uses): Declare.
4429         * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
4430         (TARGET_CPRESTORE_DIRECTIVE): New macro.
4431         (TARGET_ABSOLUTE_JUMPS): Likewise.
4432         (EH_USES): Likewise.
4433         (FIRST_PSEUDO_REGISTER): Update comment.
4434         (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
4435         (MIPS_CALL): ...here.
4436         (REGISTER_NAMES): Add $cprestore.
4437         * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
4438         Add load_label_length, has_inflexible_gp_insn_p,
4439         has_flexible_gp_insn_p, must_initialize_gp_p and
4440         must_restore_gp_when_clobbered_p.
4441         (mips_expand_call): Don't generate split instructions here.
4442         (mips_split_call): Update the call to mips_restore_gp after
4443         the above name change.
4444         (mips16_cfun_returns_in_fpr_p): Move earlier in file.
4445         (mips_find_gp_ref): New function.
4446         (mips_insn_has_inflexible_gp_ref_p): Likewise.
4447         (mips_cfun_has_inflexible_gp_ref_p): Likewise.
4448         (mips_insn_has_flexible_gp_ref_p): Likewise.
4449         (mips_cfun_has_flexible_gp_ref_p): Likewise.
4450         (mips_function_has_gp_insn): Delete.
4451         (mips_global_pointer): Drop the df_regs_ever_live_p check.
4452         Use the new functions above.  Only return INVALID_REGNUM
4453         for TARGET_ABSOLUTE_JUMPS.
4454         (mips_must_initialize_gp_p): New function.
4455         (mips_get_cprestore_base_and_offset): New function, extracted from...
4456         (mips_cprestore_slot): ...here.  Take a bool parameter.
4457         (mips_cfun_has_cprestore_slot_p): New function.
4458         (mips_cprestore_address_p): Likewise.
4459         (mips_save_gp_to_cprestore_slot): Likewise.
4460         (mips_restore_gp): Rename to...
4461         (mips_restore_gp_from_cprestore_slot): ...this.  Assert
4462         epilogue_completed.  Update the call to mips_cprestore_slot.
4463         Test cfun->machine->must_restore_gp_when_clobbered_p.
4464         (mips_direct_save_slot_move_p): New function.
4465         (mips_emit_save_slot_move): Likewise.
4466         (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
4467         of cfun->machine->global_pointer.
4468         (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
4469         (mips_save_reg): Use mips_emit_save_slot_move.
4470         (mips_expand_prologue): Set must_initialize_gp_p.
4471         Use mips_cfun_has_cprestore_slot_p.  Use gen_potential_cprestore
4472         for all cprestore saves.  Emit a use_cprestore instruction after
4473         setting up the cprestore slot.
4474         (mips_restore_reg): Use mips_emit_save_slot_move.
4475         (mips_process_load_label): New function.
4476         (mips_load_label_length): Likewise.
4477         (mips_output_load_label): Don't return asm: output it here instead.
4478         Use mips_process_load_label.
4479         (mips_adjust_insn_length): Adjust the length of branch instructions
4480         that have length MAX_PIC_BRANCH_LENGTH.
4481         (mips_output_conditional_branch): Update the call to
4482         mips_output_load_label.  Assume the branch target is OPERANDS[0]
4483         rather than OPERANDS[1].  Use MIPS_ABSOLUTE_JUMP for absolute jumps.
4484         (mips_output_order_conditional_branch): Swap the meaning of
4485         OPERANDS[0] and OPERANDS[1].
4486         (mips_variable_issue): Don't count ghost instructions.
4487         (mips_expand_ghost_gp_insns): New function.
4488         (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
4489         (mips_output_mi_thunk): Set must_initialize_gp_p.
4490         (mips_eh_uses): New function.
4491         * config/mips/predicates.md (cprestore_save_slot_operand)
4492         (cprestore_load_slot_operand): New predicates.
4493         * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
4494         (UNSPEC_MOVE_GP): Likewise.
4495         (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
4496         (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
4497         (CPRESTORE_SLOT_REGNUM): New register.
4498         (MAX_PIC_BRANCH_LENGTH): New constant.
4499         (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
4500         (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
4501         branches.  Fix commentary.
4502         (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
4503         Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
4504         Change type to "ghost".
4505         (loadgp_absolute_<mode>): Likewise.
4506         (loadgp_rtp_<mode>): Likewise.
4507         (copygp_mips16): Likewise.
4508         (loadgp_blockage): Remove redundant mode attribute.
4509         (potential_cprestore): New instruction.
4510         (cprestore): Turn into an unspec set.
4511         (use_cprestore): New instruction.
4512         (*branch_fp): Swap operands 0 and 1.  Remove redundant mode attribute.
4513         (*branch_fp_inverted): Likewise.
4514         (*branch_order<mode>): Likewise.
4515         (*branch_order<mode>_inverted): Likewise.
4516         (*branch_equality<mode>): Likewise.
4517         (*branch_equality<mode>_inverted): Likewise.
4518         (*branch_bit<bbv><mode>): Likewise.
4519         (*branch_bit<bbv><mode>_inverted): Likewise.
4520         (*branch_equality<mode>_mips16): Remove redundant mode.
4521         (jump): Turn into a define_expand.
4522         (*jump_absolute): New instruction.
4523         (*jump_pic): Likewise.
4524         (*jump_mips16): Rename previously-unnamed pattern.  Remove
4525         redundant mode attribute.
4526         (restore_gp): Split on epilogue_completed rather than
4527         reload_completed.  Change type to "ghost".
4528         (move_gp<mode>): New instruction.
4529         * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
4530         Remove redundant mode attribute.
4531         * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
4532         (bc1any4f, bc1any2t, bc1any2f): Likewise.
4533         (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
4534
4535 2009-09-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
4536
4537         PR target/41210
4538         * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
4539         are returned in the same register (vs34 or v2) that Altivec vector
4540         types are returned in.
4541         (rs6000_libcall_value): Ditto.
4542
4543         PR target/41331
4544         * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
4545         instead of explicit addsi3/adddi3 calls.
4546         (rs6000_split_multireg_move): Ditto.
4547         (rs6000_emit_allocate_stack): Ditto.
4548         (rs6000_emit_prologue): Ditto.
4549         (rs6000_output_mi_thunk): Ditto.
4550
4551         * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
4552         size is 64 bits if we can use 64-bit registers.
4553
4554 2009-09-14  Bernd Schmidt  <bernd.schmidt@analog.com>
4555
4556         * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
4557         symbols.
4558
4559         From Jie Zhang <jie.zhang@analog.com>:
4560         * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
4561         save FP and RETS with saveall attribute.
4562         (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
4563         with saveall attribute.
4564
4565         * config/bfin/bfin.c (bfin_expand_builtin,
4566         case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
4567         operands.
4568
4569         From Jie Zhang <jie.zhang@analog.com>:
4570         * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
4571         before use in two places.
4572         * config/bfin/bfin.md (AREG): Define mode iterator.
4573         (reload_in, reload_out): Use mode iterator AREG.
4574
4575 2009-09-14  Richard Guenther  <rguenther@suse.de>
4576
4577         PR middle-end/41350
4578         * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
4579         EH personality path.
4580
4581 2009-09-13  Richard Guenther  <rguenther@suse.de>
4582             Rafael Avila de Espindola  <espindola@google.com>
4583
4584         * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
4585         (LANG_HOOKS_EH_PERSONALITY): Likewise.
4586         (LANG_HOOKS_INITIALIZER): Adjust.
4587         (lhd_pass_through_t): Declare.
4588         * langhooks.h (struct lang_hooks): Add eh_runtime_type and
4589         eh_personality.
4590         * langhooks.c (lhd_pass_through_t): New function.
4591         * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
4592         dwarf2out_begin_prologue): Use personality from current_function_decl.
4593         * expr.h (get_personality_function): Declare.
4594         * expr.c (get_personality_function): New function.
4595         (build_personality_function): Likewise.
4596         * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
4597         (eh_personality_libfunc): Remove.
4598         * optabs.c (build_libfunc_function): New function split out from ...
4599         (init_one_libfunc): ... here.
4600         * tree.h (DECL_FUNCTION_PERSONALITY): New.
4601         (tree_function_decl): Add personality.
4602         (lhd_gcc_personality): Declare.
4603         (build_personality_function): Likewise.
4604         * tree.c (gcc_eh_personality_decl): New.
4605         (lhd_gcc_personality): New function.
4606         * except.h (lang_eh_runtime_type): Remove.
4607         (enum eh_personality_kind): New.
4608         (build_personality_function): Declare.
4609         (function_needs_eh_personality): Declare.
4610         * except.c (lang_eh_runtime_type): Remove.
4611         (function_needs_eh_personality): New function.
4612         (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
4613         (sjlj_emit_function_enter, output_function_exception_table):
4614         Use personality from current_function_decl.
4615         * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
4616         * tree-inline.c (tree_can_inline_p): Do not inline across different
4617         EH personalities.
4618         (expand_call_inline): Likewise.  Adjust the callers EH personality.
4619         (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
4620         * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
4621         * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
4622         (c-parser.o): Likewise
4623         * c-tree.h (c_eh_initialized_p): Remove.
4624         (c_maybe_initialize_eh): Likewise.
4625         * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
4626         (finish_decl): Don't call c_maybe_initialize_eh.
4627         (c_eh_initialized_p): Remove.
4628         (c_maybe_initialize_eh): Likewise.
4629         * c-parser.c (c_parser_omp_construct): Likewise.
4630         (c_parse_file): Initialize exception handling.
4631
4632 2009-09-13  Kai Tietz  <kai.tietz@onevision.com>
4633
4634         * config.gcc (tm_file): Remove i386/biarch32.h
4635         for i?86-w64-mingw* case.
4636         (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
4637         support.
4638         * config.host: Set for x64 mingw the option
4639         use_long_long_for_widest_fast_int to yes.
4640
4641 2009-09-13  Eric Botcazou  <ebotcazou@adacore.com>
4642
4643         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
4644         * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
4645         (dbxout_begin_function): Likewise.
4646         * final.c (dwarf2_debug_info_emitted_p): New predicate.
4647         (final_start_function): Do not emit debug info if DECL_IGNORED_P is
4648         set on the function.
4649         (final_end_function): Likewise.
4650         (final_scan_insn): Likewise.
4651         (rest_of_handle_final): Likewise.
4652         * varasm.c (assemble_start_function): Likewise.
4653         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
4654
4655 2009-09-12  Jason Merrill  <jason@redhat.com>
4656
4657         * dbgcnt.c (dbg_cnt_process_single_pair): constify.
4658         * opts.c (common_handle_option): constify.
4659
4660 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
4661
4662         * doc/install.texi (avr): Remove obsolete reference site.
4663
4664 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
4665
4666         * doc/install.texi (Binaries): Adjust AIX link.
4667
4668 2009-09-12  Akim Demaille  <demaille@gostai.com>
4669
4670         * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
4671         Use an imperative sentence.
4672
4673 2009-09-11  Richard Henderson  <rth@redhat.com>
4674
4675         * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
4676         structure-name and has-tree-operands arguments; update all entries.
4677         * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
4678         update all entries.
4679         * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
4680         (gsstruct_code_size): New.
4681         (gss_for_code_): New.
4682         (gss_for_code): Remove.
4683         (gimple_size): Rewrite using gsstruct_code_size.
4684         (gimple_statement_structure): Move to gimple.h.
4685         * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
4686         (gss_for_code, gimple_statement_structure): New.
4687         (gimple_ops): Use new arrays; tidy.
4688
4689 2009-09-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4690
4691         * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
4692         operand to be a PLUS expression.
4693         * config/pa/pa.c (pa_secondary_reload): Likewise.
4694
4695 2009-09-11  Jakub Jelinek  <jakub@redhat.com>
4696
4697         * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
4698
4699         * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
4700         XEXP (in_rtx, 8).
4701
4702 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
4703
4704         From Jie Zhang <jie.zhang@analog.com>:
4705         * doc/extend.texi (node Function Attributes): Document l2
4706         function attribute.
4707         (node Blackfin Variable Attributes): Document l2 variable attributes.
4708
4709 2009-09-11  Loren J. Rittle  <ljrittle@acm.org>
4710
4711         * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
4712         to match the system compiler's configuration at inflection point.
4713         Add comment to remark a remaining difference with system compiler.
4714
4715         * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
4716         * configure: Regenerate.
4717
4718 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
4719
4720         From Jie Zhang <jie.zhang@analog.com>:
4721         * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
4722         (bfin_handle_l2_attribute): New.
4723         (bfin_attribute_table): Add l2 attribute.
4724
4725 2009-09-11  Michael Matz  <matz@suse.de>
4726
4727         PR middle-end/41275
4728         * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
4729         on the local_decls list.
4730
4731 2009-09-11  Alexandre Oliva  <aoliva@redhat.com>
4732
4733         PR debug/41276
4734         PR debug/41307
4735         * cselib.c (cselib_expand_value_rtx_cb): Document callback
4736         interface.
4737         (cselib_expand_value_rtx_1): Use callback for SUBREGs.  Adjust
4738         for VALUEs, to implement the documented interface.
4739         * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
4740         Adjust for VALUEs and anything else, to implement the
4741         documented interface.
4742
4743 2009-09-10  Nathan Froyd  <froydnj@codesourcery.com>
4744
4745         * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
4746         with actual SPE/paired vector modes before using 64-bit alignment.
4747         Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
4748
4749 2009-09-10  DJ Delorie  <dj@redhat.com>
4750
4751         * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
4752         emitted.
4753
4754         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
4755         * config/mep/mep.c (mep_legitimate_constant_p): New.
4756         * config/mep/mep-protos.h: Prototype it.
4757
4758 2009-09-10  Richard Henderson  <rth@redhat.com>
4759
4760         * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
4761
4762 2009-09-10  Jason Merrill  <jason@redhat.com>
4763
4764         * tree.c (chain_index): New fn.
4765         * tree.h: Declare it.
4766
4767 2009-09-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4768
4769         * config/sol2-c.c (cmn_err_length_specs): Initialize
4770         scalar_identity_flag.
4771
4772 2009-09-10  Richard Henderson  <rth@redhat.com>
4773
4774         * tree.h (struct tree_decl_common): Move align member earlier;
4775         move label_decl_uid member ...
4776         (struct tree_label_decl): ... here.
4777         (LABEL_DECL_UID): Update to match.
4778
4779         * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
4780         not TDF_DETAILS.
4781
4782         * tree-cfg.c (gimple_redirect_edge_and_branch): Do
4783         gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
4784
4785         * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
4786         dest_prev if the edge is complex.
4787
4788         * tree-cfg.c (is_ctrl_stmt): Use a switch.
4789
4790         * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
4791         loop latch tests earlier.
4792
4793         * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
4794         before GIMPLE_RETURN, not after its predecessor; insert
4795         before GIMPLE_RESX.
4796
4797         * gimple-iterator.c (gimple_find_edge_insert_loc): Use
4798         gimple_seq_empty_p to test for no PHI nodes.
4799         * tree-cfg.c (split_critical_edges): Likewise.
4800
4801         * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
4802
4803 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
4804
4805         * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
4806         introduced by the VTA branch merge.
4807
4808 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
4809
4810         * ira-conflicts.c: Use fputs or putc instead of fprintf
4811         where appropriate.
4812         * cfg.c: Ditto.
4813         * toplev.c: Ditto.
4814         * tree-switch-conversion.c: Ditto.
4815
4816 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
4817
4818         * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
4819         introduced by the VTA branch merge.
4820
4821 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
4822
4823         Revert:
4824         2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
4825
4826         PR rtl-optimization/39779
4827         * expr.c (convert_modes): Return when mode == oldmode after
4828         CONST_INTs are processed.
4829
4830 2009-09-10  Nick Clifton  <nickc@redhat.com>
4831
4832         * config/mep/mep.c (mep_encode_section_info): Copy weakness
4833         attribute and referring decl when creating renamed symbol.
4834
4835 2009-09-10  Richard Guenther  <rguenther@suse.de>
4836
4837         PR middle-end/41257
4838         * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
4839         reachable nodes.
4840         (cgraph_finalize_compilation_unit): Compute reachability
4841         before emitting thunks.  Properly process aliases before
4842         possibly removing unreachable nodes.
4843
4844 2009-09-10  Richard Guenther  <rguenther@suse.de>
4845
4846         PR middle-end/41254
4847         * tree.c (struct free_lang_data_d): Add worklist member.
4848         (find_decls_types_r): Push onto the worklist instead of recursing.
4849         Handle TREE_BINFOs properly.
4850         (find_decls_types): New function wrapped around find_decls_types_r
4851         to process the worklist.
4852         (find_decls_types_in_eh_region): Use it.
4853         (find_decls_types_in_node): Likewise.
4854         (find_decls_types_in_var): Likewise.
4855         (free_lang_data_in_cgraph): Likewise.  Free the worklist.
4856         * tree.h (RECORD_OR_UNION_TYPE_P): New.
4857         (AGGREGATE_TYPE_P): Adjust.
4858
4859 2009-09-09  Jason Merrill  <jason@redhat.com>
4860
4861         * configure.ac: Check glibc version even if we have an in-tree
4862         assembler.
4863
4864 2009-09-09  Anthony Green  <green@moxielogic.com>
4865
4866         * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
4867         the constant 0 when appropriate.
4868         * config/moxie/constraints.md: Add constraint O.
4869
4870         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
4871         to pass up to 6 32-bit argument values in registers.
4872         (moxie_function_arg): Ditto.
4873         (moxie_arg_partial_bytes): Ditto.
4874         * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
4875         (REG_PARM_STACK_SPACE): Ditto.
4876         (FUNCTION_ARG_REGNO_P): Ditto.
4877
4878         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
4879         instruction to allocate stack space.
4880
4881 2009-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
4882
4883         * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
4884         unnecessarily stringent constraints.  Fix address
4885         calculation in the splitters.
4886
4887 2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
4888
4889         PR rtl-optimization/39779
4890         * expr.c (convert_modes): Return when mode == oldmode after
4891         CONST_INTs are processed.
4892
4893 2009-09-09  Kai Tietz  <kai.tietz@onevision.com>
4894
4895         PR/41315
4896         * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
4897         (ix86_expand_prologue): Take frame.padding0 into logic of
4898         to_allocate checks.
4899         (ix86_expand_epilogue): Likewise.
4900
4901 2009-09-09  Jakub Jelinek  <jakub@redhat.com>
4902
4903         * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
4904         New variables.
4905         (SHLIB_LINK, SHLIB_INSTALL): Use them.
4906         * config/t-slibgcc-libgcc: New file.
4907         * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
4908
4909 2009-09-09  Martin Jambor  <mjambor@suse.cz>
4910
4911         PR tree-optimization/41089
4912         * tree-sra.c (find_var_candidates): Do not consider va_lists in
4913         early SRA.
4914
4915 2009-09-09  Richard Henderson  <rth@redhat.com>
4916
4917         * gimple.h (CASE_GIMPLE_OMP): New.
4918         (is_gimple_omp): Use it.
4919         * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
4920         (verify_gimple_debug): Likewise.
4921
4922 2009-09-09  Richard Guenther  <rguenther@suse.de>
4923
4924         PR tree-optimization/41101
4925         * tree-ssa-pre.c (maximal_set): Remove.
4926         (compute_antic_aux): Treat the maximal set as implicitly all ones.
4927         Defer all blocks we didn't visit at least one successor.
4928         (add_to_exp_gen): Do not add to the maximal set.
4929         (make_values_for_phi): Likewise.
4930         (compute_avail): Likewise.
4931         (init_pre): Do not allocate the maximal set.
4932         (execute_pre): Do not dump it.
4933
4934 2009-09-09  Martin Jambor  <mjambor@suse.cz>
4935
4936         * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
4937         an SSA_NAME rather than a is_gimple_variable.
4938
4939 2009-09-09  Richard Guenther  <rguenther@suse.de>
4940
4941         PR middle-end/41317
4942         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
4943         code dealing with plain pointer bases.
4944         (maybe_fold_offset_to_reference): Likewise.
4945         (maybe_fold_stmt_addition): Adjust.
4946
4947 2009-09-09  Richard Guenther  <rguenther@suse.de>
4948
4949         * tree.c (free_lang_data_in_type): Do not free the type variant
4950         chains.
4951         (free_lang_data): Merge char_type_node with its properly signed
4952         variant.
4953         (pass_ipa_free): Collect after freeing language specific data.
4954
4955 2009-09-09  Michael Matz  <matz@suse.de>
4956
4957         PR middle-end/41268
4958         * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
4959         SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
4960         * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
4961         to reflect reality.
4962
4963 2009-09-08  DJ Delorie  <dj@redhat.com>
4964
4965         * config/mep/mep.c (conversions[]): Add "ml" pattern.
4966
4967 2009-09-04  Jason Merrill  <jason@redhat.com>
4968
4969         * tree.c (tree_find_value): Remove.
4970         * tree.h: Remove prototype.
4971         * varasm.c (assemble_external): Use value_member instead.
4972
4973 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
4974
4975         * toplev.c (process_options): Choose default debugging type when
4976         gtoggle enables debug info and type is unset.
4977
4978 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
4979
4980         PR debug/41276
4981         PR debug/41307
4982         * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
4983         invalid subreg.
4984
4985 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
4986
4987         * configure: Rebuilt with modified libtool.m4.
4988
4989 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
4990
4991         PR debug/41229
4992         PR debug/41291
4993         PR debug/41300
4994         * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
4995
4996 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
4997
4998         * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
4999         (remove_statement): Likewise.
5000         (rewrite_use_nonlinear_expr): Adjust.
5001         (remove_unused_ivs): Collect SSA NAMEs to remove and call...
5002         * tree-ssa.c (release_defs_bitset): ... this.  New.
5003         * tree-flow.h (release_defs_bitset): Declare.
5004
5005 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
5006
5007         PR debug/41232
5008         * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
5009         in the middle block.
5010
5011 2009-09-08  Kai Tietz  <kai.tietz@onevision.com>
5012
5013         * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
5014         via intptr_t to long type.
5015         (insert_operand_rank): Cast long type via intptr_t to
5016         pointer type.
5017         * genattrtab.c (RTL_HASH): Use intptr_t to cast from
5018         pointer to scalar.
5019         * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
5020         from pointer to unsigned via uintptr_t.
5021
5022         * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
5023         uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
5024         and HAVE_INTPTR_T.
5025         * configure: Regenerated.
5026         * config.in: Regenerated
5027         * system.h (stdint.h): Add include.
5028         (inttypes.h): Likewise.
5029         * Makefile.in (aclocal): Add config/stdint.m4.
5030         * aclocal.m4: Regenerated.
5031
5032 2009-09-08  Bernd Schmidt  <bernd.schmidt@analog.com>
5033
5034         * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
5035         variables.
5036         (note_np_check_stores): New function.
5037         (harmless_null_pointer_p): New function.
5038         (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH.  Callers
5039         changed.  Take into account whether we're in the shadow of a condjump
5040         that tested NP_REG for NULL.
5041         Lose all code that tested for SEQUENCEs.
5042         (workaround_speculation): Avoid inserting NOPs for loads that are
5043         either always executed or a NULL pointer.
5044
5045 2009-09-08  Jan Hubicka  <jh@suse.cz>
5046
5047         * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
5048         * params.def (early-inlining-insns): Likewise.
5049
5050 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
5051
5052         PR rtl-optimization/41239
5053         * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
5054         * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
5055         lists.
5056         * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
5057         across calls, as the calls might not always return normally.
5058         (call_may_noreturn_p): New function.
5059         (deps_analyze_insn): Update last_function_call_may_noreturn list.
5060         (init_deps): Initialize it.
5061         (remove_from_deps): Also remove calls from
5062         last_function_call_may_noreturn list.
5063
5064 2009-09-07  Richard Henderson  <rth@redhat.com>
5065
5066         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
5067         more VR->OPERANDS than LHS operands.  Free LHS before returning.
5068
5069 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
5070
5071         * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
5072         (attr "addrtype"): New member "spreg".
5073         Use it if mem_spfp_address_operand is true for the address.
5074         (attr "type"): New entry "stall".
5075         (cpu_unit "load"): New.
5076         (insn_reservations "load32", "loadp", "loadi"): Add reservation of
5077         "load".
5078         (insn_reservation "loadsp"): New.
5079         (insn_reservation "load_stall1"): New.
5080         (insn_reservation "load_stall3"): New.
5081         (stall): New insn.
5082         * config/bfin/predicates.md (const1_operand, const3_operand): New.
5083         (mem_p_address_operand): Exclude stack and frame pointer based
5084         addresses.
5085         (mem_spfp_address_operand): New; match them here.
5086         * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
5087         (bfin_reorg): Call it if scheduling insns.
5088         (bfin_gen_bundles): Remove dummy insns created by
5089         add_sched_insns_for_speculation.
5090
5091         From Jie Zhang <jie.zhang@analog.com>:
5092         * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
5093         bfin_si_revision, bfin_workarounds): Move these ...
5094         * config/bfin/bfin.h: ... here.
5095
5096         From Mike Frysinger  <michael.frysinger@analog.com>
5097         * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
5098         BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
5099         * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
5100         bf547m, bf548m, and bf549m.
5101         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
5102         for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
5103         __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
5104         BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
5105         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
5106         bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
5107         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
5108         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
5109         * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
5110         bf542m, bf544m, bf547m, bf548m, and bf549m.
5111
5112         From Jie Zhang <jie.zhang@analog.com>:
5113         * config/bfin/predicates.md (p_register_operand): New predicate.
5114         (dp_register_operand): New predicate.
5115         * config/bfin/bfin-protos.h (WA_05000074): Define.
5116         (ENABLE_WA_05000074): Define.
5117         * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
5118         (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
5119         * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
5120         (define_attr addrtype): Allow load/store register to be P register.
5121         (define_attr storereg): New.
5122         (define_cpu_unit anomaly_05000074): New.
5123         (define_insn_reservation dsp32shiftimm): New.
5124         (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
5125         (define_insn_reservation loadp): Cannot use slot2.
5126         (define_insn_reservation loadsp): Cannot use slot2.
5127         (define_insn_reservation storep): Cannot use slot2. Does not
5128         apply when working around 05000074.
5129         (define_insn_reservation storep_anomaly_05000074): New.
5130         (define_insn_reservation storei): Does not apply when working
5131         around 05000074.
5132         (define_insn_reservation storei_anomaly_05000074): New.
5133         (define_attr length): Add dsp32shiftimm case.
5134         (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
5135         ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
5136         movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
5137         ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
5138         Set type as dsp32shiftimm for dsp32shiftimm alternatives.
5139
5140 2009-09-07  Martin Jambor  <mjambor@suse.cz>
5141
5142         PR middle-end/41282
5143         * tree-sra.c (create_artificial_child_access): Return NULL if
5144         build_ref_for_offset fails.
5145         (propagate_subacesses_accross_link): Allow build_ref_for_offset
5146         and create_artificial_child_access to fail.
5147
5148 2009-09-06  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
5149
5150         PR c++/41214
5151         * unwind-dw2.c (uw_init_context_1): Mark noinline.
5152         * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
5153         * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
5154
5155 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
5156
5157         * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
5158         block, ensure it has an exit edge.  Emit a barrier after a jump.
5159
5160 2009-09-07  Nick Clifton  <nickc@redhat.com>
5161
5162         * gcc.c (this_is_linker_script): New variable.  Like
5163         this_is_library_file but for the %T constructor.
5164         (end_going_arg): If this_is_linker_script is set then locate the
5165         script and insert a --script switch before it
5166         (do_spec_2): Initialise this_is_linker_script.
5167         (do_spec_1): Likewise.  Handle %T construct.
5168         (eval_spec_function): Preserve this_is_linker_script.
5169         * doc/invoke.texi: Document %T construct in spec files.
5170         * config/m32c/m32c.h (LIB_SPEC): Use it.
5171
5172 2009-09-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5173
5174         * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
5175         * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
5176         when volatile flag is set.
5177         * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
5178
5179 2009-09-06  Eric Botcazou  <ebotcazou@adacore.com>
5180
5181         PR bootstrap/41241
5182         * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
5183         (combine_stack_adjustments_for_block): Allow insns between stack
5184         adjustments and stores with corresponding pre-(dec|inc)rement or
5185         pre-modify operation.
5186
5187 2009-09-06  Jakub Jelinek  <jakub@redhat.com>
5188
5189         PR bootstrap/41241
5190         * combine-stack-adj.c (struct csa_memlist): Rename to...
5191         (struct csa_reflist): ... this.  Rename mem field to ref.
5192         (free_csa_memlist): Rename to...
5193         (free_csa_reflist): ... this.
5194         (record_one_stack_memref): Rename to...
5195         (record_one_stack_ref): ... this.  Handle also REG_P.
5196         (try_apply_stack_adjustment): Handle also REG_P.
5197         (struct record_stack_memrefs_data): Rename to...
5198         (struct record_stack_refs_data): ... this.  Rename memlist field to
5199         reflist.
5200         (record_stack_memrefs): Rename to...
5201         (record_stack_refs): ... this.  For DEBUG_INSNs keep traversing
5202         subexpressions instead of failing when a MEM contains SP references.
5203         For SP itself in DEBUG_INSNs queue it also onto reflist chain.
5204         (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
5205
5206 2009-09-06  Richard Guenther  <rguenther@suse.de>
5207
5208         PR middle-end/41144
5209         * tree.c (build_array_type): Do not record types marked
5210         with structural equality in the canonical type hashtable.
5211
5212 2009-09-06  Richard Guenther  <rguenther@suse.de>
5213
5214         PR middle-end/41261
5215         * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
5216
5217 2009-09-05  Richard Guenther  <rguenther@suse.de>
5218
5219         PR middle-end/41181
5220         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
5221
5222 2009-09-05  Richard Guenther  <rguenther@suse.de>
5223
5224         PR debug/41273
5225         * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
5226
5227 2009-09-05  Richard Guenther  <rguenther@suse.de>
5228
5229         PR middle-end/41271
5230         * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
5231         before comparing function argument types.
5232
5233 2009-09-05  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5234
5235         PR target/41024
5236         * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
5237         the assembler.
5238
5239 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
5240
5241         Revert:
5242         2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
5243
5244         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
5245         locators before emit_insn is called.
5246
5247 2009-09-04  Vladimir Makarov  <vmakarov@redhat.com>
5248
5249         PR bootstrap/41241
5250         * ira.c (update_equiv_reg): Revert my previous patch for the PR.
5251         * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
5252         (reginfo_init): Don't call allocate_reg_info.
5253
5254 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
5255
5256         PR target/41262
5257         * config/alpha/alpha.c (alpha_does_function_need_gp): Use
5258         NONDEBUG_INSN_P instead of INSN_P.
5259
5260 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
5261
5262         PR debug/41225
5263         * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
5264
5265 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
5266
5267         PR target/41252
5268         * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
5269         pattern of the split.
5270
5271 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
5272
5273         * toplev.c (process_options): Move setter of flag_var_tracking
5274         before other tests that depend on it.  Move down setter of
5275         flag_rename_registers.  Don't enable var-tracking-assignments
5276         by default if selective scheduling is enabled.  Warn if both
5277         are enabled.
5278
5279 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
5280
5281         * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
5282         comment.  Use switch statement to catch overlaps between rtx
5283         and tree codes.  Accept FUNCTION_DECLs in addition to those in...
5284         (IS_DECL_CODE): ... here. Remove.
5285         (check_value_is_not_decl): Remove.
5286         (dv_from_decl, dv_from_value): Check after conversion.
5287
5288 2009-09-04  Richard Guenther  <rguenther@suse.de>
5289
5290         PR middle-end/41257
5291         * (cgraph_finalize_compilation_unit): Move finalizing aliases
5292         after emitting tunks.  Move emitting thunks and ctors from ...
5293         (cgraph_optimize): ... here.  Remove redundant
5294         cgraph_analyze_functions.
5295         * varasm.c (find_decl_and_mark_needed): Remove no longer
5296         necessary check.
5297         (finish_aliases_1): Adjust check for thunk aliases.
5298
5299 2009-09-04  Daniel Gutson  <dgutson@codesourcery.com>
5300
5301         * config/arm/arm.md (ctzsi2): Added braces
5302         to avoid warning that broke booststrap.
5303
5304 2009-09-04  Martin Jambor  <mjambor@suse.cz>
5305
5306         PR tree-optimization/41112
5307         * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
5308         handle variable-bounded arrays.
5309         (expr_with_var_bounded_array_refs_p): New function.
5310         (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
5311
5312 2009-09-04  Wolfgang Gellerich  <gellerich@de.ibm.com>
5313
5314         * config/s390/2097.md: Removed two incorrect bypasses.
5315         (z10_fsimpdf): Fixed latency.
5316         (z10_fhex): New insn_reservation.
5317         (z10_floaddf): Fixed latency.
5318         (z10_floadsf): Fixed latency.
5319         (z10_ftrunctf): Fixed latency.
5320         (z10_ftruncdf): Fixed latency.
5321         * config/s390/s390.c (z10_cost): Fixed values.
5322         (s390_adjust_priority): Added z10 path.
5323         * config/s390/s390.md (type): Added fhex.
5324         (*mov<mode>_64dfp): Updated type attribute.
5325         (*mov<mode>_64): Updated type attribute.
5326         (*mov<mode>_31): Updated type attribute.
5327         (*mov<mode>"): Likewise.
5328         * config/s390/2084.md (x_fsimpdf): Updated condition.
5329
5330 2009-09-04  Andreas Krebbel  <krebbel1@de.ibm.com>
5331
5332         * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
5333         RTXs in the predicate for operand 1.
5334
5335 2009-09-03  Daniel Gutson  <dgutson@codesourcery.com>
5336
5337         * config/arm/arm.md (UNSPEC_RBIT): New constant.
5338         (rbitsi2): New insn.
5339         (ctzsi2): New expand.
5340         * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
5341
5342 2009-09-03  Martin Jambor  <mjambor@suse.cz>
5343
5344         * tree-sra.c (duplicate_expr_for_different_base): Removed.
5345         (create_artificial_child_access): Use build_ref_for_offset instead
5346         of duplicate_expr_for_different_base.
5347         (propagate_subacesses_accross_link): Likewise.
5348
5349 2009-09-03  Richard Sandiford  <rdsandiford@googlemail.com>
5350
5351         * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
5352         of INSN_P.
5353         (mips16e_collect_argument_saves): Skip debug instructions.
5354         (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
5355         (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
5356         (r10k_insert_cache_barriers): Likewise.
5357         (mips_reorg_process_insns): Likewise.
5358
5359 2009-09-03  Vladimir Makarov  <vmakarov@redhat.com>
5360
5361         PR bootstrap/41241
5362         * ira.c (update_equiv_reg): Remove check on class likely spill.
5363
5364 2009-09-03  Jakub Jelinek  <jakub@redhat.com>
5365
5366         PR debug/41236
5367         * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
5368         SIGN_EXTEND or ZERO_EXTEND.  Don't assume there is a REG inside of
5369         it or SUBREG.
5370
5371         PR debug/41238
5372         * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
5373         the stack slot if it is passed by invisible reference.
5374         * var-tracking.c (vt_add_function_parameters): Handle arguments passed
5375         by invisible reference.
5376
5377 2009-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
5378
5379         * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
5380         * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
5381         * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
5382         0.
5383         * config/bfin/sync.md: New file.
5384         * config/bfin/bfin.md: Include it.
5385         (UNSPEC_ATOMIC): New.
5386         (UNSPEC_ONES): Provide a unique number.
5387
5388         From Jie Zhang <jie.zhang@analog.com>:
5389         * config/bfin/bfin.c (ret_regs): New.
5390         (must_save_fp_p): Don't return true because of frame_pointer_needed.
5391         (must_save_rets_p): New.
5392         (n_regs_saved_by_prologue): Use must_save_rets_p instead of
5393         current_function_is_leaf.
5394         (do_link): Likewise.
5395         (do_unlink): Likewise.
5396         (expand_interrupt_handler_prologue): Use ret_regs array.
5397         (expand_interrupt_handler_epilogue): Use ret_regs array and
5398         pass return register to gen_return_internal.
5399         (bfin_expand_epilogue): Pass return register to
5400         gen_return_internal.
5401         (bfin_expand_call): Explicitly clobber RETS.
5402         * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
5403         * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
5404         call_insn_fdpic, call_value_insn_fdpic, call_symbol,
5405         call_value_symbol, call_insn, call_value_insn): Explicitly clobber
5406         RETS.
5407         (return_internal): Take a reg rtx rather than the register number.
5408
5409 2009-09-03  H.J. Lu  <hongjiu.lu@intel.com>
5410
5411         * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
5412         when comparing against estimated_loop_iterations_int return.
5413
5414 2009-09-03  Richard Guenther  <rguenther@suse.de>
5415
5416         * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
5417         eh_personality_libfunc.
5418
5419 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
5420
5421         * tree-parloops.c (separate_decls_in_region): Add space.
5422
5423 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
5424
5425         * tree-parloops.c (separate_decls_in_region): Change the condition
5426         checking if there are reductions in the loop.
5427
5428 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
5429
5430         PR tree-optimization/38275
5431         * tree-parloops.c (parallelize_loops): Replace profitability condition
5432         for expected number of iterations.
5433
5434 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
5435
5436         * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
5437         (bootstrap-debug): Explain conditions in which it becomes default.
5438         (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
5439         make it add to it.
5440
5441 2009-09-03  Namhyung Kim  <namhyung@gmail.com>
5442
5443         * doc/invoke.texi (Optimize Options): Move
5444         -finline-small-functions to the -O2 list.
5445
5446 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
5447
5448         * toplev.c (process_options): Enable var-tracking-assignments
5449         by default if var-tracking is enabled.
5450
5451 2009-09-02  David Daney  <ddaney@caviumnetworks.com>
5452
5453         * cfgbuild.c (find_bb_boundaries): Split blocks containing a
5454         barrier.
5455         * emit-rtl.c (prev_nonnote_insn_bb): New function.
5456         * rtl.h (prev_nonnote_insn_bb): Declare it.
5457
5458 2009-09-03  Diego Novillo  <dnovillo@google.com>
5459
5460         * cgraph.c (cgraph_node_for_decl): New.
5461         * cgraph.h (cgraph_node_for_decl): Declare.
5462         * tree.c (host_integerp): Return 0 if T is NULL.
5463
5464 2009-09-03  Diego Novillo  <dnovillo@google.com>
5465
5466         * tree.h (struct alias_pair): Move from varasm.c.
5467         (alias_pairs): Likewise.
5468         (TYPE_MAXVAL): Define.
5469         (TYPE_MINVAL): Define.
5470         (iterative_hash_host_wide_int): Declare.
5471         (remove_unreachable_alias_pairs): Declare.
5472         * tree-pass.h (pass_ipa_free_lang_data): Declare.
5473         * diagnostic.c (default_diagnostic_starter): Make extern.
5474         (default_diagnostic_finalizer): Make extern.
5475         * diagnostic.h (default_diagnostic_starter): Declare.
5476         (default_diagnostic_finalizer): Declare.
5477         (default_tree_printer): Declare.
5478         * toplev.c (default_tree_printer): Make extern.
5479
5480 2009-09-03  Richard Guenther  <rguenther@suse.de>
5481             Diego Novillo  <dnovillo@google.com>
5482
5483         * cgraph.c (cgraph_add_new_function): Remove gimplification.
5484         * cgraphunit.c (cgraph_expand_function): Do not emit
5485         associated thunks from here.
5486         (cgraph_emit_thunks): New.
5487         (cgraph_optimize): Call it.
5488         Return if any IPA pass finds an error.
5489         * varasm.c (finish_aliases_1): Ignore errorneous aliases used
5490         by thunks.
5491
5492 2009-09-03  Simon Baldwin  <simonb@google.com>
5493             Rafael Espindola  <espindola@google.com>
5494             Richard Guenther  <rguenther@suse.de>
5495             Doug Kwan  <dougkwan@google.com>
5496             Diego Novillo  <dnovillo@google.com>
5497
5498         * tree.c: Include tree-pass.h, langhooks-def.h,
5499         diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
5500         (free_lang_data_in_type): New.
5501         (need_assembler_name_p): New.
5502         (free_lang_data_in_block): New.
5503         (free_lang_data_in_decl): New.
5504         (struct free_lang_data_d): New.
5505         (add_tree_to_fld_list): New.
5506         (find_decls_types_r): New.
5507         (get_eh_types_for_runtime): New.
5508         (find_decls_types_in_eh_region): New.
5509         (find_decls_types_in_node): New.
5510         (find_decls_types_in_var): New.
5511         (free_lang_data_in_cgraph): New.
5512         (free_lang_data): New.
5513         (gate_free_lang_data): New.
5514         (pass_ipa_free_lang_data): New.
5515
5516 2009-09-03  Diego Novillo  <dnovillo@google.com>
5517
5518         * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
5519         * langhooks.h (struct lang_hooks): Add field free_lang_data.
5520         (lang_hooks): Remove const qualifier.
5521         * ipa.c (cgraph_remove_unreachable_nodes): Call
5522         remove_unreachable_alias_pairs.
5523         * except.c (add_type_for_runtime): Check if TYPE has
5524         already been converted.
5525         (lookup_type_for_runtime): Likewise.
5526         (check_handled): Handle converted types.
5527         * varasm.c (remove_unreachable_alias_pairs): New.
5528         * gimple.c: Include demangle.h.
5529         (gimple_decl_printable_name): New.
5530         (gimple_fold_obj_type_ref): New.
5531         * gimple.h (gimple_decl_printable_name): Declare.
5532         (gimple_fold_obj_type_ref): Declare.
5533         * passes.c (init_optimization_passes): Add pass
5534         pass_ipa_free_lang_data.
5535         * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
5536         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
5537
5538 2009-09-03  Diego Novillo  <dnovillo@google.com>
5539
5540         * c-lang.c (lang_hooks): Remove const qualifier.
5541
5542 2009-09-02  Loren James Rittle  <ljrittle@acm.org>
5543
5544         * doc/install.texi (*-*-freebsd*): Update target information.
5545
5546 2009-09-02  Anatoly Sokolov  <aesok@post.ru>
5547
5548         * hard-reg-set.h (call_fixed_regs): Remove.
5549         * reginfo.c (call_fixed_regs): Remove.
5550         (init_reg_sets_1): Remove initialization of call_fixed_regs.
5551         (globalize_reg): Don't use call_fixed_regs.
5552         * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
5553         call_fixed_regs.
5554
5555 2009-09-01  Michael Matz  <matz@suse.de>
5556
5557         * expr.h (emit_storent_insn, expand_expr_real_1,
5558         expand_expr_real_2): Declare.
5559         * expr.c (emit_storent_insn, expand_expr_real_1,
5560         expand_expr_real_2): Export.
5561         (store_expr): Setting and evaluating dont_return_target is useless.
5562         (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
5563         LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
5564         * except.c (expand_resx_expr): Rename to ...
5565         (expand_resx_stmt): ... this.  Rewrite to take gimple statement.
5566         * except.h (expand_resx_stmt): Declare.
5567         * stmt.c: Add include gimple.h
5568         (expand_asm_expr): Rename to ...
5569         (expand_asm_stmt): ... this. Rewrite to take gimple statement.
5570         (expand_case): Rewrite to take gimple statement.
5571         * tree.h (expand_asm_stmt): Declare.
5572         (expand_case): Change prototype.
5573         * Makefile.in (stmt.o): Depend on gimple.h.
5574         * builtins.c (expand_builtin_synchronize): Build gimple asm
5575         statement, not an ASM_EXPR.
5576         * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
5577         gimple_to_tree, release_stmt_tree): Remove.
5578         (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
5579         ggc_free, but hold comparison code and operands separately.
5580         Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
5581         (expand_call_stmt, expand_gimple_stmt_1,
5582         expand_gimple_stmt): New helpers.
5583         (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
5584         release_stmt_tree.  Call expand_gimple_stmt instead.
5585         (expand_gimple_basic_block): Ditto.
5586
5587         * calls.c (emit_call_1): Don't look at EH regions here, make
5588         fntree parameter useless.
5589         (expand_call): New local rettype for TREE_TYPE(exp), use it
5590         throughout.  Remove local p, use addr instead.
5591         Don't look at EH regions here.
5592
5593 2009-09-02  Vladimir Makarov  <vmakarov@redhat.com>
5594
5595         * doc/invoke.texi (-fsched-pressure): Document it.
5596         (-fsched-reg-pressure-heuristic): Remove it.
5597
5598         * reload.c (ira.h): Include.
5599         (find_reloads): Add choosing reload on number of small spilled
5600         classes.
5601
5602         * haifa-sched.c (ira.h): Include.
5603         (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
5604         saved_reg_pressure, curr_reg_live, saved_reg_live,
5605         region_ref_regs): New variables.
5606         (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
5607         initiate_reg_pressure_info, setup_ref_regs,
5608         initiate_bb_reg_pressure_info, save_reg_pressure,
5609         restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
5610         functions.
5611         (setup_insn_reg_pressure_info): New function.
5612         (rank_for_schedule): Add pressure checking and insn issue time.
5613         Remove comparison of insn reg weights.
5614         (ready_sort): Set insn reg pressure info.
5615         (update_register_pressure, setup_insn_max_reg_pressure,
5616         update_reg_and_insn_max_reg_pressure,
5617         sched_setup_bb_reg_pressure_info): New functions.
5618         (schedule_insn): Add code for printing and updating reg pressure info.
5619         (find_set_reg_weight, find_insn_reg_weight): Remove.
5620         (ok_for_early_queue_removal): Do nothing if pressure_only_p.
5621         (debug_ready_list): Print reg pressure info.
5622         (schedule_block): Ditto.  Check insn issue time.
5623         (sched_init): Set up sched_pressure_p.  Allocate and set up some
5624         reg pressure related info.
5625         (sched_finish): Free some reg pressure related info.
5626         (fix_tick_ready): Make insn always ready if pressure_p.
5627         (init_h_i_d): Don't call find_insn_reg_weight.
5628         (haifa_finish_h_i_d): Free insn reg pressure info.
5629
5630         * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
5631         ira_memory_move_cost, ira_class_hard_regs,
5632         ira_class_hard_regs_num, ira_no_alloc_regs,
5633         ira_available_class_regs, ira_reg_class_cover_size,
5634         ira_reg_class_cover, ira_class_translate): Move to ira.h.
5635
5636         * ira-lives.c (single_reg_class): Check mode to find how many
5637         registers are necessary for operand.
5638         (ira_implicitly_set_insn_hard_regs): New.
5639
5640         * common.opt (fsched-pressure): New options.
5641         (fsched-reg-pressure-heuristic): Remove.
5642
5643         * ira.c (setup_eliminable_regset): Rename to
5644         ira_setup_eliminable_regset.  Make it external.
5645         (expand_reg_info): Pass cover class to setup_reg_classes.
5646         (ira): Call resize_reg_info instead of allocate_reg_info.
5647
5648         * sched-deps.c: Include ira.h.
5649         (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
5650         (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
5651         reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
5652         mark_insn_hard_regno_birth, mark_insn_reg_birth,
5653         mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
5654         mark_insn_reg_store, mark_insn_reg_clobber,
5655         setup_insn_reg_pressure_info): New.
5656         (sched_analyze_1): Update implicit_reg_pending_uses.
5657         (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
5658         Use them to create dependencies.  Set insn reg uses and pressure
5659         info.  Process reg_pending_uses in one place.
5660         (free_deps): Free implicit sets.
5661         (remove_from_deps): Remove implicit sets if necessary.  Check
5662         implicit sets when clearing reg_last_in_use.
5663         (init_deps_global): Clear implicit_reg_pending_clobbers and
5664         implicit_reg_pending_uses.
5665
5666         * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
5667         ira_memory_move_cost, ira_class_hard_regs,
5668         ira_class_hard_regs_num, ira_no_alloc_regs,
5669         ira_available_class_regs, ira_reg_class_cover_size,
5670         ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
5671         (ira_setup_eliminable_regset, ira_set_pseudo_classes,
5672         ira_implicitly_set_insn_hard_regs): New prototypes.
5673
5674         * ira-costs.c (pseudo_classes_defined_p, allocno_p,
5675         cost_elements_num): New variables.
5676         (allocno_costs, total_costs): Rename to costs and
5677         total_allocno_costs.
5678         (COSTS_OF_ALLOCNO): Rename to COSTS.
5679         (allocno_pref): Rename to pref.
5680         (allocno_pref_buffer): Rename to pref_buffer.
5681         (common_classes): Rename to regno_cover_class.
5682         (COST_INDEX): New.
5683         (record_reg_classes): Set allocno attributes only if allocno_p.
5684         (record_address_regs): Ditto.  Use COST_INDEX instead of ALLOCNO_NUM.
5685         (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
5686         and COSTS_OF_ALLOCNO.
5687         (print_costs): Rename to print_allocno_costs.
5688         (print_pseudo_costs): New.
5689         (process_bb_node_for_costs): Split into 2 functions with new
5690         function process_bb_for_costs.  Pass BB to process_bb_for_costs.
5691         (find_allocno_class_costs): Rename to find_costs_and_classes.  Add
5692         new parameter dump_file.  Use cost_elements_num instead of
5693         ira_allocnos_num.  Make one iteration if preferred classes were
5694         already calculated for scheduler.  Make 2 versions of code
5695         depending on allocno_p.
5696         (setup_allocno_cover_class_and_costs): Check allocno_p.  Use
5697         regno_cover_class and COSTS instead of common_classes and
5698         COSTS_OF_ALLOCNO.
5699         (init_costs, finish_costs): New.
5700         (ira_costs): Set up allocno_p and cost_elements_num.  Call
5701         init_costs and finish_costs.
5702         (ira_set_pseudo_classes): New.
5703
5704         * rtl.h (allocate_reg_info): Remove.
5705         (resize_reg_info): Change return type.
5706         (reg_cover_class): New.
5707         (setup_reg_classes): Add new parameter.
5708
5709         * sched-int.h (struct deps_reg): New member implicit_sets.
5710         (sched_pressure_p, sched_regno_cover_class): New external definitions.
5711         (INCREASE_BITS): New macro.
5712         (struct reg_pressure_data, struct reg_use_data): New.
5713         (struct _haifa_insn_data): Remove reg_weight.  Add members
5714         reg_pressure, reg_use_list, reg_set_list, and
5715         reg_pressure_excess_cost_change.
5716         (struct deps): New member implicit_sets.
5717         (pressure_p): New variable.
5718         (COVER_CLASS_BITS, INCREASE_BITS): New macros.
5719         (struct reg_pressure_data, struct reg_use_data): New.
5720         (INSN_REG_WEIGHT): Remove.
5721         (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
5722         INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
5723         (sched_init_region_reg_pressure_info,
5724         sched_setup_bb_reg_pressure_info): New prototypes.
5725
5726         * reginfo.c (struct reg_pref): New member coverclass.
5727         (reg_cover_class): New function.
5728         (reginfo_init, pass_reginfo_init): Move after free_reg_info.
5729         (reg_info_size): New variable.
5730         (allocate_reg_info): Make static.  Setup reg_info_size.
5731         (resize_reg_info): Use reg_info_size.  Return flag of resizing.
5732         (setup_reg_classes): Add a new parameter.  Setup cover class too.
5733
5734         * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
5735         the dependencies.
5736
5737         * sched-rgn.c (deps_join): Set up implicit_sets.
5738         (schedule_region): Set up region and basic blocks pressure
5739         relative info.
5740
5741         * passes.c (init_optimization_passes): Move
5742         pass_subregs_of_mode_init before pass_sched.
5743
5744 2009-09-02  Martin Jambor  <mjambor@suse.cz>
5745
5746         * tree-sra.c (struct access): New field grp_hint.
5747         (dump_access): Dump grp_hint.
5748         (sort_and_splice_var_accesses): Set grp_hint if a group is read
5749         multiple times.
5750         (analyze_access_subtree): Only scalarize accesses with grp_hint set or
5751         those which have been specifically read and somehow written to.
5752         (propagate_subacesses_accross_link): Set grp_hint of right child and
5753         also possibly of the left child.
5754
5755 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
5756
5757         * tree-object-size.c (addr_object_size): Always use object_size_type
5758         0 or 2 when determining the pointer pointed object size.
5759
5760 2009-09-02  Richard Guenther  <rguenther@suse.de>
5761
5762         Revert
5763         2009-08-31  Richard Guenther  <rguenther@suse.de>
5764
5765         * builtins.c (fold_builtin_memory_op): Use the alias oracle
5766         to query if the memory regions for memmove overlap.
5767         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
5768         asserts on pointers, instead deal with odd trees.
5769         (ptr_derefs_may_alias_p): Likewise.
5770         (refs_may_alias_p_1): Constructor bases also never alias.
5771
5772 2009-08-01  Christian Bruel  <christian.bruel@st.com>
5773
5774         Revert:
5775         2009-07-31  Christian Bruel  <christian.bruel@st.com>
5776         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
5777
5778 2009-09-01  Alexandre Oliva  <aoliva@redhat.com>
5779
5780         * doc/invoke.texi (-fvar-tracking-assignments): New.
5781         (-fvar-tracking-assignments-toggle): New.
5782         (-fdump-final-insns=file): Mark filename as optional.
5783         (--param min-nondebug-insn-uid): New.
5784         (-gdwarf-@{version}): Mention version 4.
5785         * opts.c (common_handle_option): Accept it.
5786         * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
5787         * regrename.c (regrename_optimize): Drop last.  Don't count debug
5788         insns as uses.  Don't reject change because of debug insn.
5789         (do_replace): Reject DEBUG_INSN as chain starter.  Take base_regno
5790         from the chain starter, and check for inexact matches in DEBUG_INSNS.
5791         (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
5792         (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
5793         * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
5794         * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
5795         * doc/gimple.texi (is_gimple_debug): New.
5796         (gimple_debug_bind_p): New.
5797         (is_gimple_call, gimple_assign_cast_p): End sentence with period.
5798         * doc/install.texi (bootstrap-debug): More details.
5799         (bootstrap-debug-big, bootstrap-debug-lean): Document.
5800         (bootstrap-debug-lib): More details.
5801         (bootstrap-debug-ckovw): Update.
5802         (bootstrap-time): New.
5803         * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
5804         (insert_phi_nodes_for): Insert debug stmts.
5805         (rewrite_stmt): Take iterator.  Insert debug stmts.
5806         (rewrite_enter_block): Adjust.
5807         (maybe_replace_use_in_debug_stmt): New.
5808         (rewrite_update_stmt): Use it.
5809         (mark_use_interesting): Return early for debug stmts.
5810         * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
5811         stmts before replacing stmt.
5812         (move_computations_stmt): Likewise.
5813         * ira-conflicts.c (add_copies): Skip debug insns.
5814         * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
5815         (regstat_bb_compute_ri): Skip debug insns.
5816         * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
5817         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
5818         check_loop_closed_ssa_stmt): Skip debug stmts.
5819         * tree-tailcall.c (find_tail_calls): Likewise.
5820         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
5821         * tree.h (MAY_HAVE_DEBUG_STMTS): New.
5822         (build_var_debug_value_stat): Declare.
5823         (build_var_debug_value): Define.
5824         (target_for_debug_bind): Declare.
5825         * reload.c (find_equiv_reg): Skip debug insns.
5826         * rtlanal.c (reg_used_between_p): Skip debug insns.
5827         (side_effects_p): Likewise.
5828         (canonicalize_condition): Likewise.
5829         * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
5830         insns never depend on debug insns.
5831         (create_ddg_dep_no_link): Likewise.
5832         (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
5833         Don't add inter-loop dependencies for debug insns.
5834         (build_intra_loop_deps): Likewise.
5835         (create_ddg): Count debug insns.
5836         * ddg.h (struct ddg::num_debug): New.
5837         (num_backargs): Pair up with previous int field.
5838         * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
5839         -fcompare-debug-second.
5840         * final.c (get_attr_length_1): Skip debug insns.
5841         (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
5842         * gcc.c (invoke_as): Call compare-debug-dump-opt.
5843         (driver_self_specs): Map -fdump-final-insns to
5844         -fdump-final-insns=..
5845         (get_local_tick): New.
5846         (compare_debug_dump_opt_spec_function): Test for . argument and
5847         compute output name.  Compute temp output spec without flag name.
5848         Compute -frandom-seed.
5849         (OPT): Undef after use.
5850         * cfgloopanal.c (num_loop_insns): Skip debug insns.
5851         (average_num_loop_insns): Likewise.
5852         * params.h (MIN_NONDEBUG_INSN_UID): New.
5853         * gimple.def (GIMPLE_DEBUG): New.
5854         * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
5855         * auto-inc-dec.c (merge_in_block): Skip debug insns.
5856         (merge_in_block): Fix whitespace.
5857         * toplev.c (flag_var_tracking): Update comment.
5858         (flag_var_tracking_assignments): New.
5859         (flag_var_tracking_assignments_toggle): New.
5860         (process_options): Don't open final insns dump file if we're not
5861         going to write to it.  Compute defaults for var_tracking.
5862         * df-scan.c (df_insn_rescan_debug_internal): New.
5863         (df_uses_record): Handle debug insns.
5864         * haifa-sched.c (ready): Initialize n_debug.
5865         (contributes_to_priority): Skip debug insns.
5866         (dep_list_size): New.
5867         (priority): Use it.
5868         (rank_for_schedule): Likewise.  Schedule debug insns as soon as
5869         they're ready.  Disregard previous debug insns to make decisions.
5870         (queue_insn): Never queue debug insns.
5871         (ready_add, ready_remove_first, ready_remove): Count debug insns.
5872         (schedule_insn): Don't reject debug insns because of issue rate.
5873         (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
5874         (queue_to_ready): Skip and discount debug insns.
5875         (choose_ready): Let debug insns through.
5876         (schedule_block): Check boundary debug insns.  Discount debug
5877         insns, schedule them early.  Adjust whitespace.
5878         (set_priorities): Check for boundary debug insns.
5879         (add_jump_dependencies): Use dep_list_size.
5880         (prev_non_location_insn): New.
5881         (check_cfg): Use it.
5882         * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
5883         stmts.
5884         (remove_unused_ivs): Reset debug stmts.
5885         * modulo-sched.c (const_iteration_count): Skip debug insns.
5886         (res_MII): Discount debug insns.
5887         (loop_single_full_bb_p): Skip debug insns.
5888         (sms_schedule): Likewise.
5889         (sms_schedule_by_order): Likewise.
5890         (ps_has_conflicts): Likewise.
5891         * caller-save.c (refmarker_fn): New.
5892         (save_call_clobbered_regs): Replace regs with saved mem in
5893         debug insns.
5894         (mark_referenced_regs): Take pointer, mark and arg.  Adjust.
5895         Call refmarker_fn mark for hardregnos.
5896         (mark_reg_as_referenced): New.
5897         (replace_reg_with_saved_mem): New.
5898         * ipa-pure-const.c (check_stmt): Skip debug stmts.
5899         * cse.c (cse_insn): Canonicalize debug insns.  Skip them when
5900         searching back.
5901         (cse_extended_basic_block): Skip debug insns.
5902         (count_reg_usage): Likewise.
5903         (is_dead_reg): New, split out of...
5904         (set_live_p): ... here.
5905         (insn_live_p): Use it for debug insns.
5906         * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
5907         (execute_optimize_stdarg): Likewise.
5908         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
5909         * tree-ssa-propagate.c (substitute_and_fold): Don't regard
5910         changes in debug stmts as changes.
5911         * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
5912         (moveup_expr): Don't move across debug insns.  Don't move
5913         debug insn if it would create a bookkeeping block.
5914         (moveup_expr_cached): Don't use cache for debug insns that
5915         are heads of blocks.
5916         (compute_av_set_inside_bb): Skip debug insns.
5917         (sel_rank_for_schedule): Schedule debug insns first.  Remove
5918         dead code.
5919         (block_valid_for_bookkeeping_p); Support lax searches.
5920         (create_block_for_bookkeeping): Adjust block numbers when
5921         encountering debug-only blocks.
5922         (find_place_for_bookkeeping): Deal with debug-only blocks.
5923         (generate_bookkeeping_insn): Accept no place to insert.
5924         (remove_temp_moveop_nops): New argument full_tidying.
5925         (prepare_place_to_insert): Deal with debug insns.
5926         (advance_state_on_fence): Debug insns don't start cycles.
5927         (update_boundaries): Take fence as argument.  Deal with
5928         debug insns.
5929         (schedule_expr_on_boundary): No full_tidying on debug insns.
5930         (fill_insns): Deal with debug insns.
5931         (track_scheduled_insns_and_blocks): Don't count debug insns.
5932         (need_nop_to_preserve_insn_bb): New, split out of...
5933         (remove_insn_from_stream): ... this.
5934         (fur_orig_expr_not_found): Skip debug insns.
5935         * rtl.def (VALUE): Move up.
5936         (DEBUG_INSN): New.
5937         * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
5938         (nearest_common_dominator_of_uses): Take debug_stmts argument.
5939         Set it if debug stmts are found.
5940         (statement_sink_location): Skip debug stmts.  Propagate
5941         moving defs into debug stmts.
5942         * ifcvt.c (first_active_insn): Skip debug insns.
5943         (last_active_insns): Likewise.
5944         (cond_exec_process_insns): Likewise.
5945         (noce_process_if_block): Likewise.
5946         (check_cond_move_block): Likewise.
5947         (cond_move_convert_if_block): Likewise.
5948         (block_jumps_and_fallthru_p): Likewise.
5949         (dead_or_predicable): Likewise.
5950         * dwarf2out.c (debug_str_hash_forced): New.
5951         (find_AT_string): Add comment.
5952         (gen_label_for_indirect_string): New.
5953         (get_debug_string_label): New.
5954         (AT_string_form): Use it.
5955         (mem_loc_descriptor): Handle non-TLS symbols.  Handle MINUS , DIV,
5956         MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING.  Accept but
5957         discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
5958         several operations that cannot be represented with DWARF opcodes.
5959         (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND.  Require
5960         dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
5961         (dwarf2out_var_location): Take during-call mark into account.
5962         (output_indirect_string): Update comment.  Output if there are
5963         label and references.
5964         (prune_indirect_string): New.
5965         (prune_unused_types): Call it if debug_str_hash_forced.
5966         More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
5967         (dw_long_long_const): Remove.
5968         (struct dw_val_struct): Change val_long_long type to rtx.
5969         (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
5970         val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
5971         (output_die): Likewise.  Use HOST_BITS_PER_WIDE_INT size of each
5972         component instead of HOST_BITS_PER_LONG.
5973         (output_loc_operands): Likewise.  For const8* assert
5974         HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
5975         (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
5976         rather than HOST_BITS_PER_LONG is >= 64.
5977         (add_AT_long_long): Remove val_hi and val_lo arguments, add
5978         val_const_double.
5979         (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
5980         HOST_BITS_PER_LONG for dw_val_class_long_long.
5981         (add_const_value_attribute): Adjust add_AT_long_long caller.  Don't
5982         handle TLS SYMBOL_REFs.  If CONST wraps a constant, tail recurse.
5983         (dwarf_stack_op_name): Handle DW_OP_implicit_value and
5984         DW_OP_stack_value.
5985         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
5986         Handle DW_OP_implicit_value.
5987         (extract_int): Move prototype earlier.
5988         (mem_loc_descriptor): For SUBREG punt if inner
5989         mode size is wider than DWARF2_ADDR_SIZE.  Handle SIGN_EXTEND
5990         and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}.  Handle
5991         EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
5992         UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
5993         (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
5994         instead of Pmode size.
5995         (loc_descriptor): Add MODE argument.  Handle CONST_INT, CONST_DOUBLE,
5996         CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
5997         attempt to handle other expressions.  Don't handle TLS SYMBOL_REFs.
5998         (concat_loc_descriptor, concatn_loc_descriptor,
5999         loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
6000         (add_location_or_const_value_attribute): Likewise.  For single
6001         location loc_lists attempt to use add_const_value_attribute
6002         for constant decls.  Add DW_AT_const_value even if
6003         NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
6004         in its expression.
6005         * cfgbuild.c (inside_basic_block_p): Handle debug insns.
6006         (control_flow_insn_p): Likewise.
6007         * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
6008         (separate_decls_in_region_debug_bind): New.
6009         (separate_decls_in_region): Process debug bind stmts afterwards.
6010         * recog.c (verify_changes): Handle debug insns.
6011         (extract_insn): Likewise.
6012         (peephole2_optimize): Skip debug insns.
6013         * dse.c (scan_insn): Skip debug insns.
6014         * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
6015         Pass it on.
6016         (setup_id_for_insn): Handle debug insns.
6017         (maybe_tidy_empty_bb): Adjust whitespace.
6018         (tidy_control_flow): Skip debug insns.
6019         (sel_remove_insn): Adjust for debug insns.
6020         (sel_estimate_number_of_insns): Skip debug insns.
6021         (create_insn_rtx_from_pattern): Handle debug insns.
6022         (create_copy_of_insn_rtx): Likewise.
6023         * sel-sched-.h (sel_bb_end): Declare.
6024         (sel_bb_empty_or_nop_p): New.
6025         (get_all_loop_exits): Use it.
6026         (_eligible_successor_edge_p): Likewise.
6027         (return_nop_to_pool): Adjust.
6028         * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
6029         * ira-lives.c (process_bb_node_lives): Skip debug insns.
6030         * gimple-pretty-print.c (dump_gimple_debug): New.
6031         (dump_gimple_stmt): Use it.
6032         (dump_bb_header): Skip gimple debug stmts.
6033         * regmove.c (optimize_reg_copy_1): Discount debug insns.
6034         (fixup_match_2): Likewise.
6035         (regmove_backward_pass): Likewise.  Simplify combined
6036         replacement.  Handle debug insns.
6037         * function.c (instantiate_virtual_regs): Handle debug insns.
6038         * function.h (struct emit_status): Add x_cur_debug_insn_uid.
6039         * print-rtl.h: Include cselib.h.
6040         (print_rtx): Print VALUEs.  Split out and recurse for VAR_LOCATIONs.
6041         * df.h (df_inns_rescan_debug_internal): Declare.
6042         * gcse.c (alloc_hash_table): Estimate n_insns.
6043         (cprop_insn): Don't regard debug insns as changes.
6044         (bypass_conditional_jumps): Skip debug insns.
6045         (one_pre_gcse_pass): Adjust.
6046         (one_code_hoisting_pass): Likewise.
6047         (compute_ld_motion_mems): Skip debug insns.
6048         (one_cprop_pass): Adjust.
6049         * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
6050         (if_convertible_stmt_p): Handle debug stmts.
6051         * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
6052         * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
6053         * ira-build.c (create_bb_allocnos): Skip debug insns.
6054         * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
6055         (has_single_use): Likewise.
6056         (single_imm_use): Likewise.
6057         (num_imm_uses): Likewise.
6058         * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
6059         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
6060         (create_outofssa_var_map): Likewise.
6061         * lower-subreg.c (adjust_decomposed_uses): New.
6062         (resolve_debug): New.
6063         (decompose_multiword_subregs): Use it.
6064         * tree-dfa.c (find_referenced_vars): Skip debug stmts.
6065         * emit-rtl.c: Include params.h.
6066         (cur_debug_insn_uid): Define.
6067         (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
6068         (copy_rtx_if_shared_1): Handle debug insns.
6069         (reset_used_flags): Likewise.
6070         (set_used_flags): LIkewise.
6071         (get_max_insn_count): New.
6072         (next_nondebug_insn): New.
6073         (prev_nondebug_insn): New.
6074         (make_debug_insn_raw): New.
6075         (emit_insn_before_noloc): Handle debug insns.
6076         (emit_jump_insn_before_noloc): Likewise.
6077         (emit_call_insn_before_noloc): Likewise.
6078         (emit_debug_insn_before_noloc): New.
6079         (emit_insn_after_noloc): Handle debug insns.
6080         (emit_jump_insn_after_noloc): Likewise.
6081         (emit_call_insn_after_noloc): Likewise.
6082         (emit_debug_insn_after_noloc): Likewise.
6083         (emit_insn_after): Take loc from earlier non-debug insn.
6084         (emit_jump_insn_after): Likewise.
6085         (emit_call_insn_after): Likewise.
6086         (emit_debug_insn_after_setloc): New.
6087         (emit_debug_insn_after): New.
6088         (emit_insn_before): Take loc from later non-debug insn.
6089         (emit_jump_insn_before): Likewise.
6090         (emit_call_insn_before): Likewise.
6091         (emit_debug_insn_before_setloc): New.
6092         (emit_debug_insn_before): New.
6093         (emit_insn): Handle debug insns.
6094         (emit_debug_insn): New.
6095         (emit_jump_insn): Handle debug insns.
6096         (emit_call_insn): Likewise.
6097         (emit): Likewise.
6098         (init_emit): Take min-nondebug-insn-uid into account.
6099         Initialize cur_debug_insn_uid.
6100         (emit_copy_of_insn_after): Handle debug insns.
6101         * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
6102         location of single rhs in place.
6103         (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
6104         (floor_sdiv_adjust): New.
6105         (cell_sdiv_adjust): New.
6106         (cell_udiv_adjust): New.
6107         (round_sdiv_adjust): New.
6108         (round_udiv_adjust): New.
6109         (wrap_constant): Moved from cselib.
6110         (unwrap_constant): New.
6111         (expand_debug_expr): New.
6112         (expand_debug_locations): New.
6113         (expand_gimple_basic_block): Drop hiding redeclaration.  Expand
6114         debug bind stmts.
6115         (gimple_expand_cfg): Expand debug locations.
6116         * cselib.c: Include tree-pass.h.
6117         (struct expand_value_data): New.
6118         (cselib_record_sets_hook): New.
6119         (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
6120         (cselib_clear_table): Move, and implemnet in terms of...
6121         (cselib_reset_table_with_next_value): ... this.
6122         (cselib_get_next_unknown_value): New.
6123         (discard_useless_locs): Don't discard preserved values.
6124         (cselib_preserve_value): New.
6125         (cselib_preserved_value_p): New.
6126         (cselib_preserve_definitely): New.
6127         (cselib_clear_preserve): New.
6128         (cselib_preserve_only_values): New.
6129         (new_cselib_val): Take rtx argument.  Dump it in details.
6130         (cselib_lookup_mem): Adjust.
6131         (expand_loc): Take regs_active in struct.  Adjust.  Silence
6132         dumps unless details are requested.
6133         (cselib_expand_value_rtx_cb): New.
6134         (cselib_expand_value_rtx): Rename and reimplment in terms of...
6135         (cselib_expand_value_rtx_1): ... this.  Adjust.  Silence dumps
6136         without details.  Copy more subregs.  Try to resolve values
6137         using a callback.  Wrap constants.
6138         (cselib_subst_to_values): Adjust.
6139         (cselib_log_lookup): New.
6140         (cselib_lookup): Call it.
6141         (cselib_invalidate_regno): Don't count preserved values as useless.
6142         (cselib_invalidate_mem): Likewise.
6143         (cselib_record_set): Likewise.
6144         (struct set): Renamed to cselib_set, moved to cselib.h.
6145         (cselib_record_sets): Adjust.  Call hook.
6146         (cselib_process_insn): Reset table when it would be cleared.
6147         (dump_cselib_val): New.
6148         (dump_cselib_table): New.
6149         * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
6150         (remove_forwarder_block): Support moving debug stmts.
6151         * cselib.h (cselib_record_sets_hook): Declare.
6152         (cselib_expand_callback): New type.
6153         (cselib_expand_value_rtx_cb): Declare.
6154         (cselib_reset_table_with_next_value): Declare.
6155         (cselib_get_next_unknown_value): Declare.
6156         (cselib_preserve_value): Declare.
6157         (cselib_preserved_value_p): Declare.
6158         (cselib_preserve_only_values): Declare.
6159         (dump_cselib_table): Declare.
6160         * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
6161         (try_crossjump_to_edge): Likewise.
6162         (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
6163         dominated blocks when debug stmts are present.
6164         * simplify-rtx.c (delegitimize_mem_from_attrs): New.
6165         * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
6166         (set_var_live_on_entry): Likewise.
6167         * loop-invariant.c (find_invariants_bb): Skip debug insns.
6168         * cfglayout.c (curr_location, last_location): Make static.
6169         (set_curr_insn_source_location): Don't avoid bouncing.
6170         (get_curr_insn_source_location): New.
6171         (get_curr_insn_block): New.
6172         (duplicate_insn_chain): Handle debug insns.
6173         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
6174         into debug stmts.
6175         * common.opt (fcompare-debug): Move to sort order.
6176         (fdump-unnumbered-links): Likewise.
6177         (fvar-tracking-assignments): New.
6178         (fvar-tracking-assignments-toggle): New.
6179         * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
6180         because of debug stmts.
6181         (mark_stmt_if_obviously_necessary): Mark debug stmts.
6182         (eliminate_unnecessary_stmts): Walk dominated blocks before
6183         dominators.
6184         * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
6185         * ira.c (memref_used_between_p): Skip debug insns.
6186         (update_equiv_regs): Likewise.
6187         * sched-deps.c (sd_lists_size): Accept empty list.
6188         (sd_init_insn): Mark debug insns.
6189         (sd_finish_insn): Unmark them.
6190         (sd_add_dep): Reject non-debug deps on debug insns.
6191         (fixup_sched_groups): Give debug insns group treatment.
6192         Skip debug insns.
6193         (sched_analyze_reg): Don't mark debug insns for sched before call.
6194         (sched_analyze_2): Handle debug insns.
6195         (sched_analyze_insn): Compute next non-debug insn.  Handle debug
6196         insns.
6197         (deps_analyze_insn): Handle debug insns.
6198         (deps_start_bb): Skip debug insns.
6199         (init_deps): Initialize last_debug_insn.
6200         * tree-ssa.c (target_for_debug_bind): New.
6201         (find_released_ssa_name): New.
6202         (propagate_var_def_into_debug_stmts): New.
6203         (propagate_defs_into_debug_stmts): New.
6204         (verify_ssa): Skip debug bind stmts without values.
6205         (warn_uninialized_vars): Skip debug stmts.
6206         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
6207         * rtl.c (rtx_equal_p_cb): Handle VALUEs.
6208         (rtx_equal_p): Likewise.
6209         * ira-costs.c (scan_one_insn): Skip debug insns.
6210         (process_bb_node_for_hard_reg_moves): Likewise.
6211         * rtl.h (DEBUG_INSN_P): New.
6212         (NONDEBUG_INSN_P): New.
6213         (MAY_HAVE_DEBUG_INSNS): New.
6214         (INSN_P): Accept debug insns.
6215         (RTX_FRAME_RELATED_P): Likewise.
6216         (INSN_DELETED_P): Likewise
6217         (PAT_VAR_LOCATION_DECL): New.
6218         (PAT_VAR_LOCATION_LOC): New.
6219         (PAT_VAR_OCATION_STATUS): New.
6220         (NOTE_VAR_LOCATION_DECL): Reimplement.
6221         (NOTE_VAR_LOCATION_LOC): Likewise.
6222         (NOTE_VAR_LOCATION_STATUS): Likewise.
6223         (INSN_VAR_LOCATION): New.
6224         (INSN_VAR_LOCATION_DECL): New.
6225         (INSN_VAR_LOCATION_LOC): New.
6226         (INSN_VAR_LOCATION_STATUS): New.
6227         (gen_rtx_UNKNOWN_VAR_LOC): New.
6228         (VAR_LOC_UNKNOWN_P): New.
6229         (NOTE_DURING_CALL_P): New.
6230         (SCHED_GROUP_P): Accept debug insns.
6231         (emit_debug_insn_before): Declare.
6232         (emit_debug_insn_before_noloc): Declare.
6233         (emit_debug_insn_beore_setloc): Declare.
6234         (emit_debug_insn_after): Declare.
6235         (emit_debug_insn_after_noloc): Declare.
6236         (emit_debug_insn_after_setloc): Declare.
6237         (emit_debug_insn): Declare.
6238         (make_debug_insn_raw): Declare.
6239         (prev_nondebug_insn): Declare.
6240         (next_nondebug_insn): Declare.
6241         (delegitimize_mem_from_attrs): Declare.
6242         (get_max_insn_count): Declare.
6243         (wrap_constant): Declare.
6244         (unwrap_constant): Declare.
6245         (get_curr_insn_source_location): Declare.
6246         (get_curr_insn_block): Declare.
6247         * tree-inline.c (insert_debug_decl_map): New.
6248         (processing_debug_stmt): New.
6249         (remap_decl): Don't create new mappings in debug stmts.
6250         (remap_gimple_op_r): Don't add references in debug stmts.
6251         (copy_tree_body_r): Likewise.
6252         (remap_gimple_stmt): Handle debug bind stmts.
6253         (copy_bb): Skip debug stmts.
6254         (copy_edges_for_bb): Likewise.
6255         (copy_debug_stmt): New.
6256         (copy_debug_stmts): New.
6257         (copy_body): Copy debug stmts at the end.
6258         (insert_init_debug_bind): New.
6259         (insert_init_stmt): Take id.  Skip and emit debug stmts.
6260         (setup_one_parameter): Remap variable earlier, register debug mapping.
6261         (estimate_num_insns): Skip debug stmts.
6262         (expand_call_inline): Preserve debug_map.
6263         (optimize_inline_calls): Check for no debug_stmts left-overs.
6264         (unsave_expr_now): Preserve debug_map.
6265         (copy_gimple_seq_and_replace_locals): Likewise.
6266         (tree_function_versioning): Check for no debug_stmts left-overs.
6267         Init and destroy debug_map as needed.  Split edges unconditionally.
6268         (build_duplicate_type): Init and destroy debug_map as needed.
6269         * tree-inline.h: Include gimple.h instead of pointer-set.h.
6270         (struct copy_body_data): Add debug_stmts and debug_map.
6271         * sched-int.h (struct ready_list): Add n_debug.
6272         (struct deps): Add last_debug_insn.
6273         (DEBUG_INSN_SCHED_P): New.
6274         (BOUNDARY_DEBUG_INSN_P): New.
6275         (SCHEDULE_DEBUG_INSN_P): New.
6276         (sd_iterator_cond): Accept empty list.
6277         * combine.c (create_log_links): Skip debug insns.
6278         (combine_instructions): Likewise.
6279         (cleanup_auto_inc_dec): New.  From Jakub Jelinek: Make sure the
6280         return value is always unshared.
6281         (struct rtx_subst_pair): New.
6282         (auto_adjust_pair): New.
6283         (propagate_for_debug_subst): New.
6284         (propagate_for_debug): New.
6285         (try_combine): Skip debug insns.  Propagate removed defs into
6286         debug insns.
6287         (next_nonnote_nondebug_insn): New.
6288         (distribute_notes): Use it.  Skip debug insns.
6289         (distribute_links): Skip debug insns.
6290         * tree-outof-ssa.c (set_location_for_edge): Likewise.
6291         * resource.c (mark_target_live_regs): Likewise.
6292         * var-tracking.c: Include cselib.h and target.h.
6293         (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
6294         MO_VAL_SET.
6295         (micro_operation_type_name): New.
6296         (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
6297         (struct micro_operation_def): Update comments.
6298         (decl_or_value): New type.  Use instead of decls.
6299         (struct emit_note_data_def): Add vars.
6300         (struct attrs_def): Use decl_or_value.
6301         (struct variable_tracking_info_def): Add permp, flooded.
6302         (struct location_chain_def): Update comment.
6303         (struct variable_part_def): Use decl_or_value.
6304         (struct variable_def): Make var_part a variable length array.
6305         (valvar_pool): New.
6306         (scratch_regs): New.
6307         (cselib_hook_called): New.
6308         (dv_is_decl_p): New.
6309         (dv_is_value_p): New.
6310         (dv_as_decl): New.
6311         (dv_as_value): New.
6312         (dv_as_opaque): New.
6313         (dv_onepart_p): New.
6314         (dv_pool): New.
6315         (IS_DECL_CODE): New.
6316         (check_value_is_not_decl): New.
6317         (dv_from_decl): New.
6318         (dv_from_value): New.
6319         (dv_htab_hash): New.
6320         (variable_htab_hash): Use it.
6321         (variable_htab_eq): Support values.
6322         (variable_htab_free): Free from the right pool.
6323         (attrs_list_member, attrs_list_insert): Use decl_or_value.
6324         (attrs_list_union): Adjust.
6325         (attrs_list_mpdv_union): New.
6326         (tie_break_pointers): New.
6327         (canon_value_cmp): New.
6328         (unshare_variable): Return possibly-modified slot.
6329         (vars_copy_1): Adjust.
6330         (var_reg_decl_set): Adjust.  Split out of...
6331         (var_reg_set): ... this.
6332         (get_init_value): Adjust.
6333         (var_reg_delete_and_set): Adjust.
6334         (var_reg_delete): Adjust.
6335         (var_regno_delete): Adjust.
6336         (var_mem_decl_set): Split out of...
6337         (var_mem_set): ... this.
6338         (var_mem_delete_and_set): Adjust.
6339         (var_mem_delete): Adjust.
6340         (val_store): New.
6341         (val_reset): New.
6342         (val_resolve): New.
6343         (variable_union): Adjust.  Speed up merge of 1-part vars.
6344         (variable_canonicalize): Use unshared slot.
6345         (VALUED_RECURSED_INTO): New.
6346         (find_loc_in_1pdv): New.
6347         (struct dfset_merge): New.
6348         (insert_into_intersection): New.
6349         (intersect_loc_chains): New.
6350         (loc_cmp): New.
6351         (canonicalize_loc_order_check): New.
6352         (canonicalize_values_mark): New.
6353         (canonicalize_values_star): New.
6354         (variable_merge_over_cur): New.
6355         (variable_merge_over_src): New.
6356         (dataflow_set_merge): New.
6357         (dataflow_set_equiv_regs): New.
6358         (remove_duplicate_values): New.
6359         (struct dfset_post_merge): New.
6360         (variable_post_merge_new_vals): New.
6361         (variable_post_merge_perm_vals): New.
6362         (dataflow_post_merge_adjust): New.
6363         (find_mem_expr_in_1pdv): New.
6364         (dataflow_set_preserve_mem_locs): New.
6365         (dataflow_set_remove_mem_locs): New.
6366         (dataflow_set_clear_at_call): New.
6367         (onepart_variable_different_p): New.
6368         (variable_different_p): Use it.
6369         (dataflow_set_different_1): Adjust.  Make detailed dump more verbose.
6370         (track_expr_p): Add need_rtl parameter.  Don't generate rtl
6371         if not needed.
6372         (track_loc_p): Pass it true.
6373         (struct count_use_info): New.
6374         (find_use_val): New.
6375         (replace_expr_with_values): New.
6376         (log_op_type): New.
6377         (use_type): New, partially split out of...
6378         (count_uses): ... this.  Count new micro-ops.
6379         (count_uses_1): Adjust.
6380         (count_stores): Adjust.
6381         (count_with_sets): New.
6382         (VAL_NEEDS_RESOLUTION): New.
6383         (VAL_HOLDS_TRACK_EXPR): New.
6384         (VAL_EXPR_IS_COPIED): New.
6385         (VAL_EXPR_IS_CLOBBERED): New.
6386         (add_uses): Adjust.  Generate new micro-ops.
6387         (add_uses_1): Adjust.
6388         (add_stores): Generate new micro-ops.
6389         (add_with_sets): New.
6390         (find_src_status): Adjust.
6391         (find_src_set_src): Adjust.
6392         (compute_bb_dataflow): Use dataflow_set_clear_at_call.
6393         Handle new micro-ops.  Canonicalize value equivalances.
6394         (vt_find_locations): Compute total size of hash tables for
6395         dumping.  Perform merge for var-tracking-assignments.  Don't
6396         disregard single-block loops.
6397         (dump_attrs_list): Handle decl_or_value.
6398         (dump_variable): Take variable.  Deal with decl_or_value.
6399         (dump_variable_slot): New.
6400         (dump_vars): Use it.
6401         (dump_dataflow_sets): Adjust.
6402         (set_slot_part): New, extended to support one-part variables
6403         after splitting out of...
6404         (set_variable_part): ... this.
6405         (clobber_slot_part): New, split out of...
6406         (clobber_variable_part): ... this.
6407         (delete_slot_part): New, split out of...
6408         (delete_variable_part): .... this.
6409         (check_wrap_constant): New.
6410         (vt_expand_loc_callback): New.
6411         (vt_expand_loc): New.
6412         (emit_note_insn_var_location): Adjust.  Handle values.  Handle
6413         EMIT_NOTE_AFTER_CALL_INSN.
6414         (emit_notes_for_differences_1): Adjust.  Handle values.
6415         (emit_notes_for_differences_2): Likewise.
6416         (emit_notes_for_differences): Adjust.
6417         (emit_notes_in_bb): Take pointer to set.  Emit AFTER_CALL_INSN notes.
6418         Adjust.  Handle new micro-ops.
6419         (vt_add_function_parameters): Adjust.  Create and bind values.
6420         (vt_initialize): Adjust.  Initialize scratch_regs and
6421         valvar_pool, flooded and perm..  Initialize and use cselib.  Log
6422         operations.  Move some code to count_with_sets and add_with_sets.
6423         (delete_debug_insns): New.
6424         (vt_debug_insns_local): New.
6425         (vt_finalize): Release permp, valvar_pool, scratch_regs.  Finish
6426         cselib.
6427         (var_tracking_main): If var-tracking-assignments is enabled
6428         but var-tracking isn't, delete debug insns and leave.  Likewise
6429         if we exceed limits or fail the stack adjustments tests, and
6430         after all var-tracking processing.
6431         More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
6432         (dataflow_set): Add traversed_vars.
6433         (value_chain, const_value_chain): New typedefs.
6434         (value_chain_pool, value_chains): New variables.
6435         (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
6436         add_value_chains, add_cselib_value_chains, remove_value_chain,
6437         remove_value_chains, remove_cselib_value_chains): New functions.
6438         (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
6439         shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
6440         static inlines.
6441         (shared_hash_find_slot_unshare, shared_hash_find_slot,
6442         shared_hash_find_slot_noinsert, shared_hash_find): Update.
6443         (dst_can_be_shared): New variable.
6444         (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
6445         Clear dst_can_be_shared.  If set->traversed_vars is non-NULL and
6446         different from set->vars, look up slot again instead of using the
6447         passed in slot.
6448         (dataflow_set_init): Initialize traversed_vars.
6449         (variable_union): Use shared_hash_*.  Use initially NO_INSERT
6450         lookup if set->vars is shared.  Don't keep slot cleared before
6451         calling unshare_variable.  Unshare set->vars if needed.  Adjust
6452         unshare_variable callers.  Clear dst_can_be_shared if needed.
6453         Even ->refcount == 1 vars must be unshared if set->vars is shared
6454         and var needs to be modified.
6455         (dataflow_set_union): Set traversed_vars during canonicalization.
6456         (VALUE_CHANGED, DECL_CHANGED): Define.
6457         (set_dv_changed, dv_changed_p): New static inlines.
6458         (track_expr_p): Clear DECL_CHANGED.
6459         (dump_dataflow_sets): Set it.
6460         (variable_was_changed): Call set_dv_changed.
6461         (emit_note_insn_var_location): Likewise.
6462         (changed_variables_stack): New variable.
6463         (check_changed_vars_1, check_changed_vars_2): New functions.
6464         (emit_notes_for_changes): Do nothing if changed_variables is
6465         empty.  Traverse changed_variables with check_changed_vars_1,
6466         call check_changed_vars_2 on each changed_variables_stack entry.
6467         (emit_notes_in_bb): Add SET argument.  Just clear it at the
6468         beginning, use it instead of local &set, don't destroy it at the end.
6469         (vt_emit_notes): Call dataflow_set_clear early on all
6470         VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
6471         computed set, dataflow_set_clear also VTI(bb)->in when we are
6472         done with the basic block.  Initialize changed_variables_stack,
6473         free it afterwards.  If ENABLE_CHECKING verify that after noting
6474         differences to an empty set value_chains hash table is empty.
6475         (vt_initialize): Initialize value_chains and value_chain_pool.
6476         (vt_finalize): Delete value_chains htab, free value_chain_pool.
6477         (variable_tracking_main): Call dump_dataflow_sets before calling
6478         vt_emit_notes, not after it.
6479         * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
6480         (propagate_var_def_into_debug_stmts): Declare.
6481         * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
6482         (df_set_note): Reject debug insns.
6483         (df_whole_mw_reg_dead_p): Take added_notes_p argument.  Don't
6484         add notes to debug insns.
6485         (df_note_bb_compute): Adjust.  Likewise.
6486         (df_simulate_uses): Skip debug insns.
6487         (df_simulate_initialize_backwards): Likewise.
6488         * reg-stack.c (subst_stack_regs_in_debug_insn): New.
6489         (subst_stack_regs_pat): Reject debug insns.
6490         (convert_regs_1): Handle debug insns.
6491         * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
6492         (print-rtl.o): Depend on cselib.h.
6493         (cselib.o): Depend on TREE_PASS_H.
6494         (var-tracking.o): Depend on cselib.h and TARGET_H.
6495         * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
6496         (init_ready_list): Skip boundary debug insns.
6497         (add_branch_dependences): Skip debug insns.
6498         (free_block_dependencies): Check for blocks with only debug insns.
6499         (compute_priorities): Likewise.
6500         * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
6501         (gimple_build_with_ops_stat): Take subcode as unsigned.  Adjust
6502         all callers.
6503         (gimple_build_debug_bind_stat): New.
6504         (empty_body_p): Skip debug stmts.
6505         (gimple_has_side_effects): Likewise.
6506         (gimple_rhs_has_side_effects): Likewise.
6507         * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
6508         (gimple_build_debug_bind_stat): Declare.
6509         (gimple_build_debug_bind): Define.
6510         (is_gimple_debug): New.
6511         (gimple_debug_bind_p): New.
6512         (gimple_debug_bind_get_var): New.
6513         (gimple_debug_bind_get_value): New.
6514         (gimple_debug_bind_get_value_ptr): New.
6515         (gimple_debug_bind_set_var): New.
6516         (gimple_debug_bind_set_value): New.
6517         (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
6518         (gimple_debug_bind_reset_value): New.
6519         (gimple_debug_bind_has_value_p): New.
6520         (gsi_next_nondebug): New.
6521         (gsi_prev_nondebug): New.
6522         (gsi_start_nondebug_bb): New.
6523         (gsi_last_nondebug_bb): New.
6524         * sched-vis.c (print_pattern): Handle VAR_LOCATION.
6525         (print_insn): Handle DEBUG_INSN.
6526         * tree-cfg.c (remove_bb): Walk stmts backwards.  Let loc
6527         of first insn prevail.
6528         (first_stmt): Skip debug stmts.
6529         (first_non_label_stmt): Likewise.
6530         (last_stmt): Likewise.
6531         (has_zero_uses_1): New.
6532         (single_imm_use_1): New.
6533         (verify_gimple_debug): New.
6534         (verify_types_in_gimple_stmt): Handle debug stmts.
6535         (verify_stmt): Likewise.
6536         (debug_loop_num): Skip debug stmts.
6537         (remove_edge_and_dominated_blocks): Remove dominators last.
6538         * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
6539         (linearize_expr): Likewise.
6540         * config/i386/i386.c (ix86_delegitimize_address): Call
6541         default implementation.
6542         * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
6543         (group_barrier_needed): Skip debug insns.
6544         (emit_insn_group_barriers): Likewise.
6545         (emit_all_insn_group_barriers): Likewise.
6546         (ia64_variable_issue): Handle debug insns.
6547         (ia64_dfa_new_cycle): Likewise.
6548         (final_emit_insn_group_barriers): Skip debug insns.
6549         (ia64_dwarf2out_def_steady_cfa): Take frame argument.  Don't
6550         def cfa without frame.
6551         (process_set): Likewise.
6552         (process_for_unwind_directive): Pass frame on.
6553         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
6554         (rs6000_delegitimize_address): New.
6555         (rs6000_debug_adjust_cost): Handle debug insns.
6556         (is_microcoded_insn): Likewise.
6557         (is_cracked_insn): Likewise.
6558         (is_nonpipeline_insn): Likewise.
6559         (insn_must_be_first_in_group): Likewise.
6560         (insn_must_be_last_in_group): Likewise.
6561         (force_new_group): Likewise.
6562         * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
6563         contains only debug insns.
6564         (rtl_merge_blocks): Skip debug insns.
6565         (purge_dead_edges): Likewise.
6566         (rtl_block_ends_with_call_p): Skip debug insns.
6567         * dce.c (deletable_insn_p): Handle VAR_LOCATION.
6568         (mark_reg_dependencies): Skip debug insns.
6569         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
6570         * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
6571         * tree-ssa-threadedge.c
6572         (record_temporary_equivalences_from_stmts): Skip debug stmts.
6573         * regcprop.c (replace_oldest_value_addr): Skip debug insns.
6574         (replace_oldest_value_mem): Use ALL_REGS for debug insns.
6575         (copyprop_hardreg_forward_1): Handle debug insns.
6576         * reload1.c (reload): Skip debug insns.  Replace unassigned
6577         pseudos in debug insns with their equivalences.
6578         (eliminate_regs_in_insn): Skip debug insns.
6579         (emit_input_reload_insns): Skip debug insns at first, adjust
6580         them later.
6581         * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
6582         (get_indirect_ref_operands): Pass opf_no_vops on.
6583         (get_expr_operands): Likewise.  Skip debug stmts.
6584         (parse_ssa_operands): Scan debug insns with opf_no_vops.
6585
6586 2009-09-01  Richard Henderson  <rth@redhat.com>
6587
6588         * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
6589         stmt_ends_pp_p statements at least once.
6590         * tree-vrp.c (vrp_initialize): Likewise.
6591         (vrp_visit_stmt): Be prepared for non-interesting stmts.
6592
6593 2009-09-01  Dodji Seketeli  <dodji@redhat.com>
6594
6595         PR bootstrap/41205
6596         Fix AIX bootstrap after PR debug/30161
6597         * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
6598         that is a GNU extension.
6599         (tmpl_value_parm_die_table): Move the definition of this global
6600         outside #ifdef DWARF2_DEBUGGING_INFO region.
6601
6602 2009-09-01  Richard Guenther  <rguenther@suse.de>
6603
6604         * tree.c (tree_expr_size): New function.
6605         * tree.h (tree_expr_size): Declare.
6606         * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
6607         * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
6608         * langhooks.c (lhd_expr_size): Remove.
6609         * langhooks.h (struct lang_hooks): Remove expr_size.
6610         * explow.c (expr_size): Use tree_expr_size.
6611         (int_expr_size): Likewise.
6612         * langhooks-def.h (lhd_expr_size): Remove.
6613         (LANG_HOOKS_EXPR_SIZE): Likewise.
6614         (LANG_HOOKS_INITIALIZER): Adjust.
6615
6616 2009-09-01  Richard Guenther  <rguenther@suse.de>
6617
6618         * tree-flow.h (mark_addressable): Move declaration ...
6619         * tree.h (mark_addressable): ... here.
6620         * stmt.c (expand_asm_operands): Use mark_addressable, not
6621         lang_hooks.mark_addressable.
6622         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
6623         LANG_HOOKS_MARK_ADDRESSABLE.
6624         * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
6625         * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
6626
6627 2009-08-31  Chris Demetriou  <cgd@google.com>
6628
6629         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
6630         vectorize if not TARGET_SSE2.
6631
6632 2009-08-31  DJ Delorie  <dj@redhat.com>
6633
6634         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
6635         registers if no coprocessor is enabled.
6636
6637 2009-08-31  Dodji Seketeli  <dodji@redhat.com>
6638
6639         PR debug/30161
6640         * cgraph.h (cgraph_get_node): Declare ...
6641         * cgraph.c (cgraph_get_node): ... new function.
6642         * dwarf2out.c (gen_generic_params_dies,
6643         generic_parameter_die, tree_add_const_value_attribute_for_decl,
6644         make_ith_pack_parameter_name,
6645         append_entry_to_tmpl_value_parm_die_table,
6646         gen_remaining_tmpl_value_param_die_attribute): New functions.
6647         (gen_subprogram_die): Generate debug info for template parameters
6648         if debug info level is higher than DINFO_LEVEL_TERSE.
6649         Use tree_add_const_value_attribute_for_decl instead of
6650         tree_add_const_value_attribute.
6651         (gen_const_die): Use tree_add_const_value_attribute_for_decl
6652         instead of tree_add_const_value_attribute.
6653         (gen_struct_or_union_type_die): Generate debug
6654         info for template parameters if debug info level is higher than
6655         DINFO_LEVEL_TERSE.
6656         (tree_add_const_value_attribute): Handle integral and pointer
6657         constants. Update comment.
6658         (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
6659         (dwarf_attr_name): Support DW_AT_GNU_template_name.
6660         (reference_to_unused): Fix thinko. Remove redundant predicates from
6661         tests.
6662         (tree_add_const_value_attribute): Make this work for constant
6663         expressions only.
6664         tree_add_const_value_attribute_for_decl is to be used for variable
6665         DECLs now.
6666         (add_location_or_const_value_attribute): Use
6667         tree_add_const_value_attribute_for_decl now.
6668         (dwarf2out_finish): Emit the DW_AT_const_value attribute of
6669         DW_TAG_template_value_param DIEs after function DIEs have been
6670         emitted.
6671         * langhooks.h (lang_hooks_for_types): Add
6672         get_argument_pack_elems.
6673         (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
6674         (lang_hooks): Added get_innermost_generic_parms,
6675         get_innermost_generic_args.
6676         * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
6677         LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
6678         LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
6679         LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
6680
6681 2009-08-31  DJ Delorie  <dj@redhat.com>
6682
6683         * config/mep/mep.c (machine_function): Add frame_locked flag.  Set
6684         it once we start generating the prologue or epilogue.
6685         (mep_call_saves_register): If the frame is locked, re-use
6686         cached values.
6687         (mep_assign_save_slots): New, broken out from mep_expand_prologue.
6688         (mep_expand_prologue): Call it.
6689         (mep_expand_epilogue): Likewise.
6690         (mep_start_function): Use the same logic as mep_expand_prologue.
6691         (mep_pass_by_reference): Make logic more readable.
6692         (mep_return_in_memory): Zero-sized objects are passed in memory.
6693         (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
6694
6695 2009-08-31  Richard Guenther  <rguenther@suse.de>
6696
6697         * builtins.c (fold_builtin_memory_op): Use the alias oracle
6698         to query if the memory regions for memmove overlap.
6699         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
6700         asserts on pointers, instead deal with odd trees.
6701         (ptr_derefs_may_alias_p): Likewise.
6702         (refs_may_alias_p_1): Constructor bases also never alias.
6703
6704 2009-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
6705
6706         * doc/install.texi (Final install): Adjust reference on where to
6707         order printed manuals.
6708
6709 2009-08-30  Olivier Hainque  <hainque@adacore.com>
6710
6711         * dwarf2out.c (switch_to_frame_table_section): Move
6712         definition prior to first use.
6713
6714 2009-08-30  Richard Guenther  <rguenther@suse.de>
6715
6716         PR tree-optimization/41186
6717         * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
6718         (ao_ref_init_from_ptr_and_size): New function.
6719         (ref_maybe_used_by_call_p_1): Be more precise tracking
6720         used ranges for builtin functions.
6721         (ref_maybe_used_by_call_p): Adjust.
6722         (call_may_clobber_ref_p_1): Be more precise tracking clobbered
6723         ranges for builtin functions.
6724         * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
6725
6726 2009-08-30  Alan Modra  <amodra@bigpond.net.au>
6727
6728         PR target/41081
6729         * fwprop.c (get_reg_use_in): Delete.
6730         (free_load_extend): New function.
6731         (forward_propagate_subreg): Use it.
6732
6733 2009-08-29  Kaz Kojima  <kkojima@gcc.gnu.org>
6734
6735         * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
6736
6737 2009-08-29  Kai Tietz<kai.tietz@onevision.com>
6738
6739         PR/41184
6740         * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
6741         padding.
6742
6743 2009-08-29  Douglas B Rupp  <rupp@gnat.com>
6744
6745         * crtstuff.c (__do_global_dtors_aux): Use atexit if no
6746         fini or fini_array section.
6747
6748 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6749
6750         * graphite-dependences.c (graphite_legal_transform_bb): Call
6751         pbb_remove_duplicate_pdrs.
6752         * graphite-poly.c (can_collapse_pdr): Removed.
6753         (pdr_find_duplicate): Removed.
6754         (can_collapse_pdrs): New.
6755         (pbb_remove_duplicate_pdrs): New.
6756         (new_poly_dr): Do not look for duplicates.
6757         * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
6758         (PBB_PDR_DUPLICATES_REMOVED): New.
6759         (pbb_remove_duplicate_pdrs): Declared.
6760
6761 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6762
6763         * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
6764         the strides by multiplying by PDR_NB_REFS.
6765         * graphite-poly.c (can_collapse_pdr): New.
6766         (pdr_find_duplicate): New.
6767         (new_poly_dr): Call pdr_find_duplicate.  Collapse duplicate PDRs.
6768         Initialize PDR_NB_REFS.
6769         * graphite-poly.h (struct poly_dr): Add field nb_refs.
6770         (PDR_NB_REFS): New.
6771         (new_poly_dr): Number of subscripts is a graphite_dim_t.
6772
6773 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6774
6775         PR middle-end/40965
6776         * graphite-poly.c (apply_poly_transforms): Remove legality test before
6777         any transform.
6778
6779 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6780
6781         * graphite-dependences.c (pddr_original_scattering): Return NULL
6782         for read-read dependence relations.
6783         * graphite-poly.h (enum poly_dr_type): Fix comment.
6784         (pdr_read_p): New.
6785         (pdr_write_p): New.
6786         (pdr_may_write_p): New.
6787
6788 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6789
6790         * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
6791         (struct poly_dr): Same.
6792         (new_poly_dr): Same.
6793         * graphite-poly.c (new_poly_dr): Same.
6794         * graphite-dependences.c (dot_deps): Disable call to system.
6795
6796 2009-08-28  Cary Coutant  <ccoutant@google.com>
6797
6798         PR debug/41063
6799         * dwarf2out.c (gen_type_die_with_usage): Use proper context for
6800         struct/union/enum types local to a function.
6801
6802 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
6803             Sebastian Pop  <sebastian.pop@amd.com>
6804
6805         * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
6806         pbb_strip_mine_time_depth.  Changed the implementation so that
6807         transformation is expressed as a transformation on
6808         time (scatttering) dimensions.  Also, ensures that the 2d+1
6809         scheduling format is preserved.
6810         (pbb_strip_mine_profitable_p): Profitability is based on the
6811         iteration number of a given time (scattering) dimension,
6812         and not on a original loop depth dimension.
6813         (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
6814         (pbb_do_strip_mine): Call psct_dynamic_dim.
6815         * graphite-poly.c (pbb_number_of_iterations_at_time): New.
6816         * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
6817         (pbb_nb_dynamic_scattering_transform): New.
6818         (psct_dynamic_dim): New.
6819
6820 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
6821
6822         * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
6823         * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
6824         * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
6825         * graphite-interchange.c (build_linearized_memory_access): Same.
6826         (memory_stride_in_loop): Same.
6827
6828 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6829
6830         * graphite-dependences.c (pddr_original_scattering): New.
6831         (graphite_legal_transform_dr): Call pddr_original_scattering.
6832         (dot_deps_1): New.
6833         (dot_deps): New.
6834         * graphite-dependences.h (dot_deps): Declared.
6835         * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
6836         (print_pdr): Print PDR_ID.
6837         * graphite-poly.h (struct poly_dr): Add field id.
6838         (PDR_ID): New.
6839         (pbb_index): New.
6840         * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
6841
6842 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6843
6844         * graphite-dependences.c (graphite_carried_dependence_level_k): Do
6845         not delete the original dependence relation.
6846
6847 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6848
6849         * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
6850         (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
6851         (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
6852         (free_poly_ddr): New.
6853         (pddr_is_empty): New.
6854         (dependence_polyhedron_1): Now returns a poly_ddr_p.
6855         (dependence_polyhedron): Same.  Remove useless gcc_assert.
6856         Remove fprintfs.
6857         (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
6858         (graphite_carried_dependence_level_k): Call pddr_is_empty.
6859         * graphite-dependences.h (enum poly_dependence_kind): New.
6860         (poly_dr_pair): Renamed poly_ddr.  Added a field kind.
6861         (PDRP_SOURCE): Renamed PDDR_SOURCE.
6862         (PDRP_SINK): Renamed PDDR_SINK.
6863         (PDRP_DDP): Renamed PDDR_DDP.
6864         (PDDR_KIND): New.
6865         (free_poly_ddr): Declared.
6866         * graphite-poly.c (new_scop): Use the new hash function names.
6867         * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
6868         into original_pddrs.
6869         (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
6870
6871 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6872
6873         * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
6874         bounds with LT_EXPR to make niter analysis more precise on code
6875         generated by Graphite.
6876
6877 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6878
6879         * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
6880         (graphite_legal_transform_bb): Same.
6881         (poly_drs_may_alias_p): Same.
6882
6883 2009-08-28  Richard Guenther  <rguenther@suse.de>
6884
6885         * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
6886
6887 2009-08-28  Jan Beulich  <jbeulich@novell.com>
6888
6889         * config/i386/netware.c: Include langhooks.h.
6890         (i386_nlm_encode_section_info): Simplify.
6891         (netware_override_options): Delete.
6892         * config/i386/netware.h (netware_override_options): Delete
6893         declaration.
6894         (OVERRIDE_OPTIONS): Delete definition.
6895         (SUBTARGET_OVERRIDE_OPTIONS): Define.
6896         (ASM_COMMENT_START): Define.
6897         * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
6898
6899 2009-08-28  Jan Beulich  <jbeulich@novell.com>
6900
6901         * configure.ac: For in-tree ld, do a plain version check to
6902         determine whether comdat groups are supported.
6903         * configure: Regenerate.
6904
6905 2009-08-28  Olivier Hainque  <hainque@adacore.com>
6906
6907         * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
6908         always defined.  Reflect definition or absence of such for
6909         COLLECT_EXPORT_LIST.  Readability helper.
6910         (scanfilter): New enum, to help control what symbols
6911         are to be considered or ignored by scan_prog_file.
6912         (enum pass): Rename as "scanpass", moved together with scanfilter
6913         prior to scan_prog_file's prototype.
6914         (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
6915         Group prototype with the scanpass/scanfilter definitions, factorize
6916         head comments for the several implementations at the prototype.
6917         (main): Reorganize the first pass link control to let AIX
6918         drag only the needed frame tables in executables.  Prevent
6919         frame tables collection during the scan aimed at static ctors.
6920         Pre-link and scan for frame tables later to compensate.
6921         * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
6922         A C statement to issue assembly directives that create a reference
6923         to the given DWARF table identifier label from the current function
6924         section.
6925         * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
6926         to differentiate first time section entry.  Only emit a .data
6927         tables start identifier label the first time around.
6928         (switch_to_frame_table_section): New function.  Helper for
6929         output_call_frame_info to switch possibly BACK into the eh_frame
6930         or the debug_frame section depending on FOR_EH.
6931         (output_call_frame_info): Use helper to first enter the proper
6932         frame section.
6933         (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
6934         emit a link to the frame table start label from each function
6935         section.
6936         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
6937         New function.  Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
6938         * config/rs6000/rs6000-protos.h: Declare it.
6939         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
6940
6941 2009-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
6942
6943         * config/sh/sh.c (split_branches): Check the result of
6944         next_active_insn.
6945
6946 2009-08-27  Steve Ellcey  <sje@cup.hp.com>
6947
6948         * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
6949         using -pthread -fopenmp
6950
6951 2009-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
6952
6953         * doc/service.texi (service directory): Update URL.
6954
6955 2009-08-27  Uros Bizjak  <ubizjak@gmail.com>
6956
6957         PR rtl-optimization/40861
6958         * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
6959         extract word from a multi-word subreg for negative byte positions.
6960
6961 2009-08-27  Tristan Gingold  <gingold@adacore.com>
6962             Douglas B Rupp  <rupp@gnat.com>
6963
6964         * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
6965         (SECTION_VMS_OVERLAY): Define.
6966         (ia64_vms_common_object_attribute): Added.  Handle the "common_object"
6967         attribute.
6968         (ia64_vms_elf_asm_named_section): Added.  Generate .section pseudo-op
6969         for common_object.
6970         (ia64_vms_output_aligned_decl_common): Added.  Generate pseudo-op for
6971         common_object declarations.
6972         (ia64_section_type_flags): Set section flag for common_object.
6973         * config/ia64/ia64-protos.h
6974         (ia64_vms_output_aligned_decl_common): Declare.
6975         (ia64_vms_elf_asm_named_section): Declare.
6976
6977 2009-08-27  Michael Matz  <matz@suse.de>
6978
6979         * expr.c (expand_expr_real_2): New function taking exploded
6980         unary or binary expression, split out from ...
6981         (expand_expr_real_1): ... here.  Move over all unary/binary
6982         switch parts to above function, in particular these codes:
6983         PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
6984         MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
6985         ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
6986         FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
6987         FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
6988         BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
6989         BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
6990         LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
6991         NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
6992         UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
6993         WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
6994         VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
6995         VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
6996         VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
6997         VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
6998         VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
6999         VEC_PACK_FIX_TRUNC_EXPR.
7000         (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
7001         full expression.
7002
7003 2009-08-27  Richard Guenther  <rguenther@suse.de>
7004
7005         * gengtype.c (main): Handle uint64_t.
7006         * ipa-utils.c (get_base_var): Indent properly.
7007         * tree-ssa-live.c (debug_scope_block): New function.
7008         * tree-flow.h (debug_scope_block): Declare.
7009         * tree-ssa-copy.c (replace_exp_1): Add vertical space.
7010         * basic-block.h (enum profile_status): Rename to
7011         enum profile_status_d.
7012         (x_profile_status): Adjust type.
7013
7014 2009-08-27  Dodji Seketeli  <dodji@redhat.com>
7015
7016         PR debug/41170
7017         * dwarf2out.c (get_context_die): Declare this static function.
7018         (gen_type_die_with_usage): Make sure a DIE is a generated for
7019         the context of a typedef.
7020
7021 2009-08-26  Anatoly Sokolov  <aesok@post.ru>
7022
7023         * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
7024         switch.
7025
7026 2009-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
7027
7028         * config/mips/mips-protos.h (mips_output_sync): Declare.
7029         (mips_sync_loop_insns): Likewise.
7030         (mips_output_sync_loop): Replace first two parameters with an rtx.
7031         * config/mips/mips.c (mips_multi_member): New structure.
7032         (mips_multi_members): New variable.
7033         (mips_multi_start): New function.
7034         (mips_multi_add): Likewise.
7035         (mips_multi_add_insn): Likewise.
7036         (mips_multi_add_label): Likewise.
7037         (mips_multi_last_index): Likewise.
7038         (mips_multi_copy_insn): Likewise.
7039         (mips_multi_set_operand): Likewise.
7040         (mips_multi_write): Likewise.
7041         (mips_print_operand_punctuation): Remove '%|' and '%-'.
7042         (mips_init_print_operand_punct): Update accordingly.
7043         (mips_start_ll_sc_sync_block): New function.
7044         (mips_end_ll_sc_sync_block): Likewise.
7045         (mips_output_sync): Likewise.
7046         (mips_sync_insn1_template): Likewise.
7047         (mips_sync_insn2_template): Likewise.
7048         (mips_get_sync_operand): Likewise.
7049         (mips_process_sync_loop): Likewise.
7050         (mips_output_sync_loop): Use mips_process_sync_loop.
7051         (mips_sync_loop_insns): New function.
7052         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
7053         (MIPS_COMPARE_AND_SWAP_12): Likewise.
7054         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
7055         (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
7056         (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
7057         (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
7058         (MIPS_SYNC_OLD_OP_12): Likewise.
7059         (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
7060         (MIPS_SYNC_NEW_OP_12): Likewise.
7061         (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
7062         (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
7063         (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
7064         (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
7065         (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
7066         (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
7067         * config/mips/mips.md (sync_mem): New attribute.
7068         (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
7069         (sync_exclusive_mask, sync_required_oldval): Likewise.
7070         (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
7071         (sync_release_barrier): Likewise.
7072         (length): Handle sync loops.
7073         (sync): Use mips_output_sync.
7074         * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
7075         (sync_compare_and_swap<mode>): Set the new sync_* attributes
7076         and use mips_output_sync_loop.
7077         (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
7078         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
7079         (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
7080         (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
7081         (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
7082         (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
7083         (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
7084         (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
7085         (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
7086
7087 2009-08-26  Richard Guenther  <rguenther@suse.de>
7088
7089         PR middle-end/41163
7090         * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
7091         the types to not match.
7092         * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
7093         verification.
7094         * tree-ssa.c (useless_type_conversion_p): Conversions to
7095         pointers to unprototyped functions are useless.
7096
7097 2009-08-26  Richard Guenther  <rguenther@suse.de>
7098
7099         * tree-ssa-structalias.c (create_variable_info_for): Remove strange
7100         whole-program condition, prepare to be called for non-globals.
7101         (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
7102         params build a representative with known type and track its fields.
7103
7104 2009-08-26  Uros Bizjak  <ubizjak@gmail.com>
7105
7106         * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
7107         clearing by a taken branch.
7108         (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
7109         effectively after bbro pass.
7110         (sync_nand<mode>): Ditto.
7111         (sync_old_<fetchop_name><mode>): Ditto.
7112         (sync_old_nand<mode>): Ditto.
7113         (sync_new_<fetchop_name><mode>): Dito.
7114         (sync_new_nand<mode>): Ditto.
7115         (sync_compare_and_swap<mode>_1): Ditto.
7116         (*sync_compare_and_swap<mode>): Ditto.
7117         (sync_lock_test_and_set<mode>_1): Ditto.
7118         ("sync_lock_test_and_set<mode>): Ditto.
7119
7120 2009-08-25  Douglas B Rupp  <rupp@gnat.com>
7121
7122         * hwint.h (HOST_LONG_FORMAT): New macro
7123         * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
7124         Use HOST_PTR_PRINTF.
7125         * system.h (HOST_PTR_PRINTF): Resurrect old macro
7126         * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
7127         (HOST_PTR_PRINTF): Document.
7128
7129 2009-08-25 Jan Hubicka  <jh@suse.cz>
7130
7131         * config/i386/bmmintrin.h: Replace by #error.
7132
7133         Revert:
7134         Michael Meissner  <michael.meissner@amd.com>
7135         Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
7136         Tony Linthicum  <tony.linthicum@amd.com>
7137
7138         * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
7139         (TARGET_ROUND): New macro for the round/ptest instructions which
7140         are shared between SSE4.1 and SSE5.
7141         (OPTION_MASK_ISA_ROUND): Ditto.
7142         (OPTION_ISA_ROUND): Ditto.
7143         (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
7144         (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
7145
7146         * config/i386/i386.opt (-msse5): New switch for SSE5 support.
7147         (-mfused-madd): New switch to give users control over whether the
7148         compiler optimizes to use the multiply/add SSE5 instructions.
7149
7150         * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
7151         (ix86_handle_option): Turn off 3dnow if -msse5.
7152         (override_options): Add SSE5 support.
7153         (print_operand): %Y prints comparison codes for SSE5 com/pcom
7154         instructions.
7155         (ix86_expand_sse_movcc): Add SSE5 support.
7156         (ix86_expand_sse5_unpack): New function to use pperm to unpack a
7157         vector type to the next largest size.
7158         (ix86_expand_sse5_pack): New function to use pperm to pack a
7159         vector type to the next smallest size.
7160         (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
7161         (IX86_BUILTIN_FMADDSD): Ditto.
7162         (IX86_BUILTIN_FMADDPS): Ditto.
7163         (IX86_BUILTIN_FMADDPD): Ditto.
7164         (IX86_BUILTIN_FMSUBSS): Ditto.
7165         (IX86_BUILTIN_FMSUBSD): Ditto.
7166         (IX86_BUILTIN_FMSUBPS): Ditto.
7167         (IX86_BUILTIN_FMSUBPD): Ditto.
7168         (IX86_BUILTIN_FNMADDSS): Ditto.
7169         (IX86_BUILTIN_FNMADDSD): Ditto.
7170         (IX86_BUILTIN_FNMADDPS): Ditto.
7171         (IX86_BUILTIN_FNMADDPD): Ditto.
7172         (IX86_BUILTIN_FNMSUBSS): Ditto.
7173         (IX86_BUILTIN_FNMSUBSD): Ditto.
7174         (IX86_BUILTIN_FNMSUBPS): Ditto.
7175         (IX86_BUILTIN_FNMSUBPD): Ditto.
7176         (IX86_BUILTIN_PCMOV_V2DI): Ditto.
7177         (IX86_BUILTIN_PCMOV_V4SI): Ditto.
7178         (IX86_BUILTIN_PCMOV_V8HI): Ditto.
7179         (IX86_BUILTIN_PCMOV_V16QI): Ditto.
7180         (IX86_BUILTIN_PCMOV_V4SF): Ditto.
7181         (IX86_BUILTIN_PCMOV_V2DF): Ditto.
7182         (IX86_BUILTIN_PPERM): Ditto.
7183         (IX86_BUILTIN_PERMPS): Ditto.
7184         (IX86_BUILTIN_PERMPD): Ditto.
7185         (IX86_BUILTIN_PMACSSWW): Ditto.
7186         (IX86_BUILTIN_PMACSWW): Ditto.
7187         (IX86_BUILTIN_PMACSSWD): Ditto.
7188         (IX86_BUILTIN_PMACSWD): Ditto.
7189         (IX86_BUILTIN_PMACSSDD): Ditto.
7190         (IX86_BUILTIN_PMACSDD): Ditto.
7191         (IX86_BUILTIN_PMACSSDQL): Ditto.
7192         (IX86_BUILTIN_PMACSSDQH): Ditto.
7193         (IX86_BUILTIN_PMACSDQL): Ditto.
7194         (IX86_BUILTIN_PMACSDQH): Ditto.
7195         (IX86_BUILTIN_PMADCSSWD): Ditto.
7196         (IX86_BUILTIN_PMADCSWD): Ditto.
7197         (IX86_BUILTIN_PHADDBW): Ditto.
7198         (IX86_BUILTIN_PHADDBD): Ditto.
7199         (IX86_BUILTIN_PHADDBQ): Ditto.
7200         (IX86_BUILTIN_PHADDWD): Ditto.
7201         (IX86_BUILTIN_PHADDWQ): Ditto.
7202         (IX86_BUILTIN_PHADDDQ): Ditto.
7203         (IX86_BUILTIN_PHADDUBW): Ditto.
7204         (IX86_BUILTIN_PHADDUBD): Ditto.
7205         (IX86_BUILTIN_PHADDUBQ): Ditto.
7206         (IX86_BUILTIN_PHADDUWD): Ditto.
7207         (IX86_BUILTIN_PHADDUWQ): Ditto.
7208         (IX86_BUILTIN_PHADDUDQ): Ditto.
7209         (IX86_BUILTIN_PHSUBBW): Ditto.
7210         (IX86_BUILTIN_PHSUBWD): Ditto.
7211         (IX86_BUILTIN_PHSUBDQ): Ditto.
7212         (IX86_BUILTIN_PROTB): Ditto.
7213         (IX86_BUILTIN_PROTW): Ditto.
7214         (IX86_BUILTIN_PROTD): Ditto.
7215         (IX86_BUILTIN_PROTQ): Ditto.
7216         (IX86_BUILTIN_PROTB_IMM): Ditto.
7217         (IX86_BUILTIN_PROTW_IMM): Ditto.
7218         (IX86_BUILTIN_PROTD_IMM): Ditto.
7219         (IX86_BUILTIN_PROTQ_IMM): Ditto.
7220         (IX86_BUILTIN_PSHLB): Ditto.
7221         (IX86_BUILTIN_PSHLW): Ditto.
7222         (IX86_BUILTIN_PSHLD): Ditto.
7223         (IX86_BUILTIN_PSHLQ): Ditto.
7224         (IX86_BUILTIN_PSHAB): Ditto.
7225         (IX86_BUILTIN_PSHAW): Ditto.
7226         (IX86_BUILTIN_PSHAD): Ditto.
7227         (IX86_BUILTIN_PSHAQ): Ditto.
7228         (IX86_BUILTIN_FRCZSS): Ditto.
7229         (IX86_BUILTIN_FRCZSD): Ditto.
7230         (IX86_BUILTIN_FRCZPS): Ditto.
7231         (IX86_BUILTIN_FRCZPD): Ditto.
7232         (IX86_BUILTIN_CVTPH2PS): Ditto.
7233         (IX86_BUILTIN_CVTPS2PH): Ditto.
7234         (IX86_BUILTIN_COMEQSS): Ditto.
7235         (IX86_BUILTIN_COMNESS): Ditto.
7236         (IX86_BUILTIN_COMLTSS): Ditto.
7237         (IX86_BUILTIN_COMLESS): Ditto.
7238         (IX86_BUILTIN_COMGTSS): Ditto.
7239         (IX86_BUILTIN_COMGESS): Ditto.
7240         (IX86_BUILTIN_COMUEQSS): Ditto.
7241         (IX86_BUILTIN_COMUNESS): Ditto.
7242         (IX86_BUILTIN_COMULTSS): Ditto.
7243         (IX86_BUILTIN_COMULESS): Ditto.
7244         (IX86_BUILTIN_COMUGTSS): Ditto.
7245         (IX86_BUILTIN_COMUGESS): Ditto.
7246         (IX86_BUILTIN_COMORDSS): Ditto.
7247         (IX86_BUILTIN_COMUNORDSS): Ditto.
7248         (IX86_BUILTIN_COMFALSESS): Ditto.
7249         (IX86_BUILTIN_COMTRUESS): Ditto.
7250         (IX86_BUILTIN_COMEQSD): Ditto.
7251         (IX86_BUILTIN_COMNESD): Ditto.
7252         (IX86_BUILTIN_COMLTSD): Ditto.
7253         (IX86_BUILTIN_COMLESD): Ditto.
7254         (IX86_BUILTIN_COMGTSD): Ditto.
7255         (IX86_BUILTIN_COMGESD): Ditto.
7256         (IX86_BUILTIN_COMUEQSD): Ditto.
7257         (IX86_BUILTIN_COMUNESD): Ditto.
7258         (IX86_BUILTIN_COMULTSD): Ditto.
7259         (IX86_BUILTIN_COMULESD): Ditto.
7260         (IX86_BUILTIN_COMUGTSD): Ditto.
7261         (IX86_BUILTIN_COMUGESD): Ditto.
7262         (IX86_BUILTIN_COMORDSD): Ditto.
7263         (IX86_BUILTIN_COMUNORDSD): Ditto.
7264         (IX86_BUILTIN_COMFALSESD): Ditto.
7265         (IX86_BUILTIN_COMTRUESD): Ditto.
7266         (IX86_BUILTIN_COMEQPS): Ditto.
7267         (IX86_BUILTIN_COMNEPS): Ditto.
7268         (IX86_BUILTIN_COMLTPS): Ditto.
7269         (IX86_BUILTIN_COMLEPS): Ditto.
7270         (IX86_BUILTIN_COMGTPS): Ditto.
7271         (IX86_BUILTIN_COMGEPS): Ditto.
7272         (IX86_BUILTIN_COMUEQPS): Ditto.
7273         (IX86_BUILTIN_COMUNEPS): Ditto.
7274         (IX86_BUILTIN_COMULTPS): Ditto.
7275         (IX86_BUILTIN_COMULEPS): Ditto.
7276         (IX86_BUILTIN_COMUGTPS): Ditto.
7277         (IX86_BUILTIN_COMUGEPS): Ditto.
7278         (IX86_BUILTIN_COMORDPS): Ditto.
7279         (IX86_BUILTIN_COMUNORDPS): Ditto.
7280         (IX86_BUILTIN_COMFALSEPS): Ditto.
7281         (IX86_BUILTIN_COMTRUEPS): Ditto.
7282         (IX86_BUILTIN_COMEQPD): Ditto.
7283         (IX86_BUILTIN_COMNEPD): Ditto.
7284         (IX86_BUILTIN_COMLTPD): Ditto.
7285         (IX86_BUILTIN_COMLEPD): Ditto.
7286         (IX86_BUILTIN_COMGTPD): Ditto.
7287         (IX86_BUILTIN_COMGEPD): Ditto.
7288         (IX86_BUILTIN_COMUEQPD): Ditto.
7289         (IX86_BUILTIN_COMUNEPD): Ditto.
7290         (IX86_BUILTIN_COMULTPD): Ditto.
7291         (IX86_BUILTIN_COMULEPD): Ditto.
7292         (IX86_BUILTIN_COMUGTPD): Ditto.
7293         (IX86_BUILTIN_COMUGEPD): Ditto.
7294         (IX86_BUILTIN_COMORDPD): Ditto.
7295         (IX86_BUILTIN_COMUNORDPD): Ditto.
7296         (IX86_BUILTIN_COMFALSEPD): Ditto.
7297         (IX86_BUILTIN_COMTRUEPD): Ditto.
7298         (IX86_BUILTIN_PCOMEQUB): Ditto.
7299         (IX86_BUILTIN_PCOMNEUB): Ditto.
7300         (IX86_BUILTIN_PCOMLTUB): Ditto.
7301         (IX86_BUILTIN_PCOMLEUB): Ditto.
7302         (IX86_BUILTIN_PCOMGTUB): Ditto.
7303         (IX86_BUILTIN_PCOMGEUB): Ditto.
7304         (IX86_BUILTIN_PCOMFALSEUB): Ditto.
7305         (IX86_BUILTIN_PCOMTRUEUB): Ditto.
7306         (IX86_BUILTIN_PCOMEQUW): Ditto.
7307         (IX86_BUILTIN_PCOMNEUW): Ditto.
7308         (IX86_BUILTIN_PCOMLTUW): Ditto.
7309         (IX86_BUILTIN_PCOMLEUW): Ditto.
7310         (IX86_BUILTIN_PCOMGTUW): Ditto.
7311         (IX86_BUILTIN_PCOMGEUW): Ditto.
7312         (IX86_BUILTIN_PCOMFALSEUW): Ditto.
7313         (IX86_BUILTIN_PCOMTRUEUW): Ditto.
7314         (IX86_BUILTIN_PCOMEQUD): Ditto.
7315         (IX86_BUILTIN_PCOMNEUD): Ditto.
7316         (IX86_BUILTIN_PCOMLTUD): Ditto.
7317         (IX86_BUILTIN_PCOMLEUD): Ditto.
7318         (IX86_BUILTIN_PCOMGTUD): Ditto.
7319         (IX86_BUILTIN_PCOMGEUD): Ditto.
7320         (IX86_BUILTIN_PCOMFALSEUD): Ditto.
7321         (IX86_BUILTIN_PCOMTRUEUD): Ditto.
7322         (IX86_BUILTIN_PCOMEQUQ): Ditto.
7323         (IX86_BUILTIN_PCOMNEUQ): Ditto.
7324         (IX86_BUILTIN_PCOMLTUQ): Ditto.
7325         (IX86_BUILTIN_PCOMLEUQ): Ditto.
7326         (IX86_BUILTIN_PCOMGTUQ): Ditto.
7327         (IX86_BUILTIN_PCOMGEUQ): Ditto.
7328         (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
7329         (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
7330         (IX86_BUILTIN_PCOMEQB): Ditto.
7331         (IX86_BUILTIN_PCOMNEB): Ditto.
7332         (IX86_BUILTIN_PCOMLTB): Ditto.
7333         (IX86_BUILTIN_PCOMLEB): Ditto.
7334         (IX86_BUILTIN_PCOMGTB): Ditto.
7335         (IX86_BUILTIN_PCOMGEB): Ditto.
7336         (IX86_BUILTIN_PCOMFALSEB): Ditto.
7337         (IX86_BUILTIN_PCOMTRUEB): Ditto.
7338         (IX86_BUILTIN_PCOMEQW): Ditto.
7339         (IX86_BUILTIN_PCOMNEW): Ditto.
7340         (IX86_BUILTIN_PCOMLTW): Ditto.
7341         (IX86_BUILTIN_PCOMLEW): Ditto.
7342         (IX86_BUILTIN_PCOMGTW): Ditto.
7343         (IX86_BUILTIN_PCOMGEW): Ditto.
7344         (IX86_BUILTIN_PCOMFALSEW): Ditto.
7345         (IX86_BUILTIN_PCOMTRUEW): Ditto.
7346         (IX86_BUILTIN_PCOMEQD): Ditto.
7347         (IX86_BUILTIN_PCOMNED): Ditto.
7348         (IX86_BUILTIN_PCOMLTD): Ditto.
7349         (IX86_BUILTIN_PCOMLED): Ditto.
7350         (IX86_BUILTIN_PCOMGTD): Ditto.
7351         (IX86_BUILTIN_PCOMGED): Ditto.
7352         (IX86_BUILTIN_PCOMFALSED): Ditto.
7353         (IX86_BUILTIN_PCOMTRUED): Ditto.
7354         (IX86_BUILTIN_PCOMEQQ): Ditto.
7355         (IX86_BUILTIN_PCOMNEQ): Ditto.
7356         (IX86_BUILTIN_PCOMLTQ): Ditto.
7357         (IX86_BUILTIN_PCOMLEQ): Ditto.
7358         (IX86_BUILTIN_PCOMGTQ): Ditto.
7359         (IX86_BUILTIN_PCOMGEQ): Ditto.
7360         (IX86_BUILTIN_PCOMFALSEQ): Ditto.
7361         (IX86_BUILTIN_PCOMTRUEQ): Ditto.
7362         (enum multi_arg_type): New enum for describing the various SSE5
7363         intrinsic argument types.
7364         (bdesc_multi_arg): New table for SSE5 intrinsics.
7365         (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
7366         (ix86_expand_multi_arg_builtin): New function for creating SSE5
7367         intrinsics.
7368         (ix86_expand_builtin): Add SSE5 intrinsic support.
7369         (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
7370         operand instructions.
7371         (ix86_expand_sse5_multiple_memory): New function to split the
7372         second memory reference from SSE5 instructions.
7373         (type_has_variadic_args_p): Delete in favor of stdarg_p.
7374         (ix86_return_pops_args): Use stdarg_p to determine if the function
7375         has variable arguments.
7376         (ix86_setup_incoming_varargs): Ditto.
7377         (x86_this_parameter): Ditto.
7378
7379         * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
7380         declaration.
7381         (ix86_expand_sse5_pack): Ditto.
7382         (ix86_sse5_valid_op_p): Ditto.
7383         (ix86_expand_sse5_multiple_memory): Ditto.
7384
7385         * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
7386         constant for SSE5 support.
7387         (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
7388         (UNSPEC_SSE5_TRUEFALSE): Ditto.
7389         (UNSPEC_SSE5_PERMUTE): Ditto.
7390         (UNSPEC_SSE5_ASHIFT): Ditto.
7391         (UNSPEC_SSE5_LSHIFT): Ditto.
7392         (UNSPEC_FRCZ): Ditto.
7393         (UNSPEC_CVTPH2PS): Ditto.
7394         (UNSPEC_CVTPS2PH): Ditto.
7395         (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
7396         (PCOM_TRUE): Ditto.
7397         (COM_FALSE_S): Ditto.
7398         (COM_FALSE_P): Ditto.
7399         (COM_TRUE_S): Ditto.
7400         (COM_TRUE_P): Ditto.
7401         (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
7402         (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
7403         types.
7404         (memory attribute): Ditto.
7405         (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
7406         Use SSE4_1_ROUND_* constants instead of hard coded numbers.
7407         (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
7408         (floor<mode>2): Ditto.
7409         (ceil<mode>2): Ditto.
7410         (btrunc<mode>2): Ditto.
7411         (nearbyintdf2): Ditto.
7412         (nearbyintsf2): Ditto.
7413         (sse_setccsf): Disable if SSE5.
7414         (sse_setccdf): Ditto.
7415         (sse5_setcc<mode>): New support for SSE5 conditional move.
7416         (sse5_pcmov_<mode>): Ditto.
7417
7418         * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
7419         (SSEMODEF4): Ditto.
7420         (SSEMODEF2P): Ditto.
7421         (ssemodesuffixf4): New mode attribute for SSE5.
7422         (ssemodesuffixf2s): Ditto.
7423         (ssemodesuffixf2c): Ditto.
7424         (sserotatemax): Ditto.
7425         (ssescalarmode): Ditto.
7426         (sse_maskcmpv4sf3): Disable if SSE5.
7427         (sse_maskcmpv2df3): Ditto.
7428         (sse_vmmaskcmpv4sf3): Ditto.
7429         (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
7430         (sse5_vmfmadd<mode>4): Ditto.
7431         (sse5_fmsub<mode>4): Ditto.
7432         (sse5_vmfmsub<mode>4): Ditto.
7433         (sse5_fnmadd<mode>4): Ditto.
7434         (sse5_vmfnmadd<mode>4): Ditto.
7435         (sse5_fnmsub<mode>4): Ditto.
7436         (sse5_vmfnmsub<mode>4): Ditto.
7437         (sse5i_fmadd<mode>4): Ditto.
7438         (sse5i_fmsub<mode>4): Ditto.
7439         (sse5i_fnmadd<mode>4): Ditto.
7440         (sse5i_fnmsub<mode>4): Ditto.
7441         (sse5i_vmfmadd<mode>4): Ditto.
7442         (sse5i_vmfmsub<mode>4): Ditto.
7443         (sse5i_vmfnmadd<mode>4): Ditto.
7444         (sse5i_vmfnmsub<mode>4): Ditto.
7445         (mulv16qi3): Add SSE5 support.
7446         (mulv4si3): Ditto.
7447         (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
7448         (sse2_mulv4si3): Disable if SSE5.
7449         (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
7450         (sse4_1_roundps): Ditto.
7451         (sse4_1_roundsd): Ditto.
7452         (sse4_1_roundss): Ditto.
7453         (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
7454         be generated.
7455         (sse_maskcmpsf3): Ditto.
7456         (sse_vmmaskcmpv4sf3): Ditto.
7457         (sse2_maskcmpv2df3): Ditto.
7458         (sse2_maskcmpdf3): Ditto.
7459         (sse2_vmmaskcmpv2df3): Ditto.
7460         (sse2_eq<mode>3): Ditto.
7461         (sse2_gt<mode>3): Ditto.
7462         (sse5_pcmov_<mode>): Add SSE5 support.
7463         (vec_unpacku_hi_v16qi): Ditto.
7464         (vec_unpacks_hi_v16qi): Ditto.
7465         (vec_unpacku_lo_v16qi): Ditto.
7466         (vec_unpacks_lo_v16qi): Ditto.
7467         (vec_unpacku_hi_v8hi): Ditto.
7468         (vec_unpacks_hi_v8hi): Ditto.
7469         (vec_unpacku_lo_v8hi): Ditto.
7470         (vec_unpacks_lo_v8hi): Ditto.
7471         (vec_unpacku_hi_v4si): Ditto.
7472         (vec_unpacks_hi_v4si): Ditto.
7473         (vec_unpacku_lo_v4si): Ditto.
7474         (vec_unpacks_lo_v4si): Ditto.
7475         (sse5_pmacsww): New SSE5 intrinsic insn.
7476         (sse5_pmacssww): Ditto.
7477         (sse5_pmacsdd): Ditto.
7478         (sse5_pmacssdd): Ditto.
7479         (sse5_pmacssdql): Ditto.
7480         (sse5_pmacssdqh): Ditto.
7481         (sse5_pmacsdqh): Ditto.
7482         (sse5_pmacsswd): Ditto.
7483         (sse5_pmacswd): Ditto.
7484         (sse5_pmadcsswd): Ditto.
7485         (sse5_pmadcswd): Ditto.
7486         (sse5_pcmov_<move>): Conditional move support on SSE5.
7487         (sse5_phaddbw): New SSE5 intrinsic insn.
7488         (sse5_phaddbd): Ditto.
7489         (sse5_phaddbq): Ditto.
7490         (sse5_phaddwd): Ditto.
7491         (sse5_phaddwq): Ditto.
7492         (sse5_phadddq): Ditto.
7493         (sse5_phaddubw): Ditto.
7494         (sse5_phaddubd): Ditto.
7495         (sse5_phaddubq): Ditto.
7496         (sse5_phadduwd): Ditto.
7497         (sse5_phadduwq): Ditto.
7498         (sse5_phaddudq): Ditto.
7499         (sse5_phsubbw): Ditto.
7500         (sse5_phsubwd): Ditto.
7501         (sse5_phsubdq): Ditto.
7502         (sse5_pperm): Ditto.
7503         (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
7504         (sse5_pperm_zero_v16qi_v8hi): Ditto.
7505         (sse5_pperm_sign_v8hi_v4si): Ditto.
7506         (sse5_pperm_zero_v8hi_v4si): Ditto.
7507         (sse5_pperm_sign_v4si_v2di): Ditto.
7508         (sse5_pperm_sign_v4si_v2di): Ditto.
7509         (sse5_pperm_pack_v2di_v4si): Ditto.
7510         (sse5_pperm_pack_v4si_v8hi): Ditto.
7511         (sse5_pperm_pack_v8hi_v16qi): Ditto.
7512         (sse5_perm<mode>): New SSE5 intrinsic insn.
7513         (rotl<mode>3): Ditto.
7514         (sse5_rotl<mode>3): Ditto.
7515         (sse5_ashl<mode>3): Ditto.
7516         (sse5_lshl<mode>3): Ditto.
7517         (sse5_frcz<mode>2): Ditto.
7518         (sse5s_frcz<mode>2): Ditto.
7519         (sse5_cvtph2ps): Ditto.
7520         (sse5_cvtps2ph): Ditto.
7521         (sse5_vmmaskcmp<mode>3): Ditto.
7522         (sse5_com_tf<mode>3): Ditto.
7523         (sse5_maskcmp<mode>3): Ditto.
7524         (sse5_maskcmp_uns<mode>3): Ditto.
7525         (sse5_maskcmp_uns2<mode>3): Ditto.
7526         (sse5_pcom_tf<mode>3): Ditto.
7527
7528         * config/i386/predicates.md (sse5_comparison_float_operator):
7529         New predicate to match the comparison operators supported by
7530         the SSE5 com instruction.
7531         (ix86_comparison_int_operator): New predicate to match just the
7532         signed int comparisons.
7533         (ix86_comparison_uns_operator): New predicate to match just the
7534         unsigned int comparisons.
7535
7536         * doc/invoke.texi (-msse5): Add documentation.
7537         (-mfused-madd): Ditto.
7538
7539         * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
7540
7541         * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
7542         mmintrin-common.h.
7543         (x86_64-*-*): Ditto.
7544
7545         * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
7546
7547         * config/i386/bmmintrin.h: New file, provide common x86 compiler
7548         intrinisics for SSE5.
7549
7550         * config/i386/smmintrin.h: Move instructions shared with SSE5 to
7551         mmintrin-common.h.
7552
7553         * config/i386/mmintrin-common.h: New file, to contain common
7554         instructions between SSE4.1 and SSE5.
7555
7556         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
7557         FOREACH_FUNCTION_ARGS to iterate over the argument list.
7558         (gen_regparm_prefix): Ditto.
7559
7560         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
7561         FOREACH_FUNCTION_ARGS to iterate over the argument list.  Use
7562         prototype_p to determine if a function is prototyped.
7563
7564 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
7565
7566         * c-common.c (c_common_reswords) add the alignof keyword,
7567         with same RID as __alignof and __alignof__
7568
7569 2009-08-25  Anatoly Sokolov  <aesok@post.ru>
7570
7571         * hooks.h (hook_bool_const_int_const_int_true): Declare.
7572         * hooks.c (hook_bool_const_int_const_int_true): New function.
7573         * target.h (struct gcc_target): Add can_eliminate field.
7574         * target-def.h (TARGET_CAN_ELIMINATE): Define.
7575         (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
7576         * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
7577         * reload1.c (update_eliminables, init_elim_table): (Ditto.).
7578         (elim_table): Revise comment.
7579         * system.h (CAN_ELIMINATE): Poison.
7580         * defaults.h (CAN_ELIMINATE): Remove.
7581         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
7582
7583         * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
7584         * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
7585         Define macro.
7586         (alpha_vms_can_eliminate): Declare as static, change return type to
7587         bool.
7588         * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
7589
7590         * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
7591         * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
7592         (arm_can_eliminate): New function.
7593
7594         * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
7595         * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
7596         (avr_can_eliminate): Declare as static.
7597         * config/avr/avr-protos.h (avr_can_eliminate): Remove.
7598
7599         * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
7600         * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
7601         (bfin_can_eliminate): New function.
7602
7603         * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
7604         * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
7605         (crx_can_eliminate): New function.
7606
7607         * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
7608         * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
7609         (fr30_can_eliminate): New function.
7610
7611         * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
7612         * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
7613         (frv_can_eliminate): New function.
7614
7615         * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
7616         * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
7617         (h8300_can_eliminate): New function.
7618
7619         * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
7620         * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
7621         (i386_can_eliminate): Declare as static, change return type to bool.
7622         * config/i386/i386-protos.h (i386_can_eliminate): Remove.
7623
7624         * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
7625         * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
7626         (ia64_can_eliminate): New function.
7627
7628         * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
7629         * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
7630         (iq2000_can_eliminate): New function.
7631
7632         * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
7633         * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
7634         (m32r_can_eliminate): New function.
7635
7636         * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
7637         * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
7638         (m68hc11_can_eliminate): New function.
7639
7640         * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
7641         * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
7642         (m68k_can_eliminate): New function.
7643
7644         * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
7645         * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
7646         (mep_can_eliminate): New function.
7647
7648         * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
7649         * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
7650         (mips_can_eliminate): New function.
7651
7652         * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
7653         * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
7654         (rs6000_can_eliminate): New function.
7655
7656         * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
7657         * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
7658         (s390_can_eliminate): Declare as static.
7659         * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
7660
7661         * config/score/score.h (CAN_ELIMINATE): Remove macro.
7662         * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
7663         (score_can_eliminate): New function.
7664
7665         * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
7666         * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
7667         (sparc_can_eliminate): Declare as static.
7668         * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
7669
7670         * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
7671         * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
7672         (xstormy16_can_eliminate): New function.
7673
7674         * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
7675         * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
7676         (v850_can_eliminate): New function.
7677
7678 2009-08-25  Uros Bizjak  <ubizjak@gmail.com>
7679
7680         * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
7681         (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
7682         (*movdfcc_ext[1234]): Disable for IEEE mode.
7683
7684 2009-08-25  Eric Botcazou  <ebotcazou@adacore.com>
7685
7686         * gimplify.c (prepare_gimple_addressable): New static function.
7687         (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
7688         it addressable.
7689         (gimplify_addr_expr): Invoke it similarly on the operand instead of
7690         manually fiddling with it.
7691
7692 2009-08-25  Michael Matz  <matz@suse.de>
7693
7694         * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
7695         * dojump.c (do_jump_by_parts_greater): Take two operands instead of
7696         full expression.
7697         (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
7698         (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
7699         (do_jump): Split out code for simple binary comparisons into ...
7700         (do_jump_1): ... this, taking the individual operands and code.
7701         Change callers to helper function above accordingly.
7702         * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
7703         comparisons.
7704
7705 2009-08-25  Michael Matz  <matz@suse.de>
7706
7707         * expr.h (struct separate_ops, sepops): New type for passing
7708         around an exploded simple expression.
7709         * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
7710         Use this structure instead of expression tree.
7711         (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
7712         expression, only its type.
7713         (expand_vec_cond_expr): Take type and individual operands instead
7714         of full expression.
7715         * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
7716         expand_vec_shift_expr): Change prototype accordingly.
7717         * tree-vect-stmts.c (vectorizable_condition): Change call of
7718         expand_vec_cond_expr_p to pass only type.
7719         * expr.c (do_store_flags): Change prototype and implementation
7720         to take an exploded expression.
7721         (expand_expr_real_1): New local ops initialized with details
7722         of the full expression.  Use it instead of full
7723         expression in calls to do_store_flags, expand_vec_cond_expr,
7724         expand_widen_pattern_expr and expand_vec_shift_expr.
7725
7726 2009-08-25  Michael Matz  <matz@suse.de>
7727
7728         * expr.c (expand_expr_real_1): New local treeop0, treeop1,
7729         treeop2 initialized with first three operands of the full expression.
7730         Substitute all TREE_OPERAND (exp, [012]) calls with them.
7731
7732 2009-08-25  Kai Tietz  <kai.tietz@onevision.com>
7733
7734         * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
7735         (__gthread_objc_condition_allocate): Mark arguments as unused.
7736         (__gthread_objc_condition_deallocate): Likewise.
7737         (__gthread_objc_condition_wait): Likewise.
7738         (__gthread_objc_condition_broadcast): Likewise.
7739         (__gthread_objc_condition_signal): Likewise.
7740         (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
7741         (__gthread_objc_thread_id): Likewise.
7742
7743 2009-08-25  Janus Weil  <janus@gcc.gnu.org>
7744
7745         PR middle-end/41149
7746         * tree-pretty-print.c (print_call_name): Print the correct call name
7747         for procedure pointer components.
7748
7749 2009-08-24  Steve Ellcey  <sje@cup.hp.com>
7750
7751         * config/ia64/ia64.c (ia64_promote_function_mode): Call
7752         default_promote_function_mode when not VMS.
7753
7754 2009-08-24  Olivier Hainque  <hainque@adacore.com>
7755
7756         * convert.c (convert_to_integer): Don't assume an input pointer is
7757         POINTER_SIZE wide.  Fetch from the type instead.
7758
7759 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7760
7761         * configure.ac (AC_PREREQ): Bump to 2.64.
7762
7763 2009-08-24  Rafael Avila de Espindola  <espindola@google.com>
7764
7765         * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
7766         (process_command): Don't search standard_exec_prefix_1 and
7767         standard_exec_prefix_2.
7768
7769 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7770
7771         * config/arm/arm.c (output_return_instruction): Handle for
7772         unified syntax.
7773
7774 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7775
7776         * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
7777
7778 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7779
7780         * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
7781         (*arm_movdf_vfp): Likewise.
7782
7783 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7784
7785         * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
7786         (vashr<mode>3): Rename from ashr<mode>3.
7787         (vlshr<mode>3): Rename from lshr<mode>3.
7788
7789 2009-08-24  Kai Tietz  <kai.tietz@onevision.com>
7790
7791         PR/40786
7792         * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
7793         (check_format_info_main): Use scalar_identify_flag.
7794         (check_format_types): Check for scalar size identity if
7795         scalar_identify_flag is set.
7796         (printf_length_specs): Extend by new field.
7797         (asm_fprintf_length_specs): Likewise.
7798         (gcc_diag_length_specs): Likewise.
7799         (scanf_length_specs): Likewise.
7800         (strfmon_length_specs): Likewise.
7801         (gcc_gfc_length_specs): Likewise.
7802         * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
7803         (ms_printf_flag_specs): Likewise.
7804         * c-format.h (format_length_info): Add new member scalar_identity_flag.
7805
7806 2009-08-23  Uros Bizjak  <ubizjak@gmail.com>
7807
7808         PR target/40718
7809         * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
7810         (*call_value_pop_1): Ditto.
7811         (*sibcall_pop_1): New insn pattern.
7812         (*sibcall_value_pop_1): Ditto.
7813
7814 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
7815
7816         PR target/41081
7817         * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
7818         ashrsi3_64): New.
7819
7820 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
7821
7822         PR target/41081
7823         * fwprop.c (try_fwprop_subst): Allow multiple sets.
7824         (get_reg_use_in): New function.
7825         (forward_propagate_subreg): Propagate through subreg of zero_extend
7826         or sign_extend.
7827
7828 2009-08-22  Kaz Kojima  <kkojima@gcc.gnu.org>
7829
7830         * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
7831         * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
7832
7833 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7834
7835         * configure.ac: Remove --with-datarootdir, --with-docdir,
7836         --with-htmldir switches.  No need to call AC_SUBST for
7837         datarootdir, docdir, htmldir any more.
7838         * configure: Regenerate.
7839         * doc/install.texi (Configuration): Document --datarootdir,
7840         --docdir, --htmldir, --pdfdir; update documentation for
7841         --infodir, --mandir.
7842         (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
7843         M4 to 1.4.6.
7844
7845         * aclocal.m4: Regenerate.
7846         * config.in: Regenerate.
7847         * configure: Regenerate.
7848
7849 2009-08-21  Douglas B Rupp  <rupp@gnat.com>
7850             Olivier Hainque  <hainque@adacore.com>
7851
7852         * config/ia64/ia64.c: Include libfuncs.h.
7853         (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
7854         (ia64_expand_call): Use reg 25 on VMS.
7855         (ia64_initialize_trampoline): Fix for VMS ABI.
7856         (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
7857         (ia64_function_arg): Initialize reg 25 on VMS.
7858         Fix OpenVMS ABI issues for varargs.
7859         For OpenVMS, emit the Argument Information register set in the
7860         incoming/sibcall case as well.
7861         (ia64_arg_type): New function.
7862         (ia64_function_arg_advance): Keep track of cum->words.
7863         Fix OpenVMS ABI issues for varargs.
7864         (ia64_function_value): On VMS, promote mode of non-aggregate types.
7865         (ia64_override_options): Set flag_no_common on VMS.
7866         (ia64_init_builtins): Disable FWRITE builtin.
7867         (ia64_asm_output_external): Call DO_CRTL_NAMES.
7868         (ia64_vms_init_libfuncs): Add decc$ routines.
7869         (ia64_vms_valid_pointer_mode): New function.
7870         (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
7871         (ia64_promote_function_mode): New function
7872         * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
7873         (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
7874         (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
7875         (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
7876         (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
7877         (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
7878         Suppress trailing '#' if VALUE is numeric.
7879         * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
7880         ia64_promote_function_mode.
7881         (TARGET_VALID_POINTER_MODE): Define.
7882
7883 2009-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
7884
7885         PR target/40671
7886         * config/rs6000/rs6000.c (rs6000_override_options): Use
7887         TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
7888
7889         PR target/41145
7890         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
7891         reporting of vector + decimal/boolean/complex error.
7892
7893 2009-08-21  Jakub Jelinek  <jakub@redhat.com>
7894
7895         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
7896         __vector double TYPE_DECL.
7897
7898 2009-08-21  Richard Earnshaw  <rearnsha@arm.com>
7899
7900         * arm.h (MACHMODE): New define.  Include insn-modes.h if available.
7901         (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
7902         * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
7903         to pointer to enum machine_mode.  Update all callers as needed.
7904
7905 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
7906
7907         * config/alpha/alpha.md (exception_receiver): Emit alternative
7908         GP load sequence if flag_reorder_blocks_and_partition is set.
7909         (*exception_receiver_2): Also enable when
7910         flag_reorder_blocks_and_partition is set.
7911
7912 2009-08-20  Matt Rice  <ratmice@gmail.com>
7913             Diego Novillo  <dnovillo@google.com>
7914
7915         * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
7916         tree-ssa-sccvn.h.
7917
7918 2009-08-20  Richard Guenther  <rguenther@suse.de>
7919
7920         * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
7921         * c-tree.h (c_dup_lang_specific_decl): Remove.
7922         (struct lang_decl, struct lang_type): Move definitions ...
7923         * c-lang.h: ... here.  New file.
7924         * c-decl.c: Include c-lang.h.
7925         (c_dup_lang_specific_decl): Remove.
7926         * c-typeck.c: Include c-lang.h.
7927         * Makefile.in (c-decl.o): Add c-lang.h dependency.
7928         (c-typeck.o): Likewise.
7929         * c-config-lang.in (gtfiles): Add c-lang.h.
7930         * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
7931         like c-tree.h.
7932
7933 2009-08-20  Uros Bizjak  <ubizjak@gmail.com>
7934
7935         * config/alpha/alpha.c (alpha_end_function): Do not clear
7936         crtl->emit structure and free insn locators if cfun->is_thunk is true,
7937         this is now handled in generic code.
7938
7939 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
7940
7941         * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
7942         (s390_z10_fix_long_loop_prediction): New function.
7943         (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
7944         (s390_reorg): Walk over the INSNs and invoke
7945         s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
7946
7947 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
7948
7949         * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
7950         "*brx_64bit", "*brx_31bit"): New patterns.
7951         * config/s390/s390.c ('E'): New output modifier.
7952
7953 2009-08-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7954             Richard Earnshaw  <richard.earnshaw@arm.com>
7955
7956         * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
7957         * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
7958
7959 2009-08-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7960
7961         * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
7962         patterns.
7963         * pa.c (emit_move_sequence): Check if address of operand1 is valid
7964         for mode mode of operand0 when doing secondary reload for SAR.
7965
7966 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
7967
7968         PR middle-end/41123
7969         * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
7970         of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
7971
7972 2009-08-19  Jason Merrill  <jason@redhat.com>
7973
7974         * doc/invoke.texi (C++ Dialect Options): Note change of minimum
7975         supported template depth in C++0x.
7976
7977 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
7978
7979         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
7980         free_after_compilation.
7981         * config/score/score7.c (score7_output_mi_thunk): Likewise.
7982         * config/score/score3.c (score3_output_mi_thunk): Likewise.
7983         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
7984         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
7985         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
7986         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
7987         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
7988
7989 2009-08-19  Ian Lance Taylor  <iant@google.com>
7990
7991         * doc/md.texi (Insn Canonicalizations): Correct canonicalization
7992         of (plus (mult (neg B) C) A).
7993
7994 2009-08-18  Michael Matz  <matz@suse.de>
7995
7996         * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
7997         instead of comparing TYPE_MAIN_VARIANT for equality.
7998         * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
7999         vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
8000         * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
8001         * gimplify.c (goa_lhs_expr_p): Ditto and use
8002         STRIP_USELESS_TYPE_CONVERSION.
8003
8004 2009-08-18  Michael Matz  <matz@suse.de>
8005
8006         * tree-ssa-structalias.c (create_variable_info_for): Also mark
8007         first field in a struct.
8008         (intra_create_variable_infos): Don't deal with flag_argument_noalias.
8009
8010 2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
8011
8012         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
8013         locators before emit_insn is called.  Remove assert that
8014         cfun->is_thunk.
8015         (alpha_end_function): Clear crtl->emit structure and free insn
8016         locators if cfun->is_thunk is true.
8017
8018 2009-08-18  Jason Merrill  <jason@redhat.com>
8019
8020         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
8021         type if available.
8022         * configure.ac: Test for it.
8023         * configure, config.in: Regenerate.
8024         * doc/install.texi: Document --enable-gnu-unique-object.
8025
8026 2009-08-18  Richard Guenther  <rguenther@suse.de>
8027
8028         PR middle-end/41094
8029         * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
8030         pow(x,y*z) only if x is nonnegative.
8031
8032 2009-08-18  Jakub Jelinek  <jakub@redhat.com>
8033
8034         * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
8035         on jumps.
8036
8037         PR target/40971
8038         * config/rs6000/rs6000.c (rs6000_legitimize_address): For
8039         [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
8040
8041 2009-08-17  DJ Delorie  <dj@redhat.com>
8042
8043         * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
8044         * config/m32c/prologue.md (epilogue_freit): New.
8045         (fset_b): New.
8046         * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
8047         (bank_switch_p): Likewise.
8048         (fast_interrupt_p): Likewise.
8049         (interrupt_p): Likewise.
8050         (m32c_conditional_register_usage): Round memregs size up.
8051         (need_to_save): We only need to save $a0 when we use ENTER.
8052         (interrupt_p): Check for fast_interrupt too.
8053         (bank_switch_p): New.
8054         (fast_interrupt_p): New.
8055         (m32c_attribute_table): Add bank_switch and fast_interrupt.
8056         (m32c_emit_prolog): Support bank switching and fast interrupts.
8057         * doc/extend.texi (Function Attributes): Add bank_switch and
8058         fast_interrupt.
8059
8060 2009-08-17  Douglas B Rupp  <rupp@gnat.com>
8061
8062         * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
8063         * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
8064
8065 2009-08-16  Douglas B Rupp  <rupp@gnat.com>
8066
8067         * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
8068         (menu): Add IA-64/VMS Options.
8069         (IA-64/VMS Options): Likewise.
8070
8071 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
8072
8073         PR target/38599
8074         * config/mips/mips.md (*lwxs): Use :P for pointer values.
8075
8076 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
8077
8078         * config/mips/mips-protos.h (mips_push_asm_switch): New function.
8079         (mips_pop_asm_switch): Likewise.
8080         * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
8081         with...
8082         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
8083         (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
8084         (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
8085         (mips_print_operand_punctuation): Use them.  Check mips_noreorder
8086         instead of set_noreorder.
8087         (mips_output_function_prologue): Use the new functions.
8088         (mips_output_function_epilogue): Likewise.
8089         (mips_need_noat_wrapper_p): New function, split out from...
8090         (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
8091         Use mips_push_asm_switch and mips_pop_asm_switch.
8092         * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
8093         and mips_pop_asm_switch.
8094         (ASM_OUTPUT_REG_POP): Likewise.
8095         (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
8096         Use mips_pop_asm_switch.
8097         (mips_asm_switch): New structure.
8098         (set_noreorder, set_nomacro): Replace with...
8099         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
8100         * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
8101         instead of set_nomacro.
8102         (fix_truncsfsi2_macro): Likewise.
8103         (cprestore): Likewise.
8104         (hazard): Use mips_noreorder instead of set_noreorder.
8105         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
8106
8107 2009-08-16  Uros Bizjak  <ubizjak@gmail.com>
8108
8109         * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
8110         from prev_active_insn.
8111
8112 2009-08-16  Anatoly Sokolov  <aesok@post.ru>
8113
8114         * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
8115         * config/avr/avr.c (avr_override_options): Initialize
8116         avr_current_arch variable.
8117         (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
8118         __AVR_HAVE_16BIT_SP__ according to the device type.
8119         (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
8120         TARGET_TINY_STACK.
8121         (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
8122         Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
8123
8124 2009-08-16  Dodji Seketeli  <dodji@redhat.com>
8125
8126         PR debug/37801
8127         * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
8128         generating inlined subroutine die only. We shouldn't be
8129         called for anything else.
8130         (gen_block_die): Don't generate inline subroutine debug info for
8131         abstract blocks.
8132
8133 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
8134
8135         * graphite-poly.c (print_pbb): Print PBB index.
8136
8137 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
8138
8139         PR middle-end/40981
8140         * graphite-interchange.c (ppl_max_for_le): Moved...
8141         * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
8142         * graphite-ppl.c (ppl_max_for_le): ... here.  Correct the use of
8143         ppl_Pointset_Powerset_C_Polyhedron_maximize.
8144         * graphite-ppl.h (ppl_max_for_le): Declared.
8145
8146 2009-08-14  Olatunji Ruwase <tjruwase@google.com>
8147
8148         * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
8149         supported on all platforms.
8150         * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
8151         * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
8152         * c-pragma.c: Likewise.
8153         * target-def.h (TARGET_INITIALIZER): Remove
8154         TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
8155         * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
8156
8157 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
8158
8159         * config/ia64/fde-vms.c: New file.
8160         * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
8161         * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
8162         (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
8163         (uw_frame_state_for): Only register a personality routine if it is
8164         known to be compatible with our expectations.
8165         (_Unwind_FindEnclosingFunction, uw_frame_state_for):
8166         Declare unw_table_entry stack variable and
8167         mod all calls to _Unwind_FindTableEntry to add arg.
8168         * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
8169         (_Unwind_FindTableEntry): Add arg to prototype.
8170
8171 2009-08-14  Eric Botcazou  <ebotcazou@adacore.com>
8172
8173         * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
8174         field 'signal_pfs_loc'.
8175         (uw_frame_state_for): Remove duplicate code dealing with leaf
8176         procedures without unwind info.
8177         If in the frame after unwinding through a signal handler, restore
8178         the AR.PFS register instead of the CFM if AR.PFS has not been saved.
8179         * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
8180         'pfs_loc' to the AR.PFS location in the signal context; instead
8181         set 'signal_pfs_loc'.
8182         Manually generate the unwind info for the AR.PFS register.
8183         (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
8184         ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
8185         (ia64_handle_unwabi): Test 'fs->unwabi' against them.
8186         Do not set 'pfs_loc' to the AR.PFS location in the signal context;
8187         instead set 'signal_pfs_loc'.
8188         Remove code preventing the AR.PFS register from being restored
8189         from the signal context.
8190
8191 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
8192             Tristan Gingold  <gingold@adacore.com>
8193
8194         * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
8195         * config/ia64/t-vms: New file.
8196         * config/ia64/vms64.h: New file.
8197         * config/ia64/vms.h: New file.
8198         * config/ia64/vms-crtinit.asm: New file.
8199         * config/ia64/vms_symvec_libgcc_s.opt: New file.
8200         * config/ia64/vms-unwind.h: New file.
8201
8202 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
8203
8204         * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
8205         TFmode compares.
8206
8207 2009-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8208
8209         PR middle-end/30789
8210         * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
8211         Move declaration...
8212         * real.h (do_mpc_arg2): ... here.
8213         * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
8214         and RDIV_EXPR.
8215
8216 2009-08-14  Rafael Avila de Espindola  <espindola@google.com>
8217
8218         * final.c (add_debug_prefix_map): Don't use GC memory for
8219         old_prefix and new_prefix.
8220
8221 2009-08-14  Richard Guenther  <rguenther@suse.de>
8222
8223         * ipa-prop.c (compute_complex_pass_through): If we cannot
8224         compute a non-varying offset for IPA_JF_ANCESTOR punt.
8225
8226 2009-08-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8227
8228         * c-lex.c (c_lex_with_flags): Increase size of local variable
8229         to avoid memory clobber.
8230
8231 2009-08-14  Paolo Bonzini  <bonzini@gnu.org>
8232
8233         PR target/40934
8234         * config/i386/i386.c (ix86_fp_comparison_strategy):
8235         Only enable/disable sahf at function granularity.
8236
8237 2009-08-14  Hans-Peter Nilsson  <hp@axis.com>
8238
8239         PR rtl-optimization/41064
8240         * reload1.c (reload_as_needed): Don't call extract_insn
8241         for known invalid replacements after calling
8242         validate_replace_rtx_group and verify_changes.
8243
8244 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
8245
8246         PR target/41019
8247         * config/i386/sse.md (SSEMODE124C8): New mode iterator.
8248         (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
8249         ix86_expand_fp_vcond.
8250         (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
8251         Assert that operation is supported by ix86_expand_int_vcond.
8252         (vcondu<SSEMODE124C8:mode>): Ditto.
8253
8254 2009-08-13  DJ Delorie  <dj@redhat.com>
8255
8256         * config/i386/djgpp-stdint.h: New.
8257         * config.gcc (djgpp): Use it.
8258
8259 2009-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
8260
8261         * config/sh/sh.c (sh_override_options): When flag_exceptions or
8262         flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
8263
8264 2009-08-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
8265
8266         * tree-ssa-loop-prefetch.c
8267         (prune_ref_by_group_reuse): Enhance probabilistic analysis
8268         for long-stride pruning.
8269         (compute_miss_rate): New function to compute the probability
8270         that two memory references access different cache lines.
8271
8272 2009-08-13  Dave Korn  <dave.korn.cygwin@gmail.com>
8273
8274         * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
8275
8276 2009-08-13  Richard Guenther  <rguenther@suse.de>
8277
8278         PR middle-end/41047
8279         * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
8280         use the constant pointer type.
8281         * gimplify.c (canonicalize_addr_expr): Canonicalize independent
8282         of CV qualifiers on the target pointer type.
8283         * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
8284         conversion check before restrict check.
8285
8286 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
8287
8288         PR target/41029
8289         * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
8290
8291 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
8292
8293         * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
8294
8295 2009-08-12  Richard Guenther  <rguenther@suse.de>
8296
8297         PR tree-optimization/41011
8298         * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
8299         and reference constructing.
8300
8301 2009-08-12  Xinliang David Li  <davidxl@google.com>
8302
8303         PR tree-optimization/41012
8304         * tree-flow.h : New external interface.
8305         * gimple-low.c (check_call_arg): Change to public function.
8306         Remove argument mismatch check in lowering.
8307         * tree-inline.h (tree_can_inline_p): Interface change.
8308         * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
8309         into this function.
8310         * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
8311         Call change to tree_can_inline_p function.
8312         (cgraph_decide_inlining_incrementally): Ditto.
8313
8314 2009-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
8315
8316         PR tree-optimization/41031
8317         * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
8318         on the partition variable rather than promote_mode on the source
8319         type.  Assert that the partition variable's type has the same
8320         mode as the source value's.
8321
8322 2009-08-12  Paolo Bonzini  <bonzini@gnu.org>
8323
8324         * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
8325         for for_return == 2.
8326         * function.c (assign_parm_setup_reg): Use for_return == 2, improve
8327         comments.
8328         * calls.c (expand_call): Fix typo.
8329         * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
8330         and PARM_DECL.
8331         * stmt.c (expand_value_return): Use promote_function_mode to copy out
8332         of pseudo.
8333         * targhooks.c (default_promote_function_mode): Handle for_return == 2.
8334         * config/cris/cris.c (cris_promote_function_mode): Likewise.
8335         * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
8336         * config/pa/pa.c (pa_promote_function_mode): Likewise.
8337
8338 2009-08-12  Andrew Haley  <aph@redhat.com>
8339
8340         * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
8341
8342 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
8343
8344         PR bootstrap/40103
8345         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
8346
8347 2009-08-12  Richard Guenther  <rguenther@suse.de>
8348
8349         * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
8350         * gimplify.c (gimplify_modify_expr): Do not use
8351         lang_hooks.types_compatible_p.
8352         * tree-ssa.c (useless_type_conversion_p): For aggregates
8353         just return false if the canonical types differ.
8354
8355 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
8356
8357         PR middle-end/40980
8358         * sese.c (convert_for_phi_arg): New.
8359         (add_guard_exit_phis): Use convert_for_phi_arg.
8360
8361 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
8362
8363         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
8364         unknown subscript upper bounds.
8365
8366 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
8367             Pranav Garg  <pranav.garg2107@gmail.com>
8368
8369         * graphite-interchange.c (gather_access_strides): Removed.
8370         (ppl_max_for_le): New.
8371         (build_linearized_memory_access): New.
8372         (memory_stride_in_loop): New.
8373         (pbb_interchange_profitable_p): Reimplemented.
8374         * graphite-ppl.h (ppl_new_id_map): New.
8375         (ppl_interchange): New.
8376
8377 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
8378
8379         * graphite-interchange.c (compute_subscript): Removed.
8380         (compute_array_size_cstr): Removed.
8381         (compute_array_size_poly): Removed.
8382         (compute_array_size): Removed.
8383         (gather_access_strides_poly): Removed.
8384         (gather_access_strides): Empty.
8385
8386 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
8387
8388         * graphite-dependences.c (dependence_polyhedron_1): Replace
8389         pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
8390         (graphite_legal_transform_dr): Same.
8391         (graphite_carried_dependence_level_k): Same.
8392         * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
8393         Initialize PDR_NB_SUBSCRIPTS.
8394         (print_pdr_access_layout): Replace pdr_nb_subscripts with
8395         PDR_NB_SUBSCRIPTS.
8396         * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
8397         (PDR_NB_SUBSCRIPTS): New.
8398         (pdr_nb_subscripts): Removed.
8399         (pdr_dim): Simplified.
8400         * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
8401         with PDR_NB_SUBSCRIPTS.
8402
8403 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
8404
8405         * graphite-interchange.c (compute_array_size): Remove use of
8406         PDR_DATA_CONTAINER.
8407         * graphite-poly.c (new_poly_dr): Remove argument data_container.
8408         Do not initialize PDR_DATA_CONTAINER.
8409         (print_pdr): Do not print PDR_DATA_CONTAINER.
8410         * graphite-poly.h (struct poly_dr): Remove data_container field.
8411         (PDR_DATA_CONTAINER): Removed.
8412         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
8413         PDR_DATA_CONTAINER.
8414         (build_poly_dr): Same.
8415
8416 2009-08-12  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
8417             Sebastian Pop  <sebastian.pop@amd.com>
8418
8419         * graphite-dependences.c (graphite_legal_transform_dr): Work on a
8420         copy of the dependence polyhedron.  Free the temporary objects.
8421         (graphite_carried_dependence_level_k): Free unused objects before
8422         returning.
8423
8424 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
8425
8426         * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
8427         Early return without analyzing the data dependences if no
8428         transform has been done.  Call restore_scattering if the transform
8429         is not legal.
8430         (graphite-interchange.c): Same.
8431         * graphite-poly.c (print_scattering_function): Test for
8432         PBB_TRANSFORMED.
8433         (graphite_read_transforms): Initialize PBB_TRANSFORMED.
8434         (apply_poly_transforms): Do not gcc_assert that
8435         the transform is legal.
8436         (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
8437         Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
8438         PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
8439         (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
8440         * graphite-poly.h (struct poly_scattering): New.
8441         (struct poly_bb): Add original, transformed, and saved fields.
8442         Remove transformed_scattering, original_scattering,
8443         nb_local_variables and nb_scattering_transform fields.
8444         (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
8445         (poly_scattering_new): New.
8446         (poly_scattering_free): New.
8447         (poly_scattering_copy): New.
8448         (store_scattering_pbb): New.
8449         (store_scattering): New.
8450         (restore_scattering_pbb): New.
8451         (restore_scattering): New.
8452         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
8453         Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
8454
8455 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
8456
8457         * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
8458         (print_scop): Same.
8459
8460 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
8461
8462         * Makefile.in (graphite.o): Depends on PREDICT_H.
8463         * graphite.c: Include predict.h.
8464         (graphite_finalize): Call tree_estimate_probability.
8465         * predict.c (predict_loops): Do not call scev_initialize and
8466         scev_finalize.
8467         (tree_estimate_probability_bb): New.
8468         (tree_estimate_probability): Do not initialize loops: move that
8469         code to the driver.  Call tree_estimate_probability_bb.
8470         (tree_estimate_probability_driver): New.
8471         (pass_profile): Use tree_estimate_probability_driver.
8472         * predict.h (tree_estimate_probability): Declared.
8473
8474 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
8475
8476         * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
8477         * graphite-dependences.c (graphite_legal_transform): Add time to
8478         TV_GRAPHITE_DATA_DEPS.
8479         (dependency_between_pbbs_p): Same.
8480         * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
8481
8482 2009-08-12  Andrey Belevantsev  <abel@ispras.ru>
8483
8484         PR rtl-optimization/41033
8485         * alias.c (nonoverlapping_component_refs_p): Punt when strict
8486         aliasing is disabled.
8487
8488 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
8489
8490         * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
8491         si_mask_operand, and_load_operand, low_bitmask_operand,
8492         and_reg_operand, and_operand): New predicates.
8493         * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
8494         * config/mips/mips.c (and_operands_ok): New function.
8495         * config/mips/mips-protos.h (and_operands_ok): Declare it.
8496         * config/mips/mips.md (move_type): Add ext_ins and logical.
8497         (type): Handle them.
8498         (and<mode>3): Use and_reg_operand as the second operand's predicate.
8499         (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
8500         shift_shift.  Remove commutative constraint modifier.
8501         (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
8502         shift_shift.
8503         (*clear_upper32_dext): Remove define_insn_and_split.
8504         (*clear_upper32): Turn this define_insn_and_split ...
8505         (splitter for ANDing register with 0xffff_ffff): .. into this.
8506
8507 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
8508
8509         * combine.c (try_widen_shift_mode): Factor out code to check if an
8510         integer constant is a low-order bitmask from here ...
8511         * rtlanal.c (low_bitmask_len): ... to here.
8512         * rtl.h (low_bitmask_len): Declare.
8513
8514 2009-08-11  Uros Bizjak  <ubizjak@gmail.com>
8515
8516         PR target/8603
8517         * config/alpha/alpha.md (addsi3): Remove expander.
8518         (addsi3): Rename from *addsi3_internal insn pattern.
8519         (subsi3): Remove expander.
8520         (subsi3): Rename from *subsi3_internal insn pattern.
8521
8522 2009-08-11  Douglas B Rupp  <rupp@gnat.com>
8523
8524         * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
8525         FWRITE_UNLOCKED.
8526
8527 2009-08-11  Vasiliy Fofanov  <fofanov@adacore.com>
8528             Eric Botcazou  <botcazou@adacore.com>
8529             Douglas B Rupp  <rupp@gnat.com>
8530
8531         * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
8532         that records that fit in 64 bits are returned by immediate value,
8533         as required by OpenVMS Calling Standard.
8534         (function_value): Adjust for above modification.
8535         (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
8536         virtual_incoming_args_rtx as base object, not next_arg.
8537         * config/alpha/vms.h (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
8538
8539 2009-08-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8540
8541         * reload.c (find_reloads_subreg_address): Check the original
8542         req_equiv_mem address to detect the case where an address is
8543         not valid in the outer mode.
8544
8545 2009-08-11  Richard Guenther  <rguenther@suse.de>
8546
8547         PR bootstrap/40788
8548         * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
8549
8550 2009-08-10  Douglas B Rupp  <rupp@gnat.com>
8551
8552         * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
8553         (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
8554
8555 2009-08-10  Olivier Hainque  <hainqueu@adacore.com>
8556             Douglas B Rupp  <rupp@gnat.com>
8557
8558         * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
8559         PT_STACK when frame_pointer_needed on OpenVMS.
8560         (alpha_pv_save_size, alpha_using_fp): Remove.
8561         (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
8562         with proper processing for PT_NULL.
8563         (alpha_vms_initial_elimination_offset): New function. Support for
8564         INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
8565         (alpha_sa_size): Force procedure type to PT_STACK when
8566         frame_pointer_needed on OpenVMS.
8567         * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
8568         (alpha_using_fp): Likewise.
8569         (alpha_vms_can_eliminate): Add prototype.
8570         (alpha_vms_initial_elimination_offset): Likewise.
8571         * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
8572         Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
8573
8574 2009-08-10  Eric Botcazou  <botcazou@adacore.com>
8575             Douglas B Rupp  <rupp@gnat.com>
8576
8577         * config/alpha/alpha.c (common_object_handler): New function.
8578         (vms_attribute_table): Declare a single attribute "common_object".
8579         (vms_output_aligned_decl_common): New global function.
8580         (SECTION_VMS_OVERLAY): Delete.
8581         (SECTION_VMS_GLOBAL): Likewise.
8582         (SECTION_VMS_INITIALIZE): Likewise.
8583         (vms_asm_named_section): Remove support for above flags.
8584         (vms_section_type_flags): Delete.
8585         (TARGET_SECTION_TYPE_FLAGS): Likewise.
8586         * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
8587         * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
8588         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
8589
8590 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
8591
8592         PR target/41015
8593         * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
8594         (sub_ddmmss): Likewise.
8595
8596 2009-08-10  Andreas Tobler  <a.tobler@schweiz.org>
8597
8598         PR bootstrap/41018
8599         * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
8600         year.
8601
8602 2009-08-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8603
8604         PR target/37053
8605         * reload1.c (reload_as_needed): Use cancel_changes to completely
8606         undo a failed replacement attempt.
8607
8608 2009-08-10  Richard Guenther  <rguenther@suse.de>
8609
8610         PR middle-end/41006
8611         * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
8612         (useless_type_conversion_p): ... here.  Require pointer targets
8613         to be compatible.
8614
8615 2009-08-10  Dodji Seketeli  <dodji@redhat.com>
8616
8617         PR c++/40866
8618         * tree-inline.c (copy_statement_list): The resulting copy shouldn't
8619         loose the original type of the statement list.
8620
8621 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
8622
8623         * config/alpha/alpha.c: Include libfuncs.h
8624         (avms_asm_output_extern): New function.
8625         (alpha_init_libfuncs): Init some decc libfuncs.
8626         * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
8627         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
8628         (DO_CRTL_NAMES): Define.
8629         (LIB_SPEC): Remove.
8630         * config/alpha/vms64.h (POINTERS_EXTEND_UNSIGNED): Remove undef.
8631         (LONG_TYPE_SIZE): Define.
8632         (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
8633         (SUBTARGET_SWITCHES): Define malloc64 switch.
8634         (TARGET_DEFAULT): Default MASK_MALLOC64 set.
8635         (MASK_RETURN_ADDR): Define.
8636         doc/invoke.texi (mmalloc64): Document switch.
8637
8638 2009-08-09  Olivier Hainque  <hainque@adacore.com>
8639             Douglas B Rupp  <rupp@gnat.com>
8640
8641         * config/alpha/alpha.c (struct machine_function): New flag for VMS,
8642         uses_condition_handler.
8643         (alpha_expand_builtin_establish_vms_condition_handler): New expander.
8644         (alpha_expand_builtin_revert_vms_condition_handler): New expander.
8645         (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
8646         and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
8647         (code_for_builtin): New insn codes for the new alpha_builtins.
8648         (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
8649         (alpha_sa_size): Account for uses_condition_handler.
8650         (alpha_expand_prologue): Likewise.
8651         (alpha_start_function): Likewise.
8652         (alpha_expand_epilogue): Likewise.
8653         * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
8654         establish/revert expanders.
8655         * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
8656         * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
8657         New expander, resorting to the alpha.c associated function.
8658         (builtin_revert_vms_condition_handler): Likewise.
8659         * config/alpha/vms-gcc_shell_handler.c: New file. Implements
8660         __gcc_shell_handler, the static VMS condition handler used as
8661         an indirection wrapper to the current dynamically established
8662         handler.
8663         * config/alpha/vms-unwind.h: Complete rewrite.
8664         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
8665         * config/alpha/vms.h (MD_UNWIND_SUPPORT):
8666
8667 2009-08-09  Eric Botcazou  <botcazou@adacore.com>
8668             Douglas B Rupp  <rupp@gnat.com>
8669
8670         * config/alpha/alpha.c (alpha_links): Add 'target' field.
8671         (alpha_need_linkage): Handle aliases.  Return function symbol.
8672         (alpha_use_linkage): Rename 'linkage' argument to 'func'.
8673         Use ultimate alias target for the linkage name.
8674         * config/alpha/alpha.md (movmemdi): Use the symbol returned
8675         by alpha_need_linkage for the function symbol.
8676         (setmemdi): Likewise.
8677
8678 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
8679
8680         * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
8681         * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
8682         (ASM_WEAKEN_LABEL): Define.
8683         (CRT_CALL_STATIC_FUNCTION): Define.
8684         (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
8685         (ENDFILE_SPEC): Define.
8686         (INIT_SECTION_ASM_OP): Define.
8687         * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
8688         * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
8689         crtend.o crtendS.o.
8690         (MULTILIB_OSDIRNAMES): Define.
8691         (shlib_version): Define.
8692         (SHLIB_EXT): Define.
8693         (SHLIB_OBJS): Define.
8694         (SHLIB_NAME): Define.
8695         (SHLIB_MULTILIB): Define.
8696         (SHLIB_INSTALL): Define.
8697         (SHLIB_SYMVEC): Define.
8698         (SHLIB_SYMVECX2): Define.
8699         (SHLIB_LINK): Define.
8700
8701 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
8702
8703         * config/alpha/alpha.c (alpha_initialize_trampoline):
8704         Initialize VMS trampoline IAW ABI for bounded procedure calls.
8705         (alpha_start_function): Emit transfer address on nested functions
8706         for VMS trampoline call.
8707         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
8708         since no longer used.
8709         * config/alpha/vms-tramp.asm: Remove.
8710         * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
8711         since now only data initialized at runtime.
8712
8713 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
8714
8715         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
8716         (LINK_GCC_C_SEQUENCE_SPEC): Define.
8717         (MD_EXEC_PREFIX): Remove, no longer used.
8718         (MD_STARTFILE_PREFIX): Likewise.
8719         (INCLUDE_DEFAULTS): Likewise.
8720         * config/alpha/t-vms:
8721         (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
8722
8723 2009-08-09  Richard Guenther  <rguenther@suse.de>
8724
8725         PR tree-optimization/41016
8726         * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
8727         (operand_precision): Remove.
8728         (integral_operand_p): Likewise.
8729         (recognize_single_bit_test): Adjust.
8730
8731 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
8732
8733         * c-common.c (c_fully_fold_internal): Issue a warning if a binary
8734         operation overflows.  Likewise non-cast unary arithmetic.
8735         If one arm of a conditional expression is always taken,
8736         inhibit evaluation warnings for the other arm.  Likewise inhibit
8737         evaluation warnings for the second && or || operand if the first
8738         operand is enough to determine the result.
8739         * c-typeck.c (build_conditional_expr): Apply the same inhibition
8740         rules here.
8741         (build_binary_op): Prevent duplicate evaluation warnings.
8742
8743 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
8744
8745         * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
8746         and destination have different modes, Use promote_mode to
8747         determine the signedness of the conversion.  Assert that the
8748         promoted source mode matches the destination mode.  Don't pass
8749         the destination and destination mode to expand_expr if the source
8750         mode is different.  Simplify conversion logic.
8751
8752 2009-08-09  Ira Rosen  <irar@il.ibm.com>
8753
8754         PR tree-optimization/41008
8755         * tree-vect-loop.c (vect_is_simple_reduction): Get operands
8756         from condition only in case it's a comparison. Adjust checks.
8757
8758 2009-08-09  Bernd Schmidt  <bernd.schmidt@analog.com>
8759
8760         * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
8761         * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
8762         * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
8763         (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
8764         (dump_cand): Handle them.
8765         (struct iv_cand): New members COST_STEP and AINC_USE.
8766         (stmt_after_increment): Likewise.
8767         (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos.  All
8768         callers changed.  Use gimple_uid comparison instead of scanning.
8769         (add_candidate_1): When looking for identical candidates, take
8770         AINC_USE into account.  Set it for new candidates.
8771         (force_expr_to_var_cost): Cast target_spill_cost to int.
8772         (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
8773         All callers changed.  Check for availability of autoinc addressing
8774         modes, both in general for a given mode, and in the specific use case.
8775         (get_computation_cost_at): New argument CAN_AUTOINC.  All callers
8776         changed.
8777         (get_computation_cost): Likewise.
8778         (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
8779         add_autoinc_candidates): New static functions.
8780         (add_candidate): Call add_autoinc_candidates for candidates based on
8781         a USE_ADDRESS use.
8782         (find_iv_candidates): Call set_autoinc_for_original_candidates.
8783         (determine_use_iv_cost_address): If we have an autoinc candidate at
8784         the matching use, verify autoinc is possible and subtract the cost
8785         of the candidate's step from the cost.
8786         (determine_iv_cost): Record the cost of the increment in the COST_STEP
8787         member of the candidate.
8788         (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
8789         determine_use_iv_costs.  Call renumber_gimple_stmt_uids_in_blocks.
8790
8791 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
8792
8793         * config.build (ia64-hp-*vms*): New target.
8794         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
8795         with ia64-hp-*vms*.
8796         * config.gcc (ia64-hp-*vms*): New target.
8797         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
8798         with ia64-hp-*vms*.
8799         * config.host (ia64-hp-*vms*): New target.
8800         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
8801         with ia64-hp-*vms*.
8802
8803 2009-08-08  Richard Guenther  <rguenther@suse.de>
8804
8805         PR tree-optimization/40991
8806         * tree-ssa-pre.c (eliminate): Delay purging EH edges.
8807
8808 2009-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
8809
8810         * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
8811         mode check.  Do truncations in an integer mode.
8812         (force_to_mode): Handle subregs for all mode types.  Only do
8813         arithmetic simplifications on integer modes.
8814
8815 2009-08-07  Richard Guenther  <rguenther@suse.de>
8816
8817         PR tree-optimization/40999
8818         * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
8819         (maybe_fold_reference): Lookup constant initializers.
8820         (fold_gimple_assign): Likewise.
8821
8822 2009-08-07  Richard Guenther  <rguenther@suse.de>
8823
8824         * tree-ssa.c (useless_type_conversion_p_1): Only for types
8825         that require structural equality defer to the langhook.
8826
8827 2009-08-07  Martin Jambor  <mjambor@suse.cz>
8828
8829         * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
8830         comments.
8831         (struct ipa_pass_through_data): New type.
8832         (struct ipa_ancestor_jf_data): New type.
8833         (union jump_func_value): Removed field formal_id, added fields
8834         pass_through and ancestor.
8835         (struct ipa_param_call_note): Changed type of formal_id to int from
8836         unsigned.
8837         * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
8838         operations jump functions and ancestor jump functions.
8839         (compute_complex_pass_through): New function.
8840         (compute_scalar_jump_functions): Call compute_complex_pass_through,
8841         reflect changes in the jump function strucutre.
8842         (update_jump_functions_after_inlining): Ignore complex pass-through
8843         and ancestor jump functions.
8844         * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
8845         polynomial pass-through with operation jump functions.
8846
8847 2009-08-07  Jakub Jelinek  <jakub@redhat.com>
8848
8849         * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
8850         fde->dw_fde_begin as begin label instead of hot/cold label.
8851         Use LLSDAC label instead of LLSDA for second section lsda.
8852         (dwarf2out_do_cfi_startproc): Add SECOND argument.  Use LLSDAC
8853         label instead of LLSDA if it is true.
8854         (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
8855         callers.
8856         * except.c (add_call_site, dw2_size_of_call_site_table): Add
8857         SECTION argument.  Use it as index into crtl->eh.call_site_record
8858         array.
8859         (dw2_output_call_site_table): Likewise.  Add CS_FORMAT argument,
8860         use it to determine how to print table entries instead of using
8861         #ifdef HAVE_AS_LEB128.  For SECTION > 0 use hot resp. cold
8862         label instead of normal begin label as base.
8863         (sjlj_assign_call_site_values): Adjust add_call_site caller.
8864         (convert_to_eh_region_ranges): When doing hot/cold partitioning,
8865         ensure no EH range spans between sections and that landing pads
8866         are always in the corresponding section.
8867         (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
8868         for crtl->eh.call_site_record being an array rather than scalar.
8869         (output_one_function_exception_table): New function, copied
8870         from output_function_exception_table.  Adjust
8871         dw2_size_of_call_site_table, dw2_output_call_site_table
8872         callers.  For SECOND section use *C suffixed labels.
8873         (output_function_exception_table): Call
8874         output_one_function_exception_table and, when doing hot/cold
8875         partitioning, also another time for the second section.
8876         * opts.c: Include except.h.
8877         (decode_options): Allow -freorder-blocks-and-partition with
8878         exceptions, unless SJLJ or TARGET_UNWIND_INFO.
8879         * Makefile.in (opts.o): Depend on $(EXCEPT_H).
8880         * function.h (struct rtl_eh): Change call_site_record from
8881         scalar into array of 2 elements.
8882
8883 2009-08-07  Martin Jambor  <mjambor@suse.cz>
8884
8885         * ipa-prop.c (count_formal_params_1): New function.
8886         (ipa_get_vector_of_formal_parms): New function.
8887         (get_vector_of_formal_parm_types): New function.
8888         (ipa_modify_formal_parameters): New function.
8889         (ipa_modify_call_arguments): New function.
8890         (index_in_adjustments_multiple_times_p): New function.
8891         (ipa_combine_adjustments): New function.
8892         (ipa_dump_param_adjustments): New function.
8893         * ipa-prop.h (struct ipa_parm_adjustment): New type.
8894         (ipa_get_vector_of_formal_parms): Declare.
8895         (ipa_modify_formal_parameters): Declare.
8896         (ipa_modify_call_arguments): Declare.
8897         (ipa_combine_adjustments): Declare.
8898         (ipa_dump_param_adjustments): Declare.
8899         (build_ref_for_offset): Declare.
8900         * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
8901         * tree-sra.c: Include ipa-prop.c.
8902         (build_ref_for_offset): Make public.
8903
8904 2009-08-06  Neil Vachharajani  <nvachhar@gmail.com>
8905
8906         * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
8907
8908 2009-08-06  Thomas Schwinge  <tschwinge@gnu.org>
8909
8910         * gcc/doc/extend.texi (__builtin_extract_return_address)
8911         (__builtin_frob_return_address): Document.
8912
8913 2009-08-06  Paul Brook  <paul@codesourcery.com>
8914
8915         * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
8916         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
8917         implementation on ARMv6-M.
8918
8919 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
8920
8921         * doc/extend.texi (pcs): Document new attribute for ARM.
8922
8923 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
8924
8925         * arm.c (pcs_attribute_args): Comment out unsupported attribute
8926         variants.
8927
8928 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
8929
8930         * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
8931         warning ().
8932
8933 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
8934
8935         * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
8936
8937 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
8938
8939         Merge ARM/hard_vfp_branch to trunk.
8940
8941         2009-08-04  Richard Earnshaw  <rearnsha@arm.com>
8942
8943         * arm.c (libcall_eq): New function.
8944         (libcall_hash): New function.
8945         (add_libcall): New function.
8946         (arm_libcall_uses_aapcs_base): New function.
8947         (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
8948         libcalls using the base PCS.
8949         (arm_init_cumulative_args): Likewise.
8950
8951         2009-07-20  Joseph Myers  <joseph@codesourcery.com>
8952
8953         * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
8954         Use base ABI for conversion libfuncs between HFmode and SFmode.
8955
8956         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
8957
8958         * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
8959         V4SImode as representatives of all 64-bit and 128-bit vector
8960         types.  Allow vector types without vector modes.
8961         (aapcs_vfp_is_call_or_return_candidate): Handle vector types
8962         without vector modes like BLKmode.
8963         (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
8964         BLKmode.  Avoid unsupported vector modes or TImode moves for
8965         non-TARGET_NEON.
8966         (aapcs_vfp_allocate_return_reg): Likewise.
8967         (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
8968         V8QImode if TARGET_NEON || TARGET_IWMMXT.
8969
8970         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
8971
8972         * config/arm/arm.c (arm_handle_pcs_attribute): New.
8973         (arm_get_pcs_model): Pass attribute arguments to
8974         arm_pcs_from_attribute.
8975         (arm_init_cumulative_args): Use base AAPCS for conversions from
8976         floating-point types to DImode.
8977         (arm_attribute_table): Add pcs attribute.
8978         (arm_handle_pcs_attribute): New.
8979         * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
8980         conversions from floating-point types to DImode, also declare them
8981         to use base AAPCS and declare functions they call to use base
8982         AAPCS and their RTABI names.
8983
8984         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
8985
8986         * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
8987         -mfloat-abi=hard not being supported for VFP.
8988
8989         2009-05-11  Kazu Hirata  <kazu@codesourcery.com>
8990
8991         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
8992         SYMBOL_REF to hard_libcall_value.
8993
8994         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
8995             Richard Earnshaw  <rearnsha@arm.com>
8996
8997         * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
8998         has been put on the stack, all remaining co-processory arguments for
8999         that co-processor also go on the stack.
9000
9001         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
9002
9003         * config/arm/arm.c (arm_return_in_memory): Handle returning
9004         vectors of suitable size in registers also for AAPCS case.
9005
9006         2009-01-13  Richard Earnshaw <rearnsha@arm.com>
9007
9008         * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
9009
9010         2008-12-09  Richard Earnshaw <rearnsha@arm.com>
9011
9012         ARM Hard-VFP calling convention
9013         * target-def.h (TARGET_LIBCALL_VALUE): New hook.
9014         * target.h (gcc_target): Add libcall_value to table of call hooks.
9015         * targhooks.h (default_libcall_value): Default implementation.
9016         * targhooks.c (default_libcall_value): Likewise.
9017         * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
9018         * optabs.c (expand_unop): Use it.
9019         * expr.h (hard_libcall_value): Pass the function RTX through.
9020         * calls.c (emit_library_call_value_1): Update call to
9021         hard_libcall_value.
9022         * explow.c (hard_libcall_value): Use new target hook.
9023         * testsuite/lib/target-supports.exp
9024         (check_effective_target_arm_hard_vfp_ok): New hook.
9025         (check_effective_target_arm_neon_ok): Improve test for neon
9026         availability.
9027         * testsuite/gcc.target/arm/eabi1.c: Only run test in base variant.
9028         * config/arm/arm.c: Include cgraph.h
9029         (TARGET_FUNCTION_VALUE): Override default hook.
9030         (arm_pcs_default): New variable.
9031         (arm_override_options): Don't fault hard calling convention with VFP.
9032         Add support for AAPCS variants.
9033         (arm_function_value): Make static.  Handle AAPCS variants.
9034         (arm_libcall_value): New function.
9035         (arm_apply_result_size): Handle VFP registers in results.
9036         (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
9037         conventions.
9038         (pcs_attribute_args): New variable.
9039         (arm_pcs_from_attribute): New function.
9040         (arm_get_pcs_model): New function.
9041         (aapcs_vfp_cum_init): New function.
9042         (aapcs_vfp_sub_candidate): New function.
9043         (aapcs_vfp_is_return_candidate): New function.
9044         (aapcs_vfp_is_call_candidate): New function.
9045         (aapcs_vfp_allocate): New function.
9046         (aapcs_vfp_allocate_return_reg): New function.
9047         (aapcs_vfp_advance): New function.
9048         (aapcs_cp_arg_layout): New variable.
9049         (aapcs_select_call_coproc): New function.
9050         (aapcs_select_return_coproc): New function.
9051         (aapcs_allocate_return_reg): New function.
9052         (aapcs_libcall_value): New function.
9053         (aapcs_layout_arg): New function.
9054         (arm_init_cumulative_args): Initialize AAPCS args data.
9055         (arm_function_arg): Handle AAPCS variants using new interface.
9056         (arm_arg_parital_bytes): Likewise.
9057         (arm_function_arg_advance): New function.
9058         (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
9059         calling conventions.
9060         (arm_setup_incoming_varargs): Handle new AAPCS args data.
9061         * arm.h (NUM_VFP_ARG_REGS): Define.
9062         (LIBCALL_VALUE): Update.
9063         (FUNCTION_VALUE): Delete.
9064         (FUNCTION_VALUE_REGNO_P): Add VFP regs.
9065         (arm_pcs): New enum.
9066         (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
9067         (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
9068         (FUNCTION_ARG_REGNO_P): Add VFP regs.
9069         * arm-protos.h (arm_function_arg_advance): Add.
9070         (aapcs_libcall_value): Add.
9071         (arm_function_value): Delete.
9072
9073 2009-08-06  Uros Bizjak  <ubizjak@gmail.com>
9074             H.J. Lu  <hongjiu.lu@intel.com>
9075
9076         PR target/40957
9077         * config/i386/i386.c (standard_sse_mode_p): Remove.
9078         (standard_sse_constant_p): Return 2 for integer mode
9079         vector_all_ones_operand when SSE2 is enabled.
9080         (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
9081         (ix86_expand_vector_move): Do not check for negative values from
9082         standard_sse_constant_p.
9083
9084 2009-08-06  Richard Guenther  <rguenther@suse.de>
9085
9086         * tree-ssa.c (useless_type_conversion_p_1): Make function and
9087         array type comparisons frontend independent.
9088         * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
9089         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
9090         out array reference lower bound and element size operands.
9091         (ao_ref_init_from_vn_reference): Properly compute the offset
9092         for ARRAY_RANGE_REF.
9093         (vn_reference_fold_indirect): Fill out array reference lower
9094         bound and element size operands.
9095         * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
9096         a non gimple valued reference operand which can happen for
9097         array reference lower bound or element size.
9098         (create_component_ref_by_pieces_1): Properly generate the
9099         element size operand for array references.
9100
9101 2009-08-06  Richard Guenther  <rguenther@suse.de>
9102
9103         PR tree-optimization/40964
9104         * tree.c (iterative_hash_host_wide_int): Export.
9105         * tree.h (iterative_hash_host_wide_int): Declare.
9106         * tree-ssa-structalias.c (heapvar_map): New struct.
9107         (heapvar_map_eq): New function.
9108         (heapvar_map_hash): Likewise.
9109         (heapvar_lookup): Adjust.
9110         (heapvar_insert): Likewise.
9111         (make_constraint_from_heapvar): Allow multiple heap variables
9112         per decl at different offsets.
9113         (init_alias_heapvars): Adjust.
9114
9115 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
9116
9117         * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
9118         * mips_output_sync_loop (mips_output_sync_loop): Only emit
9119         trailing sync if TARGET_SYNC_AFTER_SC.
9120
9121 2009-08-05  David Daney  <ddaney@caviumnetworks.com>
9122
9123         * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
9124         compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
9125         sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
9126         sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
9127         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
9128         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
9129         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
9130         sync_new_nand<mode>, sync_lock_test_and_set<mode>,
9131         test_and_set_12): Rewrite calls to mips_output_sync_loop.
9132         * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
9133         the prototype declaration match the definition.
9134         * gcc/config/mips/mips.c (mips_output_sync_loop):  Emit sync
9135         instructions explicitly.  Add barrier_before and operands
9136         parameters.
9137         * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
9138         MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
9139         MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
9140         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
9141         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
9142         MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
9143
9144 2009-08-05  Andrew Pinski  <pinskia@gmail.com>
9145
9146         * tree-ssa-alias.c: Fix intervals to use [) syntax.
9147
9148 2009-08-05  Uros Bizjak  <ubizjak@gmail.com>
9149             Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
9150
9151         PR target/40906
9152         * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
9153         source operand.
9154
9155 2009-08-05  Jakub Jelinek  <jakub@redhat.com>
9156
9157         PR rtl-optimization/40924
9158         * dse.c (canon_address): Before calling cselib_expand_value_rtx
9159         make sure canon_rtx (mem_address) isn't simpler than
9160         canon_rtx (expanded_mem_address).
9161
9162 2009-08-05  Li Feng  <nemokingdom@gmail.com>
9163
9164         * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
9165         for each poly_bb_p.
9166         (build_scop_drs): Build alias set for each SCoP.
9167
9168 2009-08-04  Sandra Loosemore  <sandra@codesourcery.com>
9169
9170         * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
9171         * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
9172         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
9173         (MIPS_ARCH_FLOAT_SPEC): Likewise.
9174         (BASE_DRIVER_SELF_SPECS): Likewise.
9175
9176 2009-08-04  Andrew Pinski  <pinskia@gmail.com>
9177
9178         * tree-ssa-alias.c: Fix some comment typos.
9179
9180 2009-08-04  Kaz Kojima  <kkojima@gcc.gnu.org>
9181
9182         * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
9183         ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
9184
9185 2009-08-03  Janis Johnson  <janis187@us.ibm.com>
9186
9187         PR c/39902
9188         * simplify-rtx.c (simplify_binary_operation_1): Disable
9189         simplifications for decimal float operations.
9190
9191 2009-08-03  Jakub Jelinek  <jakub@redhat.com>
9192
9193         PR middle-end/40943
9194         * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
9195         operand of INDIRECT_REF.
9196
9197 2009-08-03  Uros Bizjak  <ubizjak@gmail.com>
9198
9199         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
9200         constants referencing TLS symbols.
9201
9202 2009-08-03  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
9203
9204         * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
9205         __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
9206
9207 2009-08-03  Richard Guenther  <rguenther@suse.de>
9208
9209         * tree.c (make_vector_type): Build a main variant first,
9210         get the canonical one and then build the variant.
9211         * tree-ssa.c (useless_type_conversion_p_1): Handle
9212         fixed-point types.
9213         (useless_type_conversion_p): Conversions to pointers to
9214         incomplete record types are useless.
9215
9216 2009-08-03  Richard Guenther  <rguenther@suse.de>
9217
9218         * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
9219         file will be created.
9220         * omp-low.c (pass_diagnose_omp_blocks): Likewise.
9221         * toplev.c (compile_file): Adjust comment.
9222
9223 2009-08-03  Kaz Kojima  <kkojima@gcc.gnu.org>
9224
9225         * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
9226         * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
9227         (TARGET_PROMOTE_FUNCTION_MODE): Define.
9228         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
9229         (sh_promote_function_mode): Fix typo.
9230
9231 2009-08-03  Andreas Krebbel  <krebbel1@de.ibm.com>
9232
9233         * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
9234
9235 2009-08-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9236
9237         * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
9238         declaration arguments.
9239
9240 2009-08-02  Uros Bizjak  <ubizjak@gmail.com>
9241
9242         * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
9243         of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
9244         (ix86_split_ashl): Ditto.
9245         (ix86_expand_vector_init_one_nonzero): Ditto.
9246         (ix86_expand_vector_set): Ditto.
9247         (ix86_expand_reduc_v4sf): Ditto.
9248
9249 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
9250
9251         * explow.c (promote_function_mode): Remove assert.
9252         * config/sh/sh.c (sh_promote_function_mode): Declare.
9253
9254 2009-08-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9255
9256         * config/pa/pa.c (pa_promote_function_mode): Declare.
9257         Change to static.  Fix promote_mode call.
9258
9259         * gthr-dce.h (CONST_CAST2): Define if not defined.
9260         (__gthread_setspecific): Use CONST_CAST2 to fix warning.
9261
9262         * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
9263
9264 2009-08-01  Paolo Bonzini  <bonzini@gnu.org>
9265
9266         * expr.c (store_constructor): Use promote_decl_mode.  Remove
9267         now write-only variable unsignedp.
9268         (expand_expr_real_1): Use promote_decl_mode.
9269         * expr.h (promote_function_mode, promote_decl_mode): New.
9270         (promote_mode): Remove last argument.
9271         * function.c (assign_temp): Drop last argument of promote_mode.
9272         (assign_parm_find_data_types): Use promote_function_mode.
9273         (assign_parm_setup_reg): Likewise.
9274         (expand_function_end): Use promote_function_mode.
9275         * calls.c (initialize_argument_information): Use promote_function_mode.
9276         (precompute_arguments): Use promote_mode instead of checking if
9277         only PROMOTE_FUNCTION_MODE is defined.
9278         (expand_call): When making sibcall decisions, use promote_function_mode.
9279         Below, remove an if for targetm.calls.promote_function_return and
9280         and use promote_function_mode.
9281         (emit_library_call_value_1): Use promote_function_mode, fix bug
9282         where promote_mode was passed FOR_CALL == 0 for a return value in an
9283         assertion.
9284         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
9285         * explow.c (promote_function_mode, promote_decl_mode): New.
9286         (promote_mode): Keep only the FOR_CALL == 0 case.
9287         * combine.c (setup_incoming_promotion): Remove test of
9288         promote_function_args.  Use promote_function_mode.
9289         * stmt.c (expand_value_return): Use promote_decl_mode.
9290         (expand_decl): Use promote_decl_mode.
9291
9292         * expr.c (store_constructor): Use promote_decl_mode.  Remove
9293         now write-only variable unsignedp.
9294         (expand_expr_real_1): Use promote_decl_mode.
9295         * expr.h (promote_function_mode, promote_decl_mode): New.
9296         (promote_mode): Remove last argument.
9297         * function.c (assign_temp): Drop last argument of promote_mode.
9298         (assign_parm_find_data_types): Use promote_function_mode.
9299         (assign_parm_setup_reg): Likewise.
9300         (expand_function_end): Use promote_function_mode.
9301         * calls.c (initialize_argument_information): Use promote_function_mode.
9302         (precompute_arguments): Use promote_mode instead of checking if
9303         only PROMOTE_FUNCTION_MODE is defined.
9304         (expand_call): When making sibcall decisions, use promote_function_mode.
9305         Below, remove an if for targetm.calls.promote_function_return and
9306         and use promote_function_mode.
9307         (emit_library_call_value_1): Use promote_function_mode, fix bug
9308         where promote_mode was passed FOR_CALL == 0 for a return value in an
9309         assertion.
9310         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
9311         * explow.c (promote_function_mode, promote_decl_mode): New.
9312         (promote_mode): Keep only the FOR_CALL == 0 case.
9313         * combine.c (setup_incoming_promotion): Remove test of
9314         promote_function_args.  Use promote_function_mode.
9315         * stmt.c (expand_value_return): Use promote_decl_mode.
9316         (expand_decl): Use promote_decl_mode.
9317
9318         * explow.c (promote_function_mode): Just call the target hook.
9319         * targhooks.c (default_promote_function_mode,
9320         default_promote_function_mode_always_promote): New.
9321         * targhooks.h (default_promote_function_mode,
9322         default_promote_function_mode_always_promote): Declare.
9323         * target.h (promote_function_args, promote_function_return): Remove.
9324         (promote_function_mode): New.
9325         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
9326         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9327         (TARGET_PROMOTE_FUNCTION_MODE): New.
9328         (TARGET_CALLS): Adjust.
9329         * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
9330         TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
9331
9332         * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
9333         * config/s390/s390.c (s390_promote_function_mode): ... here,
9334         with pointer handling.
9335         (TARGET_PROMOTE_FUNCTION_MODE): Define.
9336         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9337
9338         * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
9339         * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
9340         with pointer handling.
9341         (TARGET_PROMOTE_FUNCTION_MODE): Define.
9342         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9343
9344         * config/sh/sh-protos.h (sh_promote_function_mode): New.
9345         * config/sh/sh.c (sh_promote_function_mode): New.
9346         (TARGET_PROMOTE_FUNCTION_MODE): Define.
9347         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9348
9349         * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
9350         * config/cris/cris.c (cris_promote_function_mode): ... here.
9351         (TARGET_PROMOTE_FUNCTION_MODE): Define.
9352         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
9353
9354         * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
9355         * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
9356         (TARGET_PROMOTE_FUNCTION_MODE): Define.
9357         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
9358
9359         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
9360         * config/arm/arm.c (arm_promote_function_mode): ... here, without
9361         complex type handling.
9362         (TARGET_PROMOTE_FUNCTION_MODE): Define.
9363         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9364
9365         * config/pa/pa.c (pa_promote_function_mode): New.
9366         (TARGET_PROMOTE_FUNCTION_MODE): Define.
9367         (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9368
9369         * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
9370         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
9371         (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
9372         * config/xtensa/xtensa.c: Likewise.
9373         * config/stormy16/stormy16.c: Likewise.
9374         * config/iq2000/iq2000.c: Likewise.
9375         * config/rs6000/rs6000.c: Likewise.
9376         * config/picochip/picochip.c: Likewise.
9377         * config/arc/arc.c: Likewise.
9378         * config/mcore/mcore.c: Likewise.
9379         * config/score/score.c: Likewise.
9380         * config/mips/mips.c: Likewise.
9381         * config/bfin/bfin.c: Likewise.
9382         * config/ia64/ia64.c: Likewise (disabled though).
9383
9384         * config/frv/frv.h: Remove pointless remark.
9385
9386         * doc/tm.texi (PROMOTE_FUNCTION_MODE,
9387         TARGET_PROMOTE_FUNCTION_ARGS,
9388         TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
9389         (TARGET_PROMOTE_FUNCTION_MODE): ... this.
9390
9391 2009-08-01  Sebastian Pop  <sebastian.pop@amd.com>
9392
9393         * doc/invoke.texi (-fgraphite-force-parallel): Renamed
9394         -floop-parallelize-all.
9395         * toplev.c (process_options): Rename flag_graphite_force_parallel to
9396         flag_loop_parallelize_all.
9397         * tree-ssa-loop.c (gate_graphite_transforms): Same.
9398         * graphite.c (graphite_transform_loops): Same.
9399         * common.opt: Same.
9400         * graphite-poly.c (apply_poly_transforms): Same.
9401
9402 2009-07-31  Richard Earnshaw  <rearnsha@arm.com>
9403
9404         PR tree-optimization/40914
9405         * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
9406         if set, then check the delta field of the PMF record.
9407         (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
9408         (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
9409         call is stored in the delta.
9410
9411 2009-07-31  Adam Nemet  <anemet@caviumnetworks.com>
9412
9413         * config/mips/mips.md (*clear_upper32_dext): New pattern.
9414
9415 2009-07-31  Uros Bizjak  <ubizjak@gmail.com>
9416
9417         * config/i386/bsd.h (ASM_BYTE): New define.
9418         * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
9419         * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
9420         .byte.  Use fputs or putc instead of fprintf where appropriate.
9421         * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte.  Use
9422         fputs or putc instead of fprintf where appropriate.
9423         * config/i386/i386elf.h: Ditto.
9424         * config/i386/sysv4.h: Ditto.
9425
9426         * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
9427         * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
9428         (*tls_global_dynamic_64): Ditto.
9429
9430 2009-07-31  Christian Bruel  <christian.bruel@st.com>
9431
9432         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
9433
9434 2009-07-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9435
9436         * config/arm/arm.c (arm_arm_address_cost): Fix typo.
9437         Remove dead code for MINUS.
9438
9439 2009-07-31  Anthony Green  <green@moxielogic.com>
9440
9441         * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
9442         $r12 in prologue.
9443         (moxie_expand_epilogue): Ditto for epilogue.
9444         (moxie_setup_incoming_varargs): ABI change.  Use 5 registers for
9445         incoming arguments.
9446         (moxie_function_arg): Ditto.
9447         (moxie_pass_by_reference): Ditto.
9448         (moxie_arg_partial_bytes): Ditto.
9449         * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
9450         (FUNCTION_ARG_ADVANCE) Ditto.
9451         (REG_PARM_STACK_SPACE) Ditto.
9452         (FUNCTION_ARG_REGNO_P) Dito.
9453
9454         * config.gcc: Add moxie linux config support.
9455         * gcc/config/moxie/uclinux.h: New file.
9456
9457 2009-07-31  DJ Delorie  <dj@redhat.com>
9458
9459         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
9460         (UNSPECV_SP_SWITCH_E): New.
9461         (sp_switch_1): Change to an unspec.
9462         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
9463         replace $r15.
9464         * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
9465         reference the new stack's address
9466
9467 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9468
9469         * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
9470         graphite-clast-to-gimple.o, graphite-dependences.o,
9471         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
9472         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
9473         (graphite-blocking.o,
9474         graphite-clast-to-gimple.o, graphite-dependences.o,
9475         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
9476         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
9477         * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
9478         * cfgloop.h (struct loop): Add can_be_parallel field.
9479         * common.opt (fgraphite-identity): Moved up.
9480         (fgraphite-force-parallel): New flag.
9481         * graphite.c: Rewrite.
9482         * graphite.h: Rewrite.
9483         * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
9484         after Graphite.
9485         * toplev.c (graphite_out_file): New file descriptor.
9486         (graphite_in_file): New.
9487         (process_options): flag_graphite_force_parallel cannot be used without
9488         Graphite.
9489         * tree-ssa-loop.c: Include toplev.h.
9490         (gate_graphite_transforms): Enable flag_graphite for
9491         flag_graphite_force_parallel.
9492
9493 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9494
9495         * ChangeLog.graphite: New.
9496         * graphite-blocking.c: New.
9497         * graphite-clast-to-gimple.c: New.
9498         * graphite-clast-to-gimple.h: New.
9499         * graphite-dependences.c: New.
9500         * graphite-dependences.h: New.
9501         * graphite-interchange.c: New.
9502         * graphite-poly.c: New.
9503         * graphite-poly.h: New.
9504         * graphite-ppl.c: New.
9505         * graphite-ppl.h: New.
9506         * graphite-scop-detection.c: New.
9507         * graphite-scop-detection.h: New.
9508         * graphite-sese-to-poly.c: New.
9509         * graphite-sese-to-poly.h: New.
9510         * sese.c: New.
9511         * sese.h: New.
9512
9513 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9514
9515         * tree-chrec.c (evolution_function_right_is_integer_cst): New.
9516         * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
9517
9518 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9519
9520         * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
9521         (scev_is_linear_expression): Return false if the evolution is not
9522         affine multivariate.
9523
9524 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9525
9526         * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
9527         * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
9528
9529 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9530
9531         * tree-data-ref.c (debug_data_references): New.
9532         (debug_data_reference): New.
9533         * tree-data-ref.h (debug_data_references): Declared.
9534         (debug_data_reference): Declared.
9535
9536 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9537
9538         * tree-data-ref.c (stmt_simple_memref_p: Removed.
9539         * tree-data-ref.h (scop_p): Removed.
9540         (struct data_reference): Remove field scop.
9541         (DR_SCOP): Removed.
9542         (stmt_simple_memref_p): Removed.
9543
9544 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9545
9546         * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
9547         * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
9548         basic block empty.
9549
9550 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9551
9552         * doc/invoke.texi (-fgraphite-force-parallel): Documented.
9553
9554 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9555
9556         * doc/invoke.texi (-fgraphite-identity): Documented.
9557
9558 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9559
9560         * tree-scalar-evolution.c: Fix comment.
9561         (instantiate_scev_1): Return unknow from scev instantiation if the
9562         result is not above instantiate_below.
9563
9564 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
9565
9566         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
9567         static anymore.  Instantiate the symbols that may have been introduced
9568         by chrec_apply.
9569         * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
9570         Declared.
9571
9572 2009-07-30  DJ Delorie  <dj@redhat.com>
9573
9574         * config/mep/mep.c (mep_asm_init_sections): Add section flags and
9575         .vliw directive to VLIW sections.
9576
9577 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9578
9579         * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
9580         New variables.
9581         ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
9582         (AUTOHEADER): New variable.
9583         ($(srcdir)/cstamp-h.in): Use it.
9584
9585 2009-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
9586             Pat Haugen  <pthaugen@us.ibm.com>
9587             Revital Eres <ERES@il.ibm.com>
9588
9589         * config/rs6000/vector.md (VEC_F): Add VSX support.
9590         (VEC_A): Ditto.
9591         (VEC_N): Ditto.
9592         (mov<mode>): Ditto.
9593         (vector_load_<mode>): Ditto.
9594         (vector_store_<mode>): Ditto.
9595         (vector GPR move split): Ditto.
9596         (vec_reload_and_plus_<mptrsize>): Ditto.
9597         (vec_reload_and_reg_<mptrsize>): Ditto.
9598         (add<mode>3): Ditto.
9599         (sub<mode>3): Ditto.
9600         (mul<mode>3): Ditto.
9601         (neg<mode>2): Ditto.
9602         (abs<mode>2): Ditto.
9603         (smin<mode>3): Ditto.
9604         (smax<mode>3): Ditto.
9605         (vector_eq<mode>): Ditto.
9606         (vector_gt<mode>): Ditto.
9607         (vector_ge<mode>): Ditto.
9608         (vector_gtu<mode>): Ditto.
9609         (vector_select_<mode>_uns): Ditto.
9610         (vector_eq_<mode>_p): Ditto.
9611         (vector_gt_<mode>_p): Ditto.
9612         (vector_ge_<mode>_p): Ditto.
9613         (vector_gtu_<mode>_p): Ditto.
9614         (cr6_test_for_zero): Ditto.
9615         (cr6_test_for_zero_reverse): Ditto.
9616         (cr6_test_for_lt): Ditto.
9617         (cr6_test_for_lt_reverse): Ditto.
9618         (xor<mode>3): Ditto.
9619         (ior<mode>3): Ditto.
9620         (and<mode>3): Ditto.
9621         (one_cmpl<mode>2): Ditto.
9622         (nor<mode>2): Ditto.
9623         (andc<mode>2): Ditto.
9624         (float<VEC_int<mode>2): Ditto.
9625         (unsigned_float<VEC_int><mode>2): Ditto.
9626         (fix_trunc<mode><VEC_int>2): Ditto.
9627         (fixuns_trunc<mode><VEC_int>2): Ditto.
9628         (vec_init<mode>):
9629         (vec_set<mode>): Ditto.
9630         (vec_extract<mode>): Ditto.
9631         (vec_interleave_highv4sf): Ditto.
9632         (vec_interleave_lowv4sf): Ditto.
9633         (vec_realign_load_<mode>): Ditto.
9634         (vec_shl_<mode>): Ditto.
9635         (vec_shr_<mode>): Ditto.
9636         (div<mode>3): New patterns for VSX.
9637         (vec_interleave_highv2df): Ditto.
9638         (vec_interleave_lowv2df): Ditto.
9639         (vec_pack_trunc_v2df): Ditto.
9640         (vec_pack_sfix_trunc_v2df): Ditto.
9641         (vec_pack_ufix_trunc_v2df): Ditto.
9642         (vec_unpacks_hi_v4sf): Ditto.
9643         (vec_unpacks_lo_v4sf): Ditto.
9644         (vec_unpacks_float_hi_v4si): Ditto.
9645         (vec_unpacks_float_lo_v4si): Ditto.
9646         (vec_unpacku_float_hi_v4si): Ditto.
9647         (vec_unpacku_float_lo_v4si): Ditto.
9648         (movmisalign<mode>): Ditto.
9649         (vector_ceil<mode>2): New patterns for vectorizing math library.
9650         (vector_floor<mode>2): Ditto.
9651         (vector_btrunc<mode>2): Ditto.
9652         (vector_copysign<mode>3): Ditto.
9653
9654         * config/rs6000/predicates.md (easy_vector_constant_msb): New
9655         predicate for setting the high bit in each word, used for copysign.
9656
9657         * config/rs6000/ppc-asm.h (f19): Whitespace.
9658         (f32-f63): Define if VSX.
9659         (v0-v31): Define if Altivec.
9660         (vs0-vs63): Define if VSX.
9661
9662         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
9663
9664         * config/rs6000/power7.md: New file, provide tuning parameters for
9665         -mcpu=power7.
9666
9667         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
9668         (rs6000_cpu_cpp_builtins): Ditto.
9669         (altivec_overloaded_builtins): Ditto.
9670         (altivec_resolve_overloaded_builtin): Ditto.
9671
9672         * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
9673         debug switch to disable vectorizing simple math builtin
9674         functions.
9675
9676         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
9677         Vectorize simple math builtin functions.
9678         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
9679         hook to vectorize math builtins.
9680         (rs6000_override_options): Enable -mvsx on -mcpu=power7.
9681         (rs6000_builtin_conversion): Add VSX/power7 support.
9682         (rs6000_builtin_vec_perm): Ditto.
9683         (vsplits_constant): Add support for loading up a vector constant
9684         with just the high bit set in each part.
9685         (rs6000_expand_vector_init): Add VSX/power7 support.
9686         (rs6000_expand_vector_set): Ditto.
9687         (rs6000_expand_vector_extract): Ditto.
9688         (rs6000_emit_move): Ditto.
9689         (bdesc_3arg): Ditto.
9690         (bdesc_2arg): Ditto.
9691         (bdesc_1arg): Ditto.
9692         (rs6000_expand_ternop_builtin): Ditto.
9693         (altivec_expand_builtin): Ditto.
9694         (rs6000_expand_unop_builtin): Ditto.
9695         (rs6000_init_builtins): Ditto.
9696         (altivec_init_builtins): Ditto.
9697         (builtin_function_type): Ditto.
9698         (rs6000_common_init_builtins): Ditto.
9699         (rs6000_handle_altivec_attribute); Ditto.
9700         (rs6000_mangle_type): Ditto.
9701         (rs6000_vector_mode_supported_p): Ditto.
9702         (rs6000_mode_dependent_address): Altivec addresses with AND -16
9703         are mode dependent.
9704
9705         * config/rs6000/vsx.md: New file for VSX support.
9706
9707         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
9708         identifing values with just the most significant bit set.
9709         (enum rs6000_builtins): Add builtins for VSX.  Add simple math
9710         vectorized builtins.
9711
9712         * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
9713         (UNSPEC_VRFIM): Delete.
9714         (splitter for loading up vector with most significant bit): New
9715         splitter for vectorizing copysign.
9716         (altivec_vrfiz): Rename from altivec_fturncv4sf2.  Add support for
9717         vectorizing simple math functions.
9718         (altivec_vrfip): Add support for vectorizing simple math functions.
9719         (altivec_vrfim): Ditto.
9720         (altivec_copysign_v4sf3): New insn for Altivec copysign support.
9721
9722         * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
9723         (power7.md, vsx.md): Include for power7 support.
9724         (copysigndf3): Use VSX instructions if -mvsx.
9725         (negdf2_fpr): Ditto.
9726         (absdf2_fpr): Ditto.
9727         (nabsdf2_fpr): Ditto.
9728         (adddf3_fpr): Ditto.
9729         (subdf3_fpr): Ditto.
9730         (muldf3_fpr): Ditto.
9731         (divdf3_fpr): Ditto.
9732         (fix_truncdfdi2_fpr): Ditto.
9733         (cmpdf_internal1): Ditto.
9734         (fred, fred_fpr): Convert into expander/insn to add VSX support.
9735         (btruncdf2, btruncdf2_fpr): Ditto.
9736         (ceildf2, ceildf2_fpr): Ditto.
9737         (floordf2, floordf2_fpr): Ditto.
9738         (floatdidf2, floatdidf2_fpr): Ditto.
9739         (fmadddf4_fpr): Name insn.  Use VSX instructions if -mvsx.
9740         (fmsubdf4_fpr): Ditto.
9741         (fnmadddf4_fpr_1): Ditto.
9742         (fnmadddf4_fpr_2): Ditto.
9743         (fnmsubdf4_fpr_1): Ditto.
9744         (fnmsubdf4_fpr_2): Ditto.
9745         (fixuns_truncdfdi2): Add expander for VSX support.
9746         (fix_truncdfdi2): Ditto.
9747         (fix_truncdfsi2): Ditto.
9748         (ftruncdf2): Ditto.
9749         (btruncsf2): Whitespace.
9750         (movdf_hardfloat32): Add support for VSX registers.
9751         (movdf_softfloat32): Ditto.
9752         (movdf_hardfloat64): Ditto.
9753         (movdf_hardfloat64_mfpgpr): Ditto.
9754         (movdf_softfloat64): Ditto.
9755         (movti splitters): Add check for vector registers supporting
9756         TImode in the future.
9757         (bpermd): Add power7 bpermd instruction.
9758
9759         * config/rs6000/altivec.h (vec_div): Define if VSX.
9760         (vec_mul): Ditto.
9761         (vec_msub): Ditto.
9762         (vec_nmadd): Ditto.
9763         (vec_nearbyint): Ditto.
9764         (vec_rint): Ditto.
9765         (vec_sqrt): Ditto.
9766         (all predicates): Use the generic builtin function, and not the V4SF
9767         specific function so that the predicates will work with VSX's V2DF.
9768         (vec_all_*): Ditto.
9769         (vec_any_*): Ditto.
9770
9771         * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
9772         Document new VSX functions and types.
9773
9774         * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
9775         switches.
9776
9777         * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
9778         "wa", and "j" constraints.  Modify "v" to talk about Altivec
9779         instead of just vector.
9780
9781 2009-07-30  Andrew MacLeod  <amacleod@redhat.com>
9782
9783         PR debug/26475
9784         * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
9785         location for phi arguments.
9786         (rewrite_update_phi_arguments): Find locations for reaching defs.
9787         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
9788         Add location to add_phi_arg calls.
9789         * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
9790         * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
9791         split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
9792         * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
9793         create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
9794         * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
9795         * tree-phinodes.c (make_phi_node): Initialize location.
9796         (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
9797         (add_phi_arg): Add location parameter.
9798         (remove_phi_arg_num): Move location when moving phi argument.
9799         * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
9800         location.
9801         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
9802         slpeel_update_phi_nodes_for_guard1,
9803         slpeel_update_phi_nodes_for_guard2,
9804         slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
9805         vect_loop_versioning): Set locations.
9806         * tree-parloops.c (create_phi_for_local_result,
9807         transform_to_exit_first_loop, create_parallel_loop): Add locations.
9808         * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
9809         * tree-vect-loop.c (get_initial_def_for_induction,
9810         vect_create_epilog_for_reduction, vect_finalize_reduction): Add
9811         locations.
9812         * tree-flow-inline.h (gimple_phi_arg_location): New.  Return locus.
9813         (gimple_phi_arg_location_from_edge): New.  Return locus from an edge.
9814         (gimple_phi_arg_set_location): New.  Set locus.
9815         (gimple_phi_arg_has_location): New.  Check for locus.
9816         (redirect_edge_var_map_location): New.  Return locus from var_map.
9817         * tree-vect-data-refs.c (vect_setup_realignment): Set location.
9818         * tree-ssa-phiopt.c (conditional_replacement): Set locus when
9819         combining PHI arguments.
9820         (cond_store_replacement): Set location.
9821         * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
9822         * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
9823         scop_add_exit_phis_edge): Add locations.
9824         * tree-cfgcleanup.c (remove_forwarder_block,
9825         remove_forwarder_block_with_phi): Add locations.
9826         * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
9827         * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
9828         locations.
9829         * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
9830         * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
9831         flush_pending_stmts): Add source location.
9832         * lambda-code.c (perfect_nestify): Maintain location stack with argument
9833         stack to preserve locations.
9834         * tree-vect-stmts.c (vectorizable_load): Add location.
9835         * tree-inline.c (copy_phis_for_bb): Copy locus.
9836         (setup_one_parameter): Add call locus to inlined parameter stmts.
9837         (initialize_inlined_parameters): Pass in call location as parameter
9838         assignment locus.
9839         (tree_function_versioning): Pass location to setup_one_parameter.
9840         * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
9841         * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
9842         copy and edge lists.
9843         (insert_partition_copy_on_edge, insert_value_copy_on_edge,
9844         insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
9845         locus parameter and override the stmt default if provided.
9846         (new_elim_graph, clear_elim_graph, delete_elim_graph,
9847         elim_graph_add_edge, elim_graph_remove_succ_edge,
9848         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
9849         elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
9850         eliminate_phi):  Add locus info in elimination graph for each edge and
9851         value copy.
9852         (insert_backedge_copies): Copy locus if present.
9853         * tree-flow.h (struct _edge_var_map): Add locus field.
9854         * tree-switch_conversions.c (fix_phi_nodes): Add locations.
9855         * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
9856         add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
9857         locations.
9858         * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
9859
9860 2009-07-30  Martin Jambor  <mjambor@suse.cz>
9861
9862         PR tree-optimization/40570
9863         * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
9864         use inlining loops.
9865
9866 2009-07-30  Razya Ladelsky <razya@il.ibm.com>
9867
9868         * ssa-loop-manip.c: Include langhooks.h.
9869         (rewrite_phi_with_iv): New.
9870         (rewrite_all_phi_nodes_with_iv): New.
9871         (canonicalize_loop_ivs): Move here from tree-parloops.c.
9872         Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
9873         * tree-parloops.c (loop_parallel_p): Move out all conditions
9874         except dependency check.
9875         (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
9876         (gen_parallel_loop): Call canonicalize_loop_ivs without
9877         reduction_list argument.
9878         (build_new_reduction): New.
9879         (gather_scalar_reductions): New.
9880         (try_get_loop_niter): New.
9881         (try_create_reduction_list): New.
9882         (parallleize_loops): Change the parallel conditions check.
9883         * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
9884         * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
9885
9886 2009-07-30  Dave Korn  <dave.korn.cygwin@gmail.com>
9887
9888         * opt-functions.awk (opt_args): Allow argument to be enclosed in
9889         curly braces.
9890         * doc/options.texi (Option properties):  Mention new quoting syntax.
9891
9892 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
9893
9894         * config/alpha/alpha.c (alpha_start_function):
9895         Handle VMS_DEBUG_MAIN_POINTER
9896         * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
9897         * doc/invoke.texi: Document -mdebug-main switch.
9898
9899 2009-07-29  Richard Henderson  <rth@redhat.com>
9900
9901         * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
9902         (cgraph_create_edge_including_clones): Likewise.
9903         * tree-inline.c (copy_bb): Operate on the correct edges
9904         when updating the callgraph.
9905
9906 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
9907
9908         * config/alpha/vms-cc.c: Deleted.
9909         * config/alpha/vms-ld.c: Deleted.
9910         * config/alpha/t-vms64: Moved to config/vms
9911         * config/alpha/vms-crt0-64.c: Moved to config/vms
9912         * config/alpha/vms-crt0.c: Moved to config/vms
9913         * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
9914         * config/alpha/vms-psxcrt0.c: Moved to config/vms
9915         * config/alpha/xm-vms.h: Moved to config/vms
9916         * config/alpha/x-vms: Moved to config/vms
9917         * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
9918         config/vms/t-vms.
9919         * config/vms/t-vms: Moved here from config/alpha. Alpha specific
9920         parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
9921         (version): Set.
9922         * config/vms/t-vms64: Moved here from config/alpha
9923         * config/vms/vms-crt0-64.c: Moved here from config/alpha.
9924         (argc,argv,envp): Enforce 32bit malloc'ing.
9925         * config/vms/vms-psxcrt0-64.c: Likewise.
9926         * config/vms/vms-crt0.c: Moved here from config/alpha.
9927         * config/vms/vms-psxcrt0.c: Likewise.
9928         * config/vms/vms-crtl-64.h: New file.
9929         * config/vms/vms-crtl.h: New file.
9930         * config/vms/vms.opt: New file.
9931         * config/vms/xm-vms64.h: New file.
9932         * config/vms/xm-vms.h: Moved here from config/alpha.
9933         (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
9934         Set.
9935         * config/vms/x-vms: Moved here from config/alpha.
9936         (version, VMS_EXTRA_PARTS): Moved to t-vms.
9937         (vms-ld.o, vms-cc.o): Removed.
9938         (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
9939
9940 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
9941
9942         * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
9943         correct stack (obvious VMS fix).
9944
9945 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
9946
9947         * dwarf2out.c (output_file_names): Output VMS style file name, size,
9948         date, version info if VMS_DEBUGGING_INFO defined.
9949         * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
9950         size, date calculating code moved here.
9951
9952 2009-07-29  Paul Brook  <paul@codesourcery.com>
9953
9954         * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
9955         do_push/do_pop.
9956
9957 2009-07-29  Uros Bizjak  <ubizjak@gmail.com>
9958
9959         PR target/40577
9960         * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
9961         to DImode when generating insq_le insn.
9962
9963 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
9964
9965         * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
9966         New macro set for VMS_DEBUGGGING_INFO.
9967         (AT_string_form): Use it.
9968
9969 2009-07-28  DJ Delorie  <dj@redhat.com>
9970
9971         * config/mep/mep.c (vtext_section): New.
9972         (vftext_section): New.
9973         (ftext_section): New.
9974         (mep_select_section): Add support for functions.
9975         (mep_unique_section): Likewise.
9976         (mep_asm_init_sections): Likewise.
9977         (mep_encode_section_info): Remove it from here.
9978
9979         * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
9980
9981 2009-07-28  Paolo Bonzini  <bonzinI@gnu.org>
9982
9983         * tree.h (TREE_DEPRECATED): Document it is used for types too.
9984         (TYPE_VECTOR_OPAQUE): Use default_def_flag
9985
9986 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
9987
9988         * dwarf2out.c (output_file_names): Test new macro
9989         DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
9990         (add_comp_dir_attribute): Likewise.
9991
9992 2009-07-28  Kai Tietz  <kai.tietz@onevision.com>
9993
9994         * config/i386/mingw-w64.h (LINK_SPEC): Add
9995         separating space between commands.
9996
9997 2009-07-28  Jan Hubicka  <jh@suse.cz>
9998
9999         PR tree-optimization/40759
10000         * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
10001         for renaming.
10002
10003 2009-07-27  DJ Delorie  <dj@redhat.com>
10004
10005         * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
10006         types are dword-aligned.
10007         (mep_expand_va_start): Likewise.
10008
10009 2009-07-27  Olivier Hainque  <hainque@adacore.com>
10010             Douglas B Rupp  <rupp@gnat.com>
10011
10012         * convert.c (convert_to_pointer): Don't assume the target
10013         pointer type is POINTER_SIZE long. Fetch its precision instead.
10014
10015 2009-07-27  Douglas B Rupp  <rupp@gnat.com>
10016
10017         * system.h (fopen): Undefine if macro.
10018
10019 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
10020
10021         * dwarf2out.c (output_cfi_p): Removed.
10022         (output_cfis): New function.
10023         (output_fde): New function, split from output_call_frame_info.
10024         (output_call_frame_info): Use it.
10025         (dwarf2out_switch_text_section): Use output_cfis.
10026
10027 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
10028
10029         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
10030         TARGET_BI_ARCH is specified without enabling SJLJ.
10031         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
10032         if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
10033
10034 2009-07-26  Mikael Pettersson <mikpe@it.uu.se>
10035
10036         * arm.md (negdi2): Use DImode if forcing a value into a register.
10037
10038 2009-07-26  Ira Rosen  <irar@il.ibm.com>
10039
10040         PR tree-optimization/40801
10041         * tree-vect-stmts.c (vectorizable_call): Get previous copy
10042         of vector operand from the previous copy of vector statement.
10043         Pass the correct definition type value to
10044         vect_get_vec_def_for_stmt_copy().
10045
10046 2009-07-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10047
10048         * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
10049         const char ** conversion.
10050
10051 2009-07-25 David Daney <ddaney@caviumnetworks.com>
10052
10053         * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
10054         fancy_abort() if !ENABLE_ASSERT_CHECKING.
10055         (gcc_unreachable): Invoke __builtin_unreachable() if
10056         !ENABLE_ASSERT_CHECKING.
10057
10058 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
10059
10060         PR rtl-optimization/40445
10061         * emit-rtl.c (next_nonnote_insn_bb): New function.
10062         * rtl.h (next_nonnote_insn_bb): Declare new function.
10063         * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
10064         with no successors that is the successor of the ENTRY_BLOCK.
10065         Continue from the top after removing an empty fallthrough block.
10066         * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
10067         of next_nonnote_insn.
10068
10069 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
10070
10071         * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
10072
10073 2009-07-25  Martin Jambor  <mjambor@suse.cz>
10074
10075         * c-common.c (c_common_attribute_table): New element for noclone.
10076         (handle_noclone_attribute): New function. Forward-declare.
10077         * tree-inline.c (tree_versionable_function_p): Check for noclone
10078         attribute.
10079         * doc/extend.texi (Labels as Values): Document need for noclone.
10080         (Function Attributes): Document noclone attribute.
10081
10082 2009-07-25  Jakub Jelinek  <jakub@redhat.com>
10083
10084         PR rtl-optimization/34999
10085         * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
10086         and dw_fde_switched_cold_to_hot fields.
10087         (output_cfi_p): New function.
10088         (output_call_frame_info): If fde->dw_fde_switched_sections,
10089         output 2 FDEs instead of one with corrupted header.
10090         (dwarf2out_do_cfi_startproc): New function.
10091         (dwarf2out_begin_prologue): Use it.  Initialize fde->dw_fde_switch_cfi
10092         and fde->dw_fde_switched_cold_to_hot.
10093         (dwarf2out_switch_text_section): Compute
10094         fde->dw_fde_switched_cold_to_hot.  Switch to new text section here.
10095         If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
10096         dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
10097         Otherwise, compute fde->dw_fde_switch_cfi.
10098
10099 2009-07-24  Cary Coutant  <ccoutant@google.com>
10100
10101         * tree-cfg.c (assign_discriminator): Add explicit parentheses.
10102
10103 2009-07-24  Cary Coutant  <ccoutant@google.com>
10104
10105         * cfghooks.c (split_block): Copy discriminator to new block.
10106         * tree-cfg.c (assign_discriminator): Check location of last
10107         instruction in block as well as first.
10108
10109 2009-07-24  Uros Bizjak  <ubizjak@gmail.com>
10110
10111         * config/i386/linux.c: Use fputs or putc instead of fprintf
10112         where appropriate.
10113         * config/i386/gas.h: Ditto.
10114         * config/i386/x86-64.h: Ditto.
10115         * config/i386/att.h: Ditto.
10116
10117 2009-07-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10118
10119         * expmed.c (emit_store_flag): Use a recursive call to optimize the
10120         xor case.
10121
10122 2009-07-24  Martin Jambor  <mjambor@suse.cz>
10123
10124         * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
10125         (ipa_push_func_to_list_1): Declare.
10126         (ipa_push_func_to_list): New function.
10127
10128         * ipa-prop.c (ipa_push_func_to_list_1): New function.
10129         (ipa_init_func_list): Call ipa_push_func_to_list_1.
10130         (ipa_push_func_to_list): Removed.
10131         (ipa_pop_func_from_list): Clear node_enqueued flag.
10132
10133 2009-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
10134
10135         * config/s390/s390.c (override_options): Default
10136         max-unrolled-insns to 100 for z10 tuning.
10137
10138 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
10139
10140         * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
10141         tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
10142         tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
10143         tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
10144         tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
10145         tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
10146         lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
10147
10148 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
10149
10150         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
10151         use default set in mingw32.h header.
10152         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
10153         64-bit /mingw/include path.
10154         (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
10155         path.
10156
10157 2009-07-23  Neil Vachharajani  <nvachhar@google.com>
10158
10159         PR rtl-optimization/40209
10160         * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
10161
10162 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
10163
10164         * config/i386/i386.c: Use ASM_LONG instead of .long.  Concatenate
10165         ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
10166         with the rest of string where appropriate.  Use fputs or putc
10167         instead of fprintf where appropriate.
10168
10169 2009-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
10170             Pat Haugen  <pthaugen@us.ibm.com>
10171             Revital Eres <ERES@il.ibm.com>
10172
10173         * config/rs6000/vector.md: New file.  Move most of the vector
10174         expander support here from altivec.md to allow for the VSX vector
10175         unit in the future.  Add support for secondary_reload patterns.
10176         Rewrite the patterns for vector comparison, and vector comparison
10177         predicate instructions so that the RTL expresses the desired
10178         behavior, instead of using unspec.
10179
10180         * config/rs6000/constraints.md ("f" constraint): Use
10181         rs6000_constraints to hold the precalculated register class.
10182         ("d" constraint): Ditto.
10183         ("wd" constraint): New constraint for VSX.
10184         ("wf" constraint): Ditto.
10185         ("ws" constraint): Ditto.
10186         ("wa" constraint): Ditto.
10187         ("wZ" constraint): Ditto.
10188         ("j" constraint): Ditto.
10189
10190         * config/rs6000/predicates.md (vsx_register_operand): New
10191         predicate for VSX.
10192         (vfloat_operand): New predicate for vector.md.
10193         (vint_operand): Ditto.
10194         (vlogical_operand): Ditto.
10195         (easy_fp_constant): If VSX, 0.0 is an easy constant.
10196         (easy_vector_constant): Add VSX support.
10197         (altivec_indexed_or_indirect_operand): New predicate for
10198         recognizing Altivec style memory references with AND -16.
10199
10200         * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
10201         for vector secondary reload support.
10202         (rs6000_vector_reg_class): Delete, replacing it with
10203         rs6000_constraints.
10204         (rs6000_vsx_reg_class): Ditto.
10205         (rs6000_constraints): New array to hold the register classes of
10206         each of the register constraints that can vary at runtime.
10207         (builtin_mode_to_type): New static array for builtin function type
10208         creation.
10209         (builtin_hash_table): New static hash table for builtin function
10210         type creation.
10211         (TARGET_SECONDARY_RELOAD): Define target hook.
10212         (TARGET_IRA_COVER_CLASSES): Ditto.
10213         (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
10214         registers are 128 bits if VSX memory reference instructions are used.
10215         (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
10216         unit is being used.
10217         (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
10218         (rs6000_debug_reg_global): Move -mdebug=reg statements here.
10219         Print several of the scheduling related parameters.
10220         (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
10221         rs6000_constraints instead of rs6000_vector_reg_class.  Move
10222         -mdebug=reg code to rs6000_debug_reg_global.  Add support for
10223         -mvsx-align-128 debug switch.  Drop testing float_p if VSX or
10224         Altivec.  Add VSX support.  Setup for secondary reload support on
10225         Altivec/VSX registers.
10226         (rs6000_override_options): Make power7 set the scheduling groups
10227         like the power5.  Add support for new debug switches to override
10228         the scheduling defaults.  Temporarily disable -mcpu=power7 from
10229         setting -mvsx.  Add support for debug switches -malways-hint,
10230         -msched-groups, and -malign-branch-targets.
10231         (rs6000_buitlin_conversion): Add support for returning unsigned
10232         vector conversion functions to fix regressions due to stricter
10233         type checking.
10234         (rs6000_builtin_mul_widen_even): Ditto.
10235         (rs6000_builtin_mul_widen_odd): Ditto.
10236         (rs6000_builtin_vec_perm): Ditto.
10237         (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
10238         (rs6000_expand_vector_init): Initial VSX support for using xxlxor
10239         to zero a register.
10240         (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
10241         generated upstream.
10242         (bdesc_3arg): Add builtins for unsigned types.  Add builtins for
10243         VSX types for bit operations.  Changes to accomidate vector.md.
10244         (bdesc_2arg): Ditto.
10245         (bdesc_1arg): Ditto.
10246         (struct builtin_description_predicates): Rewrite predicate
10247         handling so that RTL describes the operation, instead of passing
10248         the instruction to be used as a string argument.
10249         (bdesc_altivec_preds): Ditto.
10250         (altivec_expand_predicate_builtin): Ditto.
10251         (altivec_expand_builtin): Ditto.
10252         (rs6000_expand_ternop_builtin): Use a switch instead of an if
10253         statement for vsldoi support.
10254         (altivec_expand_ld_builtin): Change to use new names from vector.md.
10255         (altivec_expand_st_builtin): Ditto.
10256         (paired_expand_builtin): Whitespace changes.
10257         (rs6000_init_builtins): Add V2DF/V2DI types.  Initialize the
10258         builtin_mode_to_type table for secondary reload.  Call
10259         builtin_function_type to build random builtin functions.
10260         (altivec_init_builtins): Change to use builtin_function_type to
10261         create builtin function types dynamically as we need them.
10262         (builtin_hash_function): New support for hashing the tree types
10263         for builtin function as we need it, rather than trying to build
10264         all of the trees that we need.  Add initial preliminary VSX support.
10265         (builtin_function_type): Ditto.
10266         (builtin_function_eq): Ditto.
10267         (builtin_hash_struct): Ditto.
10268         (rs6000_init_builtins): Ditto.
10269         (rs6000_common_init_builtins): Ditto.
10270         (altivec_init_builtins): Ditto.
10271         (rs6000_common_init_builtins): Ditto.
10272         (enum reload_reg_type): New enum for simplifing reg classes.
10273         (rs6000_reload_register_type): Simplify register classes into GPR,
10274         Vector, and other registers.  Altivec and VSX addresses in reload.
10275         (rs6000_secondary_reload_inner): Ditto.
10276         (rs6000_ira_cover_classes): New target hook, that returns the
10277         appropriate cover classes, based on -mvsx being used or not.
10278         (rs6000_secondary_reload_class): Add VSX support.
10279         (get_vec_cmp_insn): Delete, rewrite vector conditionals.
10280         (get_vsel_insn): Ditto.
10281         (rs6000_emit_vector_compare): Rewrite vector conditional support
10282         so that where we can, we use RTL operators, instead of blindly use
10283         UNSPEC.
10284         (rs6000_emit_vector_select): Ditto.
10285         (rs6000_emit_vector_cond_expr): Ditto.
10286         (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
10287         (create_TOC_reference): Add -mdebug=addr support.
10288         (emit_frame_save): VSX loads/stores need register indexed addressing.
10289
10290         * config/rs6000/rs6000.md: Include vector.md.
10291
10292         * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
10293
10294         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10295         support for V2DI, V2DF in logical, permute, select operations.
10296
10297         * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
10298         switch for vsx/power7.
10299         (-mvsx-scalar-memory): Ditto.
10300         (-mvsx-align-128): Ditto.
10301         (-mallow-movmisalign): Ditto.
10302         (-mallow-df-permute): Ditto.
10303         (-msched-groups): Ditto.
10304         (-malways-hint): Ditto.
10305         (-malign-branch-targets): Ditto.
10306
10307         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
10308         hook instead.
10309         (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
10310         (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
10311         (rs6000_vector_reg_class): Delete.
10312         (rs6000_vsx_reg_class): Ditto.
10313         (enum rs6000_reg_class_enum): New enum for the constraints that
10314         vary based on target switches.
10315         (rs6000_constraints): New array to hold the register class for all
10316         of the register constraints that vary based on the switches used.
10317         (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
10318         (enum rs6000_builtins): Add unsigned varients for the builtin
10319         declarations returned by target hooks for expanding multiplies,
10320         select, and permute operations.  Add VSX builtins.
10321         (enum rs6000_builtin_type_index): Add entries for VSX.
10322         (V2DI_type_node): Ditto.
10323         (V2DF_type_node): Ditto.
10324         (unsigned_V2DI_type_node): Ditto.
10325         (bool_long_type_node): Ditto.
10326         (intDI_type_internal_node): Ditto.
10327         (uintDI_type_internal_node): Ditto.
10328         (double_type_internal_node): Ditto.
10329
10330         * config/rs6000/altivec.md (whole file): Move all expanders to
10331         vector.md from altivec.md.  Rename insn matching functions to be
10332         altivec_foo.
10333         (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
10334         (altivec_vcmp*): Ditto.
10335         (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
10336         (VM): New iterator for moves that includes the VSX types.
10337         (altivec_vperm_<mode>): Add VSX types.  Add unsigned types.
10338         (altivec_vperm_<mode>_uns): New, for unsigned types.
10339         (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
10340         (altivec_eq<mode>): Ditto.
10341         (altivec_gt<mode>): Ditto.
10342         (altivec_gtu<mode>): Ditto.
10343         (altivec_eqv4sf): Ditto.
10344         (altivec_gev4sf): Ditto.
10345         (altivec_gtv4sf): Ditto.
10346         (altivec_vcmpbfp_p): Ditto.
10347
10348 2009-07-23  Richard Earnshaw  <rearnsha@arm.com>
10349
10350         * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
10351         unsigned HWI.
10352
10353 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
10354
10355         PR target/40832
10356         * config/i386/i386.c (output_387_ffreep): Rewrite to use
10357         ASM_SHORT instead of .word.
10358         * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
10359         instead of .word in asm template.
10360
10361 2009-07-22  Vladimir Makarov  <vmakarov@redhat.com>
10362
10363         PR target/37488
10364         * ira-lives.c (bb_has_abnormal_call_pred): New function.
10365         (process_bb_node_lives): Use it.
10366
10367         * ira.c (setup_cover_and_important_classes): Don't setup
10368         ira_important_class_nums.  Add cover classes to the end of
10369         important classes.
10370         (cover_class_order, comp_reg_classes_func, reorder_important_classes):
10371         New.
10372         (find_reg_class_closure): Use reorder_important_classes.
10373
10374         * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
10375
10376         * config/i386/i386.c (i386_ira_cover_classes): New function.
10377         (TARGET_IRA_COVER_CLASSES): Redefine.
10378
10379         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
10380         importance of order of cover classes in the array.
10381
10382 2009-07-22  Diego Novillo  <dnovillo@google.com>
10383
10384         * tree-pass.h (TDF_EH): Define.
10385         * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
10386         contains TDF_EH, print the EH region number holding GS.
10387         * tree-dump.c (dump_options): Add "eh".
10388         * doc/invoke.texi: Document it.
10389
10390 2009-07-22  Doug Kwan  <dougkwan@google.com>
10391
10392         * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
10393
10394 2009-07-22  Michael Matz  <matz@suse.de>
10395
10396         PR tree-optimization/35229
10397         PR tree-optimization/39300
10398
10399         * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
10400         (inhibit_phi_insertion): New function.
10401         (insert_into_preds_of_block): Call it for REFERENCEs.
10402         (init_pre): Initialize and finalize scalar evolutions.
10403         * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
10404
10405 2009-07-22  Uros Bizjak  <ubizjak@gmail.com>
10406
10407         * config/i386/predicates.md (zero_extended_scalar_load_operand):
10408         Use CONST_VECTOR_NUNITS to determine number of elements.
10409
10410 2009-07-22  Andreas Krebbel  <krebbel1@de.ibm.com>
10411
10412         * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
10413         (U, W): Constraints are now deprecated and will be removed if we
10414         run out of letters.
10415         * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
10416         the file.
10417         ("prefetch"): Add the stcmh instruction for prefetching.
10418         * config/s390/s390.c (s390_symref_operand_p): Function moved. No
10419         changes.
10420         (s390_short_displacement): Return always true if compiling for
10421         machines not providing the long displacement facility.
10422         (s390_mem_constraint): Support the new constraint letter Z.
10423         (s390_check_qrst_address): New function.
10424
10425 2009-07-21  DJ Delorie  <dj@redhat.com>
10426
10427         * config/mep/mep.c (mep_legitimize_arg): Leave control registers
10428         alone too.
10429
10430 2009-07-21  Jason Merrill  <jason@redhat.com>
10431
10432         * c-common.c (max_tinst_depth): Increase default to 1024.
10433
10434 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
10435
10436         * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
10437         (vec_unpacku_float_lo_v4si): Ditto.
10438
10439 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
10440
10441         PR target/40811
10442         * config/i386/sse.md (sse2_cvtudq2ps): New expander.
10443         (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
10444         (builtin_description): Add __builtin_ia32_cvtudq2ps.
10445         (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
10446
10447 2009-07-21  Jakub Jelinek  <jakub@redhat.com>
10448
10449         PR tree-optimization/40813
10450         * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
10451         it.
10452
10453 2009-07-21  Kaz Kojima  <kkojima@gcc.gnu.org>
10454
10455         * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
10456         with a NOP_EXPR if needed.
10457
10458 2009-07-21  Paul Brook <paul@codesourcery.com>
10459
10460         * tree-vectorizer.c (increase_alignment): Handle nested arrays.
10461         Terminate debug dump with newline.
10462
10463 2009-07-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10464
10465         * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
10466         Cast "1" to unsigned HOST_WIDE_INT.
10467         (compute_zdepdi_operands): Limit maximum length to 64 bits.  Limit
10468         deposit length to the maximum length - lsb.  Extend length if
10469         HOST_BITS_PER_WIDE_INT is 32.
10470
10471 2009-07-20  Olatunji Ruwase <tjruwase@google.com>
10472
10473         * cgraph.h (constant_pool_htab): New function.
10474         (constant_descriptor_tree): Move from varasm.c.
10475         * varasm.c (constant_pool_htab): New function.
10476         (constant_descriptor_tree): Move to cgraph.h.
10477
10478 2009-07-20  Olatunji Ruwase  <tjruwase@google.com>
10479
10480         * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
10481
10482 2009-07-20  Shujing Zhao  <pearly.zhao@oracle.com>
10483
10484         * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
10485         $(VARRAY_H).
10486
10487 2009-07-20  Xinliang David Li  <davidxl@google.com>
10488
10489         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
10490
10491 2009-07-20  Adam Nemet  <anemet@caviumnetworks.com>
10492
10493         * config/mips/mips.md (move_type): Add arith.
10494         (type): Handle arith.
10495         (zero_extendsidi2): Rename this into ...
10496         (*zero_extendsidi2): ... this.  Don't match if ISA_HAS_EXT_INS.
10497         (zero_extendsidi2): New expander.
10498         (*zero_extendsidi2_dext): New pattern.
10499
10500 2009-07-20  Nick Clifton  <nickc@redhat.com>
10501
10502         * config.gcc (mips64-*-*): Add definition of tm_defines in order
10503         to set MIPS_ABI_DEFAULT.
10504         * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
10505
10506 2009-07-20  Jakub Jelinek  <jakub@redhat.com>
10507
10508         * tree-object-size.c (addr_object_size): Handle unions with
10509         array in it as last field of structs in __bos (, 1) as __bos (, 0).
10510
10511         PR tree-optimization/40792
10512         * tree.c (build_function_type_skip_args): Remove bogus assert.
10513
10514 2009-07-20  Jan Hubicka  <jh@suse.cz>
10515             Martin Jambor  <mjambor@suse.cz>
10516
10517         * cgraph.h (combined_args_to_skip): New field.
10518         * cgraph.c (cgraph_create_virtual_clone): Properly handle
10519         combined_args_to_skip and args_to_skip.
10520         * tree-inline.c (update_clone_info): New function.
10521         (tree_function_versioning): Call update_clone_info.
10522         * cgraphunit.c (cgraph_materialize_clone): Dump materialized
10523         functions.
10524         (cgraph_materialize_all_clones): More extensive dumping, working
10525         with combined_args_to_skip rather than args_to_skip.
10526
10527 2009-07-20  Ira Rosen  <irar@il.ibm.com>
10528
10529         * tree-vectorizer.h (vectorizable_condition): Add parameters.
10530         * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
10531         (get_initial_def_for_reduction): Likewise.
10532         (vectorizable_reduction): Skip the check of first operand in case
10533         of COND_EXPR. Add check that it is outer loop vectorization if
10534         nested cycle was detected. Call vectorizable_condition() for
10535         COND_EXPR. If reduction epilogue cannot be created do not fail for
10536         nested cycles (if it is not double reduction). Assert that there
10537         is only one type in the loop in case of COND_EXPR. Call
10538         vectorizable_condition() to vectorize COND_EXPR.
10539         * tree-vect-stmts.c (vectorizable_condition): Update comment.
10540         Add parameters. Allow nested cycles if called from
10541         vectorizable_reduction(). Use reduction vector variable if provided.
10542         (vect_analyze_stmt): Call vectorizable_reduction() before
10543         vectorizable_condition().
10544         (vect_transform_stmt): Update call to vectorizable_condition().
10545
10546 2009-07-20  Christian Bruel  <christian.bruel@st.com>
10547
10548         * config/sh/sh.opt (-mfmovd): Resurrect and document.
10549         * doc/invoke.texi (-mfmovd): Likewise.
10550         * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
10551
10552 2009-07-20  Jan Hubicka  <jh@suse.cz>
10553
10554         * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
10555         when handling SSA name.
10556
10557 2009-07-19  Jan Hubicka  <jh@suse.cz>
10558
10559         PR tree-optimization/40676
10560         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
10561         virtual PHIs in empty BBs.
10562
10563 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
10564
10565         * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
10566         re-expanded the compound use gen_lowpart instead to convert to the
10567         desired mode.
10568
10569 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
10570
10571         * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
10572         OUTER_CONST arguments.
10573         <LSHIFTRT>: Use them to allow widening if the bits shifted in from
10574         the new wider mode will be masked off.
10575         (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
10576
10577 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
10578
10579         * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
10580         high-order bits are zero.
10581
10582 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
10583
10584         * combine.c (simplify_shift_const_1): Split code to determine
10585         shift_mode into ...
10586         (try_widen_shift_mode): ... here.  Allow widening for ASHIFTRT if the
10587         new bits shifted in are identical to the old sign bit.
10588
10589 2009-07-18  Richard Guenther  <rguenther@suse.de>
10590
10591         PR c/40787
10592         * gimplify.c (gimplify_call_expr): Reject code using results from
10593         functions returning void.
10594
10595 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
10596
10597         * doc/md.texi: Document the new PowerPC "es" constraint.
10598         Document that "m" can include automodified addresses on this target,
10599         and explain how %U must be used.  Extend the "Q" and "Z" documentation
10600         to suggest "es" as well as "m".
10601         * config/rs6000/constraints.md (es): New memory constraint.
10602         (Q, Z): Update strings to match new documentation.
10603
10604 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
10605
10606         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
10607         offset from virtual_stack_vars_rtx and arg_pointer_rtx.
10608         * config/rs6000/predicates.md (volatile_mem_operand): Use
10609         offsettable_nonstrict_memref_p.
10610         * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
10611         (*floatunssidf2_internal): Likewise.
10612         (*fix_truncdfsi2_internal): Likewise.
10613         (*fix_trunctfsi2_internal): Likewise.
10614
10615 2009-07-17  Anatoly Sokolov  <aesok@post.ru>
10616
10617         * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
10618         atmega32u2 devices.
10619         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
10620
10621 2009-07-17  Richard Guenther  <rguenther@suse.de>
10622
10623         PR c/40401
10624         * tree-pass.h (pass_diagnose_omp_blocks): Declare.
10625         (pass_warn_unused_result): Likewise.
10626         (TODO_set_props): Remove.
10627         * omp-low.c (diagnose_omp_structured_block_errors): Change to
10628         run as a pass.
10629         (pass_diagnose_omp_blocks): Define.
10630         * c-decl.c (pop_file_scope): Do not finalize the CU here.
10631         (c_gimple_diagnostics_recursively): Remove.
10632         (finish_function): Do not call it.
10633         (c_write_global_declarations): Continue after errors.
10634         Finalize the CU here.
10635         * c-gimplify.c (c_genericize): Do not gimplify here.
10636         * c-common.c (c_warn_unused_result): Move ...
10637         * tree-cfg.c (do_warn_unused_result): ... here.
10638         (run_warn_unused_result): New function.
10639         (gate_warn_unused_result): New function.
10640         (pass_warn_unused_result): New pass.
10641         * c-common.h (c_warn_unused_result): Remove.
10642         * flags.h (flag_warn_unused_result): Declare.
10643         * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
10644         * opts.c (flag_warn_unused_result): Initialize to false.
10645         * toplev.c (compile_file): Add comment.
10646         * omp-low.c (create_omp_child_function): Do not register
10647         the function with the frontend.
10648         (diagnose_omp_structured_block_errors): Prepare to be
10649         called as optimization pass.
10650         (gate_diagnose_omp_blocks): New function.
10651         (pass_diagnose_omp_blocks): New pass.
10652         * cgraph.h (cgraph_optimize): Remove.
10653         (cgraph_analyze_function): Likewise.
10654         * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
10655         * cgraphunit.c (cgraph_lower_function): Lower nested functions
10656         before their parents here.
10657         (cgraph_finalize_function): Not here.
10658         (cgraph_analyze_function): Gimplify functions here.
10659         (cgraph_finalize_compilation_unit): Continue after errors.
10660         Optimize the callgraph from here.
10661         (cgraph_optimize): Make static.
10662         * langhooks.c (write_global_declarations): Finalize the CU.
10663         * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
10664         (gimplify_function_tree): Assert we gimplify only once.
10665         Set PROP_gimple_any property.
10666         * tree-nested.c (gimplify_all_functions): New function.
10667         (lower_nested_functions): Gimplify all nested functions.
10668         * gimple.h (diagnose_omp_structured_block_errors): Remove.
10669         * passes.c (init_optimization_passes): Add pass_warn_unused_result
10670         and pass_diagnose_omp_blocks after gimplification.  Do not
10671         set TODO_set_props on all_lowering_passes.
10672         (execute_one_pass): Do not handle TODO_set_props.
10673         * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
10674         (gimplify.o): Add tree-pass.h dependency.
10675         * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
10676         (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
10677         (unsave_r): Likewise.
10678         * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
10679         temporary variable.
10680
10681 2009-07-17  Sandra Loosemore  <sandra@codesourcery.com>
10682
10683         * doc/service.texi (Service): Restore previously removed link,
10684         which isn't broken after all.
10685
10686 2009-07-17  Richard Guenther  <rguenther@suse.de>
10687
10688         PR tree-optimization/40321
10689         * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
10690         PHI nodes to the maximal set.
10691         (make_values_for_phi): Add PHI arguments to the maximal set.
10692         (execute_pre): Dump PHI_GEN and the maximal set.
10693
10694 2009-07-17  Jakub Jelinek  <jakub@redhat.com>
10695
10696         PR c++/40780
10697         * gimplify.c (gimplify_conversion): Don't change non-conversions into
10698         VIEW_CONVERT_EXPR.
10699
10700 2009-07-16  Sandra Loosemore  <sandra@codesourcery.com>
10701
10702         * doc/extend.texi (Nested Functions): Replace broken link with
10703         textual reference.
10704         * doc/service.texi (Service): Remove broken link.
10705
10706 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
10707
10708         PR bootstrap/40781
10709         * builtins.c (expand_builtin_memcmp): Use loc instead of
10710         EXPR_LOCATION (exp).
10711         (expand_builtin_strncmp): Likewise.
10712
10713 2009-07-17  Aldy Hernandez  <aldyh@redhat.com>
10714             Manuel López-Ibáñez  <manu@gcc.gnu.org>
10715
10716         PR 40435
10717         * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
10718         builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
10719         tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
10720         c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
10721         calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
10722         tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
10723         tree-inline.c, c-common.c, c-common.h, gimple.c,
10724         tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
10725         convert.c: Add location argument to fold_{unary,binary,ternary},
10726         fold_build[123], build_call_expr, build_size_arg,
10727         build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
10728         fold_build1_initializer, fold_build2_initializer,
10729         fold_build3_initializer, fold_build_call_array,
10730         fold_build_call_array_initializer, fold_single_bit_test,
10731         omit_one_operand, omit_two_operands, invert_truthvalue,
10732         fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
10733         combine_comparisons, fold_builtin_*, fold_call_expr,
10734         build_range_check, maybe_fold_offset_to_address, round_up,
10735         round_down.
10736
10737 2009-07-16  Jason Merrill  <jason@redhat.com>
10738
10739         PR libstdc++/37907
10740         * c-common.c (c_common_reswords): Add __is_standard_layout
10741         and __is_trivial.
10742         * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
10743         * doc/implement-cxx.texi: New.
10744         * doc/gcc.texi: Include it.
10745
10746 2009-07-16  DJ Delorie  <dj@redhat.com>
10747
10748         * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
10749         compares that may be indirectly affected by previous instructions.
10750
10751 2009-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10752
10753         * builtins.c (do_mpc_arg2): New.
10754         (fold_builtin_2): Fold builtin cpow.
10755         * real.h (HAVE_mpc_pow): New.
10756
10757 2009-07-16  Bingfeng Mei  <bmei@broadcom.com>
10758
10759         * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
10760         comparison to skip unprofitable schedule
10761
10762 2009-07-16  Simon Baldwin  <simonb@google.com>
10763
10764         * gcc.c (option_map): New flag -no-canonical-prefixes.
10765         * (display_help): Print help text for new flag.
10766         * (process_command): Move options translation and language specifics
10767         and handle new flag early.  Use it to set a function pointer to a
10768         prefix builder.  Replace make_relative_prefix calls with calls to
10769         the function pointed to.  Ignore new flag in regular options handling.
10770         * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
10771
10772 2009-07-15  DJ Delorie  <dj@redhat.com>
10773
10774         * config/mep/mep.md (sibcall_internal): Change register to avoid
10775         argument registers.
10776         (sibcall_value_internal): Likewise.
10777
10778 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
10779
10780         PR rtl-optimization/40710
10781         * resource.c (mark_target_live_regs): Reset DF problem to LR.
10782
10783 2009-07-15  Adam Nemet  <anemet@caviumnetworks.com>
10784
10785         * config/mips/mips.md (*extenddi_truncate<mode>,
10786         *extendsi_truncate<mode>): Change type attribute to move_type
10787         with shift_shift.  Split out code handling exts from here ...
10788         (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
10789         pattern.
10790         (*extendhi_truncateqi): Change type attribute to move_type with
10791         shift_shift.  Split out code handling exts from here ...
10792         (*extendhi_truncateqi_exts): ... to this new pattern.
10793
10794 2009-07-15  Uros Bizjak  <ubizjak@gmail.com>
10795
10796         * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
10797         instead of "and" with inverted sign bit mask value.  Use
10798         "nonimmediate_operand" for operand 1 and operand 2 predicate.
10799         Allocate registers only for operand 4 and operand 5.
10800
10801 2009-07-15  Jakub Jelinek  <jakub@redhat.com>
10802
10803         PR middle-end/40747
10804         * fold-const.c (fold_cond_expr_with_comparison): When folding
10805         < and <= to MIN, make sure the MIN uses the same type as the
10806         comparison's operands.
10807
10808 2009-07-15  Richard Earnshaw  <rearnsha@arm.com>
10809
10810         * arm.md (ior_xor): New code iterator.
10811         (split for ior/xor with shift and zero-extend): New split pattern.
10812         * arm/predicates.md (subreg_lowpart_operator): New special predicate.
10813
10814 2009-07-15  Richard Guenther  <rguenther@suse.de>
10815
10816         * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
10817         offset member.
10818
10819 2009-07-15  Richard Guenther  <rguenther@suse.de>
10820
10821         PR middle-end/40753
10822         * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
10823
10824 2009-07-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
10825
10826         * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
10827         handle 2.6.30 kernel.
10828
10829 2009-07-15  DJ Delorie  <dj@redhat.com>
10830
10831         * config/mep/mep.md (sibcall_internal): Change register to allow
10832         for 24-bit addresses.
10833         (sibcall_value_internal): Likewise.
10834
10835 2009-07-14  Ghassan Shobaki  <ghassan.shobaki@amd.com>
10836
10837         * doc/invoke.texi: Added descriptions of the  scheduling heuristics
10838         that are enabled/disabled by the flags introduced by a previous patch.
10839
10840 2009-07-14  DJ Delorie  <dj@redhat.com>
10841
10842         * config/mep/mep.md (sibcall_internal): Include non-toggling
10843         non-jmp case.
10844         (sibcall_value_internal): Likewise.
10845
10846 2009-07-14  Taras Glek  <tglek@mozilla.com>
10847             Rafael Espindola  <espindola@google.com>
10848
10849         * doc/sourcebuild.texi: Document install-plugin target.
10850         * configure.ac: Added install-plugin target to language makefiles.
10851         * configure: Regenerate.
10852         * Makefile.in (install-plugin): Install more headers,
10853         depend on lang.install-plugin.
10854
10855 2009-07-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10856
10857         * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
10858         translation.
10859
10860 2009-07-14  DJ Delorie  <dj@redhat.com>
10861
10862         * config/mep/mep.c (mep_vliw_jmp_match): New function.
10863         * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
10864         * config/mep/mep.md (sibcall_internal): Change test from
10865         mep_vliw_mode_match to mep_vliw_jmp_match.
10866         (sibcall_value_internal): Likewise.
10867
10868 2009-07-14  Uros Bizjak  <ubizjak@gmail.com>
10869
10870         * config/i386/sse.md (copysign<mode>3): New expander.
10871         * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
10872         * config/i386/i386.c (ix86_build_signbit_mask): Make public.
10873         Use ix86_build_const_vector.
10874         (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
10875         IX86_BUILTIN_CPYSGNPD.
10876         (builtin_description): Add __builtin_ia32_copysignps and
10877         __builtin_ia32_copysignpd.
10878         (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
10879         and BUILT_IN_COPYSIGNF.
10880
10881 2009-07-13  Jason Merrill  <jason@redhat.com>
10882
10883         * builtins.c (can_trust_pointer_alignment): New fn.
10884         (get_pointer_alignment): Factor it out from here.
10885         * tree.h: Declare it.
10886
10887 2009-07-14  David Edelsohn  <edelsohn@gnu.org>
10888
10889         * config/rs6000/predicates.md (offsettable_mem_operand): Test
10890         RTX_AUTOINC class.
10891
10892 2009-07-14  Dodji Seketeli  <dodji@redhat.com>
10893
10894         PR debug/40705
10895         PR c++/403057
10896         * dwarf2.out.c (gen_type_die_with_usage): Added comment.
10897
10898 2009-07-14  Richard Guenther  <rguenther@suse.de>
10899             Andrey Belevantsev <abel@ispras.ru>
10900
10901         PR middle-end/40745
10902         * cfgexpand.c (partition_stack_vars): Do not bother to update
10903         alias information when not optimizing.
10904
10905 2009-07-14  Richard Guenther  <rguenther@suse.de>
10906             Andrey Belevantsev <abel@ispras.ru>
10907
10908         * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
10909         (pt_solution_set): Likewise.
10910         * tree-ssa-alias.c (refs_may_alias_p_1): Export.
10911         * tree-ssa-structalias.c (pt_solution_set): New function.
10912         * final.c (rest_of_clean_state): Free SSA data structures.
10913         * print-rtl.c (print_decl_name): Remove.
10914         (print_mem_expr): Implement in terms of print_generic_expr.
10915         * alias.c (ao_ref_from_mem): New function.
10916         (rtx_refs_may_alias_p): Likewise.
10917         (true_dependence): Query alias-export info.
10918         (canon_true_dependence): Likewise.
10919         (write_dependence_p): Likewise.
10920         * tree-dfa.c (get_ref_base_and_extent): For void types leave
10921         size unknown.
10922         * emit-rtl.c (component_ref_for_mem_expr): Remove.
10923         (mem_expr_equal_p): Use operand_equal_p.
10924         (set_mem_attributes_minus_bitpos): Do not use
10925         component_ref_for_mem_expr.
10926         * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
10927         (update_alias_info_with_stack_vars): Likewise.
10928         (partition_stack_vars): Call update_alias_info_with_stack_vars.
10929         * tree-ssa.c (delete_tree_ssa): Do not release SSA names
10930         explicitly nor clear stmt operands.
10931         Free the decl-to-pointer map.
10932         * tree-optimize.c (execute_free_datastructures): Do not free
10933         SSA data structures here.
10934         * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
10935         * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
10936         (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
10937         dependencies.
10938         (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
10939
10940 2009-07-13  DJ Delorie  <dj@redhat.com>
10941
10942         * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
10943         unrolling at the right iteration count.
10944
10945         * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
10946         calculations.
10947
10948 2009-07-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
10949
10950         * haifa-sched.c (rank_for_schedule): Introduced flags to
10951         enable/disable individual scheduling heuristics.
10952         * common.opt: Introduced flags to enable/disable individual
10953         heuristics in the scheduler.
10954         * doc/invoke.texi: Introduced flags to enable/disable individual
10955         heuristics in the scheduler.
10956
10957 2009-07-13  Kai Tietz  <kai.tietz@onevision.com>
10958
10959         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
10960         config/i386/mingw-tls.c.
10961         * config/i386/mingw-tls.c: Removed.
10962
10963 2009-07-13  Ira Rosen  <irar@il.ibm.com>
10964
10965         * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
10966         checks access only relevant statements.
10967         (vectorizable_reduction): Likewise.
10968
10969 2009-07-12  Kai Tietz  <kai.tietz@onevision.com>
10970
10971         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
10972         just for 32-bit case.
10973
10974 2009-07-12  Jan Hubicka  <jh@suse.cz>
10975
10976         PR tree-optimization/40585
10977         * except.c (expand_resx_expr): When there already is resume
10978         instruction, produce linked list.
10979         (build_post_landing_pads): Assert that resume is empty.
10980         (connect_post_landing_pads): Handle resume lists.
10981         (dump_eh_tree): Dump resume list.
10982
10983 2009-07-12  Ira Rosen  <irar@il.ibm.com>
10984
10985         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
10986         with additional argument.
10987         * tree-vectorizer.h (enum vect_def_type): Add
10988         vect_double_reduction_def.
10989         (vect_is_simple_reduction): Add argument.
10990         * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
10991         indentation.
10992         (vect_analyze_scalar_cycles_1): Detect double reduction. Call
10993         vect_is_simple_reduction with additional argument.
10994         (vect_analyze_loop_operations): Handle exit phi nodes in case of
10995         double reduction.
10996         (reduction_code_for_scalar_code): Handle additional codes by
10997         returning ERROR_MARK for them. Fix comment and indentation.
10998         (vect_is_simple_reduction): Fix comment, add argument to specify
10999         double reduction. Detect double reduction.
11000         (get_initial_def_for_induction): Fix indentation.
11001         (get_initial_def_for_reduction): Fix comment and indentation.
11002         Handle double reduction. Create initial definitions that do not
11003         require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
11004         (vect_create_epilog_for_reduction): Fix comment, add argument to
11005         handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
11006         epilogue result extraction. Create double reduction phi node and
11007         replace relevant uses.
11008         (vectorizable_reduction): Call vect_is_simple_reduction with
11009         additional argument. Fix indentation. Update epilogue code treatment
11010         according to the changes in reduction_code_for_scalar_code. Check
11011         for double reduction. Call vect_create_epilog_for_reduction with
11012         additional argument.
11013         * tree-vect-stmts.c (process_use): Handle double reduction, update
11014         documentation.
11015         (vect_mark_stmts_to_be_vectorized): Handle double reduction.
11016         (vect_get_vec_def_for_operand): Likewise.
11017
11018 2009-07-12  Danny Smith  <dansmister@gmail.com>
11019
11020         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
11021         dllexport if !TREE_PUBLIC.
11022         (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
11023
11024 2009-07-11  Anatoly Sokolov  <aesok@post.ru>
11025
11026         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
11027         (avr_extra_arch_macro) Remove declatation.
11028         * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
11029         (avr_extra_arch_macro) Declare as static.
11030         * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
11031
11032 2009-07-11  Jan Hubicka  <jh@suse.cz>
11033
11034         PR middle-end/48388
11035         * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
11036
11037 2009-07-11  Jakub Jelinek  <jakub@redhat.com>
11038
11039         PR debug/40713
11040         * dwarf2out.c (dw_fde_struct): Add in_std_section and
11041         cold_in_std_section bits.
11042         (dwarf2out_begin_prologue): Initialize them.
11043         (dwarf2out_finish): Don't emit FDE range into .debug_ranges
11044         if already covered by text_section or cold_text_section range.
11045
11046         PR rtl-optimization/40667
11047         * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
11048         * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
11049         * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
11050         * config/i386/i386.c (ix86_minimum_alignment): New function.
11051         * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
11052         * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
11053         * emit-rtl.c (gen_reg_rtx): Likewise.
11054         * function.c (assign_parms): Likewise.  If nominal_type needs
11055         bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
11056         rather than passed_type's alignment.
11057
11058         PR target/40668
11059         * function.c (assign_parm_setup_stack): Adjust
11060         MEM_OFFSET (data->stack_parm) if promoted_mode is different
11061         from nominal_mode on big endian.
11062
11063 2009-07-11  Paolo Bonzini  <bonzini@gnu.org>
11064
11065         * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
11066
11067 2009-07-10  DJ Delorie  <dj@redhat.com>
11068
11069         * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
11070
11071 2009-07-10  Mark Mitchell  <mark@codesourcery.com>
11072
11073         * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
11074         attribute.
11075         (thumb2_cbnz): Likewise.
11076
11077 2009-07-10  David Daney  <ddaney@caviumnetworks.com>
11078
11079         PR target/39079
11080         * config.gcc (supported_defaults): Add synci.
11081         (with_synci): Add validation.
11082         (all_defaults): Add synci.
11083         * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
11084         ISA_HAS_SYNCI.
11085         (synci): Same.
11086         * config/mips/mips.opt (msynci): New option.
11087         * config/mips/mips.c (mips_override_options): Warn on use of
11088         -msynci for targets that do now support it.
11089         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
11090         msynci.
11091         * gcc/doc/invoke.texi (-msynci): Document the new option.
11092         * doc/install.texi (--with-synci): Document the new option.
11093
11094 2009-07-10  Richard Guenther  <rguenther@suse.de>
11095
11096         PR tree-optimization/40496
11097         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
11098         the PHI result with a compatible type.
11099
11100 2009-07-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11101
11102         PR 25509
11103         PR 40614
11104         * c.opt (Wunused-result): New.
11105         * doc/invoke.texi: Document it.
11106         * c-common.c (c_warn_unused_result): Use it.
11107
11108 2009-07-09  DJ Delorie  <dj@redhat.com>
11109
11110         * targhooks.c (default_target_can_inline_p): Rename from
11111         default_target_option_can_inline_p.
11112         * targhooks.h (default_target_can_inline_p): Likewise.
11113         * target-def.h (TARGET_CAN_INLINE_P): Rename from
11114         TARGET_OPTION_CAN_INLINE_P.
11115         * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
11116         * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
11117         (mep_target_can_inline_p): Rename from
11118         mep_target_option_can_inline_p.
11119
11120         PR target/40626
11121         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
11122         registers used to pass vectors.
11123
11124         * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
11125
11126 2009-07-09  Tom Tromey  <tromey@redhat.com>
11127
11128         * unwind-dw2-fde-darwin.c: Include dwarf2.h.
11129         * config/mmix/mmix.c: Include dwarf2.h.
11130         * config/rs6000/darwin-fallback.c: Include dwarf2.h.
11131         * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
11132         * config/sh/sh.c: Include dwarf2.h.
11133         * config/i386/i386.c: Include dwarf2.h.
11134         * Makefile.in (DWARF2_H): Remove 'elf'.
11135         * except.c: Include dwarf2.h.
11136         * unwind-dw2.c: Include dwarf2.h.
11137         * dwarf2out.c: Include dwarf2.h.
11138         * unwind-dw2-fde-glibc.c: Include dwarf2.h.
11139         * unwind-dw2-fde.c: Include dwarf2.h.
11140         * dwarf2asm.c: Include dwarf2.h.
11141
11142 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
11143
11144         * haifa-sched.c (insn_finishes_cycle_p): New static function.
11145         (max_issue): Use it.
11146         * sched-int.h (struct sched_info: insn_finishes_block_p): New
11147         scheduler hook.
11148         * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
11149         (region_sched_info): Update.
11150         * sched-ebb.c (ebb_sched_info): Update.
11151         * modulo-sched.c (sms_sched_info): Update.
11152         * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
11153
11154 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
11155
11156         * varasm.c (build_constant_desc): Don't share RTL in pool entries.
11157
11158 2009-07-09  Basile Starynkevitch  <basile@starynkevitch.net>
11159
11160         * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
11161
11162 2009-07-09  Jakub Jelinek  <jakub@redhat.com>
11163
11164         PR middle-end/40692
11165         * fold-const.c (fold_cond_expr_with_comparison): Don't replace
11166         arg1 with arg01 if arg1 is already INTEGER_CST.
11167
11168 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
11169
11170         * simplify-rtx.c (simplify_binary_operation_1) <AND>:
11171         Transform (and (truncate)) into (truncate (and)).
11172
11173 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
11174
11175         * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
11176         creating LHS paradoxical subregs.  Fix surrounding returns to
11177         use NULL_RTX rather than 0.
11178
11179 2009-07-08  DJ Delorie  <dj@redhat.com>
11180
11181         * config/mep/mep.c (mep_option_can_inline_p): New.
11182         (TARGET_OPTION_CAN_INLINE_P): Define.
11183
11184 2009-07-08  Mark Wielaard  <mjw@redhat.com>
11185
11186         PR debug/40659
11187         * dwarf2out.c (add_data_member_location_attribute): When we have
11188         only a constant offset don't emit a new location description using
11189         DW_OP_plus_uconst, but just add the constant with add_AT_int, when
11190         dwarf_version > 2.
11191
11192 2009-07-08  Richard Henderson  <rth@redhat.com>
11193
11194         PR target/38900
11195         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
11196         (enum reg_class): Add CLOBBERED_REGS.
11197         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
11198         * config/i386/i386.c (ix86_conditional_register_usage): Moved
11199         from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
11200         (ix86_function_ok_for_sibcall): Tidy.  Disallow MS->SYSV sibcalls.
11201         (ix86_expand_call): Use sibcall_insn_operand when needed.  Don't
11202         force 64-bit sibcalls into R11.
11203         * config/i386/constraints.md (U): New constraint.
11204         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
11205         (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
11206         (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
11207
11208 2009-07-08  Shujing Zhao  <pearly.zhao@oracle.com>
11209
11210         * basic-block.h (dump_regset, debug_regset): Remove duplicate
11211         prototypes.
11212         * c-objc-common.h (c_initialize_diagnostics): Ditto.
11213         * ebitmap.h (dump_ebitmap): Ditto.
11214         * optabs.h (optab_libfunc): Ditto.
11215         * tree.h (tree_expr_nonzero_warnv_p): Ditto.
11216         * tree-flow.h (vect_can_force_dr_alignment_p,
11217         get_vectype_for_scalar_type): Ditto.
11218         (vectorize_loops): Move prototype to ...
11219         * tree-vectorizer.h: ... here. Also, adjust comment.
11220         (vect_set_verbosity_level): Remove duplicate prototype.
11221         * tree-ssa-loop.c: Include tree-vectorizer.h.
11222         * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
11223
11224 2009-07-08  Nick Clifton  <nickc@redhat.com>
11225
11226         * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
11227         forward slash.
11228
11229 2009-07-08  DJ Delorie  <dj@redhat.com>
11230
11231         * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
11232         cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
11233         cpmovtocc_P0S_P1): Mark volatile.  Note which registers are
11234         written to.
11235         * config/mep/intrinsics.md: Regenerated.
11236         * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
11237         registers when asm() or calls are detected.
11238
11239 2009-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11240
11241         PR c++/31246
11242         * gimplify.c (gimplify_expr): Propagate no_warning flag when
11243         gimplifying.
11244         * gimple (gimple_build_call_from_tree): Likewise.
11245         * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
11246         no_warning flag before warning.
11247
11248 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11249
11250         * tree.c (set_expr_locus): Remove.
11251         * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
11252         * c-typeck.c (c_finish_stmt_expr):  Replace EXPR_LOCUS by
11253         EXPR_LOCATION.
11254         * gimplify.c (internal_get_tmp_var): Likewise.
11255         (gimplify_call_expr): Likewise.
11256         (gimplify_one_sizepos): Likewise.
11257
11258 2009-07-07  Eric Botcazou  <ebotcazou@adacore.com>
11259
11260         PR debug/40666
11261         * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
11262         to variables for debugging purposes.
11263
11264 2009-06-23  Mark Loeser  <mark@halcy0n.com>
11265
11266         PR build/40010
11267         * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
11268
11269 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11270
11271         * pretty-print.c (pp_base_format): Remove %J.
11272         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
11273         gcc_cxxdiag_char_table): Likewise.
11274         (init_dynamic_diag_info): Likewise.
11275
11276 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11277
11278         * pretty-print.c (pp_base_format): Remove %H.
11279         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
11280         gcc_cxxdiag_char_table): Likewise.
11281         (init_dynamic_diag_info): Likewise.
11282         * config/mep/mep.c (mep_select_section): Likewise.
11283
11284 2009-07-07  Duncan Sands  <baldrick@free.fr>
11285
11286         * final.c (pass_clean_state): Give the pass a name.
11287         * passes.c (pass_rest_of_compilation): Likewise.
11288         * tree-optimize.c (pass_all_optimizations): Likewise.
11289
11290 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
11291
11292         * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
11293         an extra 'decl' for error_at.
11294
11295 2009-07-07  Jakub Jelinek  <jakub@redhat.com>
11296
11297         PR middle-end/40669
11298         * tree-tailcall.c (adjust_return_value_with_ops,
11299         create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
11300         if it has complex or vector type.
11301
11302 2009-07-07  Olivier Hainque  <hainque@adacore.com>
11303
11304         * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
11305         pthread symbols.
11306
11307 2009-07-07  Basile Starynkevitch  <basile@starynkevitch.net>
11308
11309         * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
11310
11311 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11312
11313         * cgraphunit.c: Replace %J by an explicit location.  Update all calls.
11314         * c-decl.c: Likewise.
11315         * function.c: Likewise.
11316         * varasm.c: Likewise.
11317         * tree-ssa.c: Likewise.
11318         * c-common.c: Likewise.
11319         * tree-cfg.c: Likewise.
11320         * config/spu/spu.c: Likewise.
11321         * config/ia64/ia64.c: Likewise.
11322         * config/v850/v850.c: Likewise.
11323
11324 2009-07-06  DJ Delorie  <dj@redhat.com>
11325
11326         * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
11327         * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
11328         unspecified accesses to control registers.
11329         * config/mep/intrinsics.md: Regenerate.
11330         * config/mep/intrinsics.h: Regenerate.
11331         * config/mep/mep-intrin.h: Regenerate.
11332
11333 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11334
11335         * c-lex.c: Replace %H by an explicit location. Update all calls.
11336         * c-common.c: Likewise.
11337         * c-decl.c: Likewise.
11338         * c-typeck.c: Likewise.
11339         * fold-const.c: Likewise.
11340         * gimplify.c: Likewise.
11341         * stmt.c: Likewise.
11342         * tree-cfg.c: Likewise.
11343         * tree-ssa-loop-niter.c: Likewise.
11344         * tree-vrp.c: Likewise.
11345         * value-prof.c: Likewise.
11346
11347 2009-07-06  Diego Novillo  <dnovillo@google.com>
11348
11349         * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
11350         if it has one.  Handle cases where VAR does not have an
11351         annotation or cfun is NULL.
11352
11353 2009-07-06  Diego Novillo  <dnovillo@google.com>
11354
11355         * tree.c: Include debug.h.
11356         (initialize_tree_contains_struct): New.
11357         (init_ttree): Call it.
11358         (tree_node_structure_for_code): Factor out of ...
11359         (tree_node_structure): ... here.
11360         * treestruct.def (TS_PHI_NODE): Remove.
11361         (TS_GIMPLE_STATEMENT): Remove.
11362
11363 2009-07-06  Diego Novillo  <dnovillo@google.com>
11364
11365         * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
11366         (debug_tree_chain): Handle cycles.
11367
11368 2009-07-06  Nick Clifton  <nickc@redhat.com>
11369             DJ Delorie  <dj@redhat.com>
11370
11371         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
11372         __FMOVD_ENABLED__ is defined.
11373         * config/sh/sh.h
11374         (TARGET_FMOVD): Provide a default definition.
11375         (MASK_FMOVD): Likewise.
11376         (TARGET_CPU_CPP_BUILTINS): Define
11377         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
11378         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
11379         two fmov instructions depending upon whether TARGET_FMOVD is enabled.
11380         (split for DF load from memory into register): Also handle
11381         MEMs which consist of REG+DISP addressing.
11382         (split for DF store from register to memory): Likewise.
11383         (movsf_ie): Always use single fp_mode.
11384         * config/sh/sh.c (sh_override_options): Do not automatically
11385         enable TARGET_MOVD for the SH2A when supporting doubles - leave
11386         that to the -mfmovd command line switch.
11387         (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
11388         (fldi_ok): Always allow.
11389         * config/sh/sh.opt (mfmovd): Remove this switch.
11390         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
11391
11392 2009-07-06  J"orn Rennecke  <joern.rennecke@arc.com>
11393             Kaz Kojima  <kkojima@gcc.gnu.org>
11394
11395         PR rtl-optimization/30807
11396         * postreload.c (reload_combine): For every new use of REG_SUM,
11397         record the use of BASE.
11398
11399 2009-07-06  Jan Hubicka  <jh@suse.cz>
11400
11401         * params.def: Revert my accidental commit at 2009-06-30.
11402
11403 2009-07-04  Ian Lance Taylor  <iant@google.com>
11404
11405         PR target/40636
11406         * config/i386/msformat-c.c (mingw_format_attributes): Declare as
11407         EXPORTED_CONST.
11408         (mingw_format_attribute_overrides): Likewise.
11409
11410 2009-07-04  Jakub Jelinek  <jakub@redhat.com>
11411
11412         PR debug/40596
11413         * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
11414         don't check cfa.reg.  Instead of cfa.indirect use
11415         fde && fde->drap_reg != INVALID_REGNUM test.
11416
11417 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
11418
11419         * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
11420
11421 2009-07-03  Vladimir Makarov  <vmakarov@redhat.com>
11422
11423         PR target/40587
11424         * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
11425
11426 2009-07-03  Richard Guenther  <rguenther@suse.de>
11427
11428         PR tree-optimization/40640
11429         * tree-switch-conversion.c (build_arrays): Perform arithmetic
11430         in original type.
11431
11432 2009-07-03  Jan Hubicka  <jh@suse.cz>
11433
11434         * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
11435         for size, reduce amount of inlining.
11436
11437 2009-07-03  Richard Guenther  <rguenther@suse.de>
11438
11439         PR middle-end/34163
11440         * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
11441         if t +- x is known to not overflow and the conversion widens the
11442         operation.
11443         * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
11444
11445 2009-07-03  Jan Hubicka  <jh@suse.cz>
11446
11447         * ipa-pure-const.c (analyze): Update loop optimizer init.
11448         * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
11449         try_remove_empty_loop, remove_empty_loops): Remove.
11450         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
11451         * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
11452         to mark regular loops as neccesary.
11453         (degenerate_phi_p): New function.
11454         (propagate_necessity, remove_dead_phis): Use it.
11455         (forward_edge_to_pdom): Likewise.
11456         (eliminate_unnecessary_stmts): Take care to remove uses of results of
11457         virtual PHI nodes that became unreachable.
11458         (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
11459         * tree-flow.h (remove_empty_loops): Remove.
11460         * passes.c (init_optimization_passes): Remove.
11461
11462 2009-07-03  Uros Bizjak  <ubizjak@gmail.com>
11463
11464         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
11465         can_create_pseudo_p.
11466         (*fix_trunc<mode>_i387_1): Ditto.
11467         (*floathi<mode>2_1): Ditto.
11468         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
11469         (*fistdi2_1): Ditto.
11470         (*fist<mode>2_1): Ditto.
11471         (frndintxf2_floor): Ditto.
11472         (*fist<mode>2_floor_1): Ditto.
11473         (frndintxf2_ceil): Ditto.
11474         (*fist<mode>2_ceil_1): Ditto.
11475         (frndintxf2_trunc): Ditto.
11476         (frndintxf2_mask_pm): Ditto.
11477         (fxam<mode>2_i387_with_temp): Ditto.
11478         * config/i386/sse.md (mulv16qi3): Ditto.
11479         (*sse2_mulv4si3): Ditto.
11480         (mulv2di3): Ditto.
11481         (sse4_2_pcmpestr): Ditto.
11482         (sse4_2_pcmpistr): Ditto.
11483
11484 2009-07-03  Jan Hubicka  <jh@suse.cz>
11485
11486         * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
11487         (mark_stmt_necessary): Set it.
11488         (mark_operand_necessary): Set it.
11489         (mark_control_dependent_edges_necessary): Set it.
11490         (mark_virtual_phi_result_for_renaming): New function.
11491         (get_live_post_dom): New function.
11492         (forward_edge_to_pdom): New function.
11493         (remove_dead_stmt): Fix handling of control dependences.
11494         (tree_dce_init): Init new bitmap.
11495         (tree_dce_done): Free it.
11496
11497 2009-07-02  Richard Guenther  <rguenther@suse.de>
11498
11499         PR bootstrap/40617
11500         * tree-ssa-structalias.c (new_var_info): Initialize
11501         is_restrict_var.
11502
11503 2009-07-02  Jan Hubicka  <jh@suse.cz>
11504
11505         * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
11506         local.
11507
11508 2009-07-02  Paolo Bonzini  <bonzini@gnu.org>
11509
11510         * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
11511         instead of recomputing it.  Adjust calls.
11512         (emit_store_flag): Adjust recursive calls.
11513
11514 2009-07-02  Richard Guenther  <rguenther@suse.de>
11515
11516         * tree-ssa-live.c (remove_unused_locals): Do not remove
11517         heap variables.
11518         * tree-ssa-structalias.c (handle_lhs_call): Delay setting
11519         of DECL_EXTERNAL for HEAP variables.
11520         (compute_points_to_sets): Set DECL_EXTERNAL for escaped
11521         HEAP variables.  Do not adjust RESTRICT vars.
11522         (find_what_var_points_to): Nobody cares if something
11523         points to READONLY.
11524
11525 2009-07-02  Ben Elliston  <bje@au.ibm.com>
11526
11527         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
11528         pc_low and pc_high declarations to the top of the function.
11529
11530 2009-07-01  DJ Delorie  <dj@redhat.com>
11531
11532         * config/mep/mep.c (mep_handle_option): Leave IVC2 control
11533         registers as fixed.
11534         (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
11535         * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
11536         unspecified accesses to control registers.
11537         * config/mep/intrinsics.md: Regenerate.
11538         * config/mep/intrinsics.h: Regenerate.
11539         * config/mep/mep-intrin.h: Regenerate.
11540
11541 2009-07-01  Anthony Green  <green@moxielogic.com>
11542
11543         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
11544         instruction when possible.
11545         (moxie_expand_prologue): Ditto.  Also, save an instruction and
11546         some complexity by popping off of $r12 instead of $sp.
11547         * config/moxie/moxie.md (movsi_pop): Don't assume $sp.  Take two
11548         operands.
11549
11550 2009-07-01  Richard Henderson  <rth@redhat.com>
11551
11552         PR bootstrap/40347
11553         * function.c (reposition_prologue_and_epilogue_notes): If epilogue
11554         contained no insns, reposition note before last insn.
11555
11556 2009-07-01  Richard Henderson  <rth@redhat.com>
11557
11558         PR debug/40431
11559         * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
11560         DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
11561
11562 2009-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
11563
11564         PR bootstrap/40558
11565         * config/rs6000/rs6000.c (print_operand): Undo change that breaks
11566         darwin9 for printing reg addresses with %y.
11567
11568 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
11569
11570         * combine.c (force_to_mode): Handle TRUNCATE.  Factor out
11571         truncation from operands in binary operations.
11572
11573 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
11574
11575         Revert:
11576         2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
11577         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
11578         subreg of op0 to the original op0.
11579
11580         * expmed.c (store_bit_field_1): Use a temporary as the destination
11581         instead of a paradoxical subreg when we need to truncate the result.
11582
11583 2009-07-01  DJ Delorie  <dj@redhat.com>
11584
11585         * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
11586         names to VLIW variants.
11587         (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
11588         * config/mep/intrinsics.md: Regenerate.
11589         * config/mep/intrinsics.h: Regenerate.
11590         * config/mep/mep-intrin.h: Regenerate.
11591
11592 2009-07-01  Jakub Jelinek  <jakub@redhat.com>
11593
11594         PR debug/40462
11595         * jump.c (returnjump_p): Revert last patch.
11596         * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
11597
11598 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11599
11600         PR target/40575
11601         * pa.md (casesi32p): Use jump table label to determine the offset
11602         of the jump table.
11603         (casesi64p): Likewise.
11604
11605         * pa.c (forward_branch_p): Return bool type.  Use instruction
11606         addresses when available.  Assert that INSN has a jump label.
11607         (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
11608         have a jump label.
11609
11610 2009-07-01  Richard Guenther  <rguenther@suse.de>
11611
11612         PR tree-optimization/19831
11613         * tree-ssa-dce.c (propagate_necessity): Calls to functions
11614         that only act as barriers do not make any previous stores necessary.
11615         * tree-ssa-structalias.c (handle_lhs_call): Delay making
11616         HEAP variables global, do not add a constraint from nonlocal.
11617         (find_func_aliases): Handle escapes through return statements.
11618         (compute_points_to_sets): Make escaped HEAP variables global.
11619
11620 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
11621
11622         PR bootstrap/40597
11623         * expmed.c (emit_store_flag): Perform a conversion if necessary,
11624         after reducing a DImode cstore to SImode.
11625
11626 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
11627
11628         * expr.c (expand_expr_real_1): Reinstate fallthrough to
11629         TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
11630
11631 2009-07-01  Maciej W. Rozycki  <macro@linux-mips.org>
11632
11633         * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro.  Set to 1.
11634         * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro.  Redefine the
11635         to 0.
11636         * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
11637         and umod_optab if TARGET_BSD_DIVMOD.
11638         * config/vax/lib1funcs.asm: New file.
11639         * config/vax/t-linux: New file.
11640         * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
11641
11642 2009-06-30  Jakub Jelinek  <jakub@redhat.com>
11643
11644         PR c++/40566
11645         * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
11646         to type arguments that have void type.
11647
11648         PR debug/40573
11649         * dwarf2out.c (gen_formal_parameter_die): Call
11650         equate_decl_number_to_die if node is different from origin.
11651
11652 2009-06-30  Anthony Green  <green@moxielogic.com>
11653
11654         Clean up moxie port for --enable-build-with-cxx.
11655         * config/moxie/moxie.c (moxie_function_value): First two
11656         parameters are const_tree, not tree.
11657         * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
11658         (REG_CLASS_NAMES): Ditto.
11659         (REGNO_REG_CLASS): Ditto.
11660         * config/moxie/moxie-protos.h (moxie_override_options): Declare.
11661         (moxie_function_value): Fix constyness of arguments.
11662
11663 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
11664
11665         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
11666         finalize_size_functions before further processing.
11667         * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
11668         (variable_size): Call self_referential_size on size expressions
11669         that contain a PLACEHOLDER_EXPR.
11670         (size_functions): New static variable.
11671         (copy_self_referential_tree_r): New static function.
11672         (self_referential_size): Likewise.
11673         (finalize_size_functions): New global function.
11674         * tree.c: Include tree-inline.h.
11675         (push_without_duplicates): New static function.
11676         (find_placeholder_in_expr): New global function.
11677         (substitute_in_expr) <tcc_declaration>: Return the replacement object
11678         on equality.
11679         <tcc_expression>: Likewise.
11680         <tcc_vl_exp>: If the replacement object is a constant, try to inline
11681         the call in the expression.
11682         * tree.h (finalize_size_functions): Declare.
11683         (find_placeholder_in_expr): Likewise.
11684         (FIND_PLACEHOLDER_IN_EXPR): New macro.
11685         (substitute_placeholder_in_expr): Update comment.
11686         * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
11687         is true.
11688         (copy_tree_body_r): Likewise.
11689         (copy_tree_body): New static function.
11690         (maybe_inline_call_in_expr): New global function.
11691         * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
11692         (maybe_inline_call_in_expr): Declare.
11693         * Makefile.in (tree.o): Depend on TREE_INLINE_H.
11694         (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
11695         GIMPLE_H.
11696
11697 2009-06-30  Richard Guenther  <rguenther@suse.de>
11698
11699         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
11700         continue walking.
11701         (propagate_necessity): Do not mark reaching defs of stores
11702         as necessary.
11703
11704 2009-06-30  Jan Hubicka  <jh@suse.cz>
11705
11706         * cfgloopanal.c (check_irred): Move into ...
11707         (mark_irreducible_loops): ... here; return true if ireducible
11708         loops was found.
11709         * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
11710         (analyze_function): Try to prove loop finiteness.
11711         * cfgloop.h (mark_irreducible_loops): Update prototype.
11712         * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
11713
11714 2009-06-30  Basile Starynkevitch  <basile@starynkevitch.net>
11715
11716         * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
11717
11718 2009-06-30  Ira Rosen  <irar@il.ibm.com>
11719
11720         PR tree-optimization/40542
11721         * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
11722         types.
11723
11724 2009-06-30  Martin Jambor  <mjambor@suse.cz>
11725
11726         PR tree-optimization/40582
11727         * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
11728         than useless_type_conversion_p.
11729         (generate_subtree_copies): Increment sra_stats.subtree_copies at a
11730         proper place.
11731
11732 2009-06-30  Martin Jambor  <mjambor@suse.cz>
11733
11734         PR middle-end/40554
11735         * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
11736
11737 2009-06-30  Richard Guenther  <rguenther@suse.de>
11738
11739         * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
11740         use ao_ref references.
11741         (walk_aliased_vdefs): Likewise.
11742         * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
11743         * tree-ssa-dce.c (struct ref_data): Remove.
11744         (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
11745         (mark_aliased_reaching_defs_necessary): Adjust.
11746         (mark_all_reaching_defs_necessary_1): Likewise.
11747
11748 2009-06-30  Paolo Bonzini  <bonzini@gnu.org>
11749
11750         PR boostrap/40597
11751         * expmed.c (emit_cstore): New name of emit_store_flag_1.
11752         (emit_store_flag_1): Extract from emit_store_flag, adjust
11753         calls to (what now is) emit_cstore.
11754         (emit_store_flag): Call emit_store_flag_1 and also use it
11755         for what used to be recursive calls.
11756
11757 2009-06-30  Wei Guozhi  <carrot@google.com>
11758
11759         PR/40416
11760         * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
11761         if the target bb post dominates from bb.
11762         * config/i386/i386.c (memory_address_length): Check existence of base
11763         register before using it.
11764
11765 2009-06-30  Nick Clifton  <nickc@redhat.com>
11766             DJ Delorie  <dj@redhat.com>
11767
11768         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
11769         __FMOVD_ENABLED__ is defined.
11770         * config/sh/sh.h
11771         (TARGET_FMOVD): Provide a default definition.
11772         (MASK_FMOVD): Likewise.
11773         (TARGET_CPU_CPP_BUILTINS): Define
11774         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
11775         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
11776         two fmov instructions depending upon whether TARGET_FMOVD is
11777         enabled.
11778         (split for DF load from memory into register): Also handle
11779         MEMs which consist of REG+DISP addressing.
11780         (split for DF store from register to memory): Likewise.
11781         * config/sh/sh.opt (mfmovd): Remove this switch.
11782         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
11783         * config/sh/sh.c (sh_override_options): Do not automatically
11784         enable TARGET_MOVD for the SH2A when supporting doubles - leave
11785         that to the -mfmovd command line switch.
11786
11787         * config/sh/sh.c (broken_move): Do not restrict fldi test to only
11788         the SH4 and SH4A.
11789         (fldi_ok): Always allow.
11790         * config/sh/sh.md (movsf_ie): Always use single fp_mode.
11791
11792 2009-06-29  DJ Delorie  <dj@redhat.com>
11793
11794         * doc/install.texi (mep-x-elf): Correct chip's full name.
11795
11796 2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>
11797
11798         * doc/extend.texi: Fix typo.
11799
11800 2009-06-29  Tom Tromey  <tromey@redhat.com>
11801
11802         * dwarf2.h: Remove.
11803         * Makefile.in (DWARF2_H): New variable.
11804         (except.o): Use it.
11805         (dwarf2out.o): Likewise.
11806         (dwarf2asm.o): Likewise.
11807         * config/i386/t-i386: Use DWARF2_H.
11808         * except.c: Include elf/dwarf2.h.
11809         * unwind-dw2.c: Include elf/dwarf2.h.
11810         * dwarf2out.c: Include elf/dwarf2.h.
11811         (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
11812         <dtprel>: New field.
11813         (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
11814         (size_of_loc_descr): Likewise.
11815         (output_loc_operands_raw): Likewise.
11816         (output_loc_operands): Handle new dtprel field.
11817         (loc_checksum): Update.
11818         (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
11819         * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
11820         * unwind-dw2-fde.c: Include elf/dwarf2.h.
11821         * dwarf2asm.c: Include elf/dwarf2.h.
11822         * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
11823         * config/mmix/mmix.c: Include elf/dwarf2.h.
11824         * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
11825         * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
11826         * config/sh/sh.c: Include elf/dwarf2.h.
11827         * config/i386/i386.c: Include elf/dwarf2.h.
11828
11829 2009-06-29  DJ Delorie  <dj@redhat.com>
11830
11831         * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
11832
11833         * doc/extend.texi: Add MeP attributes and pragmas.
11834         * doc/invoke.text: Add MeP Options.
11835         * doc/contrib.texi: Add MeP contribution.
11836         * doc/md.texi: Add MeP constraints.
11837         * doc/install.texi: Add MeP target.
11838
11839 2009-06-30  Anatoly Sokolov  <aesok@post.ru>
11840
11841         * target.h (struct gcc_target): Add frame_pointer_required field.
11842         * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
11843         (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
11844         * ira.c (setup_eliminable_regset): Use frame_pointer_required target
11845         hook.
11846         * reload1.c (update_eliminables): (Ditto.).
11847         * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
11848         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
11849         (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
11850
11851         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
11852
11853         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
11854         * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11855         (arm_frame_pointer_required): New function.
11856
11857         * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
11858         * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11859         (avr_frame_pointer_required_p): Declare as static.
11860         * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
11861
11862         * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
11863         * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11864         (bfin_frame_pointer_required): Make as static, change return type
11865         to bool.
11866         * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
11867
11868         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
11869         * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11870         (cris_frame_pointer_required): New function.
11871
11872         * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
11873
11874         * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
11875         * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11876         (fr30_frame_pointer_required): New function.
11877
11878         * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
11879         * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11880         (frv_frame_pointer_required): Make as static, change return type
11881         to bool.
11882         * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
11883
11884         * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
11885         * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11886         (ix86_frame_pointer_required): Make as static, change return type to
11887         bool.
11888         * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
11889
11890         * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
11891         * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11892
11893         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
11894
11895         * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
11896
11897         * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
11898
11899         * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
11900         * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11901         (mips_frame_pointer_required): Make as static.
11902         * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
11903
11904         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
11905         * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11906         (mmix_frame_pointer_required): Mew function.
11907
11908         * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
11909         * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11910
11911         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
11912
11913         * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
11914
11915         * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
11916
11917         * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
11918         (CAN_ELIMINATE): Redefine.
11919         * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11920         (sparc_frame_pointer_required): New function.
11921         (sparc_can_eliminate): New function.
11922         * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
11923
11924         * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
11925         * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11926
11927         * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
11928         * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11929         (xtensa_frame_pointer_required): Make as static, change return type
11930         to bool.
11931         * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
11932         Remove.
11933
11934 2009-06-29  Olatunji Ruwase  <tjruwase@google.com>
11935
11936         * doc/plugins.texi: Document PLUGIN_START_UNIT.
11937         * toplev.c (compile_file): Call PLUGIN_START_UNIT.
11938         * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
11939         * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
11940         (register_callback): Handle PLUGIN_START_UNIT.
11941         (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
11942
11943 2009-06-29  Eric Botcazou  <ebotcazou@adacore.com>
11944
11945         * tree.c (process_call_operands): Propagate TREE_READONLY from the
11946         operands.
11947         (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
11948         (build3_stat): Propagate TREE_READONLY for COND_EXPR.
11949
11950 2009-06-29  Daniel Jacobowitz  <dan@codesourcery.com>
11951
11952         * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
11953         move cost.
11954
11955 2009-06-29  Uros Bizjak  <ubizjak@gmail.com>
11956
11957         * doc/extend.texi (Additional Floating Types): __float128 is also
11958         supported on i386 targets.
11959
11960 2009-06-29  Richard Guenther  <rguenther@suse.de>
11961
11962         PR middle-end/14187
11963         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
11964         flag.
11965         (pt_solutions_same_restrict_base): Declare.
11966         * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
11967         flag.
11968         (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
11969         (make_constraint_from, make_copy_constraint): Move earlier.
11970         (make_constraint_from_heapvar): New function.
11971         (make_constraint_from_restrict): Likewise.
11972         (handle_lhs_call): Use it.
11973         (find_func_aliases): Use it to track conversions to restrict
11974         qualified pointers.
11975         (struct fieldoff): Add only_restrict_pointers flag.
11976         (push_fields_onto_fieldstack): Initialize it.
11977         (create_variable_info_for): Track global restrict qualified pointers.
11978         (intra_create_variable_infos): Use make_constraint_from_heapvar.
11979         Track restrict qualified pointer arguments.
11980         (set_uids_in_ptset): Use varinfo is_global_var flag.
11981         (find_what_var_points_to): Set the vars_contains_restrict flag.
11982         Always create the points-to solution for sets including restrict tags.
11983         (pt_solutions_same_restrict_base): New function.
11984         * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
11985         qualified pointers use pt_solutions_same_restrict_base as
11986         additional source for disambiguation.
11987
11988 2009-06-29  Richard Guenther  <rguenther@suse.de>
11989
11990         PR middle-end/38212
11991         * alias.c (find_base_decl): Remove.
11992         (get_deref_alias_set_1): Remove restrict handling.
11993         * c-common.c (c_apply_type_quals_to_decl): Do not set
11994         DECL_POINTER_ALIAS_SET.
11995         * gimplify.c (find_single_pointer_decl_1): Remove.
11996         (find_single_pointer_decl): Likewise.
11997         (internal_get_tmp_var): Remove restrict handling.
11998         (gimple_regimplify_operands): Likewise.
11999         * omp-low.c (expand_omp_atomic_pipeline): Do not set
12000         DECL_POINTER_ALIAS_SET. Use ref-all pointers.
12001         * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
12002         * tree.c (restrict_base_for_decl): Remove.
12003         (init_ttree): Do not allocate it.
12004         (make_node_stat): Do not set DECL_POINTER_ALIAS_SET.  Set
12005         LABEL_DECL_UID for label decls.
12006         (copy_node_stat): Do not copy restrict information.
12007         (decl_restrict_base_lookup): Remove.
12008         (decl_restrict_base_insert): Likewise.
12009         (print_restrict_base_statistics): Likewise.
12010         (dump_tree_statistics): Do not call print_restrict_base_statistics.
12011         * tree.h (DECL_POINTER_ALIAS_SET): Remove.
12012         (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
12013         (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
12014         (LABEL_DECL_UID): Adjust.
12015         (DECL_BASED_ON_RESTRICT_P): Remove.
12016         (DECL_GET_RESTRICT_BASE): Likewise.
12017         (SET_DECL_RESTRICT_BASE): Likewise.
12018         (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
12019
12020         * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
12021         instead of DECL_POINTER_ALIAS_SET.
12022         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
12023         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
12024         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
12025
12026 2009-06-29  Richard Guenther  <rguenther@suse.de>
12027
12028         PR tree-optimization/40579
12029         * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
12030         the IL to simplify has constants that overflowed.
12031
12032 2009-06-28  Uros Bizjak  <ubizjak@gmail.com>
12033
12034         PR tree-optimization/40550
12035         * tree-vect-generic.c (expand_vector_operations_1): Compute in
12036         vector_compute_type only when the size of vector_compute_type is
12037         less than the size of type.
12038
12039 2009-06-28  Eric Botcazou  <ebotcazou@adacore.com>
12040
12041         * fold-const.c (contains_label_1): Fix comments.
12042         (contains_label_p): Do not walk trees multiple time.
12043
12044 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
12045
12046         * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
12047         * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
12048         cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
12049         ix86_fp_comparison_operator.
12050         (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
12051         *fp_jcc_2_sse, *fp_jcc_2_387): Delete
12052         (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
12053         *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
12054         !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
12055         to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
12056         (related splits): Change predicate to ix86_fp_comparison_operator.
12057         * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
12058         instead of ix86_fp_comparison_codes.
12059         (ix86_trivial_fp_comparison_operator,
12060         ix86_fp_comparison_operator): New.
12061         * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
12062         (ix86_expand_compare): Eliminate last two parameters.
12063         (ix86_fp_jump_nontrivial_p): Kill.
12064         * config/i386/i386.c (put_condition_code): Eliminate call to
12065         ix86_fp_comparison_codes and subsequent assertion.
12066         (ix86_fp_comparison_codes): Eliminate.
12067         (ix86_fp_swap_condition): New.
12068         (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
12069         ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
12070         into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
12071         (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
12072         and ix86_fp_swap_condition.
12073         (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
12074         Use ix86_fp_comparison_strategy.
12075         (ix86_expand_compare): Likewise.  Eliminate last two arguments.
12076         (ix86_fp_jump_nontrivial_p): Eliminate.
12077         (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple.  Adjust
12078         call to ix86_expand_compare.
12079         (ix86_split_fp_branch, ix86_expand_setcc,
12080         ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
12081         ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
12082
12083 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
12084
12085         * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
12086         related to jump_clobbers.
12087         * config/arm/arm.md (conds): Remove jump_clob case.
12088         (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
12089         splits): Change comparison_operator to arm_comparison_operator.
12090         (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
12091         Eliminate.
12092
12093 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
12094
12095         * dojump.c (do_compare_rtx_and_jump): Try swapping the
12096         condition for floating point modes.
12097         * expmed.c (emit_store_flag_1): Move here a bigger part
12098         of emit_store_flag.
12099         (emit_store_flag): Try swapping the condition for floating point
12100         modes.
12101         * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
12102
12103 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
12104
12105         * expr.c (expand_expr_real_1): Just use do_store_flag.
12106         (do_store_flag): Drop support for TRUTH_NOT_EXPR.  Use
12107         emit_store_flag_force.
12108         * expmed.c (emit_store_flag_force): Copy here trick
12109         previously in expand_expr_real_1.  Try reversing the comparison.
12110         (emit_store_flag_1): Work if target is NULL.
12111         (emit_store_flag): Work if target is NULL, using the result mode
12112         from the comparison.  Use split_comparison, restructure final part
12113         to simplify conditionals.
12114
12115 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
12116
12117         * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
12118         * dojump.c (do_jump): Change handling of floating-point
12119         ops to use just do_compare_and_jump.
12120         (split_comparison): New.
12121         (do_compare_rtx_and_jump): Add here logic coming previously
12122         in do_jump, using split_comparison.
12123
12124 2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>
12125
12126         PR target/40489
12127         * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
12128
12129 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
12130
12131         * tree-ssa-alias.c: Fix unintentional commit.
12132
12133 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
12134
12135         * passes.c (execute_one_pass): Fix unintentional commit.
12136
12137 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
12138
12139         * df-problems.c (df_set_seen, df_unset_seen): Delete.
12140         (df_rd_local_compute, df_md_local_compute): Inline them.
12141
12142         (df_md_scratch): New.
12143         (df_md_alloc, df_md_free): Allocate/free it.
12144         (df_md_local_compute): Only include live registers in init.
12145         (df_md_transfer_function): Prune the in-set computed by
12146         the confluence function, and the gen-set too.
12147
12148 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
12149
12150         PR rtl-optimization/26854
12151         * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
12152         * df-problems.c (df_rd_add_problem): Fix comment.
12153         (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
12154         df_md_simulate_artificial_defs_at_top,
12155         df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
12156         df_md_bb_local_compute, df_md_local_compute, df_md_reset,
12157         df_md_transfer_function, df_md_init, df_md_confluence_0,
12158         df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
12159         problem_MD, df_md_add_problem): New.
12160         * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
12161         df_md_get_bb_info): New.
12162         (DF_LAST_PROBLEM_PLUS1): Adjust.
12163
12164         * Makefile.in (fwprop.o): Include domwalk.h.
12165         * fwprop.c: Include domwalk.h.
12166         (reg_defs, reg_defs_stack): New.
12167         (bitmap_only_bit_between): Remove.
12168         (process_defs): New.
12169         (process_uses): Use reg_defs and local_md instead of
12170         bitmap_only_bit_between and local_rd.
12171         (single_def_use_enter_block): New, from build_single_def_use_links.
12172         (single_def_use_leave_block): New.
12173         (build_single_def_use_links): Remove code moved to
12174         single_def_use_enter_block, invoke domwalk.
12175         (use_killed_between): Adjust comment.
12176
12177 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
12178
12179         * bitmap.h (bitmap_ior_and_into): New.
12180         * bitmap.c (bitmap_ior_and_into): New.
12181
12182 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
12183
12184         * domwalk.h (struct dom_walk_data): Remove all callbacks except
12185         before_dom_children_before_stmts and after_dom_children_after_stmts.
12186         Rename the two remaining callbacks to just before_dom_children and
12187         after_dom_children. Remove other GIMPLE statement walking bits.
12188         * domwalk.c (walk_dominator_tree): Remove now unsupported features.
12189         * graphite.c: Do not include domwalk.h.
12190         * tree-into-ssa.c (interesting_blocks): New global.
12191         (struct mark_def_sites_global_data): Remove it and names_to_rename.
12192         (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
12193         rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
12194         now that they're not domwalk callbacks.
12195         (rewrite_initialize_block): Rename to...
12196         (rewrite_enter_block): ... this, place after called functions.  Test
12197         interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
12198         (rewrite_finalize_block): Rename to...
12199         (rewrite_leave_block): ... this, place after called functions.
12200         (rewrite_update_init_block): Rename to...
12201         (rewrite_update_enter_block): ... this, place after called functions.
12202         Test interesting_blocks, call rewrite_update_stmt and
12203         rewrite_update_phi_arguments.
12204         (rewrite_update_fini_block): Rename to...
12205         (rewrite_leave_block): ... this, place after called functions.
12206         (rewrite_blocks): Remove last argument, simplify initialization of
12207         walk_data.
12208         (mark_def_sites_initialize_block): Rename to...
12209         (mark_def_sites_block): ... this, call mark_def_sites.
12210         (mark_def_sites_blocks): Remove argument, simplify initialization of
12211         walk_data.
12212         (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
12213         (update_ssa): Likewise.
12214         * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
12215         callback.
12216         (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
12217         (dom_opt_initialize_block): Rename to...
12218         (dom_opt_enter_block): ... this, place after called functions.  Walk
12219         statements here, inline propagate_to_outgoing_edges.
12220         (dom_opt_finalize_block): Rename to...
12221         (dom_opt_leave_block): ... this, place after called functions.
12222         * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
12223         domwalk callback.
12224         (dse_enter_block, dse_record_phi): New.
12225         (dse_record_phis): Delete.
12226         (dse_finalize_block): Rename to...
12227         (dse_leave_block): ... this.
12228         (tree_ssa_dse): Simplify initialization of walk_data.
12229         * tree-ssa-loop-im.c (determine_invariantness, move_computations):
12230         Adjust initialization of walk_data.
12231         * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
12232         * tree-ssa-loop-phiopt.c (get_non_trapping):
12233         Adjust initialization of walk_data.
12234         * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
12235         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
12236         it's not a domwalk callback.
12237         (uncprop_initialize_block): Rename to...
12238         (dse_enter_block): ... this, call uncprop_into_successor_phis.
12239         (dse_finalize_block): Rename to...
12240         (dse_leave_block): ... this.
12241         (tree_ssa_uncprop): Simplify initialization of walk_data.
12242         * Makefile.in: Adjust dependencies.
12243
12244 2009-06-27  Richard Earnshaw  <rearnsha@arm.com>
12245
12246         * arm.md (casesi): Fix test for Thumb1.
12247         (thumb1_casesi_internal_pic): Likewise.
12248         (thumb1_casesi_dispatch): Likewise.
12249
12250 2009-06-26  Daniel Gutson  <dgutson@codesourcery.com>
12251
12252         * config/arm/arm-cores.def: Added core cortex-m0.
12253         * config/arm/arm-tune.md: Regenerated.
12254         * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
12255
12256 2009-06-26  DJ Delorie  <dj@redhat.com>
12257
12258         * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
12259
12260         * config/mep/mep.c (mep_bundle_insns): Account for the fact that
12261         the scheduler doesn't tag jump insns.
12262
12263 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
12264
12265         * c-decl.c (merge_decls): Re-indent.
12266
12267 2009-06-26  Janis Johnson  <janis187@us.ibm.com>
12268
12269         PR c/39902
12270         * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
12271         Special-case decimal float constants.
12272
12273 2009-06-26  Richard Henderson  <rth@redhat.com>
12274
12275         * function.h (struct function): Add cannot_be_copied_reason,
12276         and cannot_be_copied_set.
12277         * tree-inline.c (has_label_address_in_static_1): Rename from
12278         inline_forbidden_p_2; don't set inline_forbidden_reason here.
12279         (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
12280         don't set inline_forbidden_reason.
12281         (copy_forbidden): New function, split out of inline_forbidden_p.
12282         (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
12283         (inline_forbidden_p): Use copy_forbidden.
12284         (tree_versionable_function_p): Likewise.
12285         (inlinable_function_p): Merge into tree_inlinable_function_p.
12286         (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
12287         * ipa-cp.c (ipcp_versionable_function_p): New function.
12288         (ipcp_cloning_candidate_p): Use it.
12289         (ipcp_node_modifiable_p): Likewise.
12290
12291 2009-06-26  Olatunji Ruwase  <tjruwase@google.com>
12292
12293         * builtins.c (expand_builtin_alloca): Handle builtin alloca
12294         that is marked not to be inlined. Remove flag_mudflap use.
12295         * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
12296         (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
12297
12298 2009-06-26  Steve Ellcey  <sje@cup.hp.com>
12299
12300         PR bootstrap/40338
12301         * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
12302         * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
12303
12304 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
12305
12306         * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
12307         shared libgcc.
12308         (__mingwthr_remove_key_dtor): Likewise.
12309
12310 2009-06-26  Richard Guenther  <rguenther@suse.de>
12311
12312         * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
12313
12314 2009-06-26  Steven Bosscher  <steven@gcc.gnu.org>
12315
12316         PR middle-end/40525
12317         * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
12318         try the non-cond_exec path also.
12319
12320 2009-06-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12321
12322         PR target/40468
12323         * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
12324         (output_cbranch): Use new functions.
12325         (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
12326         Likewise.
12327
12328 2009-06-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
12329             Pat Haugen  <pthaugen@us.ibm.com>
12330             Revital Eres <ERES@il.ibm.com>
12331
12332         * config/rs6000/rs6000.c (print_operand): Correct lossage message
12333         for %c error.  Add %x support to print VSX registers as a unified
12334         register set, instead of separate float and altivec registers.
12335         Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
12336         %y case, and add support for VSX pre-modify addresses.
12337         (output_toc): Add assert for CONST containing an integer constant
12338         in the PLUS case.
12339         (rs6000_adjust_cost): Add POWER7 support.
12340         (insn_must_be_first_in_group): Ditto.
12341         (insn_must_be_last_in_group): Ditto.
12342         (rs6000_emit_popcount): Ditto.
12343         (rs6000_vector_mode_supported_p): Ditto.
12344
12345         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
12346         Change some of the functions called by macros to being called
12347         through a pointer, so debug functions can be inserted if
12348         -mdebug=addr or -mdebug=cost.
12349         (rs6000_preferred_reload_class_ptr): Ditto.
12350         (rs6000_secondary_reload_class_ptr): Ditto.
12351         (rs6000_secondary_memory_needed_ptr): Ditto.
12352         (rs6000_cannot_change_mode_class_ptr): Ditto.
12353         (rs6000_secondary_reload_inner): Ditto.
12354         (rs6000_legitimize_reload_address): Ditto.
12355         (rs6000_legitimize_reload_address_ptr): Ditto.
12356         (rs6000_mode_dependent_address): Ditto.
12357         (rs6000_mode_dependent_address_ptr): Ditto.
12358
12359         * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
12360         function to return true if the mode allows reg + integer
12361         addresses.
12362         (virtual_stack_registers_memory_p): New function to return true if
12363         the address refers to a virtual stack register.
12364         (rs6000_legitimate_offset_address_p): Move code to say whether a
12365         mode supports reg+int addressing to reg_offset_addressing_ok_p and
12366         call it.
12367         (rs6000_legitimate_address_p): Add checks for modes that only can
12368         do reg+reg addressing.  Start adding VSX support.
12369         (rs6000_legitimize_reload_address): Ditto.
12370         (rs6000_legitimize_address): Ditto.
12371         (rs6000_debug_legitimate_address_p): New debug functions for
12372         -mdebug=addr and -mdebug=cost.
12373         (rs6000_debug_rtx_costs): Ditto.
12374         (rs6000_debug_address_costs): Ditto.
12375         (rs6000_debug_adjust_cost): Ditto.
12376         (rs6000_debug_legitimize_address): Ditto.
12377         (rs6000_legitimize_reload_address_ptr): Point to call normal
12378         function or debug function.  Make functions called via pointer
12379         static.
12380         (rs6000_mode_dependent_address_ptr): Ditto.
12381         (rs6000_secondary_reload_class_ptr): Ditto.
12382         (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
12383         (rs6000_emit_move): Add -mdebug=addr support.  Change an abort
12384         into a friendlier error.
12385         (rs6000_init_builtins): Add initial VSX support.
12386         (rs6000_adjust_cost): Fix some spacing issues.
12387
12388         * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
12389         (REG_CLASS_NAMES): Ditto.
12390         (REG_CLASS_CONTENTS): Ditto.
12391         (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
12392         pointer, to add -mdebug=addr support.
12393         (CANNOT_CHANGE_MODE_CLASS): Ditto.
12394         (SECONDARY_RELOAD_CLASS): Call through a pointer to add
12395         -mdebug=addr support.
12396         (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
12397         (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
12398         (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
12399
12400         * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
12401         16-bit values.
12402         (bswapsi*): Set attribute types for load/store.  Add combiner
12403         patterns to eliminate zero extend on 64-bit.
12404         (bswapdi*): Add support for swapping 64-bit values.  Use ldbrx and
12405         stdbrx if the hardware supports those instructions.
12406
12407 2009-06-25  Ian Lance Taylor  <iant@google.com>
12408
12409         * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
12410         (Link Options): Document -static-libstdc++.
12411
12412 2009-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12413
12414         PR target/38731
12415         * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
12416         DATA_ALIGNMENT instead.
12417
12418 2009-06-25  Richard Guenther  <rguenther@suse.de>
12419
12420         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
12421         indirect references against the callused/escaped solutions.
12422         (call_may_clobber_ref_p_1): Likewise.
12423
12424 2009-06-25  Martin Jambor  <mjambor@suse.cz>
12425
12426         PR tree-optimization/40493
12427         * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
12428         (enum unscalarized_data_handling): New type.
12429         (handle_unscalarized_data_in_subtree): Return what has been done.
12430         (load_assign_lhs_subreplacements): Handle left flushes differently.
12431         (sra_modify_assign): Use unscalarized_data_handling, simplified
12432         condition determining whether to remove the statement.
12433
12434 2009-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
12435
12436         * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
12437         excerpt - @ should be doubled for texinfo.
12438
12439 2009-06-24  Ian Lance Taylor  <iant@google.com>
12440
12441         * config/arc/arc.c: Include "df.h".
12442         (arc_attribute_table): Make static.  Move higher in file.
12443         (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
12444         (output_shift): Initialize n later to avoid warning.
12445         * config/arm/arm.c (arm_attribute_table): Make static.  Move
12446         higher in file.
12447         * config/avr/avr.c (avr_attribute_table): Make static.  Move
12448         higher in file.
12449         (reg_class_tab): Change array type from int to enum reg_class.
12450         (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
12451         LABEL_REF.
12452         (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
12453         (lshrhi3_out): Likewise.
12454         (class_likely_spilled_p): Change return type to bool.
12455         (avr_rtx_costs): Use local code variable with enum type.
12456         * config/avr/avr.md (movmemhi): Use add_reg_note.
12457         (andhi3, andsi3): Don't use AS2 with "and".
12458         (iorhi3, iorsi3): Don't use AS2 with "or".
12459         * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
12460         * config/crx/crx.c: Include "df.h".
12461         (crx_attribute_table): Make static.
12462         * config/m32r/m32r.c: Include "df.h".
12463         (m32r_attribute_table): Make static.  Move higher in file.
12464         (pop): Use add_reg_note.
12465         (block_move_call): Change 0 to LCT_NORMAL in function call.
12466         * config/m32r/m32r.md (movsi_insn): Remove unused local value.
12467         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
12468         * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
12469         declare, not just when TREE_CODE is defined.
12470         * config/m68hc11/m68hc11.c: Include "expr.h".
12471         (m68hc11_attribute_table): Make static.  Move higher in file.
12472         (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
12473         function call.
12474         (m68hc11_register_indirect_p): Likewise.
12475         (m68hc11_function_arg_padding): Change return type to enum
12476         direction.
12477         (emit_move_after_reload): Use add_reg_note.
12478         (m68hc11_emit_logical): Change code parameter to enum rtx_code.
12479         (m68hc11_split_logical): Likewise.
12480         (m68hc11_rtx_costs): Add local code_and outer_code variables with
12481         enum type.
12482         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
12483         to VOIDmode in function call.
12484         * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
12485         tree is defined.
12486         (m68hc11_split_logical): Update declaration.
12487         (m68hc11_function_arg_padding): Update declaration.
12488         * config/mcore/mcore.c (regno_reg_class): Change form array of int
12489         to array of enum reg_class.
12490         (mcore_attribute_table): Make static.  Move higher in file.
12491         (mcore_rtx_costs): Add cast to enum type.
12492         * config/mcore/mcore.h (regno_reg_class): Update declaration.
12493         (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
12494         * config/sh/sh.c (sh_attribute_table): Make static.  Move higher
12495         in file.
12496         * config/sh/predicates.md (trapping_target_operand): Rename and to
12497         and_expr.
12498         * config/sparc/sparc.c (sparc_attribute_table): Make static.  Move
12499         higher in file.
12500         * config/spu/spu.c (spu_attribute_table): Make static.  Move
12501         higher in file.
12502         * config/v850/v850.c (v850_attribute_table): Make static.  Move
12503         higher in file.
12504         (v850_rtx_costs): Use local code with enum type.
12505         (expand_epilogue): Add cast.
12506         * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
12507
12508 2009-06-23  Takashi YOSHII  <yoshii.takashi@renesas.com>
12509
12510         PR target/40515
12511         * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
12512         -m2a-single-only and -m2a-nofpu.
12513         * config/sh/sh.opt: Document m2a generates FPU code.
12514
12515 2009-06-24  Anatoly Sokolov  <aesok@post.ru>
12516
12517         * defaults.h (CAN_ELIMINATE): Provide default.
12518         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
12519         * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
12520         * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
12521         * config/spu/spu.h (CAN_ELIMINATE): Delete.
12522         * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
12523         * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
12524         * config/cris/cris.h (CAN_ELIMINATE): Delete.
12525         * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
12526         * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
12527         * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
12528
12529 2009-06-24  DJ Delorie  <dj@redhat.com>
12530
12531         * mep-ext-cop.cpu: Fix copyright notice.
12532         * mep-default: Fix copyright notice.
12533         * mep-core: Fix copyright notice.
12534         * mep: Fix copyright notice.
12535         * mep-ivc2: Fix copyright notice.
12536         * mep-c5: Fix copyright notice.
12537
12538 2009-06-24  Denis Chertykov  <chertykov@gmail.com>
12539
12540         * doc/contrib.texi (Contributors):
12541
12542 2009-06-24  Andreas Krebbel  <krebbel1@de.ibm.com>
12543
12544         PR middle-end/40501
12545         * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
12546         src and dst operands if necessary.
12547
12548 2009-06-23  DJ Delorie  <dj@redhat.com>
12549
12550         Add MeP port.
12551         * config.gcc: Add mep support.
12552         * recog.c: Resurrect validate_replace_rtx_subexp().
12553         * recog.h: Likewise.
12554         * config/mep/: Add new port:
12555         * config/mep/constraints.md: New file.
12556         * config/mep/default.h: New file.
12557         * config/mep/intrinsics.h: New file.
12558         * config/mep/intrinsics.md: New file.
12559         * config/mep/ivc2-template.h: New file.
12560         * config/mep/mep-c5.cpu: New file.
12561         * config/mep/mep-core.cpu: New file.
12562         * config/mep/mep-default.cpu: New file.
12563         * config/mep/mep-ext-cop.cpu: New file.
12564         * config/mep/mep-intrin.h: New file.
12565         * config/mep/mep-ivc2.cpu: New file.
12566         * config/mep/mep-lib1.asm: New file.
12567         * config/mep/mep-lib2.c: New file.
12568         * config/mep/mep-pragma.c: New file.
12569         * config/mep/mep-protos.h: New file.
12570         * config/mep/mep-tramp.c: New file.
12571         * config/mep/mep.c: New file.
12572         * config/mep/mep.cpu: New file.
12573         * config/mep/mep.h: New file.
12574         * config/mep/mep.md: New file.
12575         * config/mep/mep.opt: New file.
12576         * config/mep/predicates.md: New file.
12577         * config/mep/t-mep: New file.
12578
12579 2009-06-23  Ian Lance Taylor  <iant@google.com>
12580
12581         * configure.ac: Invoke AC_PROG_CXX.  Separate C specific warnings
12582         from loose_warn into c_loose_warn and from strict_warn into
12583         c_strict_warn.  Set and substitute warn_cxxflags.  Check for
12584         --enable-build-with-cxx.  Set and substitute
12585         ENABLE_BUILD_WITH_CXX.  Set and substitute HOST_LIBS.
12586         * Makefile.in (CXXFLAGS): New variable.
12587         (C_LOOSE_WARN, C_STRICT_WARN): New variables.
12588         (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN).  Add $(C_STRICT_WARN) if
12589         the default is the same as $(STRICT_WARN).
12590         (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
12591         (CXX): New variable.
12592         (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
12593         (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
12594         (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
12595         (HOST_LIBS): New variable.
12596         (GCC_CFLAGS): Add $(C_LOOSE_WARN).
12597         (ALL_CXXFLAGS): New variable.
12598         (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
12599         * doc/install.texi (Configuration): Document
12600         --enable-build-with-cxx, --with-stage1-ldflags,
12601         --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
12602         * configure: Rebuild.
12603
12604 2009-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12605
12606         * config/arm/arm.c (arm_override_options): Fix braces and formatting
12607         from previous commit.
12608
12609 2009-06-23  Ian Lance Taylor  <iant@google.com>
12610
12611         * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
12612
12613 2009-06-23  Ian Lance Taylor  <iant@google.com>
12614
12615         * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
12616         with ATTRIBUTE_UNUSED.
12617
12618 2009-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
12619             Pat Haugen  <pthaugen@us.ibm.com>
12620             Revital Eres  <eres@il.ibm.com>
12621
12622         * config.in (HAVE_AS_POPCNTD): Add default definition.
12623         (HAVE_AS_LWSYNC): Ditto.
12624
12625         * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
12626         release number.
12627         (gcc_cv_as_powerpc_cmpb): Ditto.
12628         (gcc_cv_as_powerpc_dfp): Ditto.
12629         (gcc_cv_as_powerpc_vsx): Ditto.
12630         (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
12631         supporting the popcntd/lwsync instructions.
12632         (gcc_cv_as_powerpc_lwsync): Ditto.
12633         * configure: Regenerate.
12634
12635         * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
12636         -mcpu=native and -mcpu=power7.
12637         * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
12638
12639         * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
12640         a variable instead of a mask to reduce the number of mask bits.
12641         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
12642         (-mbit-word): Ditto.
12643         (-mregnames): Ditto.
12644         * config/rs6000/rs6000.opt (-mupdate): Ditto.
12645         (-mfused-madd): Ditto.
12646
12647         * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
12648         2.06 instructions.
12649         (-mvsx): New switch for VSX instructions.
12650         (-misel): Move from a variable to a mask to allow it to be set by
12651         -mcpu=.
12652
12653         * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
12654         function declaration to an array declaration.
12655         (rs6000_hard_regno_nregs): New external array declaration.
12656
12657         * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
12658         files included by rs6000.md.
12659
12660         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
12661         SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
12662
12663         * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
12664         a target mask.
12665         (rs6000_debug_reg): New -mdebug= variables.
12666         (rs6000_debug_addr): Ditto.
12667         (rs6000_debug_cost): Ditto.
12668         (rs6000_pmode): New variable to hold Pmode.
12669         (rs6000_pointer_size): New variable to hold POINTER_SIZE.
12670         (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
12671         calculated at compiler start.
12672         (rs6000_hard_regno_nregs): Change function to an array which holds
12673         HARD_REGNO_NREGS calculated at compiler start.
12674         (rs6000_explicit_options): Delete isel field.
12675         (rs6000_vector_unit): New array to hold which vector unit
12676         supports arithmetic options for a given type.
12677         (rs6000_vector_mem): New array to hold which vector unit supports
12678         memory reference operations for a given type.
12679         (rs6000_vector_align): New array to given the alignment of each
12680         vector type.
12681         (power7_cost): New basic costs for power7.
12682         (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
12683         (rs6000_hard_regno_nregs_internal): New function, moved from
12684         HARD_REGNO_NREGS, to calculate the number of registers each hard
12685         register takes for each type.
12686         (rs6000_debug_reg_print): New function for -mdebug=reg support.
12687         (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
12688         (+rs6000_init_hard_regno_mode_ok): New function, move calculation
12689         of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
12690         unit information here so it is calculated once at compiler startup
12691         time.
12692         (rs6000_override_options): Make -misel a target mask.  Add more
12693         power7 target masks.  Setup Pmode and POINTER_SIZE.  Add initial
12694         VSX support.  Add support for -mdebug=reg, -mdebug=addr, and
12695         -mdebug=cost.
12696         (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
12697         (rs6000_handle_option): Move -misel from variable to target mask.
12698         (rs6000_builtin_mask_for_load): Add VSX support.
12699         (rs6000_conditional_register_usage): Ditto.
12700         (USE_ALTIVEC_FOR_ARG_P): Ditto.
12701         (function_arg_boundary): Ditto.
12702         (rs6000_expand_builtin): Ditto.
12703         (def_builtin): Make abort message a little friendlier.
12704         (rs6000_emit_int_cmove): Add support for 64-bit isel.
12705
12706         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
12707         assembler support the popcntd instruction instead of a vsx
12708         instruction to enable power7 support.
12709         (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
12710         (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
12711         option to the assembler if -mcpu=native.
12712         (ASM_CPU_NATIVE_SPEC): Ditto.
12713         (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
12714         ISA 2.06 features.
12715         (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
12716         the lwsync instruction.
12717         (enum processor_type): Add PROCESSOR_POWER7.
12718         (rs6000_debug_reg): New -mdebug= options.
12719         (rs6000_debug_addr): Ditto.
12720         (rs6000_debug_cost): Ditto.
12721         (rs6000_isel): Delete.
12722         (enum rs6000_vector): New enum to say what vector unit we have.
12723         (VECTOR_UNIT_*): New macros to say which vector unit has
12724         arithmetic operations for a given type.
12725         (VECTOR_MEM_*): New macros to say which vector unit has memory
12726         operations for a given type.
12727         (TARGET_LDBRX): Whether the machine supports the ldbrx
12728         instruction.
12729         (TARGET_ISEL): Delete, -misel moved to be a mask.
12730         (TARGET_ISEL64): New macro for 64-bit isel support.
12731         (UNITS_PER_VSX_WORD): New macro.
12732         (POINTER_SIZE): Move to be an external variable, rather than
12733         calculating whether we are generating 32 ot 64-bit code.
12734         (Pmode): Ditto.
12735         (STACK_BOUNDARY): Add VSX support.
12736         (LOCAL_ALIGNMENT): Ditto.
12737         (SLOW_UNALIGNED_ACCESS): Ditto.
12738         (VSX_REGNO_P): New macro for VSX support.
12739         (VFLOAT_REGNO_P): Ditto.
12740         (VINT_REGNO_P): Ditto.
12741         (VLOGICAL_REGNO_P): Ditto.
12742         (VSX_VECTOR_MODE): Ditto.
12743         (VSX_SCALAR_MODE): Ditto.
12744         (VSX_MODE): Ditto.
12745         (VSX_MOVE_MODE): Ditto.
12746         (VSX_REG_CLASS_P): Ditto.
12747         (HARD_REGNO_NREGS): Instead of calling a function, use an array
12748         lookup.
12749         (UNITS_PER_SIMD_WORD): Add VSX support.
12750         (MODES_TIEABLE_P): Ditto.
12751         (STARTING_FRAME_OFFSET): Ditto.
12752         (STACK_DYNAMIC_OFFSET): Ditto.
12753         (EPILOGUE_USES): Ditto.
12754         (REGNO_REG_CLASS): Move to array lookup.
12755         (CLASS_MAX_NREGS): Ditto.
12756         (rs6000_vector_reg_class): Add declaration.
12757         (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
12758         overlap with the floating point and Altivec registers.
12759
12760         * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
12761
12762         * config/rs6000/driver-rs6000.c (asm_names): New static array to
12763         give the appropriate asm switches if -mcpu=native.
12764         (host_detect_local_cpu): Add support for "asm".
12765         (host_detect_local_cpu): Follow GNU code guidelines for name.
12766
12767         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
12768         -mbit-word to a variable instead of being a target mask.
12769
12770         * config/rs6000/sync.md (lwsync): If the assembler supports it,
12771         emit the lwsync instruction instead of emitting the instruction as
12772         an integer constant.
12773
12774         * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
12775         fixuns_trundfsi2, move expander into rs6000.md.
12776
12777         * config/rs6000/rs6000.md (cpu): Add power7.
12778         (sel, *ptrsize): New mode attributes for 32/64-bit isel.
12779         (logical predicate patterns): Change the single instruction
12780         primitives that set CR0 to be fast_compare instead of compare.
12781         (norsi*): Ditto.
12782         (popcntwsi2): Add support for ISA 2.06 popcount instructions.
12783         (popcntddi2): Ditto.
12784         (popcount<mode>): Ditto.
12785         (floating multiply/add insns): Name the floating point
12786         multiply/add insns.
12787         (isel_signed_<mode>): Add support for -misel on 64-bit systems.
12788         (isel_unsigned_<mode>): Ditto.
12789         (fixuns_trundfsi2): Move expander here from spe.md.
12790         (smindi3): Define if we have -misel on 64-bit systems.
12791         (smaxdi3): Ditto.
12792         (umindi3): Ditto.
12793         (umaxdi3): Ditto.
12794
12795 2009-06-23  Anatoly Sokolov  <aesok@post.ru>
12796
12797         * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
12798         extra_objs.
12799         * config/avr/avr.c (avr_current_device): New variable.
12800         (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
12801         (avr_arch, mcu_type_s): Move to avr.h.
12802         * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
12803         default_data_section_start fields.
12804         (avr_arch): Moved from avr.c.
12805         (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
12806         library_name fields.
12807         (avr_current_device, avr_mcu_types, avr_arch_types,
12808         avr_device_to_arch, avr_device_to_data_start,
12809         avr_device_to_startfiles, avr_device_to_devicelib): Declare.
12810         (EXTRA_SPEC_FUNCTIONS): Define.
12811         (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
12812         options mapping. Use device_to_arch and device_to_data_start insted.
12813         (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
12814         (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
12815         * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
12816         * config/avr/driver-avr.c: New file.
12817         * config/avr/avr-devices.c: New file.
12818
12819 2009-06-23  Jakub Jelinek  <jakub@redhat.com>
12820
12821         * var-tracking.c (unshare_variable): Force initialized to
12822         be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
12823         (set_variable_part): Likewise.
12824         (struct variable_union_info): Remove pos_src field.
12825         (vui_vec, vui_allocated): New variables.
12826         (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
12827         unconditionally.  Avoid XCVECNEW/free for every sorting, for dst_l
12828         == 1 use a simpler sorting algorithm.  Compute pos field right
12829         away, don't fill in pos_src.  For dst_l == 2 avoid qsort.
12830         Avoid quadratic comparison if !flag_var_tracking_uninit.
12831         (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
12832         unshare_variable unconditionally.
12833         (dataflow_set_different_2): Removed.
12834         (dataflow_set_different): Don't traverse second hash table.
12835         (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
12836         unconditionally to var_reg_set or var_mem_set.
12837         (emit_notes_in_bb): Likewise.
12838         (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
12839         unshare_variable.
12840         (emit_note_insn_var_location): Don't set initialized to
12841         VAR_INIT_STATUS_INITIALIZED early.
12842         (vt_finalize): Free vui_vec if needed, clear vui_vec and
12843         vui_allocated.
12844         * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
12845
12846         * tree-object-size.c (addr_object_size): Instead of checking
12847         for non-NULL TREE_CHAIN of the FIELD_DECL check that there
12848         are no FIELD_DECLs following it.
12849
12850 2009-06-23  Andreas Krebbel  <krebbel1@de.ibm.com>
12851
12852         * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
12853         order to match bswaps with signed source operands.
12854
12855 2009-06-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12856
12857         * sdbout.c (sdbout_one_type): Fix braces in switch.
12858
12859 2009-06-23  Richard Guenther  <rguenther@suse.de>
12860
12861         * tree-ssa-structalias.c (struct variable_info): Add is_global_var
12862         member.
12863         (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
12864         readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
12865         var_callused, callused_tree, var_storedanything, storedanything_tree,
12866         var_integer, integer_tree): Remove global variables.
12867         (new_var_info): Do not pass new id, append the new var to the
12868         global variable vector.
12869         (do_ds_constraint): Use is_global_var member of the variable-info.
12870         (new_scalar_tmp_constraint_exp): Adjust.
12871         (create_function_info_for): Likewise.
12872         (create_variable_info_for): Likewise.
12873         (find_what_var_points_to): Remove dead code.
12874         (init_base_vars): Simplify.
12875         (compute_points_to_sets): Adjust.
12876
12877 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
12878
12879         * combine.c (try_combine): Dump information about the insns we're
12880         combining.
12881
12882 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
12883
12884         * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
12885         check when calling force_to_mode on TRUNCATE's operand.
12886
12887 2009-06-22  Ian Lance Taylor  <iant@google.com>
12888
12889         * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
12890
12891 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
12892
12893         * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
12894
12895 2009-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12896
12897         * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
12898         override library linkage flags such as -static-libgcc or
12899         -shared-libgcc.
12900
12901 2009-06-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
12902
12903         * config/m68k/m68k-devices.def: Add line for MCF5221x.
12904
12905 2009-06-22  Ian Lance Taylor  <iant@google.com>
12906
12907         * config/linux.opt: Put mglibc ahead of muclibc.
12908
12909         * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
12910         for duplicate decls.
12911
12912 2009-06-22  Matthias Klose  <doko@ubuntu.com>
12913
12914         * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
12915
12916 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
12917
12918         PR objc/28050
12919         * c-parser.c (c_parser_objc_message_args): Return error_mark_node
12920         instead of NULL if a parser error occurs.
12921
12922 2009-06-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12923
12924         * dwarf2out.c (dwarf2_debug_hooks): Initialize
12925         non-DWARF2_DEBUGGING_INFO version.
12926
12927 2009-06-22  Kai Tietz  <kai.tietz@onevision.com>
12928
12929         * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
12930         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
12931
12932         * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
12933         (LIBGCC2_TF_CEXT): Define.
12934         (TF_SIZE): Define.
12935
12936 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12937
12938         PR target/40463
12939         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
12940
12941 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12942
12943         * config/arm/arm.c (arm_override_options): Disable
12944         -mcaller-super-interworking and -mcallee-super-interworking.
12945         * doc/invoke.texi (ARM Options): Document this.
12946
12947 2009-06-22  Nathan Sidwell  <nathan@codesourcery.com>
12948
12949         * config/arm/arm.c (arm_print_operand): Deal with HIGH.
12950         * config/arm/constraints.md (j): New constraint for movw operands.
12951         (N): Remove thumb2 meaning.
12952         * config/arm/arm.md (*arm_movw): Delete.
12953         (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
12954         * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
12955         * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
12956
12957 2009-06-22  Martin Jambor  <mjambor@suse.cz>
12958
12959         PR tree-optimization/40492
12960         * tree-sra.c (sra_modify_assign): Pass zero offsets to
12961         build_ref_for_offset.
12962
12963 2009-06-22  Shujing Zhao  <pearly.zhao@oracle.com>
12964
12965         * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
12966         JUMP_TABLE_DATA_P predicates where applicable.
12967         * auto-inc-dec.c: Ditto.
12968         * builtins.c: Ditto.
12969         * caller-save.c: Ditto.
12970         * calls.c: Ditto.
12971         * cfgcleanup.c: Ditto.
12972         * cfglayout.c: Ditto.
12973         * cfgrtl.c: Ditto.
12974         * combine.c: Ditto.
12975         * combine-stack-adj.c: Ditto.
12976         * cse.c: Ditto.
12977         * cselib.c: Ditto.
12978         * dbxout.c: Ditto.
12979         * df-scan.c: Ditto.
12980         * dse.c: Ditto.
12981         * dwarf2asm.c: Ditto.
12982         * dwarf2out.c: Ditto.
12983         * emit-rtl.c: Ditto.
12984         * except.c: Ditto.
12985         * explow.c: Ditto.
12986         * expmed.c: Ditto.
12987         * expr.c: Ditto.
12988         * final.c: Ditto.
12989         * function.c: Ditto.
12990         * fwprop.c: Ditto.
12991         * gcse.c: Ditto.
12992         * genpreds.c: Ditto.
12993         * genrecog.c: Ditto.
12994         * ifcvt.c: Ditto.
12995         * ira-costs.c: Ditto.
12996         * ira-lives.c: Ditto.
12997         * jump.c: Ditto.
12998         * loop-iv.c: Ditto.
12999         * lower-subreg.c: Ditto.
13000         * modulo-sched.c: Ditto.
13001         * optabs.c: Ditto.
13002         * postreload.c: Ditto.
13003         * print-rtl.c: Ditto.
13004         * recog.c: Ditto.
13005         * reginfo.c: Ditto.
13006         * regmove.c: Ditto.
13007         * reload1.c: Ditto.
13008         * reload.c: Ditto.
13009         * reorg.c: Ditto.
13010         * rtlanal.c: Ditto.
13011         * rtl.c: Ditto.
13012         * sched-vis.c: Ditto.
13013         * sdbout.c: Ditto.
13014         * sel-sched-ir.c: Ditto.
13015         * simplify-rtx.c: Ditto.
13016         * targhooks.c: Ditto.
13017         * var-tracking.c: Ditto.
13018         * vmsdbgout.c: Ditto.
13019
13020 2009-06-22  Matthias Klose  <doko@ubuntu.com>
13021
13022         * Makefile.in (install-plugin): Always use DESTDIR.
13023
13024 2009-06-22  Olivier Hainque  <hainque@adacore.com>
13025
13026         * config/pa/pa.c (output_call): Don't optimize post call jumps
13027         into return address adjustments if the call may throw.
13028
13029 2009-06-21  Richard Earnshaw  <rearnsha@arm.com>
13030
13031         * arm.c (thumb1_output_casesi): New function.
13032         * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
13033         optimizing for size or PIC.
13034         (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
13035         * arm.md (UNSPEC_THUMB1_CASESI): New constant.
13036         (casesi): Handle Thumb-1 when optimizing for size or PIC.
13037         (thumb1_casesi_internal_pic): New expand rule.
13038         (thumb1_casesi_dispatch): New pattern.
13039         * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
13040         thumb-1 mode.
13041         * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
13042         in the text seciton when PIC or optimizing for size.
13043         * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
13044         * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
13045         preservation properties of code.
13046         (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
13047         (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
13048         (__gnu_thumb1_case_si): New function.
13049         * t-arm (LIB1ASMSRC): Define here.
13050         (LIB1ASMFUNCS): Add some common functions.
13051         * t-arm-elf (LIB1ASMSRC): Delete.
13052         (LIB1ASMFUNCS): Append to existing set.
13053         * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
13054         * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
13055         * t-symbian (LIB1ASMFUNCS): Likewise.
13056         * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
13057         * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
13058
13059 2009-06-21  Richard Guenther  <rguenther@suse.de>
13060
13061         PR tree-optimization/38729
13062         * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
13063         to loops with a single exit if -fno-expensive-optimizations.
13064
13065 2009-06-21  Jakub Jelinek  <jakub@redhat.com>
13066
13067         * var-tracking.c (struct shared_hash_def, shared_hash): New types.
13068         (dataflow_set): Change vars type from htab_t to shared_hash.
13069         (shared_hash_pool, empty_shared_hash): New variables.
13070         (vars_clear): Removed.
13071         (shared_hash_shared, shared_hash_htab, shared_hash_copy,
13072         shared_hash_find_slot_unshare, shared_hash_find_slot,
13073         shared_hash_find_slot_noinsert, shared_hash_find): New
13074         static inlines.
13075         (shared_hash_unshare, shared_hash_destroy): New functions.
13076         (unshare_variable): Unshare set->vars if shared, use
13077         shared_hash_htab.
13078         (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
13079         (get_init_value, find_src_set_src, dump_dataflow_set,
13080         clobber_variable_part, emit_notes_for_differences): Use
13081         shared_hash_htab.
13082         (dataflow_set_init): Remove second argument, set vars to
13083         empty_shared_hash instead of creating a new htab.
13084         (dataflow_set_clear): Call shared_hash_destroy and set vars
13085         to empty_shared_hash instead of calling vars_clear.
13086         (dataflow_set_copy): Don't call vars_copy, instead just share
13087         the src htab with dst.
13088         (variable_union): Use shared_hash_*, use initially NO_INSERT
13089         lookup if set->vars is shared.  Don't keep slot cleared before
13090         calling unshare_variable.  Unshare set->vars if needed.
13091         Even ->refcount == 1 vars must be unshared if set->vars is shared
13092         and var needs to be modified.
13093         (variable_canonicalize): New function.
13094         (dataflow_set_union): If dst->vars is empty, just share src->vars
13095         with dst->vars and traverse with variable_canonicalize to canonicalize
13096         and unshare what is needed.
13097         (dataflow_set_different): If old_set and new_set use the same shared
13098         htab, they aren't different.  If number of htab elements is different,
13099         htabs are different.  Use shared_hash_*.
13100         (dataflow_set_destroy): Call shared_hash_destroy instead of
13101         htab_delete.
13102         (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
13103         second argument to dataflow_set_init.
13104         (vt_initialize): Likewise.  Initialize shared_hash_pool and
13105         empty_shared_hash, move bb in/out initialization afterwards.
13106         Use variable_htab_free instead of NULL as changed_variables del hook.
13107         (variable_was_changed): Change type of second argument to pointer to
13108         dataflow_set.  When inserting var into changed_variables, bump
13109         refcount.  Unshare set->vars if set is shared htab and slot needs to
13110         be cleared.
13111         (set_variable_part): Use shared_hash_*, use initially NO_INSERT
13112         lookup if set->vars is shared.  Unshare set->vars if needed.
13113         Even ->refcount == 1 vars must be unshared if set->vars is shared
13114         and var needs to be modified.  Adjust variable_was_changed caller.
13115         (delete_variable_part): Use shared_hash_*.  Even ->refcount == 1
13116         vars must be unshared if set->vars is shared and var needs to be
13117         modified.  Adjust variable_was_changed caller.
13118         (emit_note_insn_var_location): Don't pool_free var.
13119         (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
13120         instead of 1.
13121         (vt_finalize): Call htab_delete on empty_shared_hash->htab and
13122         free_alloc_pool on shared_hash_pool.
13123
13124 2009-06-20  Anthony Green  <green@moxielogic.com>
13125
13126         * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
13127         * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
13128
13129 2009-06-20  Richard Guenther  <rguenther@suse.de>
13130
13131         * tree-ssa-structalias.c (find_func_aliases): For memset use
13132         a constraint from NULL if we memset to zero.
13133         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
13134         we explicitly handle that do not read from memory.
13135         (call_may_clobber_ref_p_1): Properly handle builtins that may
13136         set errno.
13137
13138 2009-06-20  Richard Guenther  <rguenther@suse.de>
13139
13140         PR tree-optimization/40495
13141         * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
13142         (new_scalar_tmp_constraint_exp): New function.
13143         (process_constraint): Do not create temporary decls.
13144         (process_all_all_constraints): Likewise.
13145         (handle_const_call): Likewise.
13146         (create_function_info_for): Do not set decl.
13147
13148 2009-06-19  Ian Lance Taylor  <iant@google.com>
13149
13150         * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
13151         (rs6000_attribute_table): Make static; move before use.
13152
13153 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
13154
13155         * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
13156         <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
13157         Propagate the TREE_READONLY flag without overwriting it.
13158         (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
13159         Propagate the TREE_READONLY flag onto the result.
13160         (process_call_operands): Move around.  Use correct constant value.
13161
13162 2009-06-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13163
13164         PR target/40482
13165         * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
13166         * config/arm/arm.md: Likewise.
13167
13168 2009-06-19  Ian Lance Taylor  <iant@google.com>
13169
13170         * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
13171         to GIMPLE_ERROR_MARK.
13172
13173         * c-typeck.c (build_conditional_expr): Add op1_original_type and
13174         op2_original_type parameters.  Warn about using different enum types.
13175         * c-parser.c (c_parser_conditional_expression): Pass original
13176         types to build_conditional_expr.
13177         * c-tree.h (build_conditional_expr): Update declaration.
13178
13179 2009-06-19  Ian Lance Taylor  <iant@google.com>
13180
13181         * config/i386/i386.c (ix86_function_specific_save): Test that
13182         fields match values, rather than testing the values are in a
13183         certain range.
13184
13185 2009-06-19  Richard Guenther  <rguenther@suse.de>
13186
13187         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
13188         ADDR_EXPR pointers.
13189         (ptr_derefs_may_alias_p): Likewise.
13190         (ptr_deref_may_alias_ref_p_1): New function.
13191         (ptr_deref_may_alias_ref_p): Likewise.
13192         (ref_maybe_used_by_call_p_1): Handle builtins that are not
13193         covered by looking at the ESCAPED solution.
13194         (call_may_clobber_ref_p_1): Likewise.
13195         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
13196         Handle NULL_TREE offset.  Do not produce redundant constraints.
13197         (process_all_all_constraints): New helper function.
13198         (do_structure_copy): Use it.
13199         (handle_lhs_call): Likewise.
13200         (find_func_aliases): Handle some builtins with pointer arguments
13201         and/or return values explicitly.
13202
13203 2009-06-19  Ian Lance Taylor  <iant@google.com>
13204
13205         * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
13206
13207 2009-06-19  Ian Lance Taylor  <iant@google.com>
13208
13209         * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
13210
13211 2009-06-19  Ian Lance Taylor  <iant@google.com>
13212
13213         * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
13214         * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
13215         version.
13216
13217         * c-decl.c (finish_decl): If -Wc++-compat, warn about
13218         uninitialized const.
13219
13220 2009-06-19  Ian Lance Taylor  <iant@google.com>
13221
13222         * dse.c (struct store_info): Rename bitmap field to bmap.  Change
13223         all uses.
13224
13225         * c-decl.c (in_struct, struct_types): Remove.
13226         (struct c_binding): Add in_struct field.
13227         (c_binding_ptr): Define type, along with VEC.
13228         (struct c_struct_parse_info): Define.
13229         (struct_parse_info): New static variable.
13230         (bind): Initialize in_struct field.
13231         (start_struct): Remove enclosing_in_struct and
13232         enclosing_struct_types parameters.  Add
13233         enclosing_struct_parse_info parameter.  Change all callers.  Set
13234         struct_parse_info rather than in_struct and struct_types.
13235         (grokfield): If -Wc++-compat and there is a symbol binding for the
13236         field name, set the in_struct flag and push it on the
13237         struct_parse_info->fields vector.
13238         (warn_cxx_compat_finish_struct): New static function.
13239         (finish_struct): Remove enclosing_in_struct and
13240         enclosing_struct_types parameters.  Add
13241         enclosing_struct_parse_info parameter.  Change all callers.  Don't
13242         set C_TYPE_DEFINED_IN_STRUCT here.  Call
13243         warn_cxx_compat_finish_struct.  Free struct_parse_info and set to
13244         parameter.  Only push on struct_types if warn_cxx_compat.
13245         (finish_enum): Only push on struct_types if warn_cxx_compat.
13246         (declspecs_add_type): Add loc parameter.  Change all callers.
13247         Change all error calls to error_at.  Pass loc, not input_location,
13248         to pedwarn calls.  Warn if -Wc++-compat and a typedef name is
13249         defined in a struct.  If -Wc++-compat and parsing a struct, record
13250         that a typedef name was used.
13251         * c-parser.c (c_parser_declspecs): Get location to pass to
13252         declspecs_add_type.
13253         (c_parser_struct_or_union_specifier): Update calls to start_struct
13254         and finish_struct.
13255         * c-tree.h (struct c_struct_parse_info): Declare.
13256         (finish_struct, start_struct): Update declarations.
13257         (declspecs_add_type): Update declaration.
13258
13259 2009-06-19  Ian Lance Taylor  <iant@google.com>
13260
13261         * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
13262         variable with an anonymous type.
13263
13264 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
13265
13266         * see.c: Remove for real.
13267
13268 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
13269
13270         * optabs.h (enum optab_index): Add new OTI_significand.
13271         (significand_optab): Define corresponding macro.
13272         * optabs.c (init_optabs): Initialize significand_optab.
13273         * genopinit.c (optabs): Implement significand_optab using
13274         significand?f2 patterns.
13275         * builtins.c (expand_builtin_mathfn): Handle
13276         BUILT_IN_SIGNIFICAND{,F,L}.
13277         (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
13278         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
13279
13280         * config/i386/i386.md (significandxf2, significand<mode>2): New
13281         expanders to implement significandf, significand and significandl
13282         built-ins as inline x87 intrinsics.
13283
13284 2009-06-18  Anatoly Sokolov  <aesok@post.ru>
13285
13286         * config/avr/avr.c (avr_override_options): Remove setting value of
13287         PARAM_INLINE_CALL_COST.
13288
13289 2009-06-18  Richard Henderson  <rth@redhat.com>
13290
13291         PR 40488
13292         * tree-pass.h (TDF_ASMNAME): New.
13293         * tree-dump.c (dump_options): Add asmname.
13294         * doc/invoke.texi: Document it.
13295
13296         * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
13297         (dump_decl_name): ...here.
13298         (dump_function_name): New flags arg; mind TDF_ASMNAME.
13299         (dump_generic_node): Update dump_function_name calls.
13300         (print_call_name): New flags arg; update all dump calls.
13301         * diagnostic.h (print_call_name): Update.
13302         * gimple-pretty-print.c (dump_gimple_call): Update.
13303
13304 2009-06-18  H.J. Lu  <hongjiu.lu@intel.com>
13305
13306         PR target/40470
13307         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
13308
13309 2009-06-18  Diego Novillo  <dnovillo@google.com>
13310
13311         * doc/plugins.texi: Document plugin_is_GPL_compatible.
13312         * plugin.c (str_license): Declare.
13313         (try_init_one_plugin): Assert that the symbol
13314         'plugin_is_GPL_compatible' exists.
13315
13316 2009-06-18  Sergei Dyshel  <sergeid@il.ibm.com>
13317
13318         * see.c: Remove.
13319         * Makefile.in (OBJS-common): Remove see.o.
13320         (see.o): Remove.
13321         * common.opt (fsee): Mark as preserved for backward compatibility.
13322         * opts.c (common_handle_option): Add OPT_fsee to the backward
13323         compatibility section.
13324         * passes.c (init_optimization_passes, pass_see): Remove pass.
13325         * timevar.def (TV_SEE): Remove.
13326         * tree-pass.h (pass_see): Remove declaration.
13327         * doc/invoke.texi (-fsee): Remove documentation.
13328
13329 2009-06-18  Martin Jambor  <mjambor@suse.cz>
13330
13331         * tree-sra.c: Include statistics.h
13332         (sra_stats): New variable.
13333         (sra_initialize): Clear sra_stats.
13334         (create_access_replacement): Increment sra_stats.replacements.
13335         (get_access_replacement): Do not return twice.
13336         (analyze_all_variable_accesses): Increment statistics counter by the
13337         number of scalarized aggregates.
13338         (generate_subtree_copies): Increment sra_stats.subtree_copies.
13339         (sra_modify_expr): Increment sra_stats.exprs.
13340         (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
13341         (sra_modify_assign): Increment sra_stats.exprs,
13342         sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
13343         (perform_intra_sra): Update statistics counters.
13344         * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
13345
13346 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
13347
13348         * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
13349         (arm_scalar_mode_supported_p): New function.
13350
13351 2009-06-18  Paul Brook  <paul@codesourcery.com>
13352             Sandra Loosemore  <sandra@codesourcery.com>
13353
13354         * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
13355         (__extendhfsf2, __truncsfhf2): Define.
13356         * config/arm/fp16.c: New file.
13357         * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
13358         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA):  Add fp16.c.
13359
13360 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
13361
13362         * doc/extend.texi (Half-Precision): New section.
13363         * doc/invoke.texi (Option Summary): List -mfp16-format.
13364         (ARM Options): List neon-fp16 as -mfpu value.  Document -mfp16-format.
13365         * config/arm/arm.opt (mfp16-format=): New.
13366         * config/arm/arm.c: Include intl.h.
13367         (TARGET_INVALID_PARAMETER_TYPE): Redefine.
13368         (TARGET_INVALID_RETURN_TYPE): Redefine.
13369         (TARGET_PROMOTED_TYPE): Redefine.
13370         (TARGET_CONVERT_TO_TYPE): Redefine.
13371         (arm_fp16_format): Define.
13372         (all_fpus): Add entry for neon-fp16.
13373         (fp_model_for_fpu): Likewise.
13374         (struct fp16_format): Declare.
13375         (all_fp16_formats): Define.
13376         (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
13377         functions.
13378         (arm_override_options): Set arm_fp16_format. Call sorry for fp16
13379         and no ldrh.
13380         (arm_legitimate_index_p): Treat HFmode like HImode.
13381         (thumb1_legitimate_address_p): Make it recognize HFmode constants.
13382         (coproc_secondary_reload_class): Special-case HFmode.
13383         (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
13384         (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
13385         (arm_init_fp16_builtins): New.
13386         (arm_init_builtins): Call it.
13387         (arm_invalid_parameter_type): New.
13388         (arm_invalid_return_type): New.
13389         (arm_promoted_type): New.
13390         (arm_convert_to_type).
13391         (arm_file_start): Deal with neon-fp16 as fpu_name.  Emit tag for fp16
13392         format.
13393         (arm_emit_fp16_const): New function.
13394         (arm_mangle_type): Mangle __fp16 as "Dh".
13395         * config/arm/arm.h (TARGET_VFPD32): Make it know about
13396         FPUTYPE_NEON_FP16.
13397         (TARGET_NEON_FP16): New.
13398         (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
13399         (enum fputype): Add FPUTYPE_NEON_FP16.
13400         (enum arm_fp16_format_type): Declare.
13401         (arm_fp16_format): Declare.
13402         (LARGEST_EXPONENT_IS_NORMAL): Define.
13403         * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
13404         * config/arm/arm-modes.def (HFmode): Define.
13405         * config/arm/vfp.md (*movhf_vfp): New.
13406         (extendhfsf2): New.
13407         (truncsfhf2): New.
13408         * config/arm/arm.md (fpu): Add neon_fp16.
13409         (floatsihf2, floatdihf2): New.
13410         (fix_trunchfsi2, fix_trunchfdi2): New.
13411         (truncdfhf2): New.
13412         (extendhfdf2): New.
13413         (movhf): New.
13414         (*arm32_movhf): New.
13415         (*thumb1_movhf): New.
13416         (consttable_2): Add check for HFmode constants.
13417         (consttable_4): Handle HFmode constants.
13418
13419 2009-06-18  Uros Bizjak  <ubizjak@gmail.com>
13420
13421         * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
13422
13423 2009-06-17  Olivier Hainque  <hainque@adacore.com>
13424
13425         * collect2.c (main): Use CONST_CAST2 to perform char ** to
13426         const char ** conversion in AIX specific section.
13427
13428 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
13429
13430         * config/i386/i386.c (ix86_special_builtin_type): Remove
13431         UINT64_FTYPE_PINT.  Add UINT64_FTYPE_PUNSIGNED.
13432         (bdesc_special_args): Updated.
13433         (ix86_init_mmx_sse_builtins): Likewise.
13434         (ix86_expand_special_args_builtin): Likewise.
13435
13436 2009-06-17  Richard Henderson  <rth@redhat.com>
13437
13438         * tree-pretty-print.c (maybe_dump_asm_name): New.
13439         (dump_decl_name): Use it.
13440         (PRINT_FUNCTION_NAME): Merge into...
13441         (dump_function_name): ... here.  Use maybe_dump_asm_name.
13442
13443 2009-06-17  Cary Coutant  <ccoutant@google.com>
13444
13445         * dbxout.c (dbxout_source_line): Add is_stmt parameter.
13446         Change caller.
13447         * debug.c (struct gcc_debug_hooks): Change placeholder for
13448         source_line hook.
13449         (debug_nothing_int_charstar_int): Replaced by...
13450         (debug_nothing_int_charstar_int_bool): ...this.
13451         * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
13452         source_line prototype.
13453         (debug_nothing_int_charstar_int): Replaced by...
13454         (debug_nothing_int_charstar_int_bool): ...this.
13455         * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
13456         * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
13457         Output is_stmt operand when necessary.
13458         * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
13459         (notice_source_line): Add is_stmt parameter.
13460         * sdbout.c (sdbout_source_line): Add is_stmt parameter.
13461         * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
13462         Change callers.
13463         * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
13464         * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
13465
13466 2009-06-17  Ian Lance Taylor  <iant@google.com>
13467
13468         * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
13469         Change all uses.
13470         (struct store_by_pieces_d): Rename from store_by_pieces.  Change
13471         call uses.
13472
13473 2009-06-17  Adam Nemet  <anemet@caviumnetworks.com>
13474
13475         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
13476         STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
13477         tree_strip_sign_nop_conversions and
13478         tree_ssa_strip_useless_type_conversions rather than stripping
13479         the operations here.
13480         (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
13481         Declare them.
13482         * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
13483         * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
13484         * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
13485         tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
13486         functions.
13487
13488 2009-06-17  Michael Eager  <eager@eagercon.com>
13489
13490         * config/rs6000/constraints.md (register_constraint "d"): New.
13491         * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
13492         truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
13493         *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
13494         *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
13495         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
13496         divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
13497         fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
13498         * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
13499         __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
13500         __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
13501         __fctiwz): Same.
13502         * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
13503         *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
13504         *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
13505         *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
13506         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
13507         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
13508         stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
13509         *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
13510         *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
13511         trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
13512         *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
13513         *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
13514         *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
13515         * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
13516
13517 2009-06-16  Ian Lance Taylor  <iant@google.com>
13518
13519         * profile.c (total_num_never_executed): Don't define.
13520         (compute_branch_probabilities): Don't count or print
13521         num_never_executed.
13522         (init_branch_prob): Don't set total_num_never_executed.
13523         (end_branch_prob): Don't print total_num_never_executed.
13524
13525 2009-06-17  David Daney  <ddaney@caviumnetworks.com>
13526
13527         * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
13528
13529 2009-06-17  David Edelsohn  <edelsohn@gnu.org>
13530
13531         * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
13532         (nabstd2_fpr): Same.
13533
13534 2009-06-17  Steve Ellcey  <sje@cup.hp.com>
13535
13536         * expr.c (expand_assignment): Change complex type check.
13537
13538 2009-06-17  Basile Starynkevitch  <basile@starynkevitch.net>
13539
13540         * doc/plugins.texi (Building GCC plugins): Added new section.
13541
13542 2009-06-17  Ian Lance Taylor  <iant@google.com>
13543
13544         * c-pch.c (get_ident): Don't set size of templ array.
13545         (pch_init): Don't set size of partial_pch array.
13546
13547         * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
13548         string constant to intialize an array whose size is the length of
13549         the string.
13550
13551 2009-06-17  Richard Guenther  <rguenther@suse.de>
13552
13553         PR tree-optimization/40389
13554         * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
13555         to addressable types.
13556         * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
13557
13558 2009-06-17  Richard Guenther  <rguenther@suse.de>
13559
13560         PR middle-end/40460
13561         * tree-chrec.h (build_polynomial_chrec): If we cannot determine
13562         if there is no evolution of left in the loop bail out.
13563         * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
13564         chrec_fold_multiply.
13565
13566 2009-06-16  J"orn Rennecke  <joern.rennecke@arc.com>
13567             Janis Johnson  <janis187@us.ibm.com>
13568
13569         PR target/39254
13570         * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
13571         for the symbol ref of a constant that is the source of a move
13572         - nor for any other not-obvious-label-ref constants.
13573
13574 2009-06-16  Olatunji Ruwase  <tjruwase@google.com>
13575
13576         * plugin.c (position_pass): Skip newly inserted pass during list
13577         traversal to avoid repeated insertion.
13578
13579 2009-06-16  Ian Lance Taylor  <iant@google.com>
13580
13581         * vec.h (VEC_stack_alloc): Define different version if
13582         GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
13583         (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
13584         (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
13585         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
13586
13587 2009-06-16  H.J. Lu  <hongjiu.lu@intel.com>
13588
13589         * config.gcc (extra_headers): Add ia32intrin.h for x86.
13590
13591         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
13592         IX86_BUILTIN_BSRDI.  IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
13593         IX86_BUILTIN_RDTSCP.  IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
13594         IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
13595         (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
13596         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
13597         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
13598         (bdesc_special_args): Add __builtin_ia32_rdtsc and
13599         __builtin_ia32_rdtscp.
13600         (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
13601         __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
13602         and __builtin_ia32_rorhi.
13603         (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
13604         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
13605         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
13606         (ix86_expand_args_builtin): Likewise.
13607         (ix86_expand_special_args_builtin): Likewise.
13608
13609         * config/i386/i386.md (UNSPECV_RDTSCP): New.
13610         (UNSPECV_RDTSC): Likewise.
13611         (UNSPECV_RDPMC): Likewise.
13612         (*bsr): Renamed to ...
13613         (bsr): This
13614         (*bsr_rex64): Renamed to ...
13615         (bsr_rex64): This.
13616         (rdpmc): New.
13617         (*rdpmc): Likewise.
13618         (*rdpmc_rex64): Likewise.
13619         (rdtsc): Likewise.
13620         (*rdtsc): Likewise.
13621         (*rdtsc_rex64): Likewise.
13622         (rdtscp): Likewise.
13623         (*rdtscp): Likewise.
13624         (*rdtscp_rex64): Likewise.
13625
13626         * config/i386/ia32intrin.h: New.
13627
13628         * config/i386/x86intrin.h: Include <ia32intrin.h>.
13629
13630 2009-06-16  Ian Lance Taylor  <iant@google.com>
13631
13632         * ira-build.c (copy_info_to_removed_store_destinations):
13633         Initialize parent_a.
13634
13635 2009-06-16  Ian Lance Taylor  <iant@google.com>
13636
13637         * c-decl.c (grokdeclarator): Change size_varies to bool.
13638
13639 2009-06-16  Ian Lance Taylor  <iant@google.com>
13640
13641         * sel-sched.c: Make forward declarations of move_op_hooks and
13642         fur_hooks explicitly extern.
13643
13644 2009-06-16  Ian Lance Taylor  <iant@google.com>
13645
13646         * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
13647         * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
13648
13649 2009-06-16  Ian Lance Taylor  <iant@google.com>
13650
13651         * resource.c (mark_referenced_resources): Change
13652         include_delayed_effects parameter to bool.  Change all callers.
13653         (mark_end_of_function_resources): Likewise.
13654         * reorg.c (insn_references_resource_p): Likewise.
13655         (insn_sets_resource_p): Likewise.
13656         * resource.h (mark_referenced_resources): Update declaration.
13657         (mark_end_of_function_resources): Update declaration.
13658
13659 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
13660
13661         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
13662
13663 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
13664
13665         * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
13666         GCC can bootstrap on AIX with GNU Binutils 2.20.
13667
13668 2009-06-16  Ian Lance Taylor  <iant@google.com>
13669
13670         * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
13671
13672 2009-06-16  Ian Lance Taylor  <iant@google.com>
13673
13674         * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
13675         inline, not extern inline.
13676         (exact_log2): Likewise.
13677         * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
13678         test CLZ_HWI.
13679         (exact_log2): Likewise, but don't test CTZ_HWI.
13680
13681 2009-06-16  Ian Lance Taylor  <iant@google.com>
13682
13683         * bitmap.c (bitmap_clear): Don't declare as inline.
13684         * gimple.c (gimplify_assign): Likewise.
13685         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
13686         * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
13687         (sched_scan_info): Remove duplicate definition.
13688
13689 2009-06-16  Ian Lance Taylor  <iant@google.com>
13690
13691         * c-common.c (skip_evaluation): Don't define.
13692         (c_inhibit_evaluation_warnings): Define global variable.
13693         (overflow_warning): Check c_inhibit_evaluation_warnings rather
13694         than skip_evaluation.
13695         (convert_and_check, warn_for_div_by_zero): Likewise.
13696         * c-common.h (skip_evaluation): Don't declare.
13697         (c_inhibit_evaluation_warnings): Declare.
13698         * c-parser.c (c_parser_typeof_specifier): Set
13699         c_inhibit_evaluation_warnings rather than skip_evaluation.
13700         (c_parser_conditional_expression): Likewise.
13701         (c_parser_binary_expression): Likewise.
13702         (c_parser_sizeof_expression): Likewise.
13703         (c_parser_alignof_expression): Likewise.
13704         * c-typeck.c (build_indirect_ref): Check
13705         c_inhibit_evaluation_warnings rather than skip_evaluation.
13706         (build_conditional_expr, build_binary_op): Likewise.
13707
13708 2009-06-16  Richard Guenther  <rguenther@suse.de>
13709
13710         * tree-ssa-alias.c (is_escape_site): Remove.
13711         * tree-ssa-alias.h (enum escape_type): Remove.
13712         (is_escape_site): Likewise.
13713         * tree-ssa-structalias.c (find_func_aliases): Handle escapes
13714         via casts and asms without deferring to is_escape_site.
13715
13716 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
13717
13718         PR middle-end/40446
13719         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
13720         use gen_lowpart if op0 has complex mode.
13721
13722 2009-06-16  Richard Guenther  <rguenther@suse.de>
13723
13724         * tree-ssa-structalias.c (do_ds_constraint): Stores in global
13725         variables add them to ESCAPED.
13726         (find_func_aliases): Do not make all indirectly stored values escaped.
13727
13728 2009-06-16  Rafael Avila de Espindola  <espindola@google.com>
13729
13730         * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
13731         make_decl_one_only.
13732
13733 2009-06-16  Martin Jambor  <mjambor@suse.cz>
13734
13735         PR tree-optimization/40432
13736         * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
13737         check whether we need to force gimple register operand.
13738
13739 2009-06-16  Martin Jambor  <mjambor@suse.cz>
13740
13741         PR tree-optimization/40413
13742         * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
13743         build_ref_for_offset.
13744         (propagate_subacesses_accross_link): Fix a typo in a comment.
13745
13746 2009-06-16  Ira Rosen  <irar@il.ibm.com>
13747
13748         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
13749         with additional parameter.
13750         * tree-vectorizer.h (enum vect_def_type): Add new value
13751         vect_nested_cycle.
13752         (enum vect_relevant): Add comments.
13753         (vect_is_simple_reduction): Add new argument.
13754         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
13755         Detect nested cycles.
13756         (vect_is_simple_reduction): Update documentation, add an argument to
13757         distinguish inner-loop reduction from nested cycle, detect nested
13758         cycles, fix printings and indentation, don't swap operands in case
13759         of nested cycle.
13760         (get_initial_def_for_reduction): Handle subtraction.
13761         (vect_create_epilog_for_reduction): Add new argument to specify
13762         reduction variable.
13763         (vect_finalize_reduction): Handle subtraction, fix comments.
13764         (vectorizable_reduction): Handle nested cycles. In case of nested
13765         cycle keep track of the reduction variable position. Call
13766         vect_is_simple_reduction with additional parameter. Use original
13767         statement code in reduction epilogue for nested cycle. Call
13768         vect_create_epilog_for_reduction with additional parameter.
13769         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
13770         inner-loop vectorization.
13771         (vect_recog_widen_sum_pattern): Likewise.
13772         * tree-vect-stmts.c (process_use): Distinguish between nested cycles
13773         and reductions.
13774         (vect_mark_stmts_to_be_vectorized): Likewise.
13775         (vect_get_vec_def_for_operand): Handle nested cycles.
13776
13777 2009-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13778
13779         * doc/invoke.texi (Debugging Options): Fix option index entries
13780         for -fdump-statistics, -frandom-seed add entries for
13781         -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
13782         (FRV Options): Fix entries for -mTLS, -mtls.
13783         (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
13784         (i386 and x86-64 Options): Fix entry for -mno-red-zone.
13785         (M68hc1x Options): Fix @itemx for -mnominmax.
13786         (MCore Options): Fix entry for -mno-lsim.
13787         (MMIX Options): Fix entry for -mabi=mmixware.
13788         (PDP-11 Options): Fix entry for -mbcopy-builtin.
13789
13790 2009-06-16  Basile Starynkevitch  <basile@starynkevitch.net>
13791
13792         * doc/plugins.texi (Interacting with the GCC Garbage Collector):
13793         Mention the plugin mode of gengtype.
13794         * doc/gty.texi (Source Files Containing Type Information): Likewise.
13795         * gengtype.c: Updated copyright.
13796         (plugin_files, nb_plugin_files) Added new static variables.
13797         (measure_input_list) Care about plugin_files.
13798         (write_rtx_next): Added early return in plugin mode.
13799         (create_file): Updated copyright year in generated file. Added
13800         asserts.
13801         (oprintf): Added early return if NULL outf.
13802         (get_output_file_with_visibility): Care of plugin_files.
13803         (get_output_file_name): May return null.
13804         (write_local): Added early return.
13805         (put_mangled_filename): Ditto.
13806         (finish_root_table): Added check for base_files.
13807         (write_roots): Care about null when plugins.
13808         (main): Added plugin mode.
13809
13810 2009-06-15  Ian Lance Taylor  <iant@google.com>
13811
13812         * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
13813         * gcov.c (read_count_file): Add braces around variables declared
13814         before label.
13815
13816         * c.opt (Wjump-misses-init): New warning.
13817         * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
13818         -Wall and -Wc++-compat if not already set.
13819         (c_common_post_options): Clear warn_jump_misses_init if it was not
13820         set.
13821         * c-decl.c (struct c_binding): Change type field to a union with
13822         new label field.  Make it the first field in the struct.  Update
13823         references to type to use u.type instead.
13824         (struct c_spot_bindings): Define.
13825         (struct c_goto_bindings): Define.
13826         (c_goto_bindings_p): Define, along with VECs.
13827         (struct c_label_vars): Define.
13828         (struct c_scope): Add has_label_bindings field.
13829         (bind_label, set_spot_bindings): New static functions.
13830         (decl_jump_unsafe, update_spot_bindings): New static functions.
13831         (update_label_decls): New static function.
13832         (pop_scope): Call update_label_decls.  Don't call c_end_vm_scope.
13833         Update binding u.label field to shadowed field.
13834         (c_binding_start_stmt_expr): New function.
13835         (c_binding_end_stmt_expr): New function.
13836         (pushdecl): Don't call c_begin_vm_scope.
13837         (make_label): Add defining and p_label_vars parameters.  Change
13838         all callers.
13839         (lookup_label): Correct test for whether a label has not yet been
13840         defined.  Call bind_label rather than bind.
13841         (warn_about_goto): New static function.
13842         (lookup_label_for_goto): New function.
13843         (declare_label): Call bind_label rather than bind.
13844         (check_earlier_gotos): New static function.
13845         (define_label): Don't give errors about jumping into statement
13846         expressions or scopes of variably modified types.  Call
13847         set_spot_bindings and check_earlier_gotos.  Call bind_label
13848         instead of bind.  Don't set label_context_stack_se or
13849         label_context_stack_vm.
13850         (c_get_switch_bindings): New function.
13851         (c_release_switch_bindings): New function.
13852         (c_check_switch_jump_warnings): New function.
13853         (start_function): Don't set label_context_stack_se or
13854         label_context_stack_vm.
13855         (finish_function): Likewise.
13856         * c-typeck.c (label_context_stack_se): Don't define.
13857         (label_context_stack_vm): Don't define.
13858         (c_finish_goto_label): Call lookup_label_for_goto rather than
13859         lookup_label.  Don't give errors about jumping into a statement
13860         expression or the scope of a variably modified type.  Don't set
13861         label_context_stack_se or label_context_stack_vm.
13862         (struct c_switch): Remove blocked_stmt_expr and blocked_vm
13863         fields.  Add bindings field.
13864         (c_start_case): Don't set deleted fields.  Set bindings field.
13865         (do_case): Rework order of tests.  Don't check blocked_stmt_expr
13866         or blocked_vm.  Call c_check_switch_jump_warnings.
13867         (c_finish_case): Don't test blocked_stmt_expr field.  Call
13868         c_release_switch_bindings.
13869         (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
13870         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
13871         set label_context_stack_se.  Call c_bindings_start_stmt_expr.
13872         (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
13873         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
13874         set label_context_stack_se.  Call c_bindings_end_stmt_expr.
13875         (c_begin_vm_scope, c_end_vm_scope): Don't define.
13876         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
13877         (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
13878         (C_DECL_UNJUMPABLE_VM): Don't define.
13879         (C_DECL_UNDEFINABLE_VM): Don't define.
13880         (struct c_label_list): Don't define.
13881         (struct c_label_context_se): Don't define.
13882         (struct c_label_context_vm): Don't define.
13883         (struct c_spot_bindings): Declare.
13884         (c_bindings_start_stmt_expr): Declare.
13885         (c_bindings_end_stmt_expr): Declare.
13886         (lookup_label_for_goto): Declare.
13887         (c_get_switch_bindings, c_release_switch_bindings): Declare.
13888         (c_check_switch_jump_warnings): Declare.
13889         (label_context_stack_se, label_context_stack_vm): Don't declare.
13890         (c_finish_goto_label): Update declaration.
13891         (c_begin_vm_scope, c_end_vm_scope): Don't declare.
13892         * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
13893         (Warning Options): Document -Wjump-misses-init.
13894
13895 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
13896
13897         * tree-object-size.c (addr_object_size): Fix a pasto in the last
13898         change.
13899
13900 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
13901
13902         * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
13903
13904 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
13905
13906         * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
13907
13908 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
13909
13910         * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
13911
13912 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
13913
13914         * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
13915         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
13916         * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
13917         * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
13918         * dwarf2asm.c (dw2_force_const_mem): Update call to
13919         make_decl_one_only.
13920         * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
13921         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
13922         * langhooks.c (lhd_comdat_group): Remove.
13923         * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
13924         * tree.h (DECL_COMDAT_GROUP): New.
13925         (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
13926         (tree_decl_with_vis): Add comdat_group. Remove one_only.
13927         (make_decl_one_only): Change signature.
13928         * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
13929         make_decl_one_only.
13930         (make_decl_one_only): Change signature.
13931         (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
13932
13933 2009-06-15  Richard Guenther  <rguenther@suse.de>
13934
13935         PR middle-end/40439
13936         * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
13937
13938 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13939
13940         * tree-ssa-math-opts.c: Remove extra divide.
13941
13942 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13943
13944         * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
13945
13946 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13947
13948         * passes.c: Add bswap pass.
13949         * tree-pass.h: Add pass_optimize_bswap declaration.
13950         * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
13951         Include rtl.h, expr.h and optabs.h for optab_handler check.
13952         (struct symbolic_number, pass_optimize_bswap): New definition.
13953         (do_shift_rotate, verify_symbolic_number_p): New functions.
13954         (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
13955         (gate_optimize_bswap): New function.
13956         * tree.c (widest_int_cst_value): New function.
13957         * tree.h (widest_int_cst_value): Prototype added.
13958
13959 2009-06-14  Steven Bosscher  <steven@gcc.gnu.org>
13960
13961         * cfgcleanup.c (old_insns_match_p): Remove code to substitute
13962         REG_EQUAL/REG_EQUIV notes.
13963
13964 2009-06-14  Richard Guenther  <rguenther@suse.de>
13965
13966         PR middle-end/40389
13967         * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
13968         has its address taken if NRV was applied and it is addressable.
13969         * tree-ssa-structalias.c (get_constraint_for_address_of): New
13970         function split out from ...
13971         (get_constraint_for_1): ... here.
13972         (handle_rhs_call): Use it to mark the return slot escaped if
13973         it is addressable and NRV was applied.
13974
13975 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
13976
13977         * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
13978         Change first argument type to location_t.
13979         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
13980         Do not set input_location.
13981         Use loc instead of input_location throughout.
13982
13983 2009-06-13  Richard Guenther  <rguenther@suse.de>
13984
13985         PR tree-optimization/40421
13986         * tree-predcom.c (should_unroll_loop_p): Remove.
13987         (tree_predictive_commoning_loop): Use can_unroll_loop_p.
13988
13989 2009-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
13990
13991         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13992         Add location argument.
13993
13994 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
13995
13996         * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
13997         build_decl.
13998         * config/s390/s390.c (s390_build_builtin_va_list): Same.
13999         (s390_gimplify_va_arg): Pass location to create_artificial_label.
14000         * config/spu/spu-protos.h: Add location to
14001         spu_resolve_overloaded_builtin.
14002         * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
14003         spu_build_builtin_va_list.
14004         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
14005         argument.  Pass location to build_function_call_vec.
14006         * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
14007         build_decl.
14008         (emit_fpu_switch): Same.
14009         (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
14010         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
14011         to build_decl and create_artificial_label.
14012         (xtensa_gimplify_va_arg_expr): Same.
14013         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
14014         (xstormy16_gimplify_va_arg_expr): Same.
14015         * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
14016         * config/arm/arm.c (arm_build_builtin_va_list): Same.
14017         * config/mips/mips.c (mips_build_builtin_va_list): Same.
14018         (mips16_build_function_stub): Same.
14019         (mips16_build_call_stub): Same.
14020
14021 2009-06-13  Richard Earnshaw  <rearnsha@arm.com>
14022
14023         PR target/40327
14024         * arm/constraints.md (Pa, Pb): New constraints.
14025         * arm/arm.md (thumb1_addsi3): Support more complex additions.  Add a
14026         split pattern to deal with them.
14027
14028 2009-06-13  Joerg Sonnenberger  <joerg@britannica.bec.de>
14029
14030         * doc/invoke.texi: Add missing option -Wp,OPTION in list,
14031         fix index entry for -Xpreprocessor.
14032
14033 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
14034
14035         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14036         Add location argument to build_decl call.
14037         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
14038         (rs6000_init_builtins): Same.
14039         (spe_init_builtins): Same.
14040         (rs6000_gimplify_va_arg): Add location argument to
14041         create_artificial_label call.
14042
14043 2009-06-12  Steven Bosscher  <steven@gcc.gnu.org>
14044
14045         * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
14046         * combine-stack-adj.c (pass_stack_adjustments): Use it.
14047         * Makefile.in: Fix GGC dependency for gcse.o.
14048
14049 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
14050
14051         * tree-pretty-print.c (dump_generic_node): Dump column numbers.
14052         * gimple-pretty-print.c (dump_gimple_stmt): Same.
14053         * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
14054         created.
14055         * c-parser.c (c_parser_binary_expression): Use current column while
14056         building binary operations.
14057         * common.opt (fshow-column): Enable by default.
14058         * tree-vrp.c (check_array_ref): Use warning_at.
14059         (check_array_bounds): Use location from call back if expr has no
14060         location.
14061         * tree.h: Add location argument to maybe_fold_*.
14062         * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
14063         (maybe_fold_offset_to_array_ref): Add location argument and use it.
14064         (maybe_fold_offset_to_component_ref): Same.
14065         (maybe_fold_offset_to_reference): Same.
14066         (maybe_fold_offset_to_address): Same.
14067         (maybe_fold_stmt_indirect): Same.
14068         (maybe_fold_stmt_addition): Same.
14069         (fold_stmt_r): Pass location to maybe_fold_*.
14070         (fold_gimple_assign): Same.
14071         * c-tree.h: Add location argument to finish_decl,
14072         default_function_array_conversion, store_init_value.
14073         * c-decl.c (define_label): Use error_at.
14074         (c_make_fname_decl): Pass location to finish_decl.
14075         (finish_decl): New location argument.
14076         (build_compound_literal): Pass location to store_init_value.
14077         (grokdeclarator): Pass location to finish_decl.
14078         (grokfield): Same.
14079         * c-typeck.c (array_to_pointer_conversion): New location argument.
14080         (function_to_pointer_conversion): Same.
14081         (default_function_array_conversion): Same.
14082         (parser_build_unary_op): Pass location to overflow_warning.
14083         (parser_build_binary_op): Same.  Use warning_at.
14084         (build_unary_op): Pass location to array_to_pointer_conversion.
14085         (build_c_cast): Pass location to digest_init.
14086         (build_modify_expr): New location argument.
14087         (convert_for_assignment): Same.
14088         (store_init_value): Same.
14089         (digest_init): Same.
14090         (output_init_element): Pass location to digest_init and
14091         array_to_pointer_conversion.
14092         (c_finish_return): Pass location to convert_for_assignment.
14093         * gimplify.c (gimplify_conversion): Pass location to
14094         maybe_fold_offset_to_address.
14095         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
14096         to maybe_fold_stmt_addition.
14097         * c-omp.c (c_finish_omp_atomic): Pass new location to
14098         build_modify_expr.
14099         (c_finish_omp_for): Same.
14100         * c-common.c (overflow_warning): New argument.
14101         * c-common.h: New argument to build_modify_expr, overflow_warning.
14102         * c-parser.c (c_parser_declaration_or_fndef): Pass location to
14103         finish_decl.
14104         (c_parser_initializer): Pass location to
14105         default_function_array_conversion.
14106         (c_parser_initelt): Same.
14107         (c_parser_initval): Same.
14108         (c_parser_asm_operands): Same.
14109         (c_parser_expr_no_commas): Same.  Pass location to build_modify_expr.
14110         (c_parser_conditional_expression): Same.
14111         (c_parser_binary_expression): Add location info to stack.  Use it.
14112         (c_parser_unary_expression): Pass location to
14113         default_function_array_conversion, parser_build_unary_op,
14114         build_indirect_ref, c_parser_postfix_expression_after_primary.
14115         (c_parser_postfix_expression_after_primary): New location argument.
14116         Use it.
14117         (c_parser_expression_conv): Pass location to
14118         default_function_array_conversion.
14119         (c_parser_expr_list): Same.
14120         (c_parser_omp_atomic): Same.
14121         (c_parser_omp_for_loop): Same.
14122         * c-tree.h (struct c_declarator): Add comment to id_loc.
14123         (build_array_declarator): New argument.
14124         * c-decl.c (build_array_declarator): Add location argument.
14125         (grokdeclarator): Set id_loc for cdk_array.
14126         * c-parser.c (c_parser_direct_declarator_inner): Pass location to
14127         build_array_declarator.
14128         * tree.c (build_omp_clause): Add location argument.
14129         * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
14130         (OMP_CLAUSE_LOCATION): New macro.
14131         (struct tree_omp_clause): Add location field.
14132         (build_omp_clause): Add argument.
14133         * testsuite/gcc.dg/gomp/for-1.c: Fix column.
14134         * cp/pt.c (tsubst_omp_for_iterator): Pass location to
14135         build_omp_clause.
14136         * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
14137         (cp_parser_omp_clause_collapse): Same.
14138         (cp_parser_omp_clause_default): Same.
14139         (cp_parser_omp_clause_if): Same.
14140         (cp_parser_omp_clause_nowait): Same.
14141         (cp_parser_omp_clause_num_threads): Same.
14142         (cp_parser_omp_clause_ordered): Same.
14143         (cp_parser_omp_clause_schedule): Same.
14144         (cp_parser_omp_clause_untied): Same.
14145         (cp_parser_omp_for_loop): Same.
14146         (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
14147         * c-tree.h (c_start_case): Add location argument.
14148         (c_process_expr_stmt): Same.
14149         (c_finish_goto_*): Same.
14150         * tree-parloops.c (initialize_reductions): Pass location to
14151         build_omp_clause.
14152         (create_parallel_loop): Same.
14153         * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
14154         (gfc_trans_omp_reduction_list): Same.
14155         (gfc_trans_omp_clauses): Same.
14156         (gfc_trans_omp_do): Same.
14157         * c-typeck.c (c_finish_goto_label): Same.
14158         (c_finish_goto_ptr): New location argument.
14159         (c_start_case): Same.
14160         (emit_side_effect_warnings): Same.
14161         (c_process_expr_stmt): Same.
14162         (c_finish_stmt_expr): Same.
14163         (c_finish_omp_clauses): Use error_at instead of error.
14164         * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
14165         build_omp_clause.
14166         * c-omp.c (c_split_parallel_clauses): New location argument.
14167         * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
14168         to build_omp_clause.
14169         (convert_local_reference_stmt): Same.
14170         (convert_gimple_call): Same.
14171         * c-common.h (c_split_parallel_clauses): New argument.
14172         * c-parser.c (c_parser_statement_after_labels): Pass location to
14173         c_finish_goto_label.
14174         (c_parser_switch_statement): Pass location to c_start_case.
14175         (c_parser_for_statement): Pass location to c_finish_expr_stmt,
14176         and c_process_expr_stmt.
14177         (c_parser_omp_variable_list): Add location argument.
14178         (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
14179         (c_parser_omp_clause_default): Same.
14180         (c_parser_omp_clause_if): Same.
14181         (c_parser_omp_clause_num_threads): Same.
14182         (-c_parser_omp_clause_ordered): Same.
14183         (c_parser_omp_clause_reduction): Pass location to
14184         c_parser_omp_variable_list.
14185         (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
14186         (c_parser_omp_clause_untied): Same.
14187         (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
14188         (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
14189
14190         * c-tree.h (check_for_loop_decls, undeclared_variable,
14191         build_component_ref, build_array_ref, build_external_ref,
14192         c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
14193         build_conditional_expr, build_compound_expr, c_cast_expr,
14194         build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
14195         c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
14196         argument.
14197         * c-semantics.c (build_stmt): Same.
14198         (build_case_label): Same.
14199         * c-decl.c (c_finish_incomplete_decl): Pass location on down.
14200         (undeclared_variable): New argument.
14201         (make_label): Same.
14202         (lookup_label): Pass location on down.
14203         (define_label): Same.
14204         (finish_decl): Same.
14205         (build_compound_literal): Same.
14206         (finish_struct): Same.
14207         (finish_function): Do not set location here.
14208         (check_for_loop_decls): New argument.
14209         * tree.c (save_expr): Set location.
14210         (build_empty_stmt): New argument.
14211         * tree.h (build_empty_stmt): New argument to build_empty_stmt.
14212         (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
14213         * builtins.c (gimplify_va_arg_expr): Use locations.
14214         (expand_builtin_sync_operation): Same.
14215         * c-typeck.c (build_component_ref): New argument.
14216         (build_array_ref): Same.
14217         (build_external_ref): Same.
14218         (c_expr_sizeof_expr): Same.
14219         (c_expr_sizeof_type): Same.
14220         (parser_build_unary_op): Same.
14221         (build_conditional_expr): Same.
14222         (build_compound_expr): Pass location on down.
14223         (build_compound_expr): New argument.
14224         (build_c_cast): Same.
14225         (c_cast_expr): Same.
14226         (build_asm_expr): Same.
14227         (c_finish_return): Same.
14228         (c_process_expr_stmt): Pass location on down.
14229         (c_finish_stmt_expr): New argument.
14230         (push_clenaup): Same.
14231         (c_finish_omp_parallel): Same.
14232         (c_finish_omp_task): Same.
14233         * gimplify.c (gimplify_call_expr): Pass location on down.
14234         * c-omp.c (c_finish_omp_master): New argument.
14235         (c_finish_omp_critical): Same.
14236         (c_finish_omp_ordered): Same.
14237         (c_finish_omp_barrier): Same.
14238         (-c_finish_omp_taskwait): Same.
14239         (c_finish_omp_atomic): Same.
14240         (c_finish_omp_flush): Same.
14241         * tree-inline.c (copy_tree_body_r): Pass location on down.
14242         (inline_forbidden_p): Remove use of input_location.
14243         * c-gimplify.c (c_build_bind_expr): New argument.
14244         * c-common.c (c_common_truthvalue_conversion): Pass location on down.
14245         (c_sizeof_or_alignof_type): New argument.
14246         (c_alignof_expr): Same.
14247         (build_va_arg): Same.
14248         (c_add_case_label): Same.
14249         * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
14250         c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
14251         c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
14252         c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
14253         c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
14254         c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
14255         New argument.
14256         * stub-objc.c (objc_build_selector_expr): Same.
14257         (objc_build_throw_stmt): Same.
14258         * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
14259         (c_parser_initelt): Same.
14260         (c_parser_compound_statement): Same.
14261         (c_parser_compound_statement_nostart): Same.
14262         (c_parser_label): Same.
14263         (c_parser_statement_after_labels): Same.
14264         (c_parser_if_body): Same.
14265         (c_parser_else_body): Same.
14266         (c_parser_if_statement): Same.
14267         (c_parser_switch_statement): Same.
14268         (c_parser_while_statement): Same.
14269         (c_parser_do_statement): Same.
14270         (c_parser_for_statement): Same.
14271         (c_parser_asm_statement): Same.
14272         (c_parser_conditional_expression): Same.
14273         (c_parser_binary_expression): Same.
14274         (c_parser_cast_expression): Same.
14275         (c_parser_unary_expression): Same.
14276         (c_parser_sizeof_expression): Same.
14277         (c_parser_alignof_expression): Same.
14278         (c_parser_postfix_expression): Same.
14279         (c_parser_expression): Same.
14280         (c_parser_objc_receiver): Same.
14281         (c_parser_omp_variable_list): Same.
14282         (c_parser_omp_structured_block): Same.
14283         (c_parser_omp_atomic): New argument.
14284         (c_parser_omp_barrier): Same.
14285         (c_parser_omp_critical): Same.
14286         (c_parser_omp_flush): Pass location on down.
14287         (c_parser_omp_for_loop): New argument.
14288         (c_parser_omp_for): Same.
14289         (c_parser_omp_master): Same.
14290         (c_parser_omp_ordered): Same.
14291         (c_parser_omp_sections_scope): Same.
14292         (c_parser_omp_sections): Same.
14293         (c_parser_omp_parallel): Same.
14294         (c_parser_omp_single): Same.
14295         (c_parser_omp_task): Same.
14296         (c_parser_omp_taskwait): Pass location on down.
14297         (c_parser_omp_construct): Same.
14298         (c_parser_omp_threadprivate): Same.
14299         * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
14300         builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
14301         tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
14302         c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
14303         c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
14304         emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
14305         rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
14306         tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
14307         config/i386/i386.c, stmt.c:
14308         Add location argument to the following function definitions and/or
14309         function calls: build_decl, objcp_start_struct, objcp_finish_struct,
14310         start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
14311         cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
14312         build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
14313         do_case, c_finish_bc_stmt, build_compound_literal,
14314         build_function_call.
14315         * c-decl.c (build_compound_literal): Add location argument.
14316         Make all diagnostic calls use location.
14317         (start_struct): Same.
14318         (finish_struct): Same.
14319         (start_enum): Same.
14320         (build_enumerator): Same.
14321         (start_function): Same.
14322         (grokdeclarator): Make all diagnostic calls use location.
14323         (store_parm_decls_oldstyle): Same.
14324         * c-typeck.c (build_function_call): Add location argument.
14325         Make all diagnostic calls use location.
14326         (do_case): Same.
14327         (c_finish_bc_stmt): Same.
14328         * tree-nested.c (get_trampoline_type): Add argument.
14329         Pass location to build_decl.
14330         (lookup_tramp_for_decl): Pass location to get_trampoline_type.
14331         * rtl.h (RTL_LOCATION): New.
14332         * c-common.c (c_add_case_label): Add location argument.
14333         Make all diagnostic calls use location.
14334         * c-common.h: Add location argument to make_fname_decl, do_case,
14335         c_add_case_label, build_function_call, resolve_overloaded_builtin.
14336         * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
14337         Set it appropriately for every case.  Pass enum_loc to start_enum
14338         call.  Pass value_loc first to build_enumerator.  Pass enum_loc to
14339         parser_xref_tag.
14340         (c_parser_struct_or_union_specifier): Save location.  Use it for
14341         start_struct, finish_struct, and parser_xref_tag.
14342
14343 2009-06-12  Ian Lance Taylor  <iant@google.com>
14344
14345         * fold-const.c (fold_unary): Rename local variable and to and_expr.
14346
14347         * c-opts.c (c_common_handle_option): For -Wc++-compat set
14348         cpp_opts->warn_cxx_operator_names.
14349
14350 2009-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14351
14352         PR tree-opt/38865
14353         * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
14354         is returns NULL and OP is a VCE, look through the VCE.
14355
14356 2009-06-12  Ian Lance Taylor  <iant@google.com>
14357
14358         PR bootstrap/40430
14359         * collect2.c (main): Use CONST_CAST2 in code inside #if
14360         LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
14361
14362 2009-06-12  Joey Ye  <joey.ye@intel.com>
14363
14364         PR middle-end/39146
14365         * cfgexpand.c (get_decl_align_unit): Update
14366         max_used_stack_slot_alignment with align instead of
14367         stack_alignment_needed.
14368
14369         * function.c (assign_stack_local_1): Update
14370         max_used_stack_slot_alignment with alignment_in_bits instead
14371         of stack_alignment_needed.
14372         (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
14373         here.
14374
14375 2009-06-12  Jakub Jelinek  <jakub@redhat.com>
14376
14377         * dwarf2out.c (last_var_location_insn): New variable.
14378         (dwarf2out_end_epilogue): Clear last_var_location_insn.
14379         (dwarf2out_var_location): Don't record anything after last real
14380         insn.  Only change labels if there were any real instructions
14381         in between last note and this one, or if changed sections.
14382
14383 2009-06-11  Richard Henderson  <rth@redhat.com>
14384
14385         * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
14386         note when storing the frame pointer in a register.
14387         (FRP): Don't redefine to nothing for epilogue.
14388         (alpha_expand_epilogue): Mark register and sp restores.
14389         (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
14390
14391         * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
14392         when gen_lowpart is needed.
14393
14394 2009-06-11  Richard Henderson  <rth@redhat.com>
14395
14396         * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
14397
14398         * dwarf2out.c (need_data_align_sf_opcode): New.
14399         (div_data_align): Move earlier.
14400         (def_cfa_1, reg_save): Use it.
14401
14402 2009-06-11  H.J. Lu  <hongjiu.lu@intel.com>
14403
14404         * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
14405         (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
14406         (ix86_handle_option): Handle OPT_mcrc32.
14407         (ix86_target_string): Add -mcrc32.
14408         (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
14409
14410         * config/i386/i386.h (TARGET_CRC32): New.
14411
14412         * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
14413         (sse4_2_crc32di): Likewise.
14414
14415         * config/i386/i386.opt (mcrc32): New.
14416
14417         * doc/invoke.texi: Document -mcrc32.
14418
14419 2009-06-11  Richard Henderson  <rth@redhat.com>
14420
14421         * common.opt (gdwarf-): Accept a version number.
14422         * doc/invoke.texi (gdwarf-): Update docs.
14423         * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
14424         * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
14425         version level, and record it.
14426
14427         * dwarf2.h (DW_CIE_VERSION): Remove.
14428         * dwarf2out.c (DWARF_VERSION): Remove.
14429         (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
14430         (output_call_frame_info): Use CIE version 3 for dwarf3,
14431         or if the return register column is out of range for version 1.
14432         (dwarf_stack_op_name): Add all dwarf3 values.
14433         (DEBUG_PUBTYPES_SECTION): New.
14434         (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
14435         encoding change for dwarf3.
14436         (output_die) [dw_val_class_die_ref]: Likewise.
14437         (output_compilation_unit_header): Emit correct version for dwarf3.
14438         (output_line_info): Likewise.
14439         (output_pubnames): Update for DWARF_VERSION removal.
14440         (output_aranges): Likewise.
14441         (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
14442         (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
14443         (dwarf2out_finish): Likewise.
14444
14445 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
14446
14447         * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
14448         in r148403.
14449
14450 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
14451
14452         PR c/39252
14453         * doc/extend.texi ( __builtin_unreachable): Document new builtin.
14454         * builtins.c (expand_builtin_unreachable): New function.
14455         (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
14456         * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
14457         * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
14458         successors.
14459         * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
14460         searching for missing barriers.
14461
14462 2009-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14463
14464         * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
14465         when -fprofile-generate* was passed.
14466         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
14467
14468 2009-06-11  Anthony Green  <green@moxielogic.com>
14469
14470         * config/moxie/moxie.md: Define length attribute for all instructions.
14471         (rCC): Define.
14472         (*b<cond:code>): Support limited branch ranges for new PC-relative
14473         branch instructions.
14474         * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
14475
14476 2009-06-11  Jakub Jelinek  <jakub@redhat.com>
14477
14478         * config/i386/i386.c (min_insn_size): Use get_attr_length
14479         for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
14480         For __asm return 0.
14481
14482         * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
14483         instead of emit_insn_before.
14484
14485 2009-06-10  Ian Lance Taylor  <iant@google.com>
14486
14487         PR bootstrap/40408
14488         * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
14489         GIMPLE_SWITCH.
14490
14491 2009-06-10  Revital Eres  <eres@il.ibm.com>
14492
14493         * passes.c (init_optimization_passes): Reschedule
14494         predictive-commoning pass before complete unroll pass.
14495
14496 2009-06-10  Martin Jambor  <mjambor@suse.cz>
14497
14498         * cgraph.c (cgraph_node_can_be_local_p): New function.
14499         (cgraph_make_node_local): New function.
14500         * cgraph.h (cgraph_node_can_be_local_p): Declare.
14501         (cgraph_make_node_local): Declare.
14502
14503 2009-06-10  Nathan Froyd  <froydnj@codesourcery.com>
14504
14505         * tree.h (tree_base): Add packed_flag and user_align fields.
14506         Decrease size of spare field.
14507         (TYPE_USER_ALIGN): Use user_align from tree_base.
14508         (DECL_USER_ALIGN): Likewise.
14509         (TYPE_PACKED): Use packed_flag from tree_base.
14510         (DECL_PACKED): Likewise.
14511         (tree_type): Delete packed_flag and user_align fields.  Widen
14512         precision field.  Widen mode field and shuffle fields to align
14513         mode on an 8-bit boundary.
14514         (tree_decl_common): Delete decl_flag_1 and user_align fields.
14515         Renumber decl_flag_* fields.  Fix comments.  Widen
14516         decl_common_unused field.
14517         (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
14518         (DECL_EXTERNAL): Likewise.
14519         (DECL_BIT_FIELD): Likewise.
14520         (DECL_NONADDRESSABLE_P): Likewise.
14521         (TYPE_DECL_SUPRESS_DEBUG): Likewise.
14522         * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
14523
14524 2009-06-10  Ian Lance Taylor  <iant@google.com>
14525
14526         * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
14527         (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
14528         (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
14529         (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
14530         (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
14531         DEF_VEC_ALLOC_FUNC_P.
14532         (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
14533         (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
14534         DEF_VEC_ALLOC_FUNC_O.
14535         (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
14536         (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
14537         DEF_VEC_ALLOC_FUNC_I.
14538         (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
14539         (vec_stack_p_reserve_exact_1): Declare.
14540         (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
14541         (vec_stack_free): Declare.
14542         (VEC_stack_alloc): Define.
14543         (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
14544         (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
14545         (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
14546         * vec.c (void_p): New type.  Call DEF_VEC_P and DEF_VEC_ALLOC_P
14547         for void_p.
14548         (stack_vecs): New static variable.
14549         (vec_stack_p_reserve_exact_1): New function.
14550         (vec_stack_o_reserve_1): New static function.
14551         (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
14552         (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
14553         (vec_stack_free): New function.
14554         * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
14555         (VEC_df_ref_stack_alloc): Define.
14556         (df_mw_hardreg_ptr): New type.  Use DEF_VEC_P and
14557         DEF_VEC_ALLOC_P_STACK.
14558         (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
14559         (struct df_collection_rec): Change _vec fields to VEC.  Remove
14560         _use fields.
14561         (df_free_collection_rec): Adjust for new fields.
14562         (df_insn_rescan): Use new df_collection_rec fields.
14563         (df_notes_rescan, df_canonize_collection_rec): Likewise.
14564         (df_ref_create_structure, df_ref_record): Likewise.
14565         (df_get_conditional_uses, df_get_call_refs): Likewise.
14566         (df_insn_refs_collect, df_bb_refs_collect): Likewise.
14567         (df_bb_refs_record, df_record_entry_block_defs): Likewise.
14568         (df_record_exit_block_uses, df_bb_verify): Likewise.
14569         (df_swap_refs): Change ref_vec parameter to VEC.  Change all callers.
14570         (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
14571         Remove count parameter.  Change return type to void.  Change all
14572         callers.
14573         (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
14574         Remove count parameter.  Change return type to void.  Change all
14575         callers.
14576         (df_install_refs): Change old_vec parameter to VEC.  Remove count
14577         parameter.  Change all callers.
14578         (df_install_mws): Change old_vec parameter to VEC.  Remove count
14579         parameter.  Change all callers.
14580         (df_refs_verify): Change new_rec parameter to VEC.  Change call
14581         callers.
14582         (df_mws_verify): Likewise.
14583
14584 2009-06-10  Alexandre Oliva  <aoliva@redhat.com>
14585
14586         * gcc.c (compare_files): Cast munmap argumento to caddr_t.
14587
14588 2009-06-10  H.J. Lu  <hongjiu.lu@intel.com>
14589
14590         * doc/extend.texi: Add description for __builtin_ia32_crc32di.
14591
14592 2009-06-10  Anthony Green  <green@moxielogic.com>
14593
14594         * config/moxie/crti.asm: New file.
14595         * config/moxie/crtn.asm: New file.
14596         * config/moxie/moxie.c: New file.
14597         * config/moxie/moxie.h: New file.
14598         * config/moxie/sfp-machine.h: New file.
14599         * config/moxie/moxie-protos.h: New file.
14600         * config/moxie/t-moxie: Created.
14601         * config/moxie/t-moxie-softfp: Created.
14602         * config/moxie/moxie.md: Created.
14603         * config/moxie/constraints.md: Created.
14604         * config.gcc: Add moxie support.
14605         * doc/md.texi (Machine Constraints): Add moxie constraints.
14606         * doc/contrib.texi (Contributors): Mention moxie port.
14607         * doc/install.texi (Specific): Mention the moxie port.
14608
14609 2009-06-09  Ian Lance Taylor  <iant@google.com>
14610
14611         * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
14612         compiling with C++.
14613         * optabs.c (optab_table): Only use designated initializers if
14614         HAVE_DESIGNATED_INITIALIZERS is defined.
14615         (convert_optab_table): Likewise.
14616         (init_optabs): Always call init_insn_codes if
14617         HAVE_DESIGNATED_INITIALIZERS is not defined.
14618
14619 2009-06-09  Ian Lance Taylor  <iant@google.com>
14620
14621         * targhooks.c (default_builtin_vectorized_function): Change fn
14622         parameter to unsigned int.
14623         (default_builtin_vectorized_conversion): Change code parameter to
14624         unsigned int.
14625         (default_builtin_reciprocal): Change fn parameter to unsigned int.
14626         * targhooks.h: Update declarations.
14627         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
14628         parameter to unsigned int.
14629
14630         * c-typeck.c (comptypes_check_enum_int): New static function.
14631         (comptypes_internal): Add enum_and_int_p parameter.  Change all
14632         callers.
14633         (comp_target_types): Add location parameter.  Change all callers.
14634         (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
14635         Change all callers.
14636         (function_types_compatible_p, type_lists_compatible_p): Likewise.
14637         (build_conditional_expr): Add colon_loc parameter.  Change all
14638         callers.
14639         (convert_for_assignment): Add location parameter.  Change all callers.
14640         * c-parser.c (c_parser_conditional_expression): Pass location of
14641         colon to build_conditional_expr.
14642         * c-tree.h (build_conditional_expr): Update declaration.
14643
14644 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
14645
14646         * graphite.c: Revert previous patch.
14647
14648 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
14649
14650         PR bootstrap/40103
14651         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
14652
14653 2009-06-09  Ghassan Shobaki  <ghassan.shobaki@amd.com>
14654
14655         * tree-ssa-loop-prefetch.c
14656         (loop_prefetch_arrays): Fixed a portability problem in printf format
14657         string.
14658
14659 2009-06-09  Martin Jambor  <mjambor@suse.cz>
14660
14661         PR tree-optimization/40351
14662         * tree-sra.c (propagate_subacesses_accross_link): Check that a
14663         refrence to a potential artifical subaccess can be constructed.
14664
14665 2009-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
14666
14667         * config/sh/sh-protos.h (sh_optimization_options): Declare.
14668         (sh_override_options): Likewise.
14669         * config/sh/sh.c: Include params.h.
14670         (sh_optimization_options): New.
14671         (sh_override_options): Likewise.
14672         * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
14673         (OVERRIDE_OPTIONS): Use sh_override_options.
14674
14675 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
14676
14677         * dwarf2out.c (emit_cfa_remember): New variable.
14678         (add_fde_cfi): If emit_cfa_remember, recurse to add
14679         DW_CFA_remember_state first.
14680         (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
14681         instead just set emit_cfa_remember.
14682
14683 2009-06-08  Jan Hubicka  <jh@suse.cz>
14684
14685         PR debug/40126
14686         * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
14687
14688 2009-06-08  Jan Hubicka  <jh@suse.cz>
14689
14690         PR middle-end/39834
14691         * cgraphunit.c (save_inline_function_body): Do not copy transform
14692         hooks for saved inline bodies.
14693         * ipa-passes.c (do_per_function): Do not add the hoks multiple times
14694         for given function.
14695
14696 2009-06-08  Adam Nemet  <anemet@caviumnetworks.com>
14697
14698         * jump.c (returnjump_p): Handle delayed branches.  Add missing
14699         function comment.
14700
14701 2009-06-08  Jan Hubicka  <jh@suse.cz>
14702
14703         PR middle-end/40102
14704         * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
14705         original node might've been modified.
14706         * tree-inline.c (copy_bb): Do not assume that all clones are the same.
14707
14708 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
14709
14710         * tree-object-size.c (addr_object_size): Add OSI argument.
14711         Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
14712         (compute_builtin_object_size, expr_object_size): Adjust callers.
14713         (plus_stmt_object_size): Call addr_object_size instead of
14714         compute_builtin_object_size.
14715
14716 2009-06-08  Ghassan Shobaki  <ghassan.shobaki@amd.com>
14717             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
14718
14719         * tree-ssa-loop-prefetch.c
14720         (gather_memory_references): Introduced a counter for the number of
14721         memory references.
14722         (anything_to_prefetch_p): Introduced a counter for the number of
14723         prefetches.
14724         (is_loop_prefetching_profitable): New function with a cost model
14725         for prefetching.
14726         (loop_prefetch_arrays): Use the new cost model to determine if
14727         prefetching is profitable.
14728         * params.def (MIN_INSN_TO_PREFETCH_RATIO,
14729         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
14730         * params.h (MIN_INSN_TO_PREFETCH_RATIO,
14731         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
14732         * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
14733         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
14734
14735 2009-06-08  Michael Matz  <matz@suse.de>
14736
14737         PR debug/40012
14738         * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
14739         partitions use the same.
14740         (expand_one_var): Deal with DECL_RTL sometimes begin set also
14741         for basevars of SSA_NAMEs.
14742         (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
14743         to not expand them twice.
14744         (gimple_expand_cfg): Clear DECL_RTL for those decls that have
14745         multiple places.
14746
14747 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
14748
14749         * common.opt (fcompare-debug=, fcompare-debug-second): New.
14750         (fdump-final-insns=, gtoggle): New.
14751         * doc/invoke.texi: Document them.
14752         * final.c (rest_of_clean_state): Dump final insn stream.
14753         * gcc.c (invoke_as): Hook in -fcompare-debug.
14754         (static_spec_functions): Add compare-debug-dump-opt,
14755         compare-debug-self-opt and compare-debug-auxbase-opt.
14756         (compare_debug, compare_debug_second, compare_debug_opt): New.
14757         (switches_debug_check, n_switches_debug_check): New.
14758         (debug_auxbase_opt, debug_check_temp_file): New.
14759         (process_command): Handle -fno-compare-debug, -fcompare-debug and
14760         -fcompare-debug=*.
14761         (do_self_spec): Handle arguments after switches.
14762         (do_spec_1): Add .gk extension to temp file basenames for compare.
14763         (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
14764         (cc1_options): Use it instead of normal auxbase computation for
14765         the second compare-debug compilation.
14766         (compare_files): New.
14767         (main): Set up and implement compare debug mode.
14768         (compare_debug_dump_opt_spec_function): New.
14769         (compare_debug_self_opt_spec_function): New.
14770         (compare_debug_auxbase_opt_spec_function): New.
14771         * toplev.c (process_options): Handle flag_gtoggle,
14772         flag_dump_final_insns.
14773         * coverage.c (coverage_begin_output): Don't overwrite .gcno file
14774         during -fcompare-debug-second compilation.
14775
14776 2009-06-07  Ian Lance Taylor  <iant@google.com>
14777
14778         * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
14779         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
14780
14781         * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
14782         with no default node.  Change warning with %H to warning_at.
14783         Don't clear warn_switch around case checking.
14784         * doc/invoke.texi (Warning Options): Clarify distinction between
14785         -Wswitch and -Wswitch-enum.
14786
14787 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14788
14789         * tree-pass.h (TODO_update_ssa_any): Document internal use only.
14790
14791 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14792
14793         * gbl-ctors.h: Add header guard.
14794
14795 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14796
14797         * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
14798         sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
14799         vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
14800         vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
14801         prototypes for removed functions.
14802         (expressions_equal_p): Move to ...
14803         * tree-ssa-sccvn.h: ... here and ...
14804         * matrix-reorg.c: ... adjust includes.
14805
14806 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14807
14808         * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
14809
14810 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14811
14812         * c-decl.c (finish_decl): Use bool for variable was_incomplete.
14813         (finish_function): Remove erroneous whitespace.
14814
14815 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14816
14817         * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
14818         (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
14819
14820 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14821
14822         * errors.c (internal_error): Commentary typo fix.
14823         * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
14824         * tree-ssa-pre.c: Ditto.
14825
14826 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14827
14828         * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
14829         them is supposed to hold actual statements.
14830
14831 2009-06-06  Ian Lance Taylor  <iant@google.com>
14832
14833         * doc/extend.texi (Attribute Syntax): Document that C++ labels on
14834         empty statements can now have attributes.
14835
14836 2009-06-05  Shujing Zhao  <pearly.zhao@oracle.com>
14837
14838         * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
14839         * config/mips/mips.md: Ditto.
14840
14841 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
14842
14843         * config/rs6000/eabi.asm (__eabi_convert): Don't define if
14844         _RELOCATABLE.
14845         (__eabi_uconvert): Likewise.
14846
14847 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
14848
14849         * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
14850         CFI_* definitions with IN_GCC.
14851
14852 2009-06-05  David Edelsohn  <edelsohn@gnu.org>
14853
14854         * xcoffout.h (xcoffout_source_line): Update prototype.
14855
14856 2009-06-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14857
14858         * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
14859         mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
14860
14861 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
14862
14863         PR middle-end/40340
14864         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
14865         inlined_function_outer_scope_p blocks for artificial inlines
14866         even at -g0/-g1.
14867         * tree.c (tree_nonartificial_location): Rewrite using
14868         block_nonartificial_location.
14869
14870 2009-06-05  Revital Eres  <eres@il.ibm.com>
14871             Leehod Baruch  <leehod@il.ibm.com>
14872
14873         * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
14874         (expand_expr_real_1): Remove comment.
14875         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
14876         Vectorize misaligned access when the target supports it.
14877         (vect_supportable_dr_alignment): Check for unaligned access support.
14878         * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
14879         and remove asset.
14880
14881 2009-06-05  Julian Brown  <julian@codesourcery.com>
14882
14883         * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
14884         * config/arm/ieee754-sf.S (cmpsf2): Likewise.
14885
14886 2009-06-05  Richard Guenther  <rguenther@suse.de>
14887
14888         PR bootstrap/40350
14889         * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
14890         as possibly unused.
14891
14892 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
14893
14894         * config/s390/s390.c (global_not_special_regno_p): New static inline.
14895         (save_gprs): Don't tell unwinder when a global register is saved.
14896         (s390_emit_epilogue): Emit needed epilogue unwind info.
14897
14898 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
14899
14900         * dwarf2out.c (deferred_asm_name): New.
14901         (add_name_and_src_coords_attributes): Defer creation of
14902         DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
14903         computed yet.
14904         (move_linkage_attr): New.
14905         (dwarf2out_finish): Revisit deferrals and emit attributes at the
14906         right place.
14907
14908 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
14909
14910         * tree-nested.c (finalize_nesting_tree_1): Declare the
14911         frame_decl in the binding tree.
14912
14913 2009-06-04  Cary Coutant  <ccoutant@google.com>
14914
14915         * basic-block.h (struct basic_block_def): Add discriminator field.
14916         * dbxout.c (dbxout_source_line): Add new parameter.  Change all
14917         callers.
14918         * debug.c (do_nothing_debug_hooks): Add additional entry.
14919         (debug_nothing_int_charstar_int): New function.
14920         * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
14921         (debug_nothing_int_charstar_int): New declaration.
14922         * dwarf2out.c (dwarf2out_source_line): Add new parameter.  Write
14923         discriminator value in .loc directive.
14924         * final.c (last_discriminator): New variable.
14925         (discriminator): New variable.
14926         (final_start_function): Initialize above variables, pass current
14927         discriminator to debug hook.
14928         (notice_source_line): Check for discriminator change.
14929         * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
14930         * sdbout.c (sdbout_source_line): New parameter.
14931         * tree-cfg.c (struct locus_discrim_map): New structure type.
14932         (discriminator_per_locus): New hash table.
14933         (build_gimple_cfg): Allocate and free discriminator hash table.
14934         (make_edges): Call assign_discriminator.
14935         (locus_map_hash): New function.
14936         (locus_map_eq): New function.
14937         (next_discriminator_for_locus): New function.
14938         (same_line_p): New function.
14939         (assign_discriminator): New function.
14940         (make_cond_expr_edges): Call assign_discriminator.
14941         (make_gimple_switch_edges): Likewise.
14942         (first_non_label_stmt): New function.
14943         * vmsdbgout.c (vmsdbgout_source_line): Add new parameter.  Change
14944         all callers.
14945         * xcoffout.c (xcoffout_source_line): Add new parameter.
14946
14947         * configure.ac (gcc_cv_as_discriminator): New configury check for
14948         gas support for discriminator.
14949         * configure: Regenerate.
14950         * config.in: Regenerate.
14951
14952 2009-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14953
14954         * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
14955         val after checking for integers.
14956
14957 2009-06-04  Uros Bizjak  <ubizjak@gmail.com>
14958
14959         * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
14960         X64_REGPARM_MAX.
14961         (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
14962         (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
14963         (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
14964         * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
14965         X64_REGPARM_MAX.  Use X86_64_MS_SSE_REGPARM_MAX instead of
14966         X64_SSE_REGPARM_MAX.
14967         * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
14968         X64_SSE_REGPARM_MAX.
14969
14970 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
14971
14972         * gcc.c (report_times_to_file): New.
14973         (execute): Implement it.
14974         (process_command): Support -time=.
14975         * doc/invoke.texi: Document it.
14976
14977 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
14978
14979         * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
14980         that have value exprs.
14981
14982 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
14983
14984         * dwarf2asm.c (dw2_force_const_mem): Defer creation of
14985         declarations for constants until...
14986         (dw2_output_indirect_constant_1): ... this point.
14987
14988 2009-06-04  Richard Earnshaw  <rearnsha@arm.com>
14989
14990         PR target/10242
14991         * arm.md (arm_addsi3): Don't try to split an add with an
14992         eliminable register until after reload has completed.
14993
14994 2009-06-03  Ian Lance Taylor  <iant@google.com>
14995
14996         * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
14997         * genattrtab.c (write_length_unit_log): Likewise.
14998         * genchecksum.c (dosum): Likewise.
14999         * gengtype.c (write_rtx_next): Likewise.
15000         (finish_root_table, write_roots): Likewise.
15001         * gimple.c (gimple_ops_offset_): Likewise.
15002         * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
15003         * config/arc/arc.c (arc_attribute_table): Likewise.
15004         * config/arm/arm.c (arm_attribute_table): Likewise.
15005         * config/avr/avr.c (avr_attribute_table): Likewise.
15006         * config/crx/crx.c (crx_attribute_table): Likewise.
15007         * config/m32r/m32r.c (m32r_attribute_table): Likewise.
15008         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
15009         * config/mcore/mcore.c (mcore_attribute_table): Likewise.
15010         * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
15011         * config/sh/sh.c (sh_attribute_table): Likewise.
15012         * config/sparc/sparc.c (sparc_attribute_table): Likewise.
15013         * config/spu/spu.c (spu_attribute_table): Likewise.
15014         * config/v850/v850.c (v850_attribute_table): Likewise.
15015
15016         * config/alpha/alpha.c (vms_attribute_table): Make static.
15017         * config/bfin/bfin.c (bfin_attribute_table): Likewise.
15018         * config/h8300/h8300.c (h8300_attribute_table): Likewise.
15019         * config/mips/mips.c (mips_attribute_table): Likewise.
15020
15021         * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
15022         $(SYSTEM_H).
15023         (cc1-checksum.o): Likewise.
15024
15025 2009-06-03  Steve Ellcey  <sje@cup.hp.com>
15026
15027         * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
15028
15029 2009-06-03  Jakub Jelinek  <jakub@redhat.com>
15030
15031         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
15032         insn if it is changing sp.  Use gen_add3_insn instead of
15033         conditionally gen_addsi3 and gen_adddi3.
15034         (offset_below_red_zone_p): New static inline function.
15035         (rs6000_emit_epilogue): Emit needed epilogue unwind info.
15036         Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
15037         * config/rs6000/ppc-asm.h: Include auto-host.h.
15038         (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
15039         CFI_RESTORE): Define.
15040         * config/rs6000/crtresxgpr.asm: Add unwind info.
15041         * config/rs6000/crtresxfpr.asm: Likewise.
15042         * config/rs6000/crtresgpr.asm: Likewise.
15043         * config/rs6000/crtresfpr.asm: Likewise.
15044         * config/rs6000/crtsavgpr.asm: Likewise.
15045         * config/rs6000/crtsavfpr.asm: Likewise.
15046
15047         * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
15048         argument of DWARF2_FRAME_REG_OUT macros.
15049
15050 2009-06-03  Julian Brown  <julian@codesourcery.com>
15051
15052         * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
15053         words or less (including TImode) in core registers.
15054
15055 2009-06-03  Richard Guenther  <rguenther@suse.de>
15056
15057         PR middle-end/40328
15058         * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
15059
15060 2009-06-03  Andrey Belevantsev  <abel@ispras.ru>
15061
15062         * statistics.c (statistics_counter_event): Do not record event
15063         in pass dump if its number == -1.
15064         (curr_statistics_hash): Add assert that we never get passes
15065         with static number == -1.
15066
15067 2009-06-03  Richard Guenther  <rguenther@suse.de>
15068             Andrey Belevantsev  <abel@ispras.ru>
15069
15070         * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
15071         non-BLKmode arrays addressable.
15072
15073 2009-06-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
15074
15075         * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
15076         * config/m68k/m68k.h: ... here.
15077
15078 2009-06-03  Martin Jambor  <mjambor@suse.cz>
15079
15080         PR tree-optimization/40323
15081         * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
15082         assignment.
15083
15084 2009-06-03  Richard Guenther  <rguenther@suse.de>
15085
15086         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
15087         consistently.
15088
15089 2009-06-03  Shujing Zhao  <pearly.zhao@oracle.com>
15090
15091         * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
15092         JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
15093         JUMP_TABLE_DATA_P where applicable.
15094         * config/sh/sh.c: Ditto.
15095         * config/sh/sh.h: Ditto.
15096         * config/sh/sh.md: Ditto.
15097         * config/sh/symbian.c: Ditto.
15098
15099 2009-06-03  Uros Bizjak  <ubizjak@gmail.com>
15100
15101         * config/i386/driver-i386.c (describe_cache): Optimize
15102         concatenation of strings.  Use snprintf instead of sprintf.
15103         (host_detect_local_cpu): Ditto.  Ignore -march and -mtune for native
15104         target when not compiling with GCC.
15105
15106 2009-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
15107
15108         * config/sh/sh.c: Revert last change.
15109         (sh_expand_epilogue): Emit a blockage insn before the frame
15110         pointer adjustment unconditionally.
15111
15112 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
15113
15114         * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
15115         * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
15116         * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
15117         * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
15118         to COLLECT_GCC_OPTIONS.
15119
15120 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
15121
15122         * collect2.c (target_system_root): New variable.
15123         (main): Handle --sysroot=.
15124         (ignore_library): Strip the sysroot from the library path.
15125
15126 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
15127
15128         * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
15129         (collect2.o): Depend on collect2-aix.h.
15130         (collect2-aix.o): New rule.
15131         * collect2-aix.h: New file.
15132         * collect2-aix.c: Likewise.
15133         * collect2.c: Include collect2-aix.h.  Don't undefine
15134         OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
15135         Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
15136         Use TARGET_AIX_VERSION instead of _AIX51.
15137         * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
15138         * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
15139         * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
15140         * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
15141         * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
15142
15143 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
15144
15145         * collect2.c (ignore_library): Avoid premature post-increment
15146         and null deference.
15147
15148 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
15149
15150         * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
15151         * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
15152         !CROSS_DIRECTORY_STRUCTURE alternative and use it for
15153         CROSS_DIRECTORY_STRUCTURE too.
15154         (LINK_LIBG_SPEC): Likewise.
15155         (LIB_SPEC): Add %R to sysroot paths.
15156         * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
15157         (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
15158         * config/rs6000/aix51.h: As for aix43.h.
15159         * config/rs6000/aix52.h: Likewise.
15160         * config/rs6000/aix53.h: Likewise.
15161         * config/rs6000/aix61.h: Likewise.
15162         * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
15163         to the beginning of sysroot paths.
15164
15165 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
15166
15167         * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
15168         INSN_LISTs that are out of the REG_NOTE range.
15169
15170 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
15171
15172         * loop-unroll.c (struct iv_to_split): Add pointer to next.
15173         (struct var_to_expand): Likewise.
15174         (struct opt_info): Add head and tail for linked lists of the above.
15175         (analyze_insn_to_expand_var): Initialize next.
15176         (analyze_iv_to_split_insn): Likewise.
15177         (analyze_insns_in_loop): Create linked lists.
15178         (allocate_basic_variable): Simplify for use without hash table.
15179         (insert_var_expansion_initialization): Likewise, make it type-safer.
15180         (combine_var_copies_in_loop_exit): Likewise.
15181         (apply_opt_in_copies): Walk lists rather than hash tables.
15182         (release_var_copies): Simplified and inlined by hand into...
15183         (free_opt_info): ... this function.
15184
15185 2009-06-02  Richard Guenther  <rguenther@suse.de>
15186
15187         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
15188         for field decls.
15189
15190 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
15191
15192         * cfgexpand.c (gimple_expand_cfg): Discard the source location
15193         only for builtins that are not overridden.
15194
15195 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
15196
15197         * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
15198         label string.
15199
15200 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
15201
15202         * df-core.c (df_ref_debug): Honor -fdump-noaddr.
15203
15204 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
15205
15206         * combine.c (move_deaths): Compare LUIDs within the same BB only.
15207
15208 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
15209
15210         * common.opt (fdump-unnumbered-links): New.
15211         * doc/invoke.texi (-fdump-unnumbered-links): Document it.
15212         * print-rtl.c (flag_dump_unnumbered_links): New.
15213         (print_rtx): Test it.
15214
15215 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
15216
15217         * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
15218         push/pop multiple to 8-byte alignment.
15219
15220 2009-06-01  Jakub Jelinek  <jakub@redhat.com>
15221
15222         * config/i386/i386.c (queued_cfa_restores): New static variable.
15223         (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
15224         functions.
15225         (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
15226         (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
15227         Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
15228         Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
15229         note unconditionally.
15230         (ix86_emit_restore_regs_using_mov): Likewise.
15231         (ix86_emit_restore_sse_regs_using_mov): Likewise.
15232         (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
15233         it through to ix86_emit_restore_reg_using_pop.
15234         (ix86_emit_leave): Add RED_OFFSET argument.  Call
15235         ix86_add_queued_cfa_restore_notes.  Call ix86_add_cfa_restore_note
15236         instead of adding REG_CFA_OFFSET note unconditionally.
15237         (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
15238         the above functions.  Call ix86_add_queued_cfa_restore_notes when
15239         needed.
15240
15241         * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
15242         force output of the label even for dwarf2out_do_cfi_asm.
15243         (add_fde_cfi): If -g2 and above and cfi might change CFA,
15244         force creation of CFI label and chain DW_CFA_set_loc jumping to it
15245         for convert_cfa_to_fb_loc_list.  Adjust other dwarf2out_cfi_label
15246         caller.
15247         (dwarf2out_stack_adjust, dwarf2out_frame_debug,
15248         dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
15249         dwarf2out_cfi_label callers.
15250         * tree.h (dwarf2out_cfi_label): Adjust prototype.
15251         * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
15252         Adjust dwarf2out_cfi_label callers.
15253         * config/vax/vax.c (vax_output_function_prologue): Likewise.
15254
15255         * config/i386/i386.h (struct machine_cfa_state,
15256         struct machine_function): Guard with ifndef USED_FOR_TARGET
15257         instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
15258
15259         PR other/40024
15260         * emutls.c (__emutls_get_address): Change arr->size to mean number
15261         of allocated arr->data entries instead of # of slots + 1.
15262
15263         PR middle-end/40316
15264         * recog.c (peep2_reinit_state): New function.
15265         (peephole2_init_state): Use it at the end of a basic block and also
15266         when seeing a RTX_FRAME_RELATED_P insn.
15267
15268 2009-06-01  Steve Ellcey  <sje@cup.hp.com>
15269
15270         * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
15271         fixuns_truncrfdi2): New.
15272         (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
15273         *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
15274         *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
15275         *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
15276         *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
15277         *recip_approx): Remove.
15278         (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
15279         moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
15280         divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
15281         move to div.md.
15282         * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
15283         setf_exp_rf): New.
15284
15285 2009-06-01  Ian Lance Taylor  <iant@google.com>
15286
15287         * attribs.c (register_attribute): Use CONST_CAST.
15288         * collect2.c (main): Use CONST_CAST2.
15289         (scan_prog_file): Likewise.
15290         * gcc.c (process_command, main): Likewise.
15291         * toplev.c (toplev_main): Likewise.
15292
15293         * c-typeck.c (handle_warn_cast_qual): New static function,
15294         partially broken out of build_c_cast.
15295         (build_c_cast): Call handle_warn_cast_qual.
15296         * doc/invoke.texi (Warning Options): Document new effect of
15297         -Wcast-qual.
15298
15299 2009-06-01  Aldy Hernandez  <aldyh@redhat.com>
15300
15301         * diagnostic.c (diagnostic_build_prefix): Always print columns.
15302         (diagnostic_report_current_module): Print columns.
15303         * common.opt (flag_show_column): Enable by default.
15304
15305 2009-06-01  Luis Machado  <luisgpm@br.ibm.com>
15306
15307         * alias.c (find_base_term): Check for NULL term before returning.
15308
15309 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
15310
15311         Revert due to PR40320:
15312         2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
15313         * calls.c (emit_library_call_value_1): Don't force_operand for move
15314         and push insns.
15315
15316 2009-06-01  Olivier Hainque  <hainque@adacore.com>
15317             Eric Botcazou  <ebotcazou@adacore.com>
15318
15319         * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
15320         to be processed as a bitfield for constructor output purposes.
15321         * output.h (initializer_constant_valid_for_bitfield_p): Declare
15322         new function.
15323         * varasm.c (oc_local_state): New type, output_constructor
15324         local state to support communication with helpers.
15325         (oc_outer_state): New type, output_constructor outer state of
15326         relevance in recursive calls.
15327         (output_constructor_array_range): New output_constructor helper,
15328         extracted code for an array range element.
15329         (output_constructor_regular_field): New output_constructor helper,
15330         extracted code for an element that is not a bitfield.
15331         (output_constructor_bitfield): New output_constructor helper,
15332         extracted code for a bitfield element.  Accept an OUTER state
15333         argument for recursive processing.  Recurse on record or array
15334         CONSTRUCTOR values, possibly past noop conversions.
15335         (initializer_constant_valid_for_bitfield_p): New predicate.  Whether
15336         VALUE is a valid constant-valued expression for use in a static
15337         bit-field initializer.
15338         (output_constructor): Rework to use helpers.  Accept and honor an
15339         OUTER state argument for recursive calls.  Return total size.  Be
15340         prepared for nested constructors initializing bitfields.
15341         (output_constant): Feed OUTER in calls to output_constructor.
15342
15343 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
15344
15345         * calls.c (emit_library_call_value_1): Don't force_operand for move
15346         and push insns.
15347
15348 2009-06-01  Nick Clifton  <nickc@redhat.com>
15349
15350         * doc/invoke.texi (IA-64 Options): Fix typo.
15351
15352 2009-06-01  Ira Rosen  <irar@il.ibm.com>
15353
15354         PR tree-optimization/39129
15355         * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
15356         printed message.
15357         (vect_do_peeling_for_loop_bound): Use
15358         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
15359         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
15360         (vect_loop_versioning): Likewise.
15361         (vect_create_cond_for_alias_checks): Fix indentation.
15362         * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
15363         macros.
15364         (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
15365         (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
15366         * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
15367         "control flow in loop".
15368         (vect_estimate_min_profitable_iters): Use
15369         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
15370         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
15371         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
15372         (vect_create_data_ref_ptr): Don't mention array dimension in printing.
15373         * tree-vect-stmts.c (vectorizable_store): Replace the check that the
15374         statement belongs to a group of strided accesses with the exact code
15375         check.
15376         (vectorizable_load): Likewise.
15377         * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
15378         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
15379
15380 2009-06-01  Gerald Pfeifer  <gerald@pfeifer.com>
15381
15382         * config/freebsd-stdint.h: New file.
15383         * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
15384         Add freebsd-stdint.h to tm_file.
15385
15386 2009-06-01  Richard Earnshaw  <rearnsha@arm.com>
15387
15388         * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
15389         (thumb2_extendhidi2): Likewise.
15390
15391 2009-05-31  Ian Lance Taylor  <iant@google.com>
15392
15393         * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
15394
15395 2009-05-31  Ian Lance Taylor  <iant@google.com>
15396
15397         * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
15398         (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
15399         (ipa-reference.o): Depend upon gt-ipa-reference.h.
15400
15401 2009-05-31  Jason Merrill  <jason@redhat.com>
15402
15403         * tree-pretty-print.c (print_call_name): Take the callee, not the
15404         call itself.  Make non-static.  Use dump_function_name for functions.
15405         (dump_generic_node): Adjust.
15406         * diagnostic.h: Declare print_call_name.
15407         * gimple-pretty-print.c (dump_gimple_call): Use it.
15408
15409 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
15410
15411         * config/sh/sh.md (ashldi3_std): New define_expand.
15412         (ashldi3): Use it.
15413
15414 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
15415
15416         PR target/40313
15417         * config/sh/sh.c: Include debug.h.
15418         (sh_expand_epilogue): Emit a blockage insn before the frame
15419         pointer adjustment also when dwarf2out_do_frame returns true.
15420
15421 2009-05-31  Richard Earnshaw  <rearnsha@arm.com>
15422
15423         * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
15424         (thumb2_extendqidi2): New pattern.
15425
15426 2009-05-31  Ira Rosen  <irar@il.ibm.com>
15427
15428         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
15429         mark phis for renaming.
15430         * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
15431         (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
15432         Call mark_sym_for_renaming.
15433         * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
15434         * tree-vect-loop.c (vect_transform_loop): Remove
15435         vect_memsyms_to_rename initialization and a call to
15436         mark_set_for_renaming.
15437
15438 2009-05-31  Jakub Jelinek  <jakub@redhat.com>
15439
15440         PR middle-end/40304
15441         * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
15442         frame related even if !set_cfa && style < 0.
15443
15444 2009-05-30  Kai Tietz  <kai.tietz@onevision.com>
15445
15446         * config/i386/mingw-tls.c: New file.
15447         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
15448         * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
15449         defining _WIN32 but not __CYGWIN__.
15450
15451 2009-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15452
15453         * configure.ac: Add MPC support.
15454
15455         * config.in, configure: Regenerate.
15456
15457 2009-05-29  Richard Henderson  <rth@redhat.com>
15458
15459         * cfgcleanup.c (try_crossjump_to_edge): Only skip past
15460         NOTE_INSN_BASIC_BLOCK.
15461         * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
15462         Duplicate NOTE_INSN_EPILOGUE_BEG notes.
15463         * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
15464         to be deleted.
15465         * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
15466         add in_use field.
15467         (add_cfi): Disable check redefining cfa away from drap.
15468         (lookup_cfa_1): Add remember argument; handle remember/restore.
15469         (lookup_cfa): Pass remember argument.
15470         (cfa_remember): New.
15471         (compute_barrier_args_size_1): Remove sibcall check.
15472         (dwarf2out_frame_debug_def_cfa): New.
15473         (dwarf2out_frame_debug_adjust_cfa): New.
15474         (dwarf2out_frame_debug_cfa_offset): New.
15475         (dwarf2out_frame_debug_cfa_register): New.
15476         (dwarf2out_frame_debug_cfa_restore): New.
15477         (dwarf2out_frame_debug): Handle REG_CFA_* notes.
15478         (dwarf2out_begin_epilogue): New.
15479         (dwarf2out_frame_debug_restore_state): New.
15480         (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
15481         DW_CFA_restore_state.
15482         (output_cfi_directive): Likewise.
15483         (convert_cfa_to_fb_loc_list): Likewise.
15484         (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
15485         * dwarf2out.h: Update.
15486         * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
15487         (copy_insn_1): Early out for null.
15488         * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
15489         and dwarf2out_frame_debug_restore_state.
15490         * function.c (prologue, epilogue, sibcall_epilogue): Remove.
15491         (prologue_insn_hash, epilogue_insn_hash): New.
15492         (free_after_compilation): Adjust freeing accordingly.
15493         (record_insns): Create hash table if needed; push insns into
15494         hash instead of array.
15495         (maybe_copy_epilogue_insn): New.
15496         (contains): Search hash table instead of array.
15497         (sibcall_epilogue_contains): Remove.
15498         (thread_prologue_and_epilogue_insns): Split eh_return insns
15499         and mark them as epilogues.
15500         (reposition_prologue_and_epilogue_notes): Rewrite epilogue
15501         scanning in terms of basic blocks.
15502         * insn-notes.def (CFA_RESTORE_STATE): New.
15503         * jump.c (returnjump_p_1): Accept EH_RETURN.
15504         (eh_returnjump_p_1, eh_returnjump_p): New.
15505         * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
15506         CFA_REGISTER, CFA_RESTORE): New.
15507         * rtl.def (EH_RETURN): New.
15508         * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
15509
15510         * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
15511         (eh_return_internal): Use eh_return rtx; split w/ epilogue.
15512
15513         * config/i386/i386.c (gen_push): Update cfa state.
15514         (pro_epilogue_adjust_stack): Add set_cfa argument.  When true,
15515         add a CFA_ADJUST_CFA note.
15516         (ix86_dwarf_handle_frame_unspec): Remove.
15517         (ix86_expand_prologue): Update cfa state.
15518         (ix86_emit_restore_reg_using_pop): New.
15519         (ix86_emit_restore_regs_using_pop): New.
15520         (ix86_emit_leave): New.
15521         (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
15522         (ix86_expand_epilogue): Add notes for unwinding the epilogue.
15523         * config/i386/i386.h (struct machine_cfa_state): New.
15524         (ix86_cfa_state): New.
15525         * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
15526         (eh_return_internal): Merge from eh_return_<mode>,
15527         use eh_return rtx, split w/ epilogue.
15528
15529 2009-05-29  Ian Lance Taylor  <iant@google.com>
15530
15531         * builtins.c (validate_gimple_arglist): Don't use va_arg with
15532         enum type.
15533         * calls.c (emit_library_call_value_1): Likewise.
15534
15535         * c-typeck.c (c_build_va_arg): New function.
15536         * c-tree.h (c_build_va_arg): Declare.
15537         * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
15538         instead of build_va_arg.
15539
15540 2009-05-29  Eric Botcazou  <ebotcazou@adacore.com>
15541
15542         * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
15543         (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
15544         (ptr_difference_cost): Use affine combinations to compute it.
15545         (difference_cost): Likewise.
15546         (get_computation_cost_at): Compute more accurate cost for addresses
15547         if the ratio is a multiplier allowed in addresses.
15548         For non-addresses, consider that an additional offset or symbol is
15549         added only once.
15550
15551 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
15552
15553         * config/i386/i386.c (ix86_decompose_address): Avoid useless
15554         0 displacement.  Add 0 displacement if base is %[er]bp or %r13.
15555
15556         * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
15557         TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
15558         (prefix_rex): For UNIT_MMX don't imply the prefix by default
15559         if MODE_DI.
15560         (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
15561         to 1 for TYPE_SSE{IADD1,CVT1}.
15562         (prefix_vex_imm8): Removed.
15563         (length_vex): Only pass 1 as second argument to
15564         ix86_attr_length_vex_default if prefix_extra is 0.
15565         (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
15566         (length): For prefix vex computation use length_immediate
15567         attribute instead of prefix_vex_imm8.
15568         (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
15569         addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
15570         *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
15571         *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
15572         (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
15573         *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
15574         a space in between the operands.
15575         (*anddi_1_rex64, *andsi_1): Likewise.  Override prefix_rex to 1
15576         if one operand is 0xff and the other one si, di, bp or sp.
15577         (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
15578         other one si, di, bp or sp.
15579         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
15580         (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
15581         type and mode attributes.
15582         (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
15583         (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
15584         prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
15585         (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
15586         prefix_data16 attribute iff MODE_DF.
15587         (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
15588         (fix_trunc<mode>di_sse): Set prefix_rex attribute.
15589         (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
15590         constm128_operand in length_immediate computation.
15591         (*addhi_4): Likewise.  Fix mode attribute to MODE_HI.
15592         (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
15593         (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
15594         length_immediate attribute to 1.
15595         (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
15596         (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
15597         for certain alternatives.
15598         (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
15599         prefix_data16 attribute if MODE_V1DF.
15600         (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
15601         length_immediate to 1.
15602         (set_got_rex64, set_rip_rex64): Remove length attribute, set
15603         length_address to 4, set mode attribute to MODE_DI.
15604         (set_got_offset_rex64): Likewise.  Set length_immediate to 0.
15605         (fxam<mode>2_i387): Set length attribute to 4.
15606         (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
15607         *prefetch_3dnow_rex): Override length_address attribute.
15608         (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
15609         attributes.
15610         * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
15611         (constm128_operand): Removed.
15612         * config/i386/i386.c (memory_address_length): For
15613         disp && !index && !base in 64-bit mode account for SIB byte if
15614         print_operand_address can't optimize disp32 into disp32(%rip)
15615         and UNSPEC doesn't imply (%rip) addressing.  Add 1 to length
15616         for fs: or gs: segment.
15617         (ix86_attr_length_immediate_default): When checking if shortform
15618         is possible, truncate immediate to the length of the non-shortened
15619         immediate.
15620         (ix86_attr_length_address_default): Ignore MEM_P operands
15621         with X constraint.
15622         (ix86_attr_length_vex_default): Only check for DImode on
15623         GENERAL_REG_P operands.
15624         * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
15625         prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
15626         (sse_cvttps2pi): Clear prefix_rep attribute.
15627         (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
15628         attribute.
15629         (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
15630         (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
15631         *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
15632         iff operand 2 is const_int_operand.
15633         (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
15634         sse2_shufpd_<mode>): Set length_immediate attribute to 1.
15635         (sse2_pshufd_1): Likewise.  Set prefix attribute to maybe_vex
15636         instead of vex.
15637         (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
15638         prefix_data16.
15639         (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
15640         prefix_data16 attribute for movlpd and movhpd instructions.
15641         (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise.  Override
15642         length_immediate for shufpd instruction.
15643         (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
15644         (avx_cmpp<avxmodesuffixf2c><mode>3,
15645         avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
15646         <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
15647         avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
15648         *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
15649         (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
15650         (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
15651         (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
15652         prefix_data16 attribute for the first alternative to 1.
15653         (*avx_loadlps): Override length_immediate for the first alternative.
15654         (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
15655         attributes for second alternative.
15656         (*vec_concatv2sf_sse4_1): Override length_immediate and
15657         prefix_data16 attributes for second alternative.
15658         (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
15659         vec_extract_hi_<mode>, vec_extract_lo_v16hi,
15660         vec_extract_hi_v16hi, vec_extract_lo_v32qi,
15661         vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
15662         (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
15663         prefix_data16 and length_immediate to 1.
15664         (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
15665         to 1.
15666         (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
15667         prefix_extra attribute for variants that don't have 0f prefix alone.
15668         (*avx_pinsr<ssevecsize>): Likewise.  Set length_immediate to 1.
15669         (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
15670         *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
15671         *sse4_1_pextrd): Set length_immediate to 1.
15672         (*sse4_1_pinsrd): Likewise.  Set prefix_extra to 1.
15673         (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
15674         to 1.
15675         (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
15676         *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
15677         length_immediate to 1 for second alternative.
15678         (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
15679         prefix_extra and length_immediate attributes for the first
15680         alternative.
15681         (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
15682         first alternative.
15683         (*vec_concatv2di_rex64_sse4_1): Likewise.  Override prefix_rex
15684         to 1 for the first and third alternative.
15685         (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
15686         alternative.
15687         (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
15688         attribute.
15689         (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
15690         attribute to 0.
15691         (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
15692         *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
15693         *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
15694         *avx_psign<mode>3): Set prefix_extra attribute to 1.
15695         (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
15696         ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
15697         ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
15698         ssse3_psign<mode>3): Override prefix_rex attribute.
15699         (*avx_palignrti): Override prefix_extra and length_immediate to 1.
15700         (ssse3_palignrti): Override length_immediate to 1.
15701         (ssse3_palignrdi): Override length_immediate to 1, override
15702         prefix_rex attribute.
15703         (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
15704         (sse4a_extrqi): Override length_immediate to 2.
15705         (sse4a_insertqi): Likewise.  Override prefix_data16 to 0.
15706         (sse4a_insertq): Override prefix_data16 to 0.
15707         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
15708         avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
15709         avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
15710         *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
15711         avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
15712         and length_immediate to 1.
15713         (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
15714         sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
15715         sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
15716         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
15717         and length_immediate to 1.
15718         (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
15719         (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
15720         (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
15721         avx_ptest256): Override prefix_extra to 1.
15722         (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
15723         Override prefix_data16 and length_immediate to 1.
15724         (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
15725         sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
15726         sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
15727         sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
15728         prefix_data16 to 0 and prefix_extra to 2.
15729         (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
15730         (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
15731         attribute.
15732         (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
15733         sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
15734         Override prefix_data16 and prefix_rep to 0, length_immediate to 1
15735         and prefix_extra to 2.
15736         (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
15737         prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
15738         (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
15739         avx_vpermilvar<mode>3,
15740         avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
15741         avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
15742         avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
15743         avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
15744         Override prefix_extra to 1.
15745         (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
15746         (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
15747         vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
15748         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
15749         prefix_extra and length_immediate to 1.
15750         (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
15751         modrm to 0.
15752         (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
15753         to 1 for the first alternative.
15754         * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
15755         prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
15756         cases.
15757         (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
15758         *movv2sf_internal_avx, *movv2sf_internal): Override
15759         prefix_rep attribute for certain alternatives.
15760         (*mov<mode>_internal): Override prefix_rep or prefix_data16
15761         attributes for certain alternatives.
15762         (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
15763         attributes for certain alternatives.
15764         (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
15765         *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
15766         mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
15767         mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
15768         *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
15769         mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
15770         mmx_pswapdv2si2): Set prefix_extra attribute to 1.
15771         (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
15772         length_immediate to 1 if operand 2 is const_int_operand.
15773         (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
15774         *vec_extractv2si_1): Set length_immediate attribute to 1.
15775         (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
15776         using old 3DNOW insn rather than SSE/3DNOW_A.
15777         (mmx_emms, mmx_femms): Clear modrm attribute.
15778
15779 2009-05-29  Martin Jambor  <mjambor@suse.cz>
15780
15781         * tree-sra.c:  New implementation of SRA.
15782
15783         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
15784         (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
15785         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
15786         * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
15787         (SRA_MAX_STRUCTURE_COUNT): Removed.
15788         (SRA_FIELD_STRUCTURE_RATIO): Removed.
15789         * doc/invoke.texi (sra-max-structure-size): Removed.
15790         (sra-field-structure-ratio): Removed.
15791
15792 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
15793
15794         PR middle-end/40291
15795         * builtins.c (expand_builtin_memcmp): Convert len to sizetype
15796         before expansion.
15797
15798 2009-05-29  Andrey Belevantsev  <abel@ispras.ru>
15799
15800         PR rtl-optimization/40101
15801         * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
15802         seqno.  Adjust comment.
15803         * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
15804         inserting bookkeeping before a jump, the jump is not scheduled.
15805         When no positive seqno found, provide a value.  Add comment.
15806
15807 2009-05-29  Richard Guenther  <rguenther@suse.de>
15808
15809         * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
15810         short-cutting on the first component.
15811
15812 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
15813
15814         PR middle-end/39958
15815         * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
15816         for trees other than decls/types.
15817
15818 2009-05-29  Richard Guenther  <rguenther@suse.de>
15819
15820         * tree-ssa-operands.c (get_expr_operands): Do not handle
15821         INDIRECT_REFs in the handled-component case.  Remove
15822         unused get_ref_base_and_extent case.
15823         * tree-dfa.c (get_ref_base_and_extent): Avoid calling
15824         tree_low_cst and host_integerp where possible.
15825         * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
15826         codes for equivalence.
15827         * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
15828
15829 2009-05-29  David Billinghurst <billingd@gcc.gnu.org>
15830
15831         * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
15832         to tmake_file for i[34567]86-*-cygwin*.
15833
15834 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
15835
15836         PR target/40017
15837         * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
15838         (altivec_categorize_keyword, init_vector_keywords,
15839         rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
15840         similar to bool.
15841
15842 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
15843
15844         * tree.c (handle_dll_attribute): Check if node is
15845         of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
15846
15847 2009-05-29  Richard Earnshaw  <rearnsha@arm.com>
15848
15849         * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
15850         component.
15851         (thumb2_zero_extendqidi2): Likewise.
15852
15853 2009-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
15854
15855         * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
15856         instead of gen_movrt.
15857         * config/sh/sh.md (movrt): Remove.
15858
15859 2009-05-28  Steve Ellcey  <sje@cup.hp.com>
15860
15861         * doc/invoke.texi (IA-64 Options):
15862         Add -msdata, -mfused-madd, -mno-inline-float-divide,
15863         -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
15864         -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
15865         -msched-prefer-non-control-spec-insns,
15866         -msched-stop-bits-after-every-cycle,
15867         -msched-count-spec-in-critical-path,
15868         -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
15869         -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
15870         Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
15871         and -msched-spec-verbose.
15872
15873 2009-05-28  Joseph Myers  <joseph@codesourcery.com>
15874
15875         * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
15876         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
15877         error if used.
15878         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
15879
15880 2009-05-28  Richard Guenther  <rguenther@suse.de>
15881
15882         * tree-ssa-alias.c (ao_ref_init): New function.
15883         (ao_ref_base): Likewise.
15884         (ao_ref_base_alias_set): Likewise.
15885         (ao_ref_alias_set): Likewise.
15886         (refs_may_alias_p_1): Change signature.
15887         (refs_may_alias_p): Adjust.
15888         (refs_anti_dependent_p): Likewise.
15889         (refs_output_dependent_p): Likewise.
15890         (call_may_clobber_ref_p_1): Change signature.
15891         (call_may_clobber_ref_p): Adjust.
15892         (stmt_may_clobber_ref_p_1): New function split out from ...
15893         (stmt_may_clobber_ref_p): ... here.
15894         (maybe_skip_until): Adjust signature.
15895         (get_continuation_for_phi): Likewise.
15896         (walk_non_aliased_vuses): Likewise.
15897         * tree-ssa-alias.h (struct ao_ref_s): New structure type.
15898         (ao_ref_init): Declare.
15899         (ao_ref_base): Likewise.
15900         (ao_ref_alias_set): Likewise.
15901         (stmt_may_clobber_ref_p_1): Likewise.
15902         (walk_non_aliased_vuses): Adjust.
15903         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
15904         (get_ref_from_reference_ops): remove.
15905         (vn_reference_lookup_2): Adjust signature.
15906         (vn_reference_lookup_3): Do not re-build trees.  Handle unions.
15907         (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
15908         (vn_reference_lookup): Adjust.
15909         (vn_reference_insert): Likewise.
15910         (vn_reference_insert_pieces): Adjust signature.
15911         (visit_reference_op_call): Adjust.
15912         * tree-ssa-pre.c (get_expr_type): Simplify.
15913         (phi_translate_1): Adjust.
15914         (compute_avail): Likewise.
15915         (translate_vuse_through_block): Do not re-build trees.
15916         (value_dies_in_block_x): Likewise.
15917         * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
15918         fields.
15919         (vn_reference_lookup_pieces): Adjust declaration.
15920         (vn_reference_insert_pieces): Likewise.
15921
15922 2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
15923
15924         * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
15925         with checking disabled.
15926
15927 2009-05-28  Dave Korn  <dave.korn.cygwin@gmail.com>
15928
15929         PR target/37216
15930
15931         * configure.ac (HAVE_GAS_ALIGNED_COMM):  Add autoconf test and
15932         macro definition for support of three-operand format aligned
15933         .comm directive in assembler on cygwin/pe/mingw target OS.
15934         * configure:  Regenerate.
15935         * config.h:  Regenerate.
15936
15937         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common):  Use
15938         aligned form of .comm directive if -mpe-aligned-commons is in effect.
15939         * config/i386/cygming.opt (-mpe-aligned-commons):  Add new option.
15940
15941         * doc/invoke.texi (-mpe-aligned-commons):  Document new target option.
15942         * doc/tm.texi (ASM_OUTPUT_COMMON):  Document zero size commons.
15943
15944 2009-05-28  Ira Rosen  <irar@il.ibm.com>
15945
15946         PR tree-optimization/40254
15947         * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
15948         in analysis of basic blocks.
15949
15950 2009-05-28  Adam Nemet  <anemet@caviumnetworks.com>
15951
15952         PR middle-end/33699
15953         * target.h (struct gcc_target): Fix indentation.  Add const_anchor.
15954         * target-def.h (TARGET_CONST_ANCHOR): New macro.
15955         (TARGET_INITIALIZER): Use it.
15956         * cse.c (CHEAPER): Move it up to the other macros.
15957         (insert): Rename this ...
15958         (insert_with_costs): ... to this.  Add cost parameters.  Update
15959         function comment.
15960         (insert): New function.  Call insert_with_costs.
15961         (compute_const_anchors, insert_const_anchor, insert_const_anchors,
15962         find_reg_offset_for_const, try_const_anchors): New functions.
15963         (cse_insn): Call try_const_anchors.  Adjust cost of src_related
15964         when using a const-anchor.  Call insert_const_anchors.
15965         * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
15966         * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
15967
15968 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
15969
15970         * tree-inline.c (remap_decls): Enable nonlocalized variables
15971         when not optimizing.
15972
15973 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
15974
15975         * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
15976         Simplify other tests involving optimize.
15977
15978 2009-05-27  Tom Tromey  <tromey@redhat.com>
15979
15980         * unwind-dw2.c (_Unwind_DebugHook): New function.
15981         (uw_install_context): Call _Unwind_DebugHook.
15982
15983 2009-05-27  Tom Tromey  <tromey@redhat.com>
15984
15985         * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
15986
15987 2009-05-27  Ian Lance Taylor  <iant@google.com>
15988
15989         * Makefile.in (LINKER, LINKER_FLAGS): Define.
15990         (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
15991         (ALL_LINKERFLAGS): Define.
15992         (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
15993         (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
15994         (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
15995         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
15996         (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
15997         $(LINKER_FOR_BUILD).
15998         (build/gcov-iov$(build_exeext)): Likewise.
15999
16000 2009-05-27  Julian Brown  <julian@codesourcery.com>
16001
16002         * gcse.c (target.h): Include.
16003         (can_assign_to_reg_without_clobbers_p): Check that the target allows
16004         copy of argument to a pseudo register.
16005
16006 2009-05-27  Diego Novillo  <dnovillo@google.com>
16007
16008         * tree-ssa-live.c (dump_scope_block): Document arguments.
16009         (dump_scope_blocks): Document.
16010         (debug_scope_blocks): New.
16011         * tree-flow.h (debug_scope_blocks): Declare.
16012
16013 2009-05-21  Denis Chertykov  <denisc@overta.ru>
16014
16015         * doc/contrib.texi (Contributors): Add myself to the list.
16016
16017 2009-05-27  Olivier Hainque  <hainque@adacore.com>
16018
16019         * expr.c (target_align): New function.  Alignment the TARGET of an
16020         assignment may be assume to have.
16021         (highest_pow2_factor_for_target): Use it instead of relying on
16022         immediate tree attributes of TARGET, not necessarily honored when
16023         intermediate bitfields are involved.
16024
16025 2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>
16026
16027         PR target/40266
16028         * config/i386/driver-i386.c (host_detect_local_cpu): Support
16029         AVX, SSE4, AES, PCLMUL and POPCNT.
16030
16031 2009-05-27  Diego Novillo  <dnovillo@google.com>
16032
16033         * tree-pretty-print.c (dump_location): New.
16034         (dump_generic_node): Call it.
16035         Factor code to handle BLOCK nodes ...
16036         (dump_block_node): ... here.
16037
16038 2009-05-27  Rafael Avila de Espindola  <espindola@google.com>
16039
16040         * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
16041         with it.
16042         * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
16043         included.
16044         * gcc-plugin.h: Include config.h and system.h.
16045         (IN_GCC): Define if not defined.
16046
16047 2009-05-27  Hans-Peter Nilsson  <hp@axis.com>
16048
16049         PR middle-end/40249
16050         * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
16051         with -fno-inline.
16052
16053 2009-05-27  Shujing Zhao  <pearly.zhao@oracle.com>
16054
16055         * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
16056         applicable.
16057         * config/m32r/m32r.h: Ditto.
16058         * config/m32r/m32r.md: Ditto.
16059         * config/m32r/predicates.md: Ditto.
16060
16061 2009-05-27  Alexandre Oliva  <aoliva@redhat.com>
16062
16063         * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
16064
16065 2009-05-26  Basile Starynkevitch  <basile@starynkevitch.net>
16066
16067         * doc/plugins.texi
16068         (Loading plugins): typo.
16069         (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
16070         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
16071         (Interacting with the GCC Garbage Collector): Added new section.
16072         (Giving information about a plugin): Added new section for
16073         PLUGIN_INFO.
16074         * ggc.h (ggc_register_root_tab): Added declaration.
16075         * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
16076         (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
16077         (register_callback): Improved comment in declaration.
16078         * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
16079         (extra_root_vec) Added static variable for dynamic roots registration.
16080         (ggc_register_root_tab) Added new routine.
16081         (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
16082         PLUGIN_GGC_MARKING event.
16083         * ggc-zone.c: Include plugin.h.
16084         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
16085         * ggc-page.c: Include plugin.h.
16086         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
16087         * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
16088         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
16089         (register_callback): check lack of callbacks for
16090         pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
16091         PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
16092         (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
16093         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
16094         * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
16095         dependency on plugin.h.
16096         (plugin.o): Added dependency on ggc.h...
16097
16098 2009-05-26  Richard Guenther  <rguenther@suse.de>
16099
16100         PR middle-end/40248
16101         Revert
16102         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
16103         with mismatched comparison modes.
16104
16105         * expr.c (expand_expr_real_1): Expand the operand of a
16106         VIEW_CONVERT_EXPR in its natural mode.
16107
16108 2009-05-26  Ian Lance Taylor  <iant@google.com>
16109
16110         * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
16111         (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
16112         (ALL_COMPILERFLAGS): Define.
16113         (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
16114         (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
16115         (collect2$(exeext), collect2.o): Likewise.
16116         (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
16117         (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
16118         ($(out_object_file), mips-tfile, mips-tdump): Likewise.
16119         (libbackend.o, intl.o, cppdefault.o): Likewise.
16120         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
16121         (build/%.o): Use $(COMPILER_FOR_BUILD).
16122         (build/gen%$(build_exeext)): Likewise.
16123         (build/gcov-iov$(build_exeext)): LIkewise.
16124         * config/t-darwin (darwin.o): Use $(COMPILER).
16125         (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
16126         * config/t-sol2 (sol2-c.o): Likewise.
16127         (sol2.o): Likewise.
16128         * config/t-vxworks (vxworks.o): Likewise.
16129         * config/x-darwin (host-darwin.o): Likewise.
16130         * config/x-hpux (host-hpux.o): Likewise.
16131         * config/x-linux (host-linux.o): Likewise.
16132         * config/x-solaris (host-solaris.o): Likewise.
16133         * config/alpha/x-alpha (driver-alpha.o): Likewise.
16134         * config/arm/t-arm (arm-c.o): Likewise.
16135         * config/arm/t-pe (pe.o): Likewise.
16136         * config/arm/t-wince-pe (pe.o): Likewise.
16137         * config/i386/t-cygming (winnt.o): Likewise.
16138         (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
16139         * config/i386/t-cygwin (cygwin1.o): Likewise.
16140         (cygwin2.o): Likewise.
16141         * config/i386/t-i386 (i386-c.o): Likewise.
16142         * config/i386/t-interix (winnt.o): Likewise.
16143         * config/i386/t-netware (netware.o): Likewise.
16144         * config/i386/t-nwld (nwld.o): Likewise.
16145         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
16146         * config/i386/x-i386 (driver-i386.o): Likewise.
16147         * config/i386/x-cygwin (host-cygwin.o): Likewise.
16148         * config/i386/x-mingw32 (host-mingw32.o): Likewise.
16149         * config/ia64/t-ia64 (ia64-c.o): Likewise.
16150         * config/m32c/t-m32c (m32c-pragma.o): Likewise.
16151         * config/mips/x-native (driver-native.o): Likewise.
16152         * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
16153         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
16154         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
16155         * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
16156         * config/score/t-score-elf (score7.o): Likewise.
16157         (score3.o): Likewise.
16158         * config/sh/t-sh (sh-c.o): Likewise.
16159         * config/sh/t-symbian (sh-c.o): Likewise.
16160         (symbian.o): Likewise.
16161         * config/spu/t-spu-elf (spu-c.o): Likewise.
16162         * config/v850/t-v850 (v850-c.o): Likewise.
16163         * config/v850/t-v850e (v850-c.o): Likewise.
16164
16165 2009-05-26  Richard Guenther  <rguenther@suse.de>
16166
16167         PR tree-optimization/40122
16168         * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
16169         VECTOR_CSTs if possible.
16170         (fold_gimple_assign): Likewise.
16171
16172 2009-05-26  Richard Guenther  <rguenther@suse.de>
16173
16174         PR middle-end/40252
16175         * fold-const.c (fold_binary): Use the correct types for building
16176         rotates.
16177
16178 2009-05-26  Richard Guenther  <rguenther@suse.de>
16179
16180         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
16181         redundant calls to merge_alias_info.
16182         (bump_vector_ptr): Likewise.
16183         * tree-ssa-copy.c (merge_alias_info): Remove.
16184         (replace_exp_1): Remove call to merge_alias_info.
16185         (propagate_tree_value): Likewise.
16186         (fini_copy_prop): Propagate points-to info.
16187         * tree-flow.h (merge_alias_info): Remove.
16188
16189 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
16190
16191         * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
16192
16193 2009-05-25  Jan Hubicka  <jh@suse.cz>
16194
16195         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
16196         * cgraph.h (struct inline_summary): New filed self_wize,
16197         size_inlining_benefit, self_time and time_inlining_benefit.
16198         (struct cgraph_global_info): Replace insns by time ans size fields.
16199         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
16200         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
16201         (ipcp_update_callgraph): Do not touch function bodies.
16202         * ipa-inline.c: Include except.h
16203         (MAX_TIME): New constant.
16204         (overall_insns): Remove.
16205         (leaf_node_p): New.
16206         (overall_size, max_benefit): New static variables.
16207         (cgraph_estimate_time_after_inlining): New function.
16208         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
16209         (cgraph_clone_inlined_nodes): Update size.
16210         (cgraph_mark_inline_edge): Update size.
16211         (cgraph_estimate_growth): Use size info.
16212         (cgraph_check_inline_limits): Check size.
16213         (cgraph_default_inline_p): Likewise.
16214         (cgraph_edge_badness): Compute badness based on benefit and size cost.
16215         (cgraph_decide_recursive_inlining): Check size.
16216         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
16217         and times.
16218         (cgraph_decide_inlining): Likewise.
16219         (cgraph_decide_inlining_incrementally): Likewise; honor
16220         PARAM_EARLY_INLINING_INSNS.
16221         (likely_eliminated_by_inlining_p): New predicate.
16222         (estimate_function_body_sizes): New function.
16223         (compute_inline_parameters): Use it.
16224         * except.c (must_not_throw_labels): New function.
16225         * except.h (must_not_throw_labels): Declare.
16226         * tree-inline.c (init_inline_once): Kill inlining_weigths
16227         * tree-ssa-structalias.c: Avoid uninitialized warning.
16228         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
16229         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
16230         (PARAM_INLINE_CALL_COST): Remove.
16231         (PARAM_EARLY_INLINING_INSNS): New.
16232
16233 2009-05-25  Richard Guenther  <rguenther@suse.de>
16234
16235         PR tree-optimization/36327
16236         * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
16237         callback for reference translation or lookup at the point of may-defs.
16238         * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
16239         * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
16240         for union COMPONENT_REFs.
16241         (vn_reference_lookup_3): New callback.  Lookup from memset
16242         and CONSTRUCTOR assignment, translate through struct copies.
16243         (vn_reference_lookup_pieces): Make sure to not free the
16244         passed operands array.  Adjust walk_non_aliased_vuses call.
16245         (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
16246         make sure we do not leak memory.
16247
16248 2009-05-25  Richard Guenther  <rguenther@suse.de>
16249
16250         * tree-ssa-alias.h (dump_points_to_solution): Declare.
16251         * tree-inline.c (expand_call_inline): Reset the escaped and
16252         callused solutions.
16253         * tree-ssa-structalias.c (pass_build_ealias): New.
16254         * tree-pass.h (pass_build_ealias): Declare.
16255         * passes.c (init_optimization_passes): Add PTA during
16256         early optimizations.
16257         * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
16258         and CALLUSED solutions.
16259         (dump_points_to_solution): New function, split out from ...
16260         (dump_points_to_info_for): ... here.
16261         * tree-parloops.c (parallelize_loops): Reset the escaped and
16262         callused solutions.
16263
16264 2009-05-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16265
16266         PR bootstrap/40027
16267         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
16268         * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
16269
16270 2009-05-25  Ira Rosen  <irar@il.ibm.com>
16271
16272         PR tree-optimization/40238
16273         * tree-vect-stmts.c (vect_init_vector): Insert initialization
16274         statements after basic block's labels.
16275         * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
16276         to free the allocated memory.
16277
16278 2009-05-24  Kaz Kojima  <kkojima@gcc.gnu.org>
16279
16280         * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
16281         return address with a USE.
16282
16283 2009-05-24  Richard Guenther  <rguenther@suse.de>
16284
16285         PR middle-end/40233
16286         * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
16287         array type from the main variant of the inner type.
16288
16289 2009-05-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
16290
16291         * config/vax/vax-protos.h (legitimate_constant_address_p): Change
16292         definition to bool (from int) to un-break build.
16293         (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
16294
16295 2009-05-24  Paolo Bonzini  <bonzini@gnu.org>
16296
16297         * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
16298         discard_stmt_changes): Delete.
16299         * tree-ssa-operands.c (scb_stack): Delete.
16300         (init_ssa_operands): Do not initialize it.
16301         (fini_ssa_operands): Do not free it.
16302         (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
16303
16304         * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
16305         update_stmt, remove the others.  Fix comments.
16306         * tree-dfa.c (optimize_stack_restore): Likewise.
16307         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
16308         * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
16309         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
16310         * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
16311         Likewise.
16312         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
16313         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
16314         (dom_opt_finalize_block): Likewise, adjusting access to
16315         stmts_to_rescan.
16316         (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
16317         (stmts_to_rescan): Change item type to gimple.
16318         (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
16319
16320 2009-05-24  Ira Rosen  <irar@il.ibm.com>
16321
16322         * doc/passes.texi (Tree-SSA passes): Document SLP pass.
16323         * tree-pass.h (pass_slp_vectorize): New pass.
16324         * params.h (SLP_MAX_INSNS_IN_BB): Define.
16325         * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
16326         * tree-vectorizer.c (timevar.h): Include.
16327         (user_vect_verbosity_level): Declare.
16328         (vect_location): Fix comment.
16329         (vect_set_verbosity_level): Update user_vect_verbosity_level
16330         instead of vect_verbosity_level.
16331         (vect_set_dump_settings): Add an argument. Ignore user defined
16332         verbosity if dump flags require higher level of verbosity. Print to
16333         stderr only for loop vectorization.
16334         (vectorize_loops): Update call to vect_set_dump_settings.
16335         (execute_vect_slp): New function.
16336         (gate_vect_slp): Likewise.
16337         (struct gimple_opt_pass pass_slp_vectorize): New.
16338         * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
16339         access its members.
16340         (vec_info_for_bb): New function.
16341         (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
16342         (VECTORIZATION_ENABLED): New macro.
16343         (SLP_ENABLED, SLP_DISABLED): Likewise.
16344         (vect_is_simple_use): Add bb_vec_info argument.
16345         (new_stmt_vec_info, vect_analyze_data_ref_dependences,
16346         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
16347         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
16348         vect_schedule_slp, vect_analyze_slp): Likewise.
16349         (vect_analyze_stmt): Add slp_tree argument.
16350         (find_bb_location): Declare.
16351         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
16352         * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
16353         (vect_analyze_loop_operations, vect_analyze_loop,
16354         get_initial_def_for_induction, vect_create_epilog_for_reduction,
16355         vect_finalize_reduction, vectorizable_reduction,
16356         vectorizable_live_operation, vect_transform_loop): Likewise.
16357         * tree-data-ref.c (dr_analyze_innermost): Update comment,
16358         skip evolution analysis if analyzing a basic block.
16359         (dr_analyze_indices): Likewise.
16360         (initialize_data_dependence_relation): Skip the test whether the
16361         object is invariant for basic blocks.
16362         (compute_all_dependences): Skip dependence analysis for data
16363         references in basic blocks.
16364         (find_data_references_in_stmt): Don't fail in case of invariant
16365         access in basic block.
16366         (find_data_references_in_bb): New function.
16367         (find_data_references_in_loop): Move code to
16368         find_data_references_in_bb and add a call to it.
16369         (compute_data_dependences_for_bb): New function.
16370         * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
16371         * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
16372         that STEP is 0.
16373         (vect_analyze_data_ref_dependence): Check for interleaving in case of
16374         unknown dependence in basic block and fail in case of dependence in
16375         basic block.
16376         (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
16377         dependence instances from either loop or basic block vectorization
16378         info.
16379         (vect_compute_data_ref_alignment): Check if it is loop vectorization
16380         before calling nested_in_vect_loop_p.
16381         (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
16382         dependence instances from either loop or basic block vectorization
16383         info.
16384         (vect_verify_datarefs_alignment): Likewise.
16385         (vect_enhance_data_refs_alignment): Adjust function calls.
16386         (vect_analyze_data_refs_alignment): Likewise.
16387         (vect_analyze_group_access): Fix printing. Skip different checks if
16388         DR_STEP is 0. Keep strided stores either in loop or basic block
16389         vectorization data structure. Fix indentation.
16390         (vect_analyze_data_ref_access): Fix comments, allow zero step in
16391         basic blocks.
16392         (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
16393         dependence instances from either loop or basic block vectorization
16394         info.
16395         (vect_analyze_data_refs): Update comment. Call
16396         compute_data_dependences_for_bb to analyze basic blocks.
16397         (vect_create_addr_base_for_vector_ref): Check for outer loop only in
16398         case of loop vectorization. In case of basic block vectorization use
16399         data-ref itself as a base.
16400         (vect_create_data_ref_ptr): In case of basic block vectorization:
16401         don't advance the pointer, add new statements before the current
16402         statement.  Adjust function calls.
16403         (vect_supportable_dr_alignment): Support only aligned accesses in
16404         basic block vectorization.
16405         * common.opt (ftree-slp-vectorize): New flag.
16406         * tree-vect-patterns.c (widened_name_p): Adjust function calls.
16407         (vect_pattern_recog_1): Likewise.
16408         * tree-vect-stmts.c (process_use): Likewise.
16409         (vect_init_vector): Add new statements in the beginning of the basic
16410         block in case of basic block SLP.
16411         (vect_get_vec_def_for_operand): Adjust function calls.
16412         (vect_finish_stmt_generation): Likewise.
16413         (vectorizable_call): Add assert that it is loop vectorization, adjust
16414         function calls.
16415         (vectorizable_conversion, vectorizable_assignment): Likewise.
16416         (vectorizable_operation): In case of basic block SLP, take
16417         vectorization factor from statement's type and skip the relevance
16418         check. Adjust function calls.
16419         (vectorizable_type_demotion): Add assert that it is loop
16420         vectorization, adjust function calls.
16421         (vectorizable_type_promotion): Likewise.
16422         (vectorizable_store): Check for outer loop only in case of loop
16423         vectorization. Adjust function calls. For basic blocks, skip the
16424         relevance check and don't advance pointers.
16425         (vectorizable_load): Likewise.
16426         (vectorizable_condition): Add assert that it is loop vectorization,
16427         adjust function calls.
16428         (vect_analyze_stmt): Add argument. In case of basic block SLP, check
16429         that it is not reduction, get vector type, call only supported
16430         functions, skip loop specific parts.
16431         (vect_transform_stmt): Check for outer loop only in case of loop
16432         vectorization.
16433         (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
16434         (vect_is_simple_use): Fix comment, add new argument, fix conditions
16435         for external definition.
16436         * passes.c (pass_slp_vectorize): New pass.
16437         * tree-vect-slp.c (find_bb_location): New function.
16438         (vect_get_and_check_slp_defs): Add argument, adjust function calls,
16439         check for patterns only in loops.
16440         (vect_build_slp_tree): Add argument, adjust function calls, fail in
16441         case of multiple types in basic block SLP.
16442         (vect_mark_slp_stmts_relevant): New function.
16443         (vect_supported_load_permutation_p): Fix comment.
16444         (vect_analyze_slp_instance): Add argument. In case of basic block
16445         SLP, take vectorization factor from statement's type, check that
16446         unrolling factor is 1. Adjust function call. Save SLP instance in
16447         either loop or basic block vectorization structure. Return FALSE,
16448         if SLP failed.
16449         (vect_analyze_slp): Add argument. Get strided stores groups from
16450         either loop or basic block vectorization structure. Return FALSE
16451         if basic block SLP failed.
16452         (new_bb_vec_info): New function.
16453         (destroy_bb_vec_info, vect_slp_analyze_node_operations,
16454         vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
16455         (vect_schedule_slp): Add argument. Get SLP instances from either
16456         loop or basic block vectorization structure. Set vectorization factor
16457         to be 1 for basic block SLP.
16458         (vect_slp_transform_bb): New function.
16459         * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
16460
16461 2009-05-23  Mark Mitchell  <mark@codesourcery.com>
16462
16463         * final.c (shorten_branches): Do not align labels for jump tables.
16464         (final_scan_insn): Use JUMP_TABLE_DATA_P.
16465
16466 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
16467
16468         * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
16469         Remove outdated reference to flow.c and fix nits.
16470         * doc/gccint.texi: Tweak RTL description.
16471         * doc/rtl.texi: Likewise.
16472
16473 2009-05-23  Denis Chertykov  <chertykov@gmail.com>
16474
16475         * config/avr/avr.c: Change my email address.
16476         * config/avr/avr.h: Likewise.
16477         * config/avr/avr.md: Likewise.
16478         * config/avr/avr-protos.h: Likewise.
16479         * config/avr/libgcc.S: Likewise.
16480
16481 2009-05-22  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
16482
16483         * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
16484         (spu_split_load, spu_split_store): Change return type to int.
16485         (spu_split_convert): Declare.
16486         * config/spu/predicates.md (spu_mem_operand): Remove.
16487         (spu_mov_operand): Update.
16488         (spu_dest_operand, shiftrt_operator, extend_operator): Define.
16489         * config/spu/spu.c (regno_aligned_for_load): Remove.
16490         (reg_aligned_for_addr, spu_expand_load): Define.
16491         (spu_expand_extv): Reimplement and handle MEM.
16492         (spu_expand_insv): Handle MEM.
16493         (spu_sched_reorder): Handle insn's with length 0.
16494         (spu_legitimate_address_p): Reimplement.
16495         (store_with_one_insn_p): Return TRUE for any mode with size
16496         larger than 16 bytes.
16497         (address_needs_split): Define.
16498         (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
16499         operands.
16500         (spu_convert_move): Define.
16501         (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
16502         (spu_split_store): Change all MEM's to TImode.
16503         (spu_init_expanders): Preallocate registers that correspond to
16504         LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
16505         mark_reg_pointer.
16506         (spu_split_convert): Define.
16507         * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
16508         (_move<mode>, _movdi, _movti): Update predicate and condition.
16509         (load, store): Change to define_split.
16510         (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
16511         extend<mode>ti2.
16512         (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
16513         (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
16514         define_insn_and_split of lshr<mode>3.
16515         (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
16516         (<v>ashr<mode>3_imm): Define.
16517         (extv, extzv, insv): Allow MEM operands.
16518         (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
16519         shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
16520         sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
16521         (_spu_convert2): Change to define_insn_and_split and remove the
16522         corresponding define_peephole2.
16523         (stack_protect_set, stack_protect_test, stack_protect_test_si):
16524         Change predicates to memory_operand.
16525
16526 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
16527
16528         * config/arm/thumb2.md: Add 16-bit multiply instructions.
16529
16530 2009-05-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
16531
16532         PR tree-optimization/40219
16533         * tree.c (iterative_hash_expr): Make sure the builtin function is
16534         a normal builtin function and not a front end or back end builtin
16535         before indexing into the built_in_decls array.
16536
16537 2009-05-22  Richard Guenther  <rguenther@suse.de>
16538
16539         PR middle-end/38964
16540         * alias.c (write_dependence_p): Do not use TBAA for answering
16541         anti-dependence or output-dependence.
16542         * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
16543         (emit_pointer_definition): Remove.
16544         (emit_alias_warning): Likewise.
16545         (find_what_var_points_to): Remove TBAA pruning code.
16546         (find_what_p_points_to): Likewise.  Do not warn about strict-aliasing
16547         violations.
16548         (compute_points_to_sets): Remove code computing the set of
16549         dereferenced pointers.
16550         * tree-data-ref.c (dr_may_alias_p): Properly use the split
16551         oracle for querying anti and output dependencies.
16552         * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
16553         if TBAA may be applied.
16554         (refs_anti_dependent_p): New function.
16555         (refs_output_dependent_p): Likewise.
16556         * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
16557         (refs_output_dependent_p): Likewise.
16558         * doc/tree-ssa.texi (Memory model): New section.
16559         * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
16560         * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
16561         * cfgexpand.c (expand_gimple_basic_block): Do not handle
16562         GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
16563         * expr.c (expand_expr_real_1): Likewise.
16564         * gimple-low.c (lower_stmt): Likewise.
16565         * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
16566         (dump_gimple_cdt): Remove.
16567         * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
16568         (gimple_size): Likewise.
16569         (walk_gimple_op): Likewise.
16570         (is_gimple_stmt): Likewise.
16571         (walk_stmt_load_store_addr_ops): Likewise.
16572         (gimple_build_cdt): Remove.
16573         * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
16574         * gimple.h (gimple_cdt_new_type): Remove.
16575         (gimple_cdt_new_type_ptr): Likewise.
16576         (gimple_cdt_set_new_type): Likewise.
16577         (gimple_cdt_location): Likewise.
16578         (gimple_cdt_location_ptr): Likewise.
16579         (gimple_cdt_set_location): Likewise.
16580         * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
16581         * tree-cfg.c (remove_useless_stmts_1): Do not handle
16582         GIMPLE_CHANGE_DYNAMIC_TYPE.
16583         (verify_types_in_gimple_stmt): Likewise.
16584         * tree-inline.c (estimate_num_insns): Likewise.
16585         (expand_call_inline): Do not copy DECL_NO_TBAA_P.
16586         (copy_decl_to_var): Likewise.
16587         (copy_result_decl_to_var): Likewise.
16588         * tree-pretty-print.c (dump_generic_node): Do not handle
16589         CHANGE_DYNAMIC_TYPE_EXPR.
16590         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
16591         * tree-ssa-operands.c (get_expr_operands): Likewise.
16592         * tree-ssa-structalias.c (struct variable_info): Remove
16593         no_tbaa_pruning member.
16594         (new_var_info): Do not set it based on DECL_NO_TBAA_P.
16595         (unify_nodes): Do not copy it.
16596         (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
16597         (dump_solution_for_var): Do not dump no_tbaa_pruning state.
16598         (set_uids_in_ptset): Do not check it.
16599         (find_what_var_points_to): Likewise.
16600         (compute_tbaa_pruning): Remove.
16601         (compute_points_to_sets): Do not call it.
16602         * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
16603         * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
16604         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
16605         (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
16606         (DECL_NO_TBAA_P): Likewise.
16607         (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
16608         * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
16609         (expand_omp_atomic_pipeline): Do not set it.
16610         * print-tree.c (print_node): Do not dump it.
16611         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
16612         redundant check.
16613
16614 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
16615
16616         PR target/39856
16617         * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
16618         for clobber.
16619
16620 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
16621
16622         * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
16623         non-external.
16624
16625 2009-05-22  Ben Elliston  <bje@au.ibm.com>
16626
16627         * Makefile.in (bversion.h, s-bversion): New targets.
16628         (TOPLEV_H): Add bversion.h.
16629         * toplev.h: Include "bversion.h".
16630         (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
16631         the __format__ attribute only if compiling with the same version
16632         of GCC as the sources (the "build version").
16633
16634 2009-05-22  Ben Elliston  <bje@au.ibm.com>
16635
16636         * c-format.c (handle_format_attribute): Fix comment typo.
16637
16638 2009-05-21  Steve Ellcey  <sje@cup.hp.com>
16639
16640         PR target/37846
16641         * config/ia64/ia64.opt (mfused-madd): New.
16642         * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
16643         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
16644         * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
16645         madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
16646         nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
16647         msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
16648         nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
16649         * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
16650         instruction if !TARGET_FUSED_MADD.
16651         (fpma, fpms): Remove colon from name.
16652
16653 2009-05-22  Richard Guenther  <rguenther@suse.de>
16654
16655         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
16656         TMR_ORIGINAL.  Always either record TMR_SYMBOL or TMR_BASE.
16657         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
16658         TARGET_MEM_REF.
16659         (create_expression_by_pieces): Only convert if necessary.
16660         * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
16661         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
16662
16663 2009-05-21  Adam Nemet  <anemet@caviumnetworks.com>
16664
16665         * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
16666         regular pattern from a template and rename it ...
16667         (*extzv_truncsi_exts): ... to this.
16668
16669 2009-05-21  Richard Guenther  <rguenther@suse.de>
16670
16671         * cgraph.h (struct cgraph_node): Remove inline_decl member.
16672         * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
16673         (cgraph_default_inline_p): Likewise.
16674         (cgraph_decide_inlining_incrementally): Likewise.
16675
16676 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
16677             Uros Bizjak  <ubizjak@gmail.com>
16678
16679         * config/i386/cpuid.h (bit_MOVBE): New.
16680
16681         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
16682
16683         * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
16684         (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
16685         (ix86_handle_option): Handle OPT_mmovbe.
16686         (ix86_target_string): Add -mmovbe.
16687         (pta_flags): Add PTA_MOVBE.
16688         (processor_alias_table): Add PTA_MOVBE to "atom".
16689         (override_options): Handle PTA_MOVBE.
16690
16691         * config/i386/i386.h (TARGET_MOVBE): New.
16692
16693         * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
16694         (*bswapsi_movbe): New.
16695         (*bswapdi_movbe): Likewise.
16696         (bswapdi2): Renamed to ...
16697         (*bswapdi_1): This.
16698         (bswapdi2): New expander.
16699
16700         * config/i386/i386.opt (mmovbe): New.
16701
16702         * doc/invoke.texi: Document -mmovbe.
16703
16704 2009-05-21  Taras Glek  <tglek@mozilla.com>
16705
16706         * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
16707         * gcc-plugin.h (plugin_init): Updated signature.
16708         * gcc-plugin.h (plugin_name_args): Moved to this header.
16709         * doc/plugins.texi (plugin_init): Updated documention to reflect
16710         API change.
16711         * doc/plugins.texi (plugin_name_args): Added to documention.
16712
16713 2009-05-21  Mark Mitchell  <mark@codesourcery.com>
16714
16715         * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
16716         (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
16717
16718 2009-05-21  Shujing Zhao  <pearly.zhao@oracle.com>
16719
16720         * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
16721         JUMP_TABLE_DATA_P predicates where applicable.
16722         * config/i386/predicates.md: Ditto.
16723         * config/i386/sse.md: Ditto.
16724
16725 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
16726
16727         * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
16728         operand2 -128 override length_immediate attribute to 1.
16729         * config/i386/predicates.md (constm128_operand): New predicate.
16730
16731         * config/i386/i386.c (memory_address_length): Handle %r12
16732         the same as %rsp and %r13 the same as %rbp.  For %rsp and %rbp
16733         also check REGNO.
16734         (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
16735         mode look through optional ZERO_EXTEND and SUBREG.
16736         * config/i386/i386.md (R12_REG): New define_constant.
16737         (prefix_data16): For sse unit set also for MODE_TI insns.
16738         (prefix_rex): For -m32 always return 0.  For TYPE_IMOVX
16739         insns set if operand 1 is ext_QIreg_operand.
16740         (modrm): For TYPE_IMOV clear only if not MODE_DI.  For
16741         TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
16742         immediate.
16743         (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
16744         mode from MODE_DI to MODE_SI.
16745         (movdi_1_rex64): Override modrm and length_immediate attributes
16746         only for movabs (TYPE_IMOV, alternative 2).
16747         (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
16748         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
16749         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
16750         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
16751         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
16752         prefix_rex attribute if DImode.
16753         (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
16754         *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
16755         *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
16756         *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
16757         attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
16758         (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
16759         Likewise.  For TYPE_IMOV clear length_immediate attribute.
16760         (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
16761         *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
16762         *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
16763         *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
16764         *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
16765         or one operand TYPE_ISHIFT.
16766         (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
16767         *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
16768         *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
16769         *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
16770         *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
16771         *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
16772         *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
16773         *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
16774         *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
16775         *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
16776         *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
16777         *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
16778         *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
16779         *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
16780         *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
16781         *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
16782         *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
16783         set mode attribute, don't override length attribute.
16784         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
16785         to 1.
16786         (return_internal_long): Set length attribute to 2 instead of 1.
16787         (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
16788         *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
16789         prefix_rex attribute.
16790         * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
16791         New predicates.
16792         (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
16793
16794 2009-05-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16795
16796         * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
16797
16798 2009-05-20  Ian Lance Taylor  <iant@google.com>
16799
16800         * tree.c (build_tree_list_vec_stat): New function.
16801         (ctor_to_vec): New function.
16802         (build_nt_call_vec): New function.
16803         (build_call_array): Change args to be a const pointer.
16804         (build_call_vec): New function.
16805         * tree.h (build_nt_call_vec): Declare.
16806         (build_tree_list_vec_stat): Declare.
16807         (build_tree_list_vec): Define.
16808         (build_call_array): Update declaration.
16809         (build_call_vec): Declare.
16810         (ctor_to_vec): Declare.
16811         * c-common.c (tree_vector_cache): New static variable.
16812         (make_tree_vector): New function.
16813         (release_tree_vector): New function.
16814         (make_tree_vector_single): New function.
16815         (make_tree_vector_copy): New function.
16816         * c-common.h (tree_vector_cache, make_tree_vector): Declare.
16817         (make_tree_vector_single, make_tree_vector_copy): Declare.
16818         * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
16819         (c_parser_expr_list): Don't manage cache here, instead call
16820         make_tree_vector.
16821         (c_parser_release_expr_list): Remove static function.
16822         (c_parser_vec_to_tree_list): Remove static function.
16823         (c_parser_attributes): Call build_tree_list_vec instead of
16824         c_parser_vec_to_tree_list.  Call release_tree_vector instead of
16825         c_parser_release_expr_list.
16826         (c_parser_postfix_expression_after_primary): Likewise.
16827         (c_parser_objc_keywordexpr): Likewise.
16828
16829 2009-05-20  Sandra Loosemore  <sandra@codesourcery.com>
16830
16831         * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
16832         TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
16833         TARGET_CONVERT_TO_TYPE.
16834         * hooks.c (hook_tree_const_tree_null): Define.
16835         * hooks.h (hook_tree_const_tree_null): Declare.
16836         * target.h (struct gcc_target):  Add invalid_parameter_type,
16837         invalid_return_type, promoted_type, and convert_to_type fields.
16838         * target-def.h (TARGET_INVALID_PARAMETER_TYPE): Define.
16839         (TARGET_INVALID_RETURN_TYPE): Define.
16840         (TARGET_PROMOTED_TYPE): Define.
16841         (TARGET_CONVERT_TO_TYPE): Define.
16842         (TARGET_INITIALIZER): Update for new fields.
16843         * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
16844         (grokparms): Check targetm.invalid_parameter_type.
16845         * c-typeck.c (default_conversion): Check targetm.promoted_type.
16846         * c-convert.c (convert): Check targetm.convert_to_type.
16847
16848 2009-05-20  Adam Nemet  <anemet@caviumnetworks.com>
16849
16850         * config/mips/mips.md (*extenddi_truncate<mode>,
16851         *extendsi_truncate<mode>): Emit exts if supported.  Add attribute
16852         defintions.
16853         (*extendhi_truncateqi): New define_insn_and_sptit.
16854
16855 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
16856
16857         PR middle-end/40204
16858         * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
16859         recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
16860
16861 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
16862
16863         * fold-const.c (build_fold_addr_expr_with_type): Take the address of
16864         the operand of VIEW_CONVERT_EXPR.
16865
16866 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
16867
16868         * config/i386/driver-i386.c (host_detect_local_cpu): Check
16869         extended family and model for Intel processors.  Support Intel Atom.
16870
16871 2009-05-20  Olivier Hainque  <hainque@adacore.com>
16872
16873         * gstab.h (stab_code_type): Define, to be used instead of the
16874         __stab_debug_code enum, made anonymous.  Add 2009 to the copyright
16875         notice.
16876         * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
16877         occurrences by stab_code_type.
16878         * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
16879
16880 2009-05-20  Martin Jambor  <mjambor@suse.cz>
16881
16882         * tree-flow.h (insert_edge_copies_seq): Undeclare.
16883         (sra_insert_before): Likewise.
16884         (sra_insert_after): Likewise.
16885         (sra_init_cache): Likewise.
16886         (sra_type_can_be_decomposed_p): Likewise.
16887         * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
16888         * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
16889         (sra_insert_before): Likewise.
16890         (sra_insert_after): Likewise.
16891         (sra_init_cache): Likewise.
16892         (insert_edge_copies_seq): Made static and moved upwards.
16893
16894         * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
16895         case.
16896
16897         * tree-flow-inline.h (contains_view_convert_expr_p): New function.
16898
16899         * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
16900         (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
16901         simple copies.
16902
16903 2009-05-20  Richard Guenther  <rguenther@suse.de>
16904
16905         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
16906         with mismatched comparison modes.
16907
16908 2009-05-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16909
16910         * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
16911         (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
16912         * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
16913         with shifts for Thumb2.
16914         (orsi_notsi): New for orn.
16915         (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
16916         (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
16917         * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
16918         (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
16919         Don't invert remainder for IOR.
16920
16921 2009-05-19  Zdenek Dvorak  <ook@ucw.cz>
16922
16923         PR tree-optimization/40087
16924         * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
16925         number_of_iterations_ne): Rename never_infinite argument.
16926         (number_of_iterations_lt_to_ne, number_of_iterations_lt,
16927         number_of_iterations_le): Handle pointer-type ivs when
16928         exit_must_be_taken is false.
16929         (number_of_iterations_cond):  Do not always assume that
16930         exit_must_be_taken if the control variable is a pointer.
16931
16932 2009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16933
16934         * c-typeck.c (build_binary_op): Allow % on integal vectors.
16935         * doc/extend.texi (Vector Extension): Document that % is allowed too.
16936
16937 2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
16938
16939         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
16940         ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
16941
16942 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16943
16944         PR c/40172
16945         * c.opt (Wlogical-op): Disabled by default.
16946         * c-opt (c_common_post_options): Do not enable Wlogical-op with
16947         Wextra.
16948         * doc/invoke.texi (Wlogical-op): Likewise.
16949
16950 2009-05-19  Eric Botcazou  <ebotcazou@adacore.com>
16951
16952         * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
16953         into CASE_CONVERT.
16954         <PLUS_EXPR>: Strip useless type conversions instead of type nops.
16955         Propagate the type of the first operand.
16956         <ASSERT_EXPR>: Simplify.
16957         (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
16958         Rewrite using the RHS code as discriminant.
16959         <NOP_EXPR>: Turn into CASE_CONVERT.
16960         <PLUS_EXPR>: Propagate the type of the first operand.
16961
16962 2009-05-19  Steve Ellcey  <sje@cup.hp.com>
16963
16964         * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
16965         (ia64_dconst_0_375): New.
16966         * config/ia64/ia64.c (ia64_override_options): Remove
16967         -minline-sqrt-min-latency warning.
16968         (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
16969         (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
16970         * config/ia64/ia64.md (*sqrt_approx): Remove.
16971         (sqrtsf2): Remove #if 0.
16972         (sqrtsf2_internal_thr): Rewrite and move to div.md.
16973         (sqrtdf): Remove assert.
16974         (sqrtdf2_internal_thr): Rewrite and move to div.md.
16975         (sqrtxf2): Remove #if 0.
16976         (sqrtxf2_internal_thr): Rewrite and move to div.md.
16977         * div.md (sqrt_approx_rf): New.
16978         (sqrtsf2_internal_thr): New implementation.
16979         (sqrtsf2_internal_lat): New.
16980         (sqrtdf2_internal_thr: New implementation.
16981         (sqrtxf2_internal): New implementation.
16982
16983 2009-05-19  Francois-Xavier Coudert  <fxcoudert@gmail.com>
16984             Hans-Peter Nilsson  <hp@axis.com>
16985
16986         * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
16987         (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
16988         (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
16989         (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
16990         (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
16991         (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
16992         (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
16993         (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
16994         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
16995         (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
16996         * c-common.c: ...from here.
16997
16998 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16999
17000         * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
17001
17002 2009-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17003
17004         * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
17005
17006 2009-05-19  Ben Elliston  <bje@au.ibm.com>
17007
17008         * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
17009         assignments with memcpy calls.
17010         (add_fdes): Likewise.
17011         (binary_search_unencoded_fdes): Likewise.
17012         (linear_search_fdes): Eliminate type puns.
17013
17014 2009-05-19  Richard Guenther  <rguenther@suse.de>
17015
17016         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
17017         not falsely claim to have propagated into all uses.
17018
17019 2009-05-19  Ben Elliston  <bje@au.ibm.com>
17020
17021         * doc/invoke.texi (C Dialect Options): Update OpenMP specification
17022         version to v3.0.
17023
17024 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
17025
17026         * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
17027         * config/sh/sh.c (sh_legitimate_address_p): Make static.
17028         (TARGET_LEGITIMATE_ADDRESS_P): New.
17029         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17030         * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
17031
17032 2009-05-18  Dodji Seketeli  <dodji@redhat.com>
17033
17034         PR debug/40109
17035         * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
17036         child of the containing namespace's DIE.
17037
17038 2009-05-18  Adam Nemet  <anemet@caviumnetworks.com>
17039
17040         * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
17041         *zero_extendhi_truncqi):  Move after the zero_extend patterns.
17042         (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
17043         extend patterns.
17044
17045 2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>
17046
17047         PR target/39942
17048         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
17049         gen_align with gen_pad.
17050         (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
17051         #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
17052
17053         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
17054         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
17055
17056         * config/i386/i386.md (align): Renamed to ...
17057         (pad): This.  Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
17058         ASM_OUTPUT_MAX_SKIP_PAD.
17059
17060 2009-05-18  Andreas Schwab  <schwab@linux-m68k.org>
17061
17062         * config.gcc: Fix variable syntax.
17063
17064         PR target/39531
17065         * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
17066         before calling exact_log2.
17067         (output_iorsi3): Likewise.
17068         (output_xorsi3): Likewise.
17069
17070 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
17071
17072         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
17073         for the none zero constant operand except for EQ and NE
17074         comprisons even when the first operand is R0.
17075
17076 2009-05-18  Andreas Krebbel  <krebbel1@de.ibm.com>
17077
17078         * config/s390/2064.md: Remove trailing whitespaces.
17079         * config/s390/2084.md: Likewise.
17080         * config/s390/constraints.md: Likewise.
17081         * config/s390/fixdfdi.h: Likewise.
17082         * config/s390/libgcc-glibc.ver: Likewise.
17083         * config/s390/s390-modes.def: Likewise.
17084         * config/s390/s390-protos.h: Likewise.
17085         * config/s390/s390.c: Likewise.
17086         * config/s390/s390.h: Likewise.
17087         * config/s390/s390.md: Likewise.
17088         * config/s390/tpf-unwind.h: Likewise.
17089
17090 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
17091
17092         * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
17093
17094 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
17095
17096         M68K TLS support.
17097         * configure.ac (m68k-*-*): Check if binutils support TLS.
17098         * configure: Regenerate.
17099         * config/m68k/predicates.md (symbolic_operand): Extend comment.
17100         * config/m68k/constraints.md (Cu): New constraint.
17101         * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
17102         (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
17103         (movsi): Handle TLS symbols.
17104         (addsi3_5200): Handle XTLS symbols, indent.
17105         * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
17106         (m68k_tls_reference_p): Declare.
17107         (m68k_legitimize_address): Declare.
17108         (m68k_unwrap_symbol): Declare.
17109         * config/m68k/m68k.opt (mxtls): New option.
17110         * config/m68k/m68k.c (ggc.h): Include.
17111         (m68k_output_dwarf_dtprel): Implement hook.
17112         (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
17113         (m68k_expand_prologue): Load GOT pointer when function needs it.
17114         (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
17115         (m68k_legitimate_constant_address_p): Same.
17116         (m68k_decompose_address): Handle TLS references.
17117         (m68k_get_gp): New static function.
17118         (enum m68k_reloc): New contants.
17119         (TLS_RELOC_P): New macro.
17120         (m68k_wrap_symbol): New static function.
17121         (m68k_unwrap_symbol): New function.
17122         (m68k_final_prescan_insn_1): New static function.
17123         (m68k_final_prescan_insn): New function.
17124         (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
17125         functions.
17126         (legitimize_pic_address): Handle TLS references..
17127         (m68k_tls_get_addr, m68k_get_tls_get_addr)
17128         (m68k_libcall_value_in_a0_p)
17129         (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
17130         (m68k_call_m68k_read_tp): Helper variables and functions for ...
17131         (m68k_legitimize_tls_address): Handle TLS references.
17132         (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
17133         New functions.
17134         (m68k_legitimize_address): Handle TLS symbols.
17135         (m68k_get_reloc_decoration): New static function.
17136         (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
17137         UNSPEC_RELOC32.
17138         (m68k_output_dwarf_dtprel): Implement hook.
17139         (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
17140         (m68k_libcall_value): Return result in A0 instead of D0 when asked by
17141         m68k_call_* routines.
17142         (sched_attr_op_type): Handle TLS symbols.
17143         (gt-m68k.h): Include.
17144         * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
17145         (LEGITIMATE_PIC_OPERAND_P): Support TLS.
17146
17147 2009-05-18  Martin Jambor  <mjambor@suse.cz>
17148
17149         * ipa-prop.c (ipa_check_stmt_modifications): Removed.
17150         (visit_store_addr_for_mod_analysis): New function.
17151         (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
17152         (determine_cst_member_ptr): Use gimple_assign_single_p.
17153         (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
17154         (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
17155         operands.  Don't check number of operands of a NOP_EXPR.
17156
17157 2009-05-18  Eric Fisher  <joefoxreal@gmail.com>
17158
17159         * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
17160
17161 2009-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17162
17163         PR c/40172
17164         * c-common.c (warn_logical_operator): Don't warn if one of
17165         expression isn't always true or false.
17166
17167 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
17168
17169         * config/i386/biarch32.h: New file.
17170         * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
17171
17172 2009-05-17  Adam Nemet  <anemet@caviumnetworks.com>
17173
17174         * config/mips/mips.md (*zero_extend<mode>_trunchi,
17175         *zero_extend<mode>_truncqi): Merge these into ...
17176         (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
17177         Name the pattern following this as *zero_extendhi_truncqi.
17178
17179 2009-05-16  Brad Lucier  <lucier@math.purdue.edu>
17180
17181         PR middle-end/39301
17182         * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
17183         * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
17184         (output_info): Make field HOST_WIDEST_INT.
17185         (print_statistics): Use HOST_WIDEST_INT_PRINT.
17186         (dump_bitmat_statistics): Same.
17187
17188 2009-05-16  Francois-Xavier Coudert  <fxcoudert@gmail.com>
17189
17190         * config.gcc (use_gcc_stdint):  Set to wrap.
17191         * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
17192         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
17193         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
17194         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
17195         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
17196         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
17197         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
17198         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
17199
17200 2009-05-16  Joseph Myers  <joseph@codesourcery.com>
17201
17202         * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
17203         tune_64.
17204         * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
17205         Move definitions earlier.
17206         (OPT_ARCH64, OPT_ARCH32): Define.
17207         (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
17208         and tune_64.
17209
17210 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
17211
17212         PR target/40153
17213         * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
17214         implies.
17215
17216 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
17217
17218         * arm.md (movdi2): Copy non-reg values to DImode registers.
17219
17220 2009-05-16  Jakub Jelinek  <jakub@redhat.com>
17221
17222         PR target/39942
17223         * final.c (label_to_max_skip): New function.
17224         (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
17225         CODE_LABEL_NUMBER <= max_labelno.
17226         * output.h (label_to_max_skip): New prototype.
17227         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
17228         (ix86_avoid_jump_mispredicts): ... this.  Don't define if
17229         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.  Update comment.
17230         Handle CODE_LABELs with >= 16 byte alignment or with
17231         max_skip == (1 << align) - 1.
17232         (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
17233         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
17234
17235         PR target/39942
17236         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
17237         .p2align 3 if MAX_SKIP is smaller than 7.
17238         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
17239
17240 2009-05-15  Ian Lance Taylor  <iant@google.com>
17241
17242         * alias.c (struct alias_set_entry_d): Rename from struct
17243         alias_set_entry.  Change all uses.
17244         * except.c (struct call_site_record_d): Rename from struct
17245         call_site_record.  Change all uses.
17246         * except.h (struct eh_region_d): Rename from struct eh_region.
17247         Change all uses.
17248         * gcse.c (struct hash_table_d): Rename from struct hash_table.
17249         Change all uses.
17250         * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
17251         ivtype_map_elt.  Change all uses.
17252         (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
17253         Change all uses.
17254         (struct ifsese_d): Rename fromstruct ifsese.  Change all uses.
17255         * graphite.h (struct name_tree_d): Rename from struct name_tree.
17256         Change all uses.
17257         (struct sese_d): Rename from struct sese.  Change all uses.
17258         * omega.h (struct eqn_d): Rename from struct eqn.  Change all uses.
17259         (struct omega_pb_d): Rename from struct omega_pb.  Change all uses.
17260         * optabs.h (struct optab_d): Rename from struct optab.  Change all
17261         uses.
17262         (struct convert_optab_d): Rename from struct convert_optab.
17263         Change all uses.
17264         * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
17265         ipa_opt_pass.  Change all uses.
17266         * tree-predcom.c (struct dref_d): Rename from struct dref.  Change
17267         all uses.
17268
17269         * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
17270         defined as a typedef.
17271         (grokdeclarator): If -Wc++-compat, warn if a typedef is already
17272         defined as a tag.
17273
17274 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17275
17276         PR 16302
17277         * fold-const.c (make_range,build_range_check,merge_ranges): Move
17278         declaration to...
17279         (merge_ranges): Returns bool.
17280         * tree.h (make_range): .. to here.
17281         (build_range_check): Likewise.
17282         (merge_ranges): Likewise. Renamed from merge_ranges.
17283         * c-typeck.c (parser_build_binary_op): Update calls to
17284         warn_logical_operator.
17285         * c-common.c (warn_logical_operator): Add new warning.
17286         * c-common.h (warn_logical_operator): Update declaration.
17287
17288 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17289
17290         * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
17291
17292 2009-05-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17293
17294         * doc/install.texi: Document MPC requirements, flags etc.
17295
17296         * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
17297         (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
17298         Evaluate constant arguments.
17299         (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
17300         (fold_builtin_1): Likewise, also evaluate constant arguments.
17301         Remove superfluous break.
17302         (do_mpc_ckconv): New.
17303         * real.h: Include mpc.h.
17304         * toplev.c (print_version): Output MPC version info if available.
17305
17306 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
17307
17308         * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
17309
17310 2009-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17311
17312         * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
17313         only once.
17314
17315 2009-05-15  Jan Hubicka  <jh@suse.cz>
17316
17317         * doc/invoke.texi (max-early-inliner-iterations): New flag.
17318         * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
17319         (try_inline): Fix return value.
17320         (cgraph_decide_inlining_incrementally): Honor new value.
17321         (cgraph_early_inlining): Handle indirect inlining.
17322         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
17323
17324 2009-05-15  Jan Hubicka  <jh@suse.cz>
17325
17326         * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
17327         * cgraphunit.c (cgraph_finalize_function): Set it.
17328         (cgraph_expand_function): Use it.
17329
17330 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
17331
17332         * real.c (encode_ieee_half): Define.
17333         (decode_ieee_half): Define.
17334         (ieee_half_format): Define.
17335         (arm_half_format): Define.
17336         * real.h (ieee_half_format): Declare.
17337         (arm_half_format): Declare.
17338
17339 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
17340
17341         * optabs.c (prepare_float_lib_cmp):  Test that the comparison,
17342         swapped, and reversed optabs exist before trying to use them.
17343
17344 2009-05-15  Paul Brook  <paul@codesourcery.com>
17345             Sandra Loosemore  <sandra@codesourcery.com>
17346
17347         * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
17348         loads.  Allow PRE_DEC.
17349         (output_move_neon): Handle PRE_DEC.
17350         (arm_print_operand): Add 'A' for neon structure loads.
17351         * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
17352         * config/arm/neon.md (neon_mov): Update comment.
17353         * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
17354         calls.
17355         (Um): New constraint.
17356
17357 2009-05-15  Jan Hubicka  <jh@suse.cz>
17358
17359         Revert the following patch until testsuite fallout is fixed:
17360         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
17361         * cgraph.h (struct inline_summary): New filed self_wize,
17362         size_inlining_benefit, self_time and time_inlining_benefit.
17363         (struct cgraph_global_info): Replace insns by time ans size fields.
17364         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
17365         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
17366         (ipcp_update_callgraph): Do not touch function bodies.
17367         * ipa-inline.c: Include except.h
17368         (MAX_TIME): New constant.
17369         (overall_insns): Remove
17370         (overall_size, max_benefit): New static variables.
17371         (cgraph_estimate_time_after_inlining): New function.
17372         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
17373         (cgraph_clone_inlined_nodes): Update size.
17374         (cgraph_mark_inline_edge): Update size.
17375         (cgraph_estimate_growth): Use size info.
17376         (cgraph_check_inline_limits): Check size.
17377         (cgraph_default_inline_p): Likewise.
17378         (cgraph_edge_badness): Compute badness based on benefit and size cost.
17379         (cgraph_decide_recursive_inlining): Check size.
17380         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
17381         and times.
17382         (cgraph_decide_inlining): Likewise.
17383         (cgraph_decide_inlining_incrementally): Likewise; honor
17384         PARAM_EARLY_INLINING_INSNS.
17385         (likely_eliminated_by_inlining_p): New predicate.
17386         (estimate_function_body_sizes): New function.
17387         (compute_inline_parameters): Use it.
17388         * except.c (must_not_throw_labels): New function.
17389         * except.h (must_not_throw_labels): Declare.
17390         * tree-inline.c (init_inline_once): Kill inlining_weigths
17391         * tree-ssa-structalias.c: Avoid uninitialized warning.
17392         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
17393         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
17394         (PARAM_INLINE_CALL_COST): Remove.
17395         (PARAM_EARLY_INLINING_INSNS): New.
17396
17397 2009-05-15  Richard Guenther  <rguenther@suse.de>
17398
17399         * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
17400         not TODO_update_ssa.
17401
17402 2009-05-15  Richard Guenther  <rguenther@suse.de>
17403
17404         PR tree-optimization/39999
17405         * gimple.h (gimple_expr_type): Use the expression type looking
17406         through useless conversions.
17407         * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
17408         (vn_nary_op_insert_stmt): Likewise.
17409         (simplify_binary_expression): Likewise.
17410
17411 2009-05-15  Richard Guenther  <rguenther@suse.de>
17412
17413         * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
17414         New options, enabled by default.
17415         * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
17416         Document.
17417         * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
17418         * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
17419         * tree-ssa-structalias.c (gate_tree_pta): New function.
17420         (pass_build_alias): Use it.
17421
17422 2009-05-15  Joseph Myers  <joseph@codesourcery.com>
17423
17424         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
17425         recurse on an invariant address if a conversion from a pointer
17426         type to a wider integer type is involved.
17427
17428 2009-05-15  Jan Hubicka  <jh@suse.cz>
17429
17430         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
17431         * cgraph.h (struct inline_summary): New filed self_wize,
17432         size_inlining_benefit, self_time and time_inlining_benefit.
17433         (struct cgraph_global_info): Replace insns by time ans size fields.
17434         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
17435         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
17436         (ipcp_update_callgraph): Do not touch function bodies.
17437         * ipa-inline.c: Include except.h
17438         (MAX_TIME): New constant.
17439         (overall_insns): Remove
17440         (overall_size, max_benefit): New static variables.
17441         (cgraph_estimate_time_after_inlining): New function.
17442         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
17443         (cgraph_clone_inlined_nodes): Update size.
17444         (cgraph_mark_inline_edge): Update size.
17445         (cgraph_estimate_growth): Use size info.
17446         (cgraph_check_inline_limits): Check size.
17447         (cgraph_default_inline_p): Likewise.
17448         (cgraph_edge_badness): Compute badness based on benefit and size cost.
17449         (cgraph_decide_recursive_inlining): Check size.
17450         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
17451         and times.
17452         (cgraph_decide_inlining): Likewise.
17453         (cgraph_decide_inlining_incrementally): Likewise; honor
17454         PARAM_EARLY_INLINING_INSNS.
17455         (likely_eliminated_by_inlining_p): New predicate.
17456         (estimate_function_body_sizes): New function.
17457         (compute_inline_parameters): Use it.
17458         * except.c (must_not_throw_labels): New function.
17459         * except.h (must_not_throw_labels): Declare.
17460         * tree-inline.c (init_inline_once): Kill inlining_weigths
17461         * tree-ssa-structalias.c: Avoid uninitialized warning.
17462         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
17463         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
17464         (PARAM_INLINE_CALL_COST): Remove.
17465         (PARAM_EARLY_INLINING_INSNS): New.
17466         doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
17467         (inline-call-cost): Remove.
17468         (early-inlining-insns): New.
17469
17470 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
17471
17472         * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters.  Use them
17473         for bounds.
17474         (print_int_cst_bounds_in_octal_p): Likewise.
17475         (dbxout_type): Adjust calls to above functions.  Be prepared to deal
17476         with subtypes.
17477         * dwarf2out.c (base_type_die): Likewise.
17478         (is_subrange_type): Delete.
17479         (subrange_type_die): Add LOW and HIGH parameters.  Use them for bounds.
17480         (modified_type_die): Call subrange_type_for_debug_p on subtypes.
17481         * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
17482         if the destination type is boolean.
17483         (build_range_check): Do not special-case subtypes.
17484         (fold_sign_changed_comparison): Likewise.
17485         (fold_unary): Likewise.
17486         * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
17487         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
17488         * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
17489         * tree.c (subrange_type_for_debug_p): New predicate based on the
17490         former is_subrange_type.
17491         * tree.h (subrange_type_for_debug_p): Declare.
17492         * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
17493         (convert_affine_scev): Remove call to above function.
17494         (chrec_convert_aggressive): Likewise.
17495         * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
17496         false for conversions involving subtypes.
17497         * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
17498         (vrp_val_min): Likewise.
17499         (needs_overflow_infinity): Likewise.
17500         (extract_range_from_unary_expr): Likewise.
17501
17502 2009-05-15  Paolo Bonzini  <bonzini@gnu.org>
17503
17504         * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
17505         * config/frv/frv.c: Likewise.
17506         * config/s390/s390.c: Likewise.
17507         * config/sparc/sparc.h: Likewise.
17508         * config/i386/i386.h: Likewise.
17509         * config/i386/i386.c: Likewise.
17510         * config/crx/crx.c: Likewise.
17511         * config/m68hc11/m68hc11.h: Likewise.
17512         * config/iq2000/iq2000.c: Likewise.
17513         * config/mn10300/mn10300.h: Likewise.
17514         * config/mn10300/mn10300.c: Likewise.
17515         * config/m68k/m68k.c: Likewise.
17516         * config/rs6000/rs6000.c: Likewise.
17517         * config/rs6000/xcoff.h: Likewise.
17518         * config/rs6000/linux64.h: Likewise.
17519         * config/rs6000/sysv4.h: Likewise.
17520         * config/score/score3.c: Likewise.
17521         * config/score/score7.c: Likewise.
17522         * config/score/score.c: Likewise.
17523         * config/arm/arm.md: Likewise.
17524         * config/mips/mips.c: Likewise.
17525         * config/mips/mips.md: Likewise.
17526         * config/bfin/bfin.h: Likewise.
17527         * config/pa/pa.c: Likewise.
17528         * config/pa/constraints.md: Likewise.
17529
17530         * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
17531         * config/pdp11/pdp11.c (legitimate_address_p): Delete.
17532         * config/pdp11/pdp11.h: Use memory_address_p instead.
17533
17534 2009-05-14  Ian Lance Taylor  <iant@google.com>
17535
17536         * passes.c (finish_optimization_passes): Change i to int.
17537         * plugin.c (plugins_active_p): Change event to int.
17538         (dump_active_plugins): Likewise.
17539         * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
17540         Add cast.
17541         * tree.c (tree_range_check_failed): Change c to unsigned int.
17542         (omp_clause_range_check_failed): Likewise.
17543         (build_common_builtin_nodes): Change mode to int.  Add cast.
17544         * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
17545         (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
17546
17547         * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
17548         ++ or -- with a variable of enum type.
17549
17550 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
17551
17552         PR driver/40144
17553         * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
17554
17555 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
17556
17557         * store-motion.c: Do not include params.h
17558         * Makefile.in: Fix dependencies for various files.
17559
17560 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
17561
17562         * auto-inc-dec.c: Fix pass description, remove apparent
17563         accidental duplication.
17564
17565 2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>
17566
17567         PR middle-end/40147
17568         * ipa-utils.h (memory_identifier_string): Moved to ...
17569         * tree.h (memory_identifier_string): Here.  Add GTY(()).
17570
17571 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
17572
17573         * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
17574         in the former documentation of...
17575         (GO_IF_LEGITIMATE_ADDRESS): ... this.
17576         * ira-conflicts.c (get_dup_num): Use address_operand.
17577         * targhooks.c (default_legitimate_address_p): New.
17578         * targhooks.h (default_legitimate_address_p): New.
17579         * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
17580         Call hook.
17581         * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
17582         * target.h (struct target): Add legitimate_address_p.
17583         * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
17584         (TARGET_INITIALIZER): Include it.
17585
17586         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17587         * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
17588         * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
17589         (TARGET_LEGITIMATE_ADDRESS_P): New.
17590
17591         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17592         (REG_OK_STRICT_P): Delete.
17593         * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
17594         (frv_legitimate_address_p_1): ... this.
17595         * config/frv/frv.c (frv_legitimate_address_p): Forward to...
17596         (frv_legitimate_address_p_1): ... the renamed old
17597         frv_legitimate_address_p.
17598         * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
17599         (TARGET_LEGITIMATE_ADDRESS_P): New.
17600
17601         * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17602         * config/s390/s390-protos.h (legitimate_address_p): Remove.
17603         * config/s390/s390.c (legitimate_address_p): Rename to...
17604         (s390_legitimate_address_p): ... this, make static.
17605         (legitimize_address): Adjust call.
17606         (TARGET_LEGITIMATE_ADDRESS_P): New.
17607         * config/s390/constraints.md ("e"): Call strict_memory_address_p.
17608
17609         * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17610         * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
17611         * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
17612         (TARGET_LEGITIMATE_ADDRESS_P): New.
17613
17614         * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17615         * config/spu/spu-protos.h (spu_legitimate_address): Remove.
17616         * config/spu/spu.c (spu_legitimate_address): Rename to...
17617         (spu_legitimate_address_p): ... this, make static.
17618         (TARGET_LEGITIMATE_ADDRESS_P): New.
17619
17620         * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17621         * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
17622         * config/sparc/sparc.c (legitimate_address_p): Rename to...
17623         (sparc_legitimate_address_p): ... this, make static and return bool.
17624         (legitimize_address): Adjust call.
17625         (TARGET_LEGITIMATE_ADDRESS_P): New.
17626
17627         * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17628         * config/i386/i386-protos.h (legitimate_address_p): Remove.
17629         * config/i386/i386.c (legitimate_address_p): Rename to...
17630         (ix86_legitimate_address_p): ... this, make static.
17631         (constant_address_p): Move after it, adjust call.
17632         (TARGET_LEGITIMATE_ADDRESS_P): New.
17633
17634         * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17635         * config/avr/avr-protos.h (legitimate_address_p): Remove.
17636         * config/avr/avr.c (legitimate_address_p): Rename to...
17637         (avr_legitimate_address_p): ... this, make static.
17638         (legitimize_address): Adjust call.
17639         (TARGET_LEGITIMATE_ADDRESS_P): New.
17640
17641         * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17642         * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
17643         * config/crx/crx.c (crx_legitimate_address_p): Make static.
17644         (TARGET_LEGITIMATE_ADDRESS_P): New.
17645
17646         * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17647         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
17648         * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
17649         (TARGET_LEGITIMATE_ADDRESS_P): New.
17650
17651         * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17652         * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
17653         Remove.
17654         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
17655         Make static.
17656         (TARGET_LEGITIMATE_ADDRESS_P): New.
17657
17658         * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17659         * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
17660         Remove.
17661         * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
17662         Rename to...
17663         (m68hc11_legitimate_address_p): ... this, make static.
17664         (go_if_legitimate_address_internal): Rename to...
17665         (m68hc11_legitimate_address_p_1): ... this.
17666         (legitimize_address): Adjust call.
17667         (TARGET_LEGITIMATE_ADDRESS_P): New.
17668
17669         * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17670         * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
17671         * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
17672         (TARGET_LEGITIMATE_ADDRESS_P): New.
17673
17674         * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17675         * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
17676         * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
17677         (mn10300_legitimate_address_p): ... this, make static.
17678         (TARGET_LEGITIMATE_ADDRESS_P): New.
17679
17680         * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17681         * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
17682         * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
17683         (TARGET_LEGITIMATE_ADDRESS_P): New.
17684
17685         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17686         (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
17687         (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
17688         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17689         * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
17690         * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
17691         (rs6000_legitimate_address_p): ... this, make static.
17692         (TARGET_LEGITIMATE_ADDRESS_P): New.
17693         (REG_MODE_OK_FOR_BASE_P): Delete.
17694         (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
17695
17696         * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17697         * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
17698         Delete.
17699         * config/picochip/picochip.c (picochip_legitimate_address_p): Make
17700         static, adjust types.
17701         (TARGET_LEGITIMATE_ADDRESS_P): New.
17702
17703         * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17704         * config/score/score.c (score_address_p): Rename to...
17705         (score_legitimate_address_p): ... this.
17706         (TARGET_LEGITIMATE_ADDRESS_P): New.
17707         * config/score/score3.c (score3_address_p): Rename to...
17708         (score3_legitimate_address_p): ... this.
17709         * config/score/score7.c (score7_address_p): Rename to...
17710         (score7_legitimate_address_p): ... this.
17711
17712         * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
17713         THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
17714         GO_IF_LEGITIMATE_ADDRESS): Delete.
17715         * config/arm/arm-protos.h (thumb1_legitimate_address_p,
17716         thumb2_legitimate_address_p): Delete.
17717         (arm_legitimate_address_p): Rename to...
17718         (arm_legitimate_address_outer_p): ... this.
17719         * config/arm/constraints.md ("Uq"): Adjust call.
17720         * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
17721         * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
17722         to...
17723         (arm_legitimate_address_outer_p): ... this.
17724         (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
17725         static.
17726         (TARGET_LEGITIMATE_ADDRESS_P): New.
17727
17728         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17729         * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
17730         * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
17731         (TARGET_LEGITIMATE_ADDRESS_P): New.
17732
17733         * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17734         * config/vax/vax-protos.h (legitimate_address_p): Remove.
17735         * config/vax/vax.c (legitimate_address_p): Rename to...
17736         (vax_legitimate_address_p): ... this, make static.
17737         (TARGET_LEGITIMATE_ADDRESS_P): New.
17738
17739         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17740         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
17741         * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
17742         (TARGET_LEGITIMATE_ADDRESS_P): New.
17743
17744         * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17745         * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
17746         * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
17747         (mmix_legitimate_address_p): ... this, make static.
17748         (TARGET_LEGITIMATE_ADDRESS_P): New.
17749
17750         * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17751         * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
17752         * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
17753         (TARGET_LEGITIMATE_ADDRESS_P): New.
17754
17755 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
17756
17757         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
17758         of MODE_COMPLEX_INT.
17759
17760 2009-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17761
17762         * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
17763         LCT_NORMAL in function call.
17764         * mips-tdump.c (print_file_desc): Add cast to enum type.
17765         * mips-tfile.c (add_ext_symbol): Add casts to enum types.
17766         (mark_stabs): Add casts to enum types.
17767         (parse_stabs_common): Add casts to enum types.
17768
17769 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
17770
17771         * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
17772         Check for invalid values of LETTER.
17773
17774 2009-05-13  Taras Glek  <tglek@mozilla.com>
17775
17776         * attribs.c (register_attribute): moved out attribute registration
17777         into register_attribute.
17778         * doc/plugins.texi: Documented register_attribute and
17779         PLUGIN_ATTRIBUTES.
17780         * gcc-plugin.h: Added forward decl for register_attribute.
17781         * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
17782         * plugin.c (register_callback, invoke_plugin_callbacks): Added
17783         PLUGIN_ATTRIBUTES boilerplate.
17784
17785 2009-05-14  Dave Korn  <dave.korn.cygwin@gmail.com>
17786
17787         * config/i386/msformat-c.c (ms_printf_length_specs):  Use enumeration
17788         values even in sentinel and empty entries.
17789         (ms_printf_flag_specs):  Likewise.
17790         (ms_scanf_flag_specs):  Likewise.
17791         (ms_strftime_flag_specs):  Likewise.
17792         (ms_print_char_table):  Likewise.
17793         (ms_scan_char_table):  Likewise.
17794         (ms_time_char_table):  Likewise.
17795
17796 2009-05-13  Doug Kwan  <dougkwan@google.com>
17797
17798         * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
17799
17800 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
17801
17802         * config/mips/mips.md (store): Add attributes for QI and HI.
17803         Update comment.
17804         (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
17805         (truncdi<mode>2): ... this new pattern.
17806
17807 2009-05-13  Brad Hards  <bradh@kde.org>
17808
17809         * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
17810
17811 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
17812             Ben Elliston <bje@au.ibm.com>
17813
17814         PR middle-end/40035
17815         * dse.c (check_mem_read_rtx): Guard against width == -1.
17816
17817 2009-05-13  Michael Matz  <matz@suse.de>
17818
17819         PR middle-end/39976
17820         * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
17821         (trivially_conflicts_p): New function.
17822         (insert_backedge_copies): Use it.
17823
17824 2009-05-13  Janis Johnson  <janis187@us.ibm.com>
17825
17826         * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
17827         (handle_stdc_pragma): Use new enum constant names.
17828         (handle_pragma_float_const_decimal64): Ditto.
17829
17830 2009-05-13  Ian Lance Taylor  <iant@google.com>
17831
17832         * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
17833         tree.def.
17834
17835 2009-05-13  Nathan Sidwell  <nathan@codesourcery.com>
17836
17837         * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
17838         * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
17839         multilibs.
17840         * config/m68k/m68k.h (FL_UCLINUX): Define.
17841
17842 2009-05-13  Jan Hubicka  <jh@suse.cz>
17843
17844         * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
17845
17846 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
17847
17848         * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
17849         unless -fschedule-insns is specified.
17850
17851 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
17852
17853         PR target/39561
17854         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
17855         TARGET_EXPAND_CBRANCHDI4.
17856         * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
17857         * config/sh/sh.opt (mexpand-cbranchdi): Remove.
17858         (cmpeqdi): Fix comment.
17859
17860 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
17861
17862         * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
17863         (sh_legitimate_address_p): Likewise.
17864         * config/sh/sh.c (sh_legitimate_index_p): New.
17865         (sh_legitimate_address_p): Likewise.
17866         * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
17867         (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
17868         (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
17869         (MAYBE_BASE_REGISTER_RTX_P): New macro.
17870         (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
17871         (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
17872         (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
17873         (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
17874         (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
17875
17876 2009-05-12  Jan Hubicka  <jh@suse.cz>
17877
17878         * tree-inline.c (estimate_operator_cost): Add operands;
17879         when division happens by constant, it is cheap.
17880         (estimate_num_insns): Loads and stores are not having cost of 0;
17881         EH magic stuff is cheap; when computing runtime cost of switch,
17882         use log2 base of amount of its cases; builtin_expect has cost of 0;
17883         compute cost for moving return value of call.
17884         (init_inline_once): Initialize time_based flags.
17885         * tree-inline.h (eni_weights_d): Add time_based flag.
17886
17887 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
17888
17889         * df-core.c: Update head documentation.
17890
17891 2009-05-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
17892
17893         PR bootstrap/40118
17894         * rs6000.c (rs6000_generate_compare): Use op1b instead of
17895         shadowing exisiting variable op1.
17896
17897 2009-05-12  Uros Bizjak  <ubizjak@gmail.com>
17898
17899         PR target/37179
17900         * config/i386/driver-i386.c (processor_signatures): New enum.
17901         (SIG_GEODE): Move from vendor_signatures to processor_signatures.
17902         (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
17903         processor signature to detect geode processor.
17904
17905 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
17906
17907         Revert:
17908
17909         2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
17910
17911         * optabs.c (prepare_cmp_insn): Temporarily disable test that
17912         causes spurious differences between trunk and cond-optab branch.
17913
17914 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
17915
17916         * dojump.c (compare_from_rtx): Delete.
17917         * expmed.c (emit_store_flag): Only try cstore_optab.  Canonicalize
17918         any MODE_CC mode to the cstorecc4 pattern.  Use prepare_operand, fail
17919         if the comparison does not satisfy the predicate; test predicates for
17920         operands 2 and 3 of a cstore pattern.  Don't try cstore optab
17921         further if one existing pattern fails.
17922         * expr.h (compare_from_rtx): Delete.
17923         (prepare_operand): Declare it.
17924         * optabs.c: Change "lib call" to "libcall" throughout.
17925         (bcc_gen_fctn, setcc_gen_code, trap_rtx,
17926         HAVE_conditional_trap, emit_cmp_insn): Delete.
17927         (can_compare_p): Delete cmp_optab case.
17928         (prepare_float_lib_cmp): Return an rtx and a machine mode.
17929         Accept other parameters by value.
17930         (prepare_operand): Make non-static.
17931         (prepare_cmp_insn): Return an rtx and a machine mode.  Accept
17932         other parameters by value.  Try to widen operands here based on
17933         an optab_methods argument and looking at cbranch_optab.
17934         (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
17935         loop.  Use cbranch_optab directly.
17936         (emit_cmp_and_jump_insns): Fix comment.  Adjust call to
17937         prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
17938         assertion.
17939         (emit_conditional_move, emit_conditional_add): Inline what's needed
17940         of compare_from_rtx, using new prepare_cmp_insn for the rest.
17941         (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
17942         with COMPARE.  Move cmov_optab and cstore_optab above
17943         with cbranch_optab, move cmp_optab down with ucmp_optab,
17944         remove tst_otpab.  Do not initialize trap_rtx.
17945         (gen_cond_trap): Do it here.  Use ctrap_optab.  Test predicate
17946         for trap code.  Do not check HAVE_conditional_trap.  Use
17947         prepare_cmp_insn.  Accept no predicate for operand 3.
17948         * optabs.h (OTI_cmp): Mark as used only for libcalls.
17949         (OTI_ctrap, ctrap_optab): New.
17950         (tst_optab): Delete.
17951         (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
17952         * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
17953         with lookup of ctrap_optab.
17954         * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
17955         Delete.
17956         (ctrap_optab): New.
17957
17958         * combine.c (combine_simplify_rtx, simplify_set): Do not
17959         special case comparing against zero for cc0 machines.
17960         * simplify-rtx.c (simplify_binary_operation_1): Never remove
17961         COMPARE on cc0 machines.
17962         (simplify_relational_operation): Return a new expression when
17963         a COMPARE could be removed.
17964         * final.c (final_scan_insn): Compare cc_status values
17965         against LHS of a (compare FOO (const_int 0)) cc0 source.
17966         Also check if cc_status.value is the full compare.
17967
17968         * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
17969         (cstoreMM4): Document.
17970         (conditional_trap): Document ctrapMM4 instead.
17971         (sync_compare_and_swapMM): Refer to cbranchcc4.
17972         (Dependent Patterns): Eliminate obsolete information referring to
17973         the old jump optimization phase.
17974         (Canonicalization): Include cbranchcc4 case, omit canonicalization
17975         of compares with 0 on cc0 machines.
17976         (Jump Patterns): Refer to MODE_CC jump patterns preferably,
17977         avoiding references to cc0.  Remove text about storing operands
17978         in cmpMM.
17979         * doc/tm.texi (Condition Codes): Include blurb on different
17980         condition code representations, separate into subsections for
17981         CC0, MODE_CC and conditional execution.
17982
17983         * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
17984         alpha_emit_setcc): Accept operands and a machine mode.
17985         * config/alpha/alpha.c (alpha_emit_conditional_branch):
17986         Get code/op0/op1 from operands, use machine mode argument
17987         instead of alpha_compare.fp_p.  Emit the branch here.
17988         (alpha_emit_setcc): Likewise, and return boolean.
17989         (alpha_emit_conditional_move): Likewise.  Assert that
17990         cmp_op_mode == cmp_mode, and simplify accordingly.
17991         * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
17992         * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
17993         (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
17994         Delete.
17995         (stack probe test): Use cbranchdi4.
17996         * config/alpha/predicates.md (alpha_cbranch_operator): New.
17997
17998         * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
17999         * config/arc/arc.h (movsicc, movsfcc): Use it.
18000         (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
18001         (cbranchsi4, cstoresi4): New.
18002         (cmpsi, bCC and sCC expanders): Remove.
18003
18004         * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
18005         * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
18006         * config/arm/predicates.md (arm_comparison_operator): Only include
18007         floating-point operators if there is a hardware floating-point unit.
18008         * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
18009         deferring to cbranch_cc and cstore_cc respectively.
18010         (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
18011         cbranch_cc, cstore_cc): New.
18012         (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
18013         arm_compare_op1.
18014         (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
18015
18016         * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
18017         * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
18018         as an argument.
18019         (adjust_insn_length): Adjust calls.
18020         (avr_reorg): Handle (compare (foo) (const_int 0)).
18021         * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
18022         (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
18023         (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
18024         (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
18025         (bCC): Remove.
18026         (cbranchqi4, cbranchhi4, cbranchsi4): New.
18027         (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
18028
18029         * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
18030         (cbranchsi4, cstorebi4, cstoresi4): New.
18031         (movbisi): This insn is duplicate, split it to zero_extend.
18032         * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
18033         (bfin_gen_compare): Do not use them.  Emit VOIDmode SET, not BImode.
18034         (bfin_optimize_loop): Use cbranch expander.
18035         * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
18036         * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
18037         (bfin_bimode_comparison_operator): ... this.
18038         (bfin_direct_comparison_operator): New.
18039
18040         * config/cris/cris.c (cris_normal_notice_update_cc): Look
18041         inside (compare FOO (const_int 0)).
18042         (cris_rtx_costs): Handle ZERO_EXTRACT.
18043         * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
18044         (*tstdi_non_v32): Fold in *cmpdi_non_v32.
18045         (*tstdi_v32): Delete.
18046         (*cmpdi_non_v32): Add M alternative for operand 1.
18047         (cmpsi, cmp<mode>): Make private.
18048         (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
18049         with COMPARE.
18050         (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
18051
18052         * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
18053         (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
18054         (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
18055         (cc_reg_operand): New.
18056         (any_cond): Delete.
18057         * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
18058         crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
18059         * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
18060         * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
18061         crx_expand_scond): Delete.
18062
18063         * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
18064         (cbranchsi4): New.
18065         * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
18066         * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
18067
18068         * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
18069         cstoresi4, cstoresf4, cstoredf4): New.
18070         (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
18071         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
18072         Receive the entire operands array.
18073         * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
18074         * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
18075         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
18076         Get test/op0/op1 from the operands array.
18077         (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
18078
18079         * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
18080         (h8300_expand_store): New.
18081         * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
18082         (const_int 0)).
18083         (h8300_expand_branch): Emit compare here.  Adjust for new arguments.
18084         (h8300_expand_store): New.
18085         * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
18086         or do not try to produce (set (cc0) REG).
18087         (peepholes): Wrap arguments with COMPARE.  Add a peephole to
18088         change a compare into a move to a scratch register.  Disable some
18089         peepholes when comparing with zero.
18090         (tstsi, tsthi, tstsi, cmpqi): Make private.
18091         (cmphi): Delete.
18092         (bCC, sCC): Delete.
18093         (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
18094         cstoresi4): New.
18095
18096         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
18097         ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
18098         (ix86_emit_i387_log1p): Use gen_cbranchxf4.
18099         (ix86_emit_i387_log1p): Use cbranchxf2.
18100         (ix86_expand_setcc): Return void.
18101         * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
18102         * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
18103         cmp<MODEF>, cmpcc): Remove.
18104         (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
18105         cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
18106         cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
18107         (sCC and bCC expanders): Remove.
18108         (stack_protect_test): Use cbranchcc4.
18109
18110         * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
18111         Delete.
18112         (ia64_expand_compare): Accept three rtx by reference and return void.
18113         * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
18114         (ia64_expand_compare): Replace op0/op1 with *op0/*op1.  Get code
18115         from *expr.  Update *expr with the BImode comparison to do.
18116         * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
18117         cmptf, bCC, sCC, conditional_trap): Delete.
18118         (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
18119         cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
18120         cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
18121         ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
18122         * config/ia64/predicates.md (ia64_cbranch_operator): New.
18123
18124         * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
18125         type of last argument.
18126         * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
18127         (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
18128         use machine mode argument instead of branch_type.  Remove dead
18129         code for floating-point comparisons.
18130         * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
18131         * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
18132         Remove.
18133         (cbranchsi4, cstoresi4): New.
18134         * config/iq2000/predicates.md (reg_or_const_operand): New.
18135
18136         * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
18137         * config/m32c/m32c.md (any_cond, gl_cond): Delete.
18138         (b<code>_op): Rewrite to...
18139         (bcc_op): ... this, using match_operator.
18140         (s<code>_op): Rewrite to...
18141         (scc_op): ... this, using match_operator.
18142         (s<code>_24_op): Rewrite to...
18143         (scc_op_24): ... this, using match_operator.
18144         (s<code>_<mode>): Rewrite to...
18145         (cstore<mode>4): ... this, using match_operator.
18146         (s<code>_<mode>_24): Rewrite to...
18147         (cstore<mode>4_24): ... this, using match_operator.
18148         * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
18149         m32c_unpend_compare, m32c_expand_scc): Delete.
18150         * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
18151         m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
18152         (m32c_expand_movcc): Change NE to EQ if necessary.
18153         (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
18154
18155         * config/m32r/m32r-protos.h (gen_cond_store): New.
18156         * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
18157         (gen_cond_store): New, from sCC patterns.
18158         (m32r_expand_block_move): Use cbranchsi4.
18159         * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
18160         * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
18161         (cbranchsi4, cstoresi4): New.
18162
18163         * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
18164         Delete.
18165         (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
18166         (m68hc11_notice_update_cc): Look into a compare with 0.
18167         * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
18168         Delete.
18169         * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
18170         cmphi, cmpqi, bCC): Delete.
18171         (cbranchsi4, cbranchhi4, cbranchqi4): New.
18172         (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
18173         bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
18174         sets with COMPARE.
18175
18176         * config/m68k/predicates.md (m68k_cstore_comparison_operator,
18177         const0_operand, const1_operand, m68k_subword_comparison_operand): New.
18178         * config/m68k/constraints.md (H): New.
18179         * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
18180         the define_insn below.
18181         (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
18182         (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
18183         *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
18184         patterns): Wrap RHS with COMPARE.
18185         (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
18186         (*cmpdi_internal): Name this pattern.
18187         (cmpdi): Change to define_insn.
18188         (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
18189         cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
18190         (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
18191         predicate.
18192         (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
18193         sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
18194         (conditional_trap): Change to...
18195         (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
18196         (*conditional_trap): Use the ordered_comparison_operator and
18197         const1_operand predicates.
18198         * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
18199         (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
18200         (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
18201         * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
18202
18203         * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
18204         mcore_modify_comparison, mcore_gen_compare_reg): Remove.
18205         (mcore_gen_compare): New.
18206         * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
18207         (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
18208         (mcore_gen_compare): ... this.
18209         * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
18210         (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
18211         (stack probe pattern): Use cbranchsi4.
18212
18213         * config/mips/predicates.md (mips_cstore_operator): New.
18214         * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
18215         * config/mips/mips.md (any_cond): Delete.
18216         (conditional_trap): Rename to ctrap<GPR:mode>4.  Adjust predicates,
18217         always succeed.
18218         (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
18219         fixuns_truncsfdi2): Use cbranch patterns.
18220         (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
18221         (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
18222         Adjust call to mips_expand_conditional_branch.
18223         (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
18224         cstore<GPR:mode>4.
18225         * config/mips/mips-protos.h (mips_expand_conditional_branch,
18226         mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
18227         * config/mips/mips.c (cmp_operands): Delete.
18228         (mips_emit_compare): Get comparison operands from *op0/*op1.
18229         (mips_expand_scc): Get code/op0/op1/target from operands.  Assert
18230         that it succeeds.  Use op0/op1 instead of cmp_operands.
18231         (mips_expand_conditional_branch, mips_expand_conditional_move,
18232         mips_expand_conditional_trap): Likewise.
18233         (mips_block_move_loop): Use cbranch patterns.
18234         * config/mips/mips.h (cmp_operands): Delete.
18235
18236         * config/mmix/mmix.c (mmix_valid_comparison): Delete.
18237         (mmix_gen_compare_reg): Just return a register in the right CC mode.
18238         * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
18239         * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
18240         (*cmpcc_folded): Rename to...
18241         (*cmpdi_folded): this.
18242         (*cmpcc): Rename to...
18243         (*cmps): ... this.
18244         (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
18245         (bCC): Remove.
18246         (cbranchdi4): New.
18247         (cbranchdf4): New.  Handle invalid comparisons here.
18248         * config/mmix/predicates.md (float_comparison_operator): New.
18249
18250         * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
18251         zero_extract to be cheap in (compare (zero_extract) (const_int 0).
18252         * config/mn10300/mn10300.md (tst): Delete.
18253         (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
18254         Name these patterns and wrap RHS in a compare.
18255         (*cmpsi): Make this pattern private.  Include tst.
18256         (*cmpsf): Make this pattern private.
18257         (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
18258         (compare with zero peepholes): Likewise.
18259         (bCC): Remove.
18260         (cbranchsi4, cbranchsf4): New.
18261         (casesi): Use cbranchsi4.
18262
18263         * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
18264         hppa_branch_type): Delete.
18265         (return_addr_rtx): Use cbranchsi4.
18266         (emit_bcond_fp): Accept all operands.  Replace CODE with NE.
18267         Emit CCFPmode comparison here.
18268         (gen_cmp_fp): Delete, now part of emit_bcond_fp.
18269         * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
18270         hppa_branch_type): Delete.
18271         * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
18272         (movsicc, movdicc): Remove references to hppa_compare_op0,
18273         hppa_compare_op1 and compare_from_rtx.
18274         (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
18275         (casesi): Use cbranchsi4.
18276
18277         * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
18278         * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
18279         * config/pdp11/pdp11.md (register_or_const0_operand): New.
18280         (cmpdf, cmphi, cmpqi): Make private.  Add tst alternatives.
18281         (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
18282         (bCC): Delete.
18283         (cbranchdf4, cbranchhi4, cbranchqi4): New.
18284         (*branch, *branch_inverted): New.
18285
18286         * config/picochip/picochip.md (cbranchhi4): Use
18287         ordered_comparison_operator.
18288         (cmphi, bCC): Remove.
18289
18290         * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
18291         (trap_comparison_operator): Delete.
18292         * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
18293         rs6000_emit_cbranch): Accept mode and operands.
18294         * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
18295         rs6000_compare_fp_p): Delete.
18296         (rs6000_generate_compare): Accept mode and comparison.  Extract code
18297         and op0/op1 from there.  Replace references to rs6000_compare_op0
18298         and rs6000_compare_op1.
18299         (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
18300         extract result from passed operands.
18301         (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
18302         extract loc from passed operands.
18303         (rs6000_emit_cmove): Likewise.
18304         * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
18305         rs6000_compare_fp_p): Delete.
18306         * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
18307         (cbranch<GPR>4, cbranch<FP>4): New.
18308         (cstore<mode>4): New.  Consolidate here all choices about when to use
18309         portable or specialized sCC sequences.
18310         (stack_protect_test): Use cbranchsi4.
18311         (conditional_trap): Replace with ctrap<GPR>4.
18312         (conditional trap insn): Replace trap_comparison_operator with
18313         ordered_comparison_operator.
18314
18315         * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
18316         (s390_emit_prologue): Use ctrap.
18317         * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
18318         * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
18319         New predicates replacing...
18320         * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
18321         (cmp<GPR>, cmp<FP>, cmpcc): Delete.
18322         (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
18323         (add<mode>cc): Do not use s390_compare_op0/op1.
18324         (s<code>): Change to...
18325         (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
18326         (seq): Change to...
18327         (cstorecc4): ... this.  Handle EQ or NE equally.
18328         (*sne): Un-privatize for use in cstorecc4.
18329         (b<code>): Change to...
18330         (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
18331         (conditional_trap): Replace with...
18332         (ctrap<GPR>4, ctrap<FP>4): ... these.
18333         (stack_protect): Use cbranchcc4.
18334
18335         * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
18336         * config/score/score-protos.h (score_gen_cmp): Delete.
18337         * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
18338         (score_block_move-loop): Use cbranchsi4.
18339         * config/score/score.md (cbranchsi4): New.
18340         (cmpsi, bCC): Delete.
18341         * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
18342         (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
18343         * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
18344         (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
18345         * config/score/score3.h (score3_gen_cmp): Delete.
18346         * config/score/score7.h (score7_gen_cmp): Delete.
18347
18348         * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
18349         (sh_emit_scc_to_t): ... this.  Return void.
18350         (from_compare): Rename to...
18351         (sh_emit_compare_and_branch): ... this.
18352         (sh_emit_compare_and_set): New.
18353         (sh_expand_t_scc): Accept operands.
18354         * config/sh/predicates.md (sh_float_comparison_operator): New.
18355         * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
18356         (prepare_scc_operands): Rename to...
18357         (sh_emit_scc_to_t): ... this.  Return void.  Get op0/op1 from
18358         arguments.
18359         (sh_emit_cheap_store_flag): New.
18360         (sh_emit_set_t_insn): New.
18361         (from_compare): Rename to...
18362         (sh_emit_compare_and_branch): ... this.  Accept mode.  Rewrite
18363         handling of TARGET_SH2E floating point to avoid recursive call.
18364         Generate branch here.
18365         (sh_emit_compare_and_set): New.
18366         (sh_expand_t_scc): Get op0/op1 from arguments.
18367         (sh_emit_cheap_store_flag): New.
18368         * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
18369         cases.
18370         (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
18371         (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
18372         (movsicc, movdicc): Do nothing when it recreated operands from
18373         sh_compare_*. Use sh_emit_cheap_store_flag.  Adjust call to
18374         prepare_scc_operands (now sh_emit_scc_to_t).
18375         (udivdi3): Use cstoresi4.
18376         (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
18377         bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
18378         (cbranchint4_media, cbranchfp4_media): New.
18379         (casesi): Use cbranchdi4.
18380         (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
18381         Delete.
18382         (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
18383         (movnegt): Remove second operand.
18384         (cbranchsf4, cbranchdf4): New.
18385         (stack_protect): Use cbranchdi4/cbranchsi4.
18386
18387         * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
18388         (gen_compare_reg): Accept comparison, extract part of it to...
18389         (gen_compare_reg_1): ... this.
18390         (gen_compare_operator): Delete.
18391         (gen_v9_scc): Accept separate destination, comparison code and arms.
18392         Do not use sparc_compare_op0/sparc_compare_op1.
18393         (emit_scc_insn, emit_conditional_branch_insn): New.
18394         (emit_v9_brxx): Make static.  Remove useless assertion.
18395         (sparc_emit_float_lib_cmp): Return RTL instead of calling
18396         emit_cmp_insn.
18397         (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
18398         * config/sparc/sparc-protos.h (gen_compare_reg,
18399         sparc_emit_float_lib_cmp): Adjust prototype.
18400         (emit_scc_insn, emit_conditional_branch_insn): New.
18401         (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
18402         * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
18403         * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
18404         iterators to the top.
18405         (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
18406         snesi_special_extend, sCC, bCC, seqdi_special_trunc,
18407         snedi_special_trunc): Delete.
18408         (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
18409         and snedi_special_trunc.
18410         (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
18411         cbranchdi4, cbranch<F:mode>4): New.
18412         (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
18413         here.  Use gen_compare_reg instead of gen_compare_operator.
18414         (conditional_trap): Replace with...
18415         (ctrapsi4, ctrapdi4): ... this.
18416         (stack_protect_test): Use cbranchcc4.
18417
18418         * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
18419         argument to rtx.
18420         * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
18421         (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
18422         Change spu_compare_op0/op1 to op0/op1 throughout.  Get target
18423         from operands[0] or operands[3] depending on is_set.
18424         * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
18425         * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
18426         cmpdf, bCC), sCC: Remove.
18427         (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
18428         cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
18429         cstoredf4): New.
18430         (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
18431         spu_emit_branch_or_set.
18432
18433         * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
18434         Add two arguments.
18435         * config/stormy16/stormy16.h (xstormy16_compare_op0,
18436         xstormy16_compare_op1): Delete.
18437         * config/stormy16/stormy16.c (xstormy16_compare_op0,
18438         xstormy16_compare_op1): Delete.
18439         (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
18440         Adjust calls.
18441         * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
18442         (cmphi, cmpsi, bCC): Remove.
18443
18444         * config/v850/v850.md (tstsi, cmpsi): Fold into...
18445         (*cmpsi): ... this one.
18446         (cbranchsi4, cstoresi4): New.
18447         (bCC expanders): Delete.
18448         (sCC insns): Fold into...
18449         (*setcc): ... this one.
18450         (casesi): Do not use gen_cmpsi and gen_bgtu.
18451         (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
18452         (movsicc): Simplify.
18453         * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
18454
18455         * config/vax/vax-protos.h (cond_name): New.
18456         (vax_output_conditional_branch): Remove.
18457         * config/vax/vax.c (cond_name): New.
18458         (vax_output_conditional_branch): Remove.
18459         * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
18460         * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
18461         (cmp<VAXint>, cmp<VAXfp>): Privatize.  Add constraints for tst.
18462         (bit<VAXint>): Wrap source with (compare).
18463         (b<code> and following unnamed pattern): Rename to *branch and
18464         *branch_reversed.  Change macroization to match_operator.
18465         (cbranch<VAXint>4, cbranch<VAXfp>4): New.
18466
18467         * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
18468         * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
18469         Change last argument to machine_mode.
18470         (xtensa_expand_scc): Add machine_mode argument.
18471         * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
18472         (gen_conditional_move, xtensa_expand_conditional_branch,
18473         xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
18474         instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
18475         Adjust operand numbers.
18476         * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
18477         Delete.
18478         * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
18479         (cmpsi, cmpsf, b<code>, s<code>): Delete.
18480         (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
18481
18482 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
18483
18484         * optabs.c (prepare_cmp_insn): Temporarily disable test that
18485         causes spurious differences between trunk and cond-optab branch.
18486
18487 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
18488
18489         PR target/37137
18490         * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
18491
18492 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
18493
18494         * tree.c (iterative_hash_pointer): Delete.
18495         (iterative_hash_expr): Short-circuit handling of NULL pointer.
18496         Hash UIDs and versions of SSA names.  Don't special-case built-in
18497         function declarations.
18498
18499 2009-05-11  Ian Lance Taylor  <iant@google.com>
18500
18501         PR bootstrap/40103
18502         * graphite.c: Force -Wc++-compat to only be a warning before
18503         #including "cloog/cloog.h".
18504
18505 2009-05-11  Martin Jambor  <mjambor@suse.cz>
18506
18507         * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
18508
18509 2009-05-11  Jan Hubicka  <jh@suse.cz>
18510
18511         * tree-ssa-loop-ivcanon.c: Include target.h
18512         (struct loop_size): new structure.
18513         (constant_after_peeling): New predicate.
18514         (tree_estimate_loop_size): New function.
18515         (estimated_unrolled_size): Rewrite for new estimates.
18516         (try_unroll_loop_completely): Use new estimates.
18517         * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
18518
18519 2009-05-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18520
18521         * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
18522         libcpp interface change.
18523         (spu_macro_to_expand): Likewise.
18524
18525 2009-05-11  Paolo Bonzini  <bonzini@gnu.org>
18526
18527         PR tree-optimization/40026
18528         * gimplify.c (gimplify_init_constructor): Change initial conditional
18529         to assertion.  Rewrite TREE_OPERAND (*expr_p, 1) after
18530         optimize_compound_literals_in_ctor.
18531
18532 2009-05-11  Nathan Sidwell  <nathan@codesourcery.com>
18533
18534         * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
18535         New devices.
18536         * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
18537
18538 2009-05-11  H.J. Lu  <hongjiu.lu@intel.com>
18539
18540         * tree-vect-data-refs.c (vect_analyze_group_access): Use
18541         HOST_WIDE_INT for gap.
18542
18543 2009-05-11  Ira Rosen  <irar@il.ibm.com>
18544
18545         PR tree-optimization/40074
18546         * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
18547         account in group size and step comparison.
18548
18549 2009-05-11  Richard Guenther  <rguenther@suse.de>
18550
18551         * passes.c (init_optimization_passes): Strip now incorrect comment.
18552         (execute_function_todo): Do not set PROP_alias.
18553         * tree-pass.h (PROP_alias): Remove.
18554         * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
18555         * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
18556         * tree-nrv.c (pass_return_slot): Likewise.
18557         * tree-object-size.c (pass_object_sizes): Likewise.
18558         * tree-ssa-dom.c (pass_dominator): Likewise.
18559         (pass_phi_only_cprop): Likewise.
18560         * tree-ssa-dse.c (pass_dse): Likewise.
18561         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
18562         (pass_cselim): Likewise.
18563         * tree-ssa-pre.c (pass_pre): Likewise.
18564         (pass_fre): Likewise.
18565         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
18566         * tree-ssa-sink.c (pass_sink_code): Likewise.
18567         * tree-stdarg.c (pass_stdarg): Likewise.
18568         * tree-tailcall.c (pass_tail_calls): Likewise.
18569         * tree-vrp.c (pass_vrp): Likewise.
18570
18571 2009-05-10  Ian Lance Taylor  <iant@google.com>
18572
18573         * basic-block.h (enum profile_status): Break out of struct
18574         control_flow_graph.
18575         * cgraph.h (struct inline_summary): Break out of struct
18576         cgraph_local_info.
18577         * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
18578         of struct cgraph_order_sort.
18579         * combine.c (enum undo_kind): New enum, broken out of struct undo.
18580         * cse.c (struct branch_path): Break out of struct
18581         cse_basic_block_data.
18582         * except.h (enum eh_region_type): Break out of struct eh_region.
18583         * gcc.c (enum add_del): Break out of struct modify_target.
18584         * genrecog.c (enum decision_type): Break out of struct decision_test.
18585         * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
18586         ggc_pch_data.
18587         * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
18588         * regmove.c (enum match_use): New enum, broken out of struct match.
18589         * sched-int.h (enum post_call_group): New enum, broken out of
18590         struct deps.
18591         (struct deps_reg): Break out of struct deps.
18592         * target.h (struct asm_int_op): Break out of struct gcc_target.
18593         * tree-eh.c (struct goto_queue_node): Break out of struct
18594         leh_tf_state.
18595         * tree-inline.h (enum copy_body_cge_which): Break out of
18596         copy_body_data.
18597         * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
18598
18599         * c-decl.c (in_struct, struct_types): New static variables.
18600         (pushtag): Add loc parameter.  Change all callers.
18601         (lookup_tag): Add ploc parameter.  Change all callers.
18602         (check_compound_literal_type): New function.
18603         (parser_xref_tag): Add loc parameter.  Change all callers.  If
18604         -Wc++-compat, warn about struct/union/enum types defined within a
18605         struct or union.
18606         (start_struct): Add enclosing_in_struct, enclosing_struct_types,
18607         and loc parameters.  Change all callers.  Change error calls to
18608         error_at, using loc.  For a redefinition, if the location of the
18609         original definition is known, report it.  Set in_struct and
18610         struct_types.  If -Wc++-compat warn if in sizeof, typeof, or alignof.
18611         (finish_struct): Add new parameters enclosing_in_struct and
18612         enclosing_struct_types.  Change all callers.  Set
18613         C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
18614         in the struct.  If in a struct, add this struct to struct_types.
18615         (start_enum): Add loc parameter.  Change all callers.  Use
18616         error_at for errors, using loc.  For a redefinition, if the
18617         location of the original definition is known, report it.  If in a
18618         struct, add this enum type to struct_types.  If -Wc++-compat warn
18619         if in sizeof, typeof, or alignof.
18620         * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
18621         (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
18622         (c_parser_enum_specifier): Get enum location for start_enum.
18623         (c_parser_struct_or_union_specifier): Get struct location for
18624         start_struct.  Save in_struct and struct_types status between
18625         start_struct and finish_struct.
18626         (c_parser_cast_expression): Get location of cast.
18627         (c_parser_alignof_expression): Get location of type.
18628         (c_parser_postfix_expression): Likewise.
18629         (c_parser_postfix_expression_after_paren_type): Add type_loc
18630         parameter.  Change all callers.  Call check_compound_literal_type.
18631         Use type_loc for error about variable size type.
18632         * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
18633         of an enum constant from an enum type defined in a struct or union.
18634         (c_cast_expr): Add loc parameter.  Change all callers.  If
18635         -Wc++-compat, warn about defining a type in a cast.
18636         * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
18637         (start_enum, start_struct, finish_struct): Update declarations.
18638         (parser_xref_tag, c_cast_expr): Update declarations.
18639         (check_compound_literal_type): Declare.
18640
18641 2009-05-11  Ben Elliston  <bje@au.ibm.com>
18642
18643         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
18644         for recent libcpp interface change.
18645         (rs6000_macro_to_expand): Likewise.
18646
18647 2009-05-10  Michael Matz  <matz@suse.de>
18648
18649         PR target/40031
18650         * config/arm/arm.c (require_pic_register): Emit on entry edge,
18651         not at entry of function.
18652
18653 2009-05-10  Richard Guenther  <rguenther@suse.de>
18654
18655         PR tree-optimization/40081
18656         Revert
18657         * tree-sra.c (instantiate_element): Instantiate scalar replacements
18658         using the main variant of the element type.  Do not fiddle with
18659         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
18660
18661         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
18662         structs with volatile fields.
18663
18664 2009-05-10  Jan Hubicka  <jh@suse.cz>
18665
18666         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
18667         (estimate_move_cost): Assert that it does not get called for
18668         VOID_TYPE_P.
18669         (estimate_num_insns): Skip VOID types in argument handling.
18670         (optimize_inline_calls): Delete unreachable blocks and verify that
18671         callgraph is valid.
18672
18673 2009-05-10  Jan Hubicka  <jh@suse.cz>
18674
18675         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
18676         * cgraph.c (cgraph_mark_address_taken_node): New function.
18677         (dump_cgraph_node): Dump new flag.
18678         * cgraph.h (struct cgraph_node): Add address_taken.
18679         (cgraph_mark_address_taken_node): New function.
18680         * ipa.c (cgraph_postorder): Prioritize functions with address taken
18681         since new direct calls can be born.
18682
18683 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
18684
18685         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
18686         tok->val.node.node.
18687
18688 2009-05-10  Jan Hubicka  <jh@suse.cz>
18689
18690         PR middle-end/40084
18691         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
18692         argument; rewrite.
18693         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
18694         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
18695         * tree-inline.c (copy_bb): Set frequency correctly.
18696         (fold_marked_statements): Update call to
18697         cgraph_update_edges_for_call_stmt.
18698
18699 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
18700
18701         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
18702         identifiers in diagnostics.
18703         * config/arm/arm.c (arm_handle_fndecl_attribute,
18704         arm_handle_isr_attribute): Likewise.
18705         * config/avr/avr.c (avr_handle_progmem_attribute,
18706         avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
18707         * config/bfin/bfin.c (handle_int_attribute,
18708         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
18709         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
18710         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
18711         Likewise.
18712         * config/darwin.c (darwin_handle_kext_attribute,
18713         darwin_handle_weak_import_attribute): Likewise.
18714         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
18715         h8300_handle_eightbit_data_attribute,
18716         h8300_handle_tiny_data_attribute): Likewise.
18717         * config/i386/i386.c (ix86_handle_cconv_attribute,
18718         ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
18719         * config/i386/winnt.c (ix86_handle_shared_attribute,
18720         ix86_handle_selectany_attribute): Likewise.
18721         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
18722         * config/m32c/m32c.c (function_vector_handler): Likewise.
18723         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
18724         m68hc11_handle_fntype_attribute): Likewise.
18725         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
18726         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
18727         * config/mips/mips.c (mips_insert_attributes,
18728         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
18729         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
18730         rs6000_handle_struct_attribute): Likewise.
18731         * config/sh/sh.c (sh_insert_attributes,
18732         sh_handle_resbank_handler_attribute,
18733         sh_handle_interrupt_handler_attribute,
18734         sh2a_handle_function_vector_handler_attribute,
18735         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
18736         Likewise.
18737         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
18738         * config/spu/spu.c (spu_handle_fndecl_attribute,
18739         spu_handle_vector_attribute): Likewise.
18740         * config/stormy16/stormy16.c
18741         (xstormy16_handle_interrupt_attribute): Likewise.
18742         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
18743         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
18744
18745 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
18746
18747         * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
18748         (pp_translate_identifiers): New.
18749         (pp_identifier): Only conditionally translate identifier to locale
18750         character set.
18751         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
18752         (pp_base_tree_identifier): Only conditionally translate identifier
18753         to locale character set.
18754         * c-pretty-print.c (M_): Define.
18755         (pp_c_type_specifier, pp_c_primary_expression): Mark English
18756         fragments for conditional translation with M_.
18757         * tree-pretty-print.c (maybe_init_pretty_print): Disable
18758         identifier translation.
18759
18760 2009-05-10  Richard Guenther  <rguenther@suse.de>
18761
18762         PR tree-optimization/40081
18763         * tree-sra.c (instantiate_element): Instantiate scalar replacements
18764         using the main variant of the element type.  Do not fiddle with
18765         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
18766
18767 2009-05-09  Jan Hubicka  <jh@suse.cz>
18768
18769         PR middle-end/40080
18770         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
18771         indirect calls; verify cgraph afterwards.
18772
18773 2009-05-09  Jan Hubicka  <jh@suse.cz>
18774
18775         PR bootstrap/40082
18776         * ipa.c (update_inlined_to_pointer): New function.
18777         (cgraph_remove_unreachable_nodes): Use it.
18778
18779 2009-05-09  Jan Hubicka  <jh@suse.cz>
18780
18781         * tree-eh.c (struct leh_state): Remove prev_try.
18782         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
18783         not track prev_try.
18784         * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
18785         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
18786         remove_eh_handler_and_replace, foreach_reachable_handler,
18787         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
18788         * except.h (struct eh_region): Remove eh_region_u_cleanup.
18789         (gen_eh_region_cleanup): Update prototype.
18790
18791 2009-05-09  Jan Hubicka  <jh@suse.cz>
18792
18793         PR middle-end/40043
18794         * except.c (copy_eh_region): Always set prev_try.
18795         (redirect_eh_edge_to_label): Find outer try.
18796         (foreach_reachable_handler): When looking for prev try
18797         handle case where previous try is not going to be taken.
18798
18799 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
18800
18801         PR tree-optimization/40049
18802         * tree-vect-stmts.c (vectorizable_operation): If the machine has
18803         only vector/vector shifts, convert the type of the constant to the
18804         appropriate type to avoid building incorrect trees, which
18805         eventually have problems with garbage collection.
18806
18807 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
18808
18809         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
18810         -1 for complex floating-point types if honoring signed zeros.
18811
18812 2009-05-08  Jan Hubicka  <jh@suse.cz>
18813
18814         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
18815         argument; handle correctly when profile is absent.
18816         (build_cgraph_edges): Update.
18817         (rebuild_cgraph_edges): Update.
18818         * cgraph.c: Do not include varray.h.
18819         (cgraph_set_call_stmt_including_clones): New function.
18820         (cgraph_create_edge_including_clones): Likewise
18821         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
18822         (cgraph_update_edges_for_call_stmt): Handle clones.
18823         (cgraph_remove_node): Handle clone tree.
18824         (cgraph_remove_node_and_inline_clones): New function.
18825         (dump_cgraph_node): Dump clone tree.
18826         (cgraph_clone_node): Handle clone tree.
18827         (clone_function_name): Bring here from tree-inline.c.
18828         (cgraph_create_virtual_clone): New function.
18829         * cgraph.h (ipa_replace_map): Move here from ipa.h.
18830         (cgraph_clone_info): New function.
18831         (strut cgraph_node): Add clone_info and new clone tree pointers.
18832         (cgraph_remove_node_and_inline_clones,
18833         cgraph_set_call_stmt_including_clones,
18834         cgraph_create_edge_including_clones,
18835         cgraph_create_virtual_clone): Declare.
18836         (cgraph_function_versioning): Use VEC argument.
18837         (compute_call_stmt_bb_frequency): Update prototype.
18838         (cgraph_materialize_all_clones): New function.
18839         * ipa-cp.c (ipcp_update_cloned_node): Remove.
18840         (ipcp_create_replace_map): Update to VECtors.
18841         (ipcp_update_callgraph): Use virtual clones.
18842         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
18843         (ipcp_update_profiling): Do not update local profiling.
18844         (ipcp_insert_stage): Use VECtors and virtual clones.
18845         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
18846         (clone_of_p): New function.
18847         (cgraph_preserve_function_body_p): Use clone tree.
18848         (cgraph_optimize): Materialize clones.
18849         (cgraph_function_versioning): Update for VECtors.
18850         (save_inline_function_body): Use clone tree.
18851         (cgraph_materialize_clone): New function.
18852         (cgraph_materialize_all_clones): Likewise.
18853         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
18854         * ipa.c: Include gimple.h.
18855         (cgraph_remove_unreachable_nodes): Use clone tree.
18856         * ipa-prop.c (ipa_note_param_call): Update call to
18857         compute_call_stmt_bb_frequencycall.
18858         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
18859         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
18860         (copy_bb): Handle updating of clone tree; add new edge when new call
18861         appears.
18862         (expand_call_inline): Be strict about every call having edge.
18863         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
18864         (delete_unreachable_blocks_update_callgraph): New function.
18865         (tree_function_versioning): Use VECtors; always remove unreachable
18866         blocks and fold conditionals.
18867         * tree-inline.h: Do not include varray.h.
18868         (tree_function_versioning): Remove.
18869         * Makefile.in (GTFILES): Remove tree-inline.c
18870         * passes.c (do_per_function): Do only functions having body.
18871         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
18872         tree.
18873
18874 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
18875             Andrew Morrow  <acm@google.com>
18876
18877         PR c/36892
18878         * c-common.c (c_common_attribute_table): Permit deprecated
18879         attribute to take an optional argument.
18880         (handle_deprecated_attribute): If the optional argument to
18881         __attribute__((deprecated)) is not a string ignore the attribute
18882         and emit a warning.
18883
18884         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
18885         * c-typeck.c (build_component_ref): Likewise.
18886         (build_external_ref): Likewise.
18887
18888         * toplev.c (warn_deprecated_use): Add an attribute argument.
18889         Emit the message associated with __attribute__((deprecated)).
18890
18891         * toplev.h (warn_deprecated_use): Updated.
18892
18893         * doc/extend.texi: Document new optional parameter to
18894         __attribute__((deprecated))
18895
18896 2009-05-08  Michael Eager <eager@eagercon.com>
18897
18898         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
18899         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
18900
18901 2009-05-08  Richard Guenther  <rguenther@suse.de>
18902
18903         PR tree-optimization/40062
18904         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
18905         Avoid exponential behavior.
18906
18907 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
18908
18909         PR rtl-optimization/33928
18910         PR 26854
18911         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
18912         process_uses, build_single_def_use_links): New.
18913         (update_df): Update use_def_ref.
18914         (forward_propagate_into): Use get_def_for_use instead of use-def
18915         chains.
18916         (fwprop_init): Call build_single_def_use_links and let it initialize
18917         dataflow.
18918         (fwprop_done): Free use_def_ref.
18919         (fwprop_addr): Eliminate duplicate call to df_set_flags.
18920         * df-problems.c (df_rd_simulate_artificial_defs_at_top,
18921         df_rd_simulate_one_insn): New.
18922         (df_rd_bb_local_compute_process_def): Update head comment.
18923         (df_chain_create_bb): Use the new RD simulation functions.
18924         * df.h (df_rd_simulate_artificial_defs_at_top,
18925         df_rd_simulate_one_insn): New.
18926         * opts.c (decode_options): Enable fwprop at -O1.
18927         * doc/invoke.texi (-fforward-propagate): Document this.
18928
18929 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
18930
18931         PR c/24581
18932         * c-typeck.c (build_binary_op): Handle arithmetic between one real
18933         and one complex operand specially.
18934         * tree-complex.c (some_nonzerop): Do not identify a real value as
18935         zero if flag_signed_zeros.
18936
18937 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
18938
18939         PR rtl-optimization/33928
18940         * loop-invariant.c (record_use): Fix && vs. || mishap.
18941
18942 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
18943
18944         PR rtl-optimization/33928
18945         * loop-invariant.c (struct use): Add addr_use_p.
18946         (struct def): Add n_addr_uses.
18947         (struct invariant): Add cheap_address.
18948         (create_new_invariant): Set cheap_address.
18949         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
18950         (record_uses): Pass df_ref to record_use.
18951         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
18952         used only as such.
18953
18954 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
18955
18956         * config/sh/sh.c: Do not include c-pragma.h.
18957
18958 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18959
18960         * config/spu/spu.c: Remove include of c-common.h.
18961
18962 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
18963
18964         PR c/39037
18965         * c-common.h (mark_valid_location_for_stdc_pragma,
18966         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
18967         clear_float_const_decimal64, float_const_decimal64_p): New.
18968         * c.opt (Wunsuffixed-float-constants): New.
18969         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
18970         unsuffixed float constant, handle new warning.
18971         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
18972         * c-decl.c (c_scope): New flag float_const_decimal64.
18973         (set_float_const_decimal64, clear_float_const_decimal64,
18974         float_const_decimal64_p): New.
18975         (push_scope): Set new flag.
18976         * c-parser.c (c_parser_translation_unit): Mark when it's valid
18977         to use STDC pragmas.
18978         (c_parser_external_declaration): Ditto.
18979         (c_parser_compound_statement_nostart): Ditto.
18980         * c-pragma.c (valid_location_for_stdc_pragma,
18981         mark_valid_location_for_stdc_pragma,
18982         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
18983         handle_pragma_float_const_decimal64): New.
18984         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
18985         * cp/semantics.c (valid_location_for_stdc_pragma_p,
18986         set_float_const_decimal64, clear_float_const_decimal64,
18987         float_const_decimal64_p): New dummy functions.
18988         * doc/extend.texi (Decimal Float): Remove statement that the
18989         pragma, and suffix for double constants, are not supported.
18990         * doc/invoke.texi (Warning Options): List new option.
18991         (-Wunsuffixed-float-constants): New.
18992
18993 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
18994
18995         * config/i386/i386.c: Do not include c-common.h.
18996
18997 2009-05-07  Mark Heffernan  <meheff@google.com>
18998
18999         * doc/invoke.texi (Debugging Options): Document change of debugging
19000         dump location.
19001         * opts.c (decode_options): Make dump_base_name relative to
19002         aux_base_name directory.
19003
19004 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
19005
19006         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
19007         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
19008
19009 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
19010
19011         * Makefile.in (install-plugin): Simplify a bit.
19012
19013 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
19014
19015         * Makefile.in (OBJS-common): Add regcprop.o.
19016         (regcprop.o): New.
19017         * timevar.def (TV_CPROP_REGISTERS): New.
19018         * regrename.c (regrename_optimize): Return 0.
19019         (rest_of_handle_regrename): Delete.
19020         (pass_rename_registers): Point to regrename_optimize.
19021         (struct value_data_entry, struct value_data,
19022         kill_value_one_regno, kill_value_regno, kill_value,
19023         set_value_regno, init_value_data, kill_clobbered_value,
19024         kill_set_value, kill_autoinc_value, copy_value,
19025         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
19026         replace_oldest_value_reg, replace_oldest_value_addr,
19027         replace_oldest_value_mem, copyprop_hardreg_forward_1,
19028         debug_value_data, validate_value_data): Move...
19029         * regcprop.c: ... here.
19030         (rest_of_handle_cprop): Delete.
19031         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
19032
19033 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
19034
19035         PR middle-end/40057
19036         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
19037         GEN_INT for 1 << bitnum.
19038         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
19039         build_int_cst_type.
19040
19041 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
19042
19043         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
19044         Remove wrong description of "nand" operation.
19045
19046 2009-05-06  Richard Guenther  <rguenther@suse.de>
19047             Adam Nemet  <anemet@caviumnetworks.com>
19048
19049         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
19050         comment.  Add that if LHS is not a gimple register, then RHS1 has
19051         to be a single object (GIMPLE_SINGLE_RHS).
19052
19053 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
19054
19055         * expr.c (get_def_for_expr): Move it up in the file.
19056         (store_field): When expanding a bit-field store, look at the
19057         defining gimple stmt for the masking conversion.
19058
19059 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
19060
19061         PR middle-end/39986
19062         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
19063         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
19064         32-bit memcpy into long.
19065
19066 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
19067
19068         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
19069         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
19070         new_reg_loc_descr.
19071         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
19072         instead of appending DW_OP_deref*.
19073
19074 2009-05-06  Michael Matz  <matz@suse.de>
19075
19076         PR middle-end/40021
19077         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
19078         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
19079
19080 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
19081
19082         * Makefile.in (install-plugin): Fix srcdir handling.
19083
19084 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
19085
19086         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
19087         when processing for not_regs_needed bitmap.
19088         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
19089         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while
19090         handling it for rhs.
19091
19092 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
19093
19094         * config/i386/i386.md (unnamed inc/dec peephole): Use
19095         optimize_insn_for_size_p instead of optimize_size.
19096         * config/i386/predicates.md (incdec_operand): Likewise.
19097         (aligned_operand): Likewise.
19098         * config/i386/sse.md (divv8sf3): Likewise.
19099         (sqrtv8sf2): Likewise.
19100
19101 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
19102
19103         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
19104
19105         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
19106
19107 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
19108
19109         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
19110         ssemodesuffixf2c with avxmodesuffixf2c.
19111
19112 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
19113
19114         PR c/40032
19115         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
19116
19117 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
19118
19119         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
19120         (struct tree_base): Adjust spacing for 8 bit boundaries.
19121         (struct tree_decl_common): Add decl_by_reference_flag bit.
19122         (DECL_BY_REFERENCE): Adjust.
19123         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
19124         print DECL_BY_REFERENCE bit.
19125         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
19126         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
19127         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
19128         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
19129         unconditionally.
19130
19131         PR middle-end/39666
19132         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
19133         range of the type, but default label is missing, add it with one
19134         of the existing labels instead of adding a new label for it.
19135
19136 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
19137
19138         * dwarf.h: Remove.
19139
19140 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
19141
19142         * Makefile.in (enable_plugin, plugin_includedir): New.
19143         (install): Depend on install-plugin.
19144         (PLUGIN_HEADERS): New.
19145         (install-plugin): New.
19146         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
19147
19148 2009-05-05  Richard Guenther  <rguenther@suse.de>
19149
19150         PR tree-optimization/40022
19151         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
19152         the only vuse.
19153         (phivn_valid_p): Fix tuplification error, simplify.
19154         (phiprop_insert_phi): Add dumps.
19155         (propagate_with_phi): Simplify.
19156
19157 2009-05-05  Richard Guenther  <rguenther@suse.de>
19158
19159         PR middle-end/40023
19160         * builtins.c (gimplify_va_arg_expr): Properly build the address.
19161
19162 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
19163
19164         * tree.h (strip_float_extensions): Remove duplicate declaration.
19165         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
19166         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
19167         block_ultimate_origin): Rearrange the declarations line to match the
19168         comment that indicates the .c file which the functions are defined.
19169         (dwarf2out_*, set_decl_rtl): Add comment.
19170         (get_base_address): Adjust comment.
19171         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
19172         declarations line and add comment.
19173         (is_builtin_name): Add blank after function name, for clarity.
19174
19175 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
19176
19177         * attribs.c (decl_attributes): Use %qE for identifiers in
19178         diagnostics.
19179         * cgraphunit.c (verify_cgraph_node): Translate function names to
19180         locale character set in diagnostics.
19181         * coverage.c (get_coverage_counts): Use %qE for identifiers in
19182         diagnostics.
19183         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
19184         Document that functions are named in UTF-8.
19185         * expr.c (expand_expr_real_1): Translate function names to locale
19186         character set in diagnostics.
19187         * gimplify.c (omp_notice_variable, omp_is_private,
19188         gimplify_scan_omp_clauses): Use %qE for identifiers in
19189         diagnostics.
19190         * langhooks.c (lhd_print_error_function): Translate function names
19191         to locale character set.
19192         * langhooks.h (decl_printable_name): Document that return value is
19193         in internal character set.
19194         * stmt.c: Include pretty-print.h
19195         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
19196         diagnostics.
19197         (resolve_operand_name_1): Translate named operand name to locale
19198         character set.
19199         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
19200         diagnostics.
19201         * toplev.c (announce_function): Translate function names to locale
19202         character set.
19203         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
19204         (default_tree_printer): Use pp_identifier or translate identifiers
19205         to locale character set.  Mark "<anonymous>" for translation.
19206         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
19207         for identifiers in diagnostics.
19208         * tree.c (handle_dll_attribute): Use %qE for identifiers in
19209         diagnostics.
19210         * varasm.c (output_constructor): Use %qE for identifiers in
19211         diagnostics.
19212
19213 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
19214
19215         * configure.ac: use ` ` instead of $()
19216         * configure: Regenerate.
19217
19218 2009-05-05  Ben Elliston  <bje@au.ibm.com>
19219
19220         * config/pa/linux-atomic.c: Eliminate conditional include of
19221         errno.h on non-LP64 systems to simplify build requirements.
19222
19223 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
19224
19225         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
19226         diagnostics.
19227         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
19228         and pass value to identifier_to_locale.
19229         (warn_variable_length_array): Make name a tree.
19230         (grokdeclarator): Separate diagnostic texts for named and unnamed
19231         declarators.  Use %qE for named declarators.
19232         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
19233         diagnostics.
19234         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
19235         identifiers in diagnostics.
19236         * c-typeck.c (push_member_name, start_init): Pass identifiers to
19237         identifier_to_locale.  Mark "anonymous" strings for translation.
19238
19239 2009-05-04  Michael Eager <eager@eagercon.com>
19240
19241         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
19242         address for DImode/DFmode only if double-precision FP regs.
19243
19244 2009-05-04  Michael Eager <eager@eagercon.com>
19245
19246         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
19247         TARGET_SINGLE_FLOAT check.
19248
19249 2009-05-04  Michael Eager <eager@eagercon.com>
19250
19251         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
19252
19253 2009-05-04  Michael Eager <eager@eagercon.com>
19254
19255         * gcc/config.gcc (powerpc-xilinx-eabi*): Add tm t-xilinx
19256         * config/rs6000/t-xilinx: New
19257
19258 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
19259
19260         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
19261         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
19262         * gcc/explow.c (memory_address): Use target hook.
19263         * gcc/targhooks.c (default_legitimize_address): New.
19264         * gcc/targhooks.h (default_legitimize_address): New.
19265         * gcc/target.h (legitimize_address): New.
19266         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
19267         (TARGET_INITIALIZER): Include it.
19268         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
19269
19270         * config/bfin/bfin-protos.h (legitimize_address): Remove.
19271         * config/bfin/bfin.c (legitimize_address): Remove.
19272         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
19273         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
19274         Remove.
19275         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
19276         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
19277
19278         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
19279         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
19280         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
19281         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
19282         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
19283         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
19284         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
19285         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
19286         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
19287         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
19288         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
19289         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
19290         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
19291         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
19292         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
19293         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
19294         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
19295         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
19296         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
19297         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
19298         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
19299         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
19300         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
19301
19302         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
19303         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
19304         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
19305         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
19306         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
19307         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
19308         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
19309         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
19310         (thumb_legitimize_address): Delete.
19311         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
19312         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
19313         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
19314         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
19315         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
19316         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
19317         Delete.
19318         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
19319         Delete.
19320
19321         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
19322         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
19323         * config/m32r/m32r.c (m32r_legitimize_address): New.
19324         * config/m68k/m68k.c (m68k_legitimize_address): New.
19325         * config/score/score.c (score_legitimize_address): Standardize.
19326         * config/score/score3.c (score3_legitimize_address): Standardize.
19327         * config/score/score3.h (score3_legitimize_address): Adjust.
19328         * config/score/score7.c (score7_legitimize_address): Standardize.
19329         * config/score/score7.h (score7_legitimize_address): Adjust.
19330         * config/sh/sh.c (sh_legitimize_address): New.
19331         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
19332
19333         * gcc/config/s390/s390.c (legitimize_address): Rename to...
19334         (s390_legitimize_address): ... this.
19335         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
19336         (sparc_legitimize_address): ... this.
19337         * gcc/config/i386/i386.c (legitimize_address): Rename to...
19338         (ix86_legitimize_address): ... this.
19339         * gcc/config/avr/avr.c (legitimize_address): Rename to...
19340         (avr_legitimize_address): ... this.
19341         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
19342         (mn10300_legitimize_address): ... this.
19343         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
19344         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
19345         (alpha_expand_mov): Adjust call.
19346
19347         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
19348         * config/spu/spu.c (spu_legitimize_address): Likewise.
19349         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
19350         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
19351
19352 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
19353
19354         * intl.c (locale_encoding, locale_utf8): New.
19355         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
19356         * intl.h (locale_encoding, locale_utf8): Declare.
19357         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
19358         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
19359         New.
19360         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
19361         argument.
19362         (pp_tree_identifier): Define to call pp_base_tree_identifier.
19363         (pp_base_tree_identifier): Declare as function.
19364         (identifier_to_locale): Declare.
19365         * Makefile.in (pretty-print.o): Update dependencies.
19366         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
19367
19368 2009-05-04  Richard Guenther  <rguenther@suse.de>
19369
19370         PR middle-end/40015
19371         * builtins.c (fold_builtin_memory_op): Do not decay to element
19372         type if the size matches the whole array.
19373
19374 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
19375
19376         * expmed.c (synth_mult): When trying out a shift, pass the result
19377         of a signed shift.
19378
19379 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
19380
19381         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
19382         (shiftsub1_cost): New.
19383         (init_expmed): Compute shiftsub1_cost.
19384         (synth_mult): Optimize multiplications by constants of the form
19385         -(2^^m-1) for some constant positive integer m.
19386
19387 2009-05-03  Richard Guenther  <rguenther@suse.de>
19388
19389         PR c/39983
19390         * c-typeck.c (array_to_pointer_conversion): Do not built
19391         ADDR_EXPRs of arrays of pointer-to-element type.
19392         * c-gimplify.c (c_gimplify_expr): Revert change fixing
19393         up wrong ADDR_EXPRs after-the-fact.
19394         * c-common.c (strict_aliasing_warning): Strip pointer
19395         conversions for obtaining the original type.
19396         * builtins.c (fold_builtin_memset): Handle array types.
19397         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
19398         and array types
19399
19400 2009-05-03  Richard Guenther  <rguenther@suse.de>
19401
19402         PR middle-end/23329
19403         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
19404         Do not lose casts from array types with unknown extent to array
19405         types with known extent.
19406         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
19407         alias set compatibility.
19408
19409 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19410
19411         * flags.h (extra_warnings): Delete.
19412         * toplev.c (process_options): Handle Wuninitialized here.
19413         * opts.c (extra_warnings): Delete.
19414         (set_Wextra): Delete.
19415         (common_handle_option): -Wextra can be handled automatically.
19416         * c-opts.c (c_common_handle_option): Delete obsolete code.
19417         (c_common_post_options): Simplify comment.
19418         * common.opt (W): Add Var.
19419         (Wextra): Add Var.
19420         (Wuninitialized): Initialize to -1.
19421
19422 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
19423             Richard Guenther  <rguenther@suse.de>
19424
19425         * expr.c (get_def_for_expr): New function.
19426         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
19427         SSA rather than trees.
19428         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
19429         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
19430
19431 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
19432
19433         * c-common.c (reswords): Add _Imaginary.
19434         * c-common.c (enum rid): Add RID_IMAGINARY.
19435
19436 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
19437
19438         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
19439         Patch by Richard Guenther.
19440
19441 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
19442
19443         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
19444         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
19445         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
19446         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
19447         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
19448         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
19449         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
19450         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
19451         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
19452         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
19453         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
19454         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
19455         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
19456         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
19457         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
19458         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
19459         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
19460         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
19461
19462 2009-05-02  Richard Guenther  <rguenther@suse.de>
19463
19464         PR tree-optimization/39940
19465         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
19466         doing so.
19467
19468 2009-05-02  Richard Guenther  <rguenther@suse.de>
19469
19470         PR middle-end/40001
19471         * tree-ssa.c (execute_update_addresses_taken): Properly check
19472         if we can mark a variable DECL_GIMPLE_REG_P.
19473         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
19474         back to the end of the function.
19475         (is_gimple_reg_type): Remove complex type special casing.
19476         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
19477         if not optimizing.
19478
19479 2009-05-02  Ben Elliston  <bje@au.ibm.com>
19480
19481         * doc/collect2.texi (Collect2): Document search path behaviour
19482         when configured with --with-ld.
19483
19484 2009-05-02  Jan Hubicka  <jh@suse.cz>
19485
19486         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
19487         parameter; update callers.
19488         (coalesce_cost_edge): EH edges are costier because they needs
19489         splitting even if not critical and even more costier when there are
19490         multiple EH predecestors.
19491
19492 2009-05-02  Jan Hubicka  <jh@suse.cz>
19493
19494         * except.c (remove_eh_handler_and_replace): Handle updating after
19495         removing TRY blocks.
19496
19497 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
19498
19499         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
19500
19501 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
19502
19503         * varasm.c: Do not include c-pragma.h.
19504         * attribs.c: Do not incude c-common.h.
19505
19506 2009-05-01  Michael Matz  <matz@suse.de>
19507
19508         * calls.c (initialize_argument_information): Handle SSA names like
19509         decls with a non MEM_P DECL_RTL.
19510
19511 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
19512
19513         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
19514         * ipa-utils.c: Likewise.
19515         * ipa-type-escape.c: Likewise.
19516         * cgraphunit.c Do not include c-common.h.
19517         * ipa-pure-const.c: Likewise.
19518         * tree-if-conv.c: Likewise.
19519         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
19520         * ipa-struct-reorg.c: Likewise.
19521         * tree-nomudflap.c: Likewise.
19522         * tree-ssa-structalias.c: Likewise.
19523
19524 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
19525
19526         * store-motion.c: Many cleanups to make this pass a first-class
19527         citizen instead of an appendix to gcse load motion.  Add TODO list
19528         to make this pass faster/cleaner/better.
19529
19530         (struct ls_expr): Post gcse.c-split cleanups.
19531         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
19532         "stores" field to "avail_stores".
19533         (pre_ldst_mems): Rename to store_motion_mems.
19534         (pre_ldst_table): Rename to store_motion_mems_table.
19535         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
19536         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
19537         (ldst_entry): Rename to st_expr_entry, update users.
19538         (free_ldst_entry): Rename to free_st_expr_entry, update users.
19539         (free_ldst_mems): Rename to free_store_motion_mems, update users.
19540         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
19541         update caller.
19542         (first_ls_expr): Rename to first_st_expr, update users.
19543         (next_ls_expr): Rename to next_st_expr, update users.
19544         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
19545         fields properly for store motion instead of names inherited from load
19546         motion in gcse.c.
19547         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
19548         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
19549         are done with it.
19550
19551         (ae_kill): Rename to st_kill, update users.
19552         (ae_gen): Rename to st_avloc, update users.
19553         (transp): Rename to st_transp, update users.
19554         (pre_insert_map): Rename to st_insert_map, update users.
19555         (pre_delete_map): Rename to st_delete_map, update users.
19556         (insert_store, build_store_vectors, free_store_memory,
19557         one_store_motion_pass): Update for abovementioned changes.
19558
19559         (gcse_subst_count, gcse_create_count): Remove.
19560         (one_store_motion_pass): New statistics counters "n_stores_deleted"
19561         and "n_stores_created", local variables.
19562
19563         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
19564         use for_each_rtx.
19565
19566         (regvec, compute_store_table_current_insn): Remove.
19567         (reg_set_info, reg_clear_last_set): Remove.
19568         (compute_store_table): Use DF caches instead of local dataflow
19569         solvers.
19570
19571 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
19572
19573         * c-objc-common.c (c_tree_printer): Print identifiers with
19574         pp_identifier, not pp_string.  Mark "({anonymous})" for
19575         translation.
19576         * c-pretty-print.c (pp_c_ws_string): New.
19577         (pp_c_cv_qualifier, pp_c_type_specifier,
19578         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
19579         pp_c_storage_class_specifier, pp_c_function_specifier,
19580         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
19581         pp_c_primary_expression, pp_c_postfix_expression,
19582         pp_c_unary_expression, pp_c_shift_expression,
19583         pp_c_relational_expression, pp_c_equality_expression,
19584         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
19585         use pp_string and pp_c_ws_string in place of pp_identifier and
19586         pp_c_identifier for non-identifiers.  Mark English strings for
19587         translation.
19588         * c-pretty-print.h (pp_c_ws_string): Declare.
19589
19590 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
19591             Roland McGrath <roland@redhat.com>
19592
19593         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
19594         (ENABLE_LD_BUILDID): New configuration option.
19595         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
19596         (LINK_BUILDID_SPEC): New macro.
19597         (init_spec): If defined, prepend it between LINK_EH_SPEC and
19598         link_spec.
19599         * doc/install.texi: Document --enable-linker-build-id option.
19600         * configure: Rebuild.
19601         * config.in: Rebuild.
19602
19603 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
19604
19605         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
19606         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
19607         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
19608         MIPS_GP_SAVE_AREA_SIZE.
19609         * config/mips/mips.c (struct mips_frame_info): Update comment
19610         before arg_pointer_offset and hard_frame_pointer_offset.
19611         (mips_compute_frame_info): Update diagram before function: to
19612         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
19613         indicate the position of frame_pointer_rtx with -fstack-protector and
19614         to show args_size.  Don't allocate cprestore area for leaf functions
19615         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
19616         cprestore_size.
19617         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
19618
19619 2009-04-30  Michael Matz  <matz@suse.de>
19620
19621         PR tree-optimization/39955
19622         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
19623
19624 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
19625
19626         * ira.c (setup_cover_and_important_classes):  Use safe macro
19627         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
19628         directly.
19629         * genpreds.c (write_tm_preds_h):  Output suitable definition of
19630         REG_CLASS_FOR_CONSTRAINT.
19631
19632 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
19633
19634         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
19635         instead of an int.
19636         * bitmap.c (bitmap_descriptor): Likewise.
19637         * ggc-common.c (loc_descriptor): Likewise.
19638         * varray.c (varray_descriptor): Likewise.
19639         * vec.c (vec_descriptor): Likewise.
19640
19641 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
19642
19643         * Makefile.in (dce.o): Add $(EXCEPT_H).
19644         * dce.c: Include except.h and delete redundant vector definitions.
19645         (deletable_insn_p): Return false for non-call insns that can throw
19646         if DF is running.
19647
19648 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
19649
19650         * gcse.c (ae_gen): Remove.
19651         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
19652         and make non-static function to make it available in store-motion.c.
19653         Update call sites with search-and-replace.
19654         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
19655         extract_mentioned_regs, extract_mentioned_regs_helper,
19656         find_moveable_store, compute_store_table, load_kills_store, find_loads,
19657         store_killed_in_insn, store_killed_after, store_killed_before,
19658         build_store_vectors, insert_insn_start_basic_block, insert-store,
19659         remove_reachable_equiv_notes, replace_store_insn, delete_store,
19660         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
19661         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
19662         * store-motion.c: ...new file.  Also copy data structures from gcse.c
19663         and clean up to remove parts not used by store motion.
19664         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
19665         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
19666
19667 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19668
19669         PR target/38571
19670         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
19671         when optimizing for size.
19672
19673 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
19674
19675         * gcse.c (gcse_constant_p): Fix typo in last change.
19676
19677 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
19678
19679         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
19680
19681 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
19682
19683         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
19684
19685 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
19686
19687         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
19688         CONST_HIGH_PART result.
19689
19690 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
19691
19692         * config/avr/avr.c (initial_elimination_offset): Rename to
19693         avr_initial_elimination_offset.
19694         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
19695         change return type to bool.
19696         (avr_can_eliminate): New function.
19697         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
19698         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
19699         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
19700         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
19701         avr_initial_elimination_offset.
19702         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
19703         (avr_initial_elimination_offset): Define.
19704
19705 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
19706             Steven Bosscher  <steven@gcc.gnu.org>
19707
19708         PR rtl-optimization/39938
19709         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
19710         * cfgrtl.c: Include insn-attr.h.
19711         (rest_of_pass_free_cfg): New function.
19712         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
19713         * resource.c (init_resource_info): Remove call to df_analyze.
19714
19715 2009-04-29  Richard Guenther  <rguenther@suse.de>
19716
19717         PR target/39943
19718         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
19719         allow conversion to signed integers.
19720
19721 2009-04-29  Richard Guenther  <rguenther@suse.de>
19722
19723         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
19724         shifts of floating point vectors if the shift amount is
19725         a constant multiple of the element size.
19726
19727 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
19728             Michael Matz  <matz@suse.de>
19729
19730         PR middle-end/39927
19731         PR bootstrap/39929
19732         * tree-outof-ssa.c (emit_partition_copy): New function.
19733         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
19734         insert_part_to_rtx_on_edge): Perform the partition base var
19735         copy using emit_partition_copy.
19736         (insert_value_copy_on_edge): Convert constants to the right mode.
19737         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
19738         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
19739
19740 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
19741
19742         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
19743         scan backwards to try to find a constant to initialize it.
19744
19745         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
19746         insn before the loop_end instruction, don't look past labels.
19747
19748 2009-04-29  Richard Guenther  <rguenther@suse.de>
19749
19750         PR middle-end/39937
19751         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
19752         loose type conversions.
19753         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
19754         stmts only if there are no uses of its definition.
19755
19756 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
19757
19758         * config/bfin/bfin.h (splitting_loops): Declare.
19759         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
19760         Reorder bit definitions to be ascending.
19761         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
19762         * config/bfin/bfin.c (splitting_loops): New variable.
19763         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
19764         (struct loop_info): Remove members INIT and LOOP_INIT.
19765         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
19766         the LSETUP sequence.  Allow LC to be loaded from any register, but
19767         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
19768         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
19769         set to 1.
19770         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
19771         of reload_completed.
19772
19773         From Jie Zhang:
19774         * config/bfin/bfin.md (movsi_insn): Refine constraints.
19775
19776 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
19777
19778         * Makefile.in (PLUGIN_VERSION_H): New.
19779         (OBJS-common): Remove plugin-version.o.
19780         (plugin.o): Depend on (PLUGIN_VERSION_H).
19781         (plugin-version.o): Remove.
19782         * configure: Regenerate
19783         * configure.ac: Create plugin-version.h.
19784         * gcc-plugin.h (plugin_gcc_version): Remove.
19785         (plugin_default_version_check): Change signature.
19786         * plugin-version.c: Remove.
19787         * plugin.c: Include plugin-version.h.
19788         (str_plugin_gcc_version_name): Remove.
19789         (try_init_one_plugin): Pass gcc version to plugin_init.
19790         (plugin_default_version_check): Both gcc and plugin versions are now
19791         arguments.
19792
19793 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
19794
19795         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
19796         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
19797         Remove special case testing for last insn of inner loops. Don't fail
19798         if the loop ends with a jump, emit an extra nop instead.
19799
19800         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
19801         DREGS rather than comparing directly.  Remove code that tries to
19802         account for latencies.
19803
19804 2009-04-29  Richard Guenther  <rguenther@suse.de>
19805
19806         PR tree-optimization/39941
19807         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
19808         eliminating an indirect call.
19809
19810 2009-04-29  Richard Guenther  <rguenther@suse.de>
19811
19812         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
19813         parameter.  Allow invariants as base if !require_lvalue.
19814         (verify_gimple_assign_single): Adjust.
19815
19816 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
19817
19818         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
19819         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
19820         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
19821         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
19822         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
19823         a VEC_SELECT.
19824         * config/bfin/bfin.c (bfin_expand_builtin,
19825         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
19826
19827 2009-04-28  Richard Guenther  <rguenther@suse.de>
19828
19829         * tree-vect-loop.c (get_initial_def_for_induction): Use
19830         correct types for pointer increment.
19831
19832 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19833
19834         * toplev.c (print_version): Update GMP version string calculation.
19835
19836 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
19837
19838         PR rtl-optimization/39938
19839         * resource.c (init_resource_info): Add call to df_analyze.
19840
19841 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
19842
19843         * config/alpha/alpha.md (usegp): Cast the result of
19844         alpha_find_lo_sum_using_gp to enum attr_usegp.
19845         * config/alpha/alpha.c (override_options): Remove end-of-structure
19846         marker element from cpu_table.  Use array size of cpu_table to handle
19847         -mcpu and -mtune options.
19848         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
19849
19850 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
19851
19852         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
19853         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
19854         tune_32 and tune_64.
19855         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
19856         support on PowerPC.
19857         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
19858         * config/rs6000/option-defaults.h: ... here.  New file.
19859         (OPT_64, OPT_32): Define.
19860         (MASK_64BIT): Define to 0 if not already defined.
19861         (OPT_ARCH64, OPT_ARCH32): Define.
19862         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
19863         and tune_64.
19864
19865 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19866
19867         * config/arm/arm.c (arm_override_options): Emit error on using
19868         fpa with AAPCS.
19869
19870 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
19871
19872         PR rtl-optimization/39914
19873         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
19874         registers for allocnos created from user-defined variables only
19875         when not optimizing.
19876
19877 2009-04-28  Richard Guenther  <rguenther@suse.de>
19878
19879         PR middle-end/39937
19880         * fold-const.c (fold_binary): Use distribute_real_division only
19881         on float types.
19882
19883 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
19884
19885         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
19886         add hpux-stdint.h to tm_file.
19887         (hppa[12]*-*-hpux11*): Ditto.
19888         (ia64*-*-hpux*): Ditto.
19889         * config/hpux-stdint.h: New.
19890         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
19891         __STDC_EXT__ for all compiles.
19892         * config/pa/pa-hpux.h: Ditto.
19893         * config/pa/pa-hpux10.h: Ditto.
19894         * config/pa/pa-hpux11.h: Ditto.
19895
19896 2009-04-28  Catherine Moore  <clm@codesourcery.com>
19897
19898         * debug.h (set_name): Add comment.
19899
19900 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
19901
19902         PR target/39929
19903         * config/darwin.c (machopic_gen_offset): Check
19904         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
19905         * config/arm/arm.c (require_pic_register): Likewise.
19906
19907 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
19908
19909         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
19910         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
19911         m32c_promote_prototypes): Delete.
19912
19913 2009-04-28  Michael Matz  <matz@suse.de>
19914
19915         PR middle-end/39922
19916         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
19917         constants.
19918
19919 2009-04-28  Richard Guenther  <rguenther@suse.de>
19920
19921         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
19922
19923 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19924
19925         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
19926         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
19927         * config/arm/arm-tune.md: Regenerate.
19928
19929 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
19930
19931         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
19932         block if there are complex incoming edges.
19933         (sel_merge_blocks): Remove useless assert.
19934         (sel_redirect_edge_and_branch): Check that edge was redirected.
19935         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
19936         (sel_find_rgns): Delete declaration.
19937         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
19938         the region when it is not a preheader.
19939
19940 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
19941
19942         PR c/39323
19943         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
19944
19945 2009-04-28  Richard Guenther  <rguenther@suse.de>
19946
19947         * tree.h (SSA_NAME_VALUE): Remove.
19948         (struct tree_ssa_name): Remove value_handle member.
19949         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
19950         array for jump threading.
19951         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
19952         SSA_NAME_VALUEs.
19953         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
19954         * tree-flow.h (threadedge_initialize_values): Declare.
19955         (threadedge_finalize_values): Likewise.
19956         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
19957         (SSA_NAME_VALUE): Define.
19958         (threadedge_initialize_values): New function.
19959         (threadedge_finalize_values): Likewise.
19960         * tree-ssa-dom.c (ssa_name_values): New global variable.
19961         (SSA_NAME_VALUE): Define.
19962         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
19963
19964 2009-04-28  Ira Rosen  <irar@il.ibm.com>
19965
19966         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
19967         Use REPORT_VECTORIZED_LOCATIONS instead
19968         REPORT_VECTORIZED_LOOPS.
19969         * tree-vectorizer.c (vect_verbosity_level): Make static.
19970         (vect_loop_location): Rename to vect_location.
19971         (vect_set_verbosity_level): Update comment.
19972         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
19973         and vect_location.
19974         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
19975         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
19976         instead REPORT_UNVECTORIZED_LOOPS.
19977         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
19978         and vect_loop_def to vect_external_def and vect_internal_def.
19979         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
19980         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
19981         REPORT_UNVECTORIZED_LOCATIONS.
19982         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
19983         and vect_used_in_loop and to vect_unused_in_scope and
19984         vect_used_in_scope.
19985         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
19986         (vect_verbosity_level): Remove declaration.
19987         (vect_analyze_operations): Likewise.
19988         (vect_analyze_stmt): Declare.
19989         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
19990         REPORT_UNVECTORIZED_LOCATIONS.
19991         (vect_get_loop_niters): Fix indentation.
19992         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
19993         (vect_analyze_loop_operations): New function.
19994         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
19995         vect_analyze_operations.
19996         (vect_is_simple_reduction): Use new names.
19997         (vectorizable_live_operation, vect_transform_loop): Likewise.
19998         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
19999         to specify whether the data references can be a part of interleaving
20000         chain.
20001         (vect_analyze_data_ref_dependence): Use new names.
20002         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
20003         (vect_create_addr_base_for_vector_ref): Remove redundant code.
20004         * tree-vect-patterns.c (widened_name_p): Use new names.
20005         (vect_recog_dot_prod_pattern): Likewise.
20006         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
20007         (process_use, vect_mark_stmts_to_be_vectorized,
20008         vect_model_simple_cost, vect_model_store_cost,
20009         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
20010         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
20011         vectorizable_operation, vectorizable_type_demotion,
20012         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
20013         vectorizable_condition): Likewise.
20014         (vect_analyze_operations): Split into vect_analyze_loop_operations
20015         and ...
20016         (vect_analyze_stmt): ... new function.
20017         (new_stmt_vec_info): Use new names.
20018         (vect_is_simple_use): Use new names and fix comment.
20019         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
20020         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
20021
20022 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
20023
20024         PR target/39911
20025         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
20026         and integer modes for x87 operands.  Do not ICE for unsupported size,
20027         generate error instead.  Generate error for unsupported operand types.
20028         ['z']: Do not handle HImode memory operands specially.  Warning
20029         for floating-point operands.  Fallthru to 'Z' for unsupported operand
20030         types.  Do not ICE for unsupported size, generate error instead.
20031         (output_387_binary_op): Use %Z to output operands.
20032         (output_fp_compare): Ditto.
20033         (output_387_reg_move): Ditto.
20034
20035 2009-04-28  Ben Elliston  <bje@au.ibm.com>
20036
20037         PR c++/35652
20038         Revert:
20039
20040         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20041
20042         * builtins.c (c_strlen): Do not warn here.
20043         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
20044         * c-common.c (pointer_int_sum): Take an explicit location.
20045         Warn about offsets out of bounds.
20046         * c-common.h (pointer_int_sum): Adjust declaration.
20047
20048 2009-04-27  Ian Lance Taylor  <iant@google.com>
20049
20050         * collect2.c (is_ctor_dtor): Change type of ret field in struct
20051         names to symkind.
20052         * dce.c (run_fast_df_dce): Change type of old_flags to int.
20053         * df-core.c (df_set_flags): Change return type to int.  Change
20054         type of old_flags to int.
20055         (df_clear_flags): Likewise.
20056         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
20057         (df_get_conditional_uses): Likewise.
20058         * df.h (df_set_flags, df_clear_flags): Update declarations.
20059         * dwarf2out.c (struct indirect_string_node): Change type of form
20060         field to enum dwarf_form.
20061         (AT_string_form): Change return type to enum dwarf_form.
20062         * fixed-value.c (fixed_compare): Add cast to enum type.
20063         * fwprop.c (update_df): Change 0 to VOIDmode.
20064         * gensupport.c: Change 0 to UNKNOWN.
20065         * gimple.h (gimple_cond_code): Add cast to enum type.
20066         * haifa-sched.c (reemit_notes): Add cast to enum type.
20067         * hooks.c (hook_int_void_no_regs): Remove function.
20068         * hooks.h (hook_int_void_no_regs): Remove declaration.
20069         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
20070         * predict.c (combine_predictions_for_insn): Add casts to enum type.
20071         * real.c (real_arithmetic): Add cast to enum type.
20072         (real_compare): Likewise.
20073         * target.h (struct gcc_target): Change return type of
20074         branch_target_register_class to enum reg_class.
20075         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
20076         default_branch_target_register_class.
20077         * targhooks.c (default_branch_target_register_class): New function.
20078         * targhooks.h (default_branch_target_register_class): Declare.
20079         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
20080         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
20081         cast to int.
20082         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
20083         ERROR_MARK.
20084         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
20085         vect_uninitialized_def.  Change 0 to ERROR_MARK.
20086         * tree-vect-stmts.c (supportable_widening_operation): Don't
20087         initialize icode1 and icode2.
20088         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
20089         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
20090         and to STD_C89.
20091         (cmn_err_flag_specs): Change 0 to STD_C89.
20092         (cmn_err_char_table): Likewise.
20093         * config/arm/arm.c (get_arm_condition_code): Change type of code
20094         to enum arm_cond_code.
20095         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
20096         (IWMMXT_BUILTIN2): Likewise.
20097         (neon_builtin_type_bits): Don't define typedef.
20098         (neon_builtin_datum): Change type of bits field to int.
20099         (arm_expand_neon_args): Add cast to enum type.
20100         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
20101         TLS_MODEL_NONE.
20102         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
20103         casts to enum type.
20104         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
20105         MIPS_FP_COND_f.
20106         * config/mips/mips.md (jal_macro): Return enum constant.
20107         (single_insn): Likewise.
20108         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
20109         CODE_FOR_nothing.
20110         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20111         casts to enum type.
20112         * config/s390/s390.c (s390_tune_flags): Change type to int.
20113         (s390_arch_flags): Likewise.
20114         (s390_handle_arch_option): Change flags field of struct pta to int.
20115         * config/s390/s390.h (s390_tune_flags): Update declaration.
20116         (s390_arch_flags): Likewise.
20117         * config/sh/sh.c (prepare_move_operands): Compare
20118         tls_symbolic_operand result with enum constant.
20119         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
20120         (sh_expand_prologue): Add cast to enum type.
20121         (sh_expand_epilogue): Likewise.
20122         (tls_symbolic_operand): Change return type to enum tls_model.
20123         (fpscr_set_from_mem): Add cast to enum type.
20124         (legitimize_pic_address): Compare tls_symbolic_operand result with
20125         enum constant.
20126         (sh_target_reg_class): Change return type to enum reg_class.
20127         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
20128         PROCESSOR_xxx.
20129         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
20130         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
20131         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
20132         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
20133         (delayed_branch, tls_call_delay): Likewise.
20134         (eligible_for_sibcall_delay): Likewise.
20135         (eligible_for_return_delay): Likewise.
20136         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
20137         (spu_expand_builtin_1): Likewise.
20138
20139         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
20140         for all types of conversions.
20141         (output_init_element): Issue -Wc++-compat warning if needed when
20142         initializing a bitfield with enum type.
20143         * c-parser.c (c_parser_expression): Set original_type to
20144         original_type of right hand operand of comma operator.
20145
20146 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20147
20148         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
20149         grammar nits.
20150         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
20151         * doc/cpp.texi (Standard Predefined Macros)
20152         (Implementation-defined behavior): Likewise.
20153         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
20154         * doc/gimple.texi (GIMPLE Exception Handling)
20155         (@code{GIMPLE_ASSIGN}): Likewise.
20156         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
20157         * doc/invoke.texi (Warning Options, Optimize Options)
20158         (AVR Options, Darwin Options): Likewise.
20159         (Optimize Options): Reformulate -fwhole-program description.
20160         * doc/loop.texi (Lambda): Likewise.
20161         * doc/md.texi (Output Template, Define Constraints)
20162         (Standard Names, Insn Splitting): Likewise.
20163         * doc/options.texi (Option properties): Likewise.
20164         * doc/passes.texi (Tree-SSA passes): Likewise.
20165         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
20166         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
20167         (File Names and DBX): Likewise.
20168         * doc/trouble.texi (Incompatibilities): Likewise.
20169
20170 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
20171
20172         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
20173         instruction is correct.
20174
20175 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
20176
20177         Allow non-constant arguments to conversion intrinsics.
20178         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
20179         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
20180         * spu.c (print_operand): Handle 'v' and 'w'.
20181         (exp2_immediate_p, spu_gen_exp2): Define.
20182         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
20183         spu_convtf_1): Update parameter descriptions.
20184         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
20185         * constraints.md ('v', 'w'): New.
20186         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
20187         Remove.
20188         (i2f, I2F): New define_mode_attr.
20189         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
20190         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
20191         fixuns_truncv4sfv4si2):  Update to use mode attribute.
20192         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
20193         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
20194         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
20195         patterns for combine.
20196
20197 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
20198
20199         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
20200         (cprop, hoist, pre, store_motion): New debug counters.
20201         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
20202         is not an RTL pass anymore.
20203         (pass_profiling): Remove extern decl for pass removed in 2005.
20204         (pass_gcse, pass_jump_bypass): Remove.
20205         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
20206         to 0 for clean state.
20207         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
20208         * cse.c (gate_handle_cse_after_global_opts,
20209         rest_of_handle_cse_after_global_opts): New functions.
20210         (pass_cse_after_global_opts): New pass, does local CSE.
20211         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
20212         (TV_CPROP): New timevar.
20213         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
20214         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
20215         (gcse_main, recompute_all_luids): Remove.
20216         (compute_hash_table_work): Call max_reg_num instead of reading
20217         max_gcse_regno.
20218         (cprop_jump): Don't set run_jump_opt_after_gcse.
20219         (constprop_register): Always allow to alter jumps.
20220         (cprop_insn): Likewise.
20221         (do_local_cprop): Likewise.
20222         (local_cprop_pass): Likewise.  Return non-zero if something changed.
20223         (cprop): Remove function, fold interesting bits into one_cprop_pass.
20224         (find_implicit_sets): Add note about missed optimization opportunity.
20225         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
20226         pass_rtl_cprop execute function.
20227         Don't bother tracking the pass number, each pass gets its own dumpfile
20228         now anyway.
20229         Always allow to alter jumpsand bypass jumps.
20230         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
20231         will just find no suitable set.
20232         (pre_edge_insert): Fix dumping, this function is for PRE only.
20233         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
20234         pass_rtl_pre execute function.
20235         (hoist_code): Return non-zero if something changed.  Keep track of
20236         substitutions and insertions for statistics gathering similar to PRE.
20237         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
20238         called from the pass_rtl_hoist execute function.  Show pass statistics.
20239         (compute_store_table): Use max_reg_num directly instead of using the
20240         formerly global max_gcse_regno.
20241         (build_store_vectors): Likewise.
20242         (replace_store_insn): Fix dumping.
20243         (store_motion): Rename to ...
20244         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
20245         pass, called from the pass_rtl_store_motion execute function.  Keep
20246         track of substitutions and insertions for statistics gathering similar
20247         to PRE.
20248         (bypass_jumps): Remove, fold interesting bits into ...
20249         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
20250         from the pass_rtl_cprop execute function.
20251         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
20252         pass_jump_bypass): Remove.
20253         (gate_handle_gcse, rest_of_handle_gcse): Remove.
20254         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
20255         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
20256         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
20257         (gate_rtl_store_motion, execute_rtl_store_motion,
20258         pass_rtl_store_motion): New.
20259         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
20260         make it clear that -fcse-skip-blocks is a no-op for backward compat.
20261         * passes.c (init_optimization_passes): Remove pass_gcse and
20262         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
20263         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
20264         instead of pass_jump_bypass.
20265
20266 2009-04-27  Richard Guenther  <rguenther@suse.de>
20267
20268         PR middle-end/39928
20269         * gimplify.c (gimplify_expr): If we are required to create
20270         a temporary make sure it ends up as register.
20271
20272 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
20273
20274         PR target/39903
20275         * config/i386/i386.c (construct_container): Don't call
20276         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
20277         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
20278
20279 2009-04-27  Michael Matz  <matz@suse.de>
20280
20281         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
20282         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
20283         * tree-ssa-live.h (find_replaceable_exprs): Return a bitmap.
20284         (dump_replaceable_exprs): Take a bitmap.
20285         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
20286         array.
20287         (expand_gimple_basic_block): Likewise.
20288         * tree-ssa-ter.c (struct temp_expr_table_d): Make
20289         replaceable_expressions member a bitmap.
20290         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
20291         (mark_replaceable): Likewise.
20292         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
20293         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
20294
20295 2009-04-27  Richard Guenther  <rguenther@suse.de>
20296
20297         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
20298         (verify_stmts): Dispatch to gimple/type verification code.
20299         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
20300         issue with call argument types.
20301
20302 2009-04-27  Michael Matz  <matz@suse.de>
20303
20304         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
20305         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
20306         to above.
20307
20308 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
20309             Eric Botcazou  <ebotcazou@adacore.com>
20310
20311         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
20312         a label's basic block.
20313         (mark_target_live_regs): Tidy and rework obsolete comments.
20314         Change back DF problem to LIVE.  If a label starts a basic block,
20315         assume that all registers that used to be live then still are.
20316         (init_resource_info): If a label starts a basic block, set its
20317         BLOCK_FOR_INSN accordingly.
20318         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
20319
20320 2009-04-27  Richard Guenther  <rguenther@suse.de>
20321
20322         * tree-flow-inline.h (function_ann): Remove.
20323         (get_function_ann): Likewise.
20324         * tree-dfa.c (create_function_ann): Remove.
20325         * tree-flow.h (struct static_var_ann_d): Remove.
20326         (struct function_ann_d): Likewise.
20327         (union tree_ann_d): Remove fdecl member.
20328         (function_ann_t): Remove.
20329         (function_ann, get_function_ann, create_function_ann): Remove
20330         declarations.
20331
20332 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
20333
20334         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
20335
20336 2009-04-27  Jan Hubicka  <jh@suse.cz>
20337
20338         * ipa-pure-const.c (struct funct_state_d): New fields
20339         state_previously_known, looping_previously_known; remove
20340         state_set_in_source.
20341         (analyze_function): Use new fields.
20342         (propagate): Avoid assumption that state_set_in_source imply
20343         nonlooping.
20344
20345         * tree-ssa-loop-niter.c (finite_loop_p): New function.
20346         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
20347         * cfgloop.h (finite_loop_p): Declare.
20348
20349 2009-04-26  Michael Matz  <matz@suse.de>
20350
20351         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
20352
20353 2009-04-26  Michael Matz  <matz@suse.de>
20354
20355         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
20356         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
20357         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
20358         pass_mark_used_blocks): Remove.
20359         * tree-optimize.c (pass_free_datastructures,
20360         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
20361         * passes.c (init_optimization_passes): Don't call
20362         pass_mark_used_blocks, remove dead code.
20363
20364 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
20365
20366         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
20367         * tree-ssa-live.h (register_ssa_partition): Likewise.
20368
20369 2009-04-26  Michael Matz  <matz@suse.de>
20370
20371         Expand from SSA.
20372         * builtins.c (fold_builtin_next_arg): Handle SSA names.
20373         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
20374         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
20375         SSA names.
20376         (compare_pairs): Swap cost comparison.
20377         (coalesce_ssa_name): Don't use change_partition_var.
20378         * tree-nrv.c (struct nrv_data): Add modified member.
20379         (finalize_nrv_r): Set it.
20380         (tree_nrv): Use it to update statements.
20381         (pass_nrv): Require PROP_ssa.
20382         * tree-mudflap.c (mf_decl_cache_locals,
20383         mf_build_check_statement_for): Use make_rename_temp.
20384         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
20385         * alias.c (find_base_decl): Handle SSA names.
20386         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
20387         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
20388         * rtl.h (set_reg_attrs_for_parm): Declare.
20389         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
20390         to "optimized", remove unused locals at finish.
20391         (execute_free_datastructures): Make global, call
20392         delete_tree_cfg_annotations.
20393         (execute_free_cfg_annotations): Don't call
20394         delete_tree_cfg_annotations.
20395
20396         * ssaexpand.h: New file.
20397         * expr.c (toplevel): Include ssaexpand.h.
20398         (expand_assignment): Handle SSA names the same as register variables.
20399         (expand_expr_real_1): Expand SSA names.
20400         * cfgexpand.c (toplevel): Include ssaexpand.h.
20401         (SA): New global variable.
20402         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
20403         (SSAVAR): New macro.
20404         (set_rtl): New helper function.
20405         (add_stack_var): Deal with SSA names, use set_rtl.
20406         (expand_one_stack_var_at): Likewise.
20407         (expand_one_stack_var): Deal with SSA names.
20408         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
20409         before unique numbers.
20410         (expand_stack_vars): Use set_rtl.
20411         (expand_one_var): Accept SSA names, add asserts for them, feed them
20412         to above subroutines.
20413         (expand_used_vars): Expand all partitions (without default defs),
20414         then only the local decls (ignoring those expanded already).
20415         (expand_gimple_cond): Remove edges when jumpif() expands an
20416         unconditional jump.
20417         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
20418         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
20419         SSA name.
20420         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
20421         members of SA; deal with PARM_DECL partitions here; expand
20422         all PHI nodes, free tree datastructures and SA.  Commit instructions
20423         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
20424         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
20425         info and statements at start, collect garbage at finish.
20426         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
20427         (VAR_ANN_PARTITION) Remove.
20428         (change_partition_var): Don't declare.
20429         (partition_to_var): Always return SSA names.
20430         (var_to_partition): Only accept SSA names.
20431         (register_ssa_partition): Only check argument.
20432         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
20433         member.
20434         (delete_var_map): Don't free it.
20435         (var_union): Only accept SSA names, simplify.
20436         (partition_view_init): Mark only useful SSA names as used.
20437         (partition_view_fini): Only deal with SSA names.
20438         (change_partition_var): Remove.
20439         (dump_var_map): Use ssa_name instead of partition_to_var member.
20440         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
20441         basic blocks.
20442         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
20443         (struct _elim_graph): New member const_dests; nodes member vector of
20444         ints.
20445         (set_location_for_edge): New static helper.
20446         (create_temp): Remove.
20447         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
20448         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
20449         (new_elim_graph): Allocate const_dests member.
20450         (clean_elim_graph): Truncate const_dests member.
20451         (delete_elim_graph): Free const_dests member.
20452         (elim_graph_size): Adapt to new type of nodes member.
20453         (elim_graph_add_node): Likewise.
20454         (eliminate_name): Likewise.
20455         (eliminate_build): Don't take basic block argument, deal only with
20456         partition numbers, not variables.
20457         (get_temp_reg): New static helper.
20458         (elim_create): Use it, deal with RTL temporaries instead of trees.
20459         (eliminate_phi): Adjust all calls to new signature.
20460         (assign_vars, replace_use_variable, replace_def_variable): Remove.
20461         (rewrite_trees): Only do checking.
20462         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
20463         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
20464         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
20465         contains_tree_r, MAX_STMTS_IN_LATCH,
20466         process_single_block_loop_latch, analyze_edges_for_bb,
20467         perform_edge_inserts): Remove.
20468         (expand_phi_nodes): New global function.
20469         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
20470         functions, initialize new parameter, remember partitions having a
20471         default def.
20472         (finish_out_of_ssa): New global function.
20473         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
20474         don't reset in_ssa_p here, don't disable TER when mudflap.
20475         (pass_del_ssa): Remove.
20476         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
20477         partition members.
20478         (execute_free_datastructures): Declare.
20479         * Makefile.in (SSAEXPAND_H): New variable.
20480         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
20481         * basic-block.h (commit_one_edge_insertion): Declare.
20482         * passes.c (init_optimization_passes): Move pass_nrv and
20483         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
20484         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
20485         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
20486         (redirect_branch_edge): Deal with super block when expanding, split
20487         out jump patching itself into ...
20488         (patch_jump_insn): ... here, new static helper.
20489
20490 2009-04-26  Michael Matz  <matz@suse.de>
20491
20492         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
20493         beyond num_ssa_names.
20494         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
20495         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
20496
20497 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
20498
20499         PR inline-asm/39543
20500         * fwprop.c (forward_propagate_asm): New function.
20501         (forward_propagate_and_simplify): Propagate also into __asm, if it
20502         doesn't increase the number of referenced registers.
20503
20504         PR c/39889
20505         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
20506
20507 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
20508
20509         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
20510         note_nonlocal_vla_type for nonlocal VLAs.
20511         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
20512         contains_remapped_vars, remap_vla_decls): New functions.
20513         (convert_nonlocal_reference_stmt): If not optimizing, call
20514         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
20515         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
20516         if it wasn't found in var_map.
20517         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
20518         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
20519         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
20520         declare_vars.
20521         * gimplify.c (nonlocal_vlas): New variable.
20522         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
20523         referenced VLAs.
20524         (gimplify_body): Create and destroy nonlocal_vlas.
20525
20526         * dwarf2out.c (loc_descr_plus_const): New function.
20527         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
20528         mem_loc_descriptor, loc_descriptor_from_tree_1,
20529         descr_info_loc, gen_variable_die): Use it.
20530
20531         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
20532         !TREE_STATIC VAR_DECLs.
20533         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
20534         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
20535         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
20536         DECL_BY_REFERENCE is valid.
20537         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
20538         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
20539         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
20540         Copy DECL_BY_REFERENCE.
20541         (struct nesting_copy_body_data): New type.
20542         (nesting_copy_decl): New function.
20543         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
20544         if they have variable length.
20545
20546 2009-04-26  Michael Matz  <matz@suse.de>
20547
20548         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
20549         mark new temporaries for renaming.
20550
20551 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
20552
20553         PR c/39581
20554         * c-decl.c (global_bindings_p): Return negative value.
20555         (c_variable_size): New.  Based on variable_size from
20556         stor-layout.c.
20557         (grokdeclarator): Call c_variable_size not variable_size.
20558
20559 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
20560
20561         * config/i386/i386.c (print_operand) ['z']: Fix typo.
20562
20563 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
20564
20565         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
20566         Redefine it to just use mingw/include.
20567         (ASM_SPEC): Rules for -m32 and -m64.
20568         (LINK_SPEC): Use Likewise.
20569         (SPEC_32): New define.
20570         (SPEC_64): Likewise.
20571         (SUB_LINK_SPEC): Likewise.
20572         (MULTILIB_DEFAULTS): New define.
20573         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
20574         Add multilib options.
20575         (MULTILIB_DIRNAMES): Likewise.
20576         (MULTILIB_OSDIRNAMES): Likewise.
20577         (LIBGCC): Likewise.
20578         (INSTALL_LIBGCC): Likewise.
20579
20580 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
20581
20582         PR c/39556
20583         * c-tree.h (enum c_inline_static_type): New.
20584         (record_inline_static): Declare.
20585         * c-decl.c (struct c_inline_static, c_inline_statics,
20586         record_inline_static, check_inline_statics): New.
20587         (pop_file_scope): Call check_inline_statics.
20588         (start_decl): Call record_inline_static instead of pedwarning
20589         directly for static in inline function.
20590         * c-typeck.c (build_external_ref): Call record_inline_static
20591         instead of pedwarning directly for static referenced in inline
20592         function.
20593
20594 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
20595
20596         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
20597         not new but only being rescanned.
20598         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
20599         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
20600         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
20601         record_set_info, compute_set, grealloc): Remove.
20602         (recompute_all_luids): New function.
20603         (gcse_main): Don't compute sets, and don't do related memory
20604         allocations/free-ing.  If something changed before the end of the
20605         pass, update LUIDs using recompute_all_luids.
20606         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
20607         (free_gcse_mem): Don't free it either.
20608         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
20609         Use the df insn LUIDs.
20610         (load_killed_in_block): Likewise.
20611         (compute_hash_table_work): Don't compute reg_set_in_block.
20612         (compute_transp): Use DF_REG_DEF_CHAINs.
20613         (local_cprop_pass): Don't use compute_sets and related functions.
20614         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
20615         Use get_max_uid() instead of max_cuid.
20616         (insert_insn_end_basic_block, pre_insert_copy_insn,
20617         update_ld_motion_stores): Don't try to
20618         keep reg_set tables up to date.
20619         (pre_insert_copies): Use df insn LUIDs.
20620         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
20621         (reg_set_info): Don't use extra bitmap argument.
20622         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
20623         information to compute regs_set_in_block.
20624         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
20625         (bypass_jumps): Don't use compute_sets and friends.
20626
20627 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20628
20629         PR testsuite/39710
20630         * opts.c (undocumented_msg): Do not leave blank even with
20631         ENABLE_CHECKING.
20632
20633 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
20634
20635         * c-decl.c (build_enumerator): Allow values folding to integer
20636         constants but not integer constant expressions with a pedwarn if
20637         pedantic.
20638
20639 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
20640
20641         PR c/39582
20642         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
20643         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
20644         type is an integer constant.
20645
20646 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
20647
20648         PR target/39897
20649         * config/i386/i386.c (print_operand) ['z']: Revert handling of
20650         HImode operands.
20651
20652 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
20653
20654         PR c/39564
20655         * c-decl.c (grokdeclarator): Diagnose declarations of functions
20656         with variably modified return type and no storage class
20657         specifiers, except for the case of nested functions.  Distinguish
20658         extern declarations of functions with variably modified return
20659         types from those of objects with variably modified types.
20660
20661 2009-04-25  Jan Hubicka  <jh@suse.cz>
20662
20663         * tree.c (list_equal_p): New function.
20664         * tree.h (list_equal_p): Declare.
20665         * coretypes.h (edge_def, edge, const_edge, basic_block_def
20666         basic_block_def, basic_block, const_basic_block): New.
20667         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
20668         (redirect_eh_edge): New function.
20669         (make_eh_edge_update_phi): EH edges are not abnormal.
20670         * except.c: Include tree-flow.h.
20671         (list_match): New function.
20672         (eh_region_replaceable_by_p): New function.
20673         (replace_region): New function.
20674         (hash_type_list): New function.
20675         (hash_eh_region): New function.
20676         (eh_regions_equal_p): New function.
20677         (merge_peers): New function.
20678         (remove_unreachable_regions): Verify EH tree when checking;
20679         merge peers.
20680         (copy_eh_region_1): New function.
20681         (copy_eh_region): New function.
20682         (push_reachable_handler): New function.
20683         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
20684         regions without label but with live RESX.
20685         * except.h (redirect_eh_edge_to_label): New.
20686         * tree-flow.h (redirect_eh_edge): New.
20687         * coretypes.h (edge_def, edge, const_edge, basic_block_def
20688         basic_block_def, basic_block, const_basic_block): Remove.
20689         * Makefile.in (except.o): Add dependency on tree-flow.h
20690         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
20691         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
20692         Remove.
20693
20694 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
20695
20696         PR bootstrap/39645
20697         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
20698         on the destination of memcpy.
20699
20700 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
20701
20702         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
20703         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
20704         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
20705
20706 2009-04-25  Jan Hubicka  <jh@suse.cz>
20707
20708         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
20709         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
20710         to be reached by different label than left.
20711         (update_eh_edges): Update comment; remove edge_to_remove if possible
20712         and return true if suceeded.
20713         (cleanup_empty_eh): Accept sharing map; handle shared regions.
20714         (cleanup_eh): Compute sharing map.
20715         * except.c (remove_eh_handler_and_replace): Add argument if we should
20716         update regions.
20717         (remove_unreachable_regions): Update for label sharing.
20718         (label_to_region_map): Likewise.
20719         (get_next_region_sharing_label): New function.
20720         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
20721         prev_try pointers.
20722         (remove_eh_handler): Update.
20723         (remove_eh_region_and_replace_by_outer_of): New function.
20724         * except.h (struct eh_region): Add next_region_sharing_label.
20725         (remove_eh_region_and_replace_by_outer_of,
20726         get_next_region_sharing_label): Declare.
20727         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
20728
20729 2009-04-25  Jan Hubicka  <jh@suse.cz>
20730
20731         * tree-cfg.c (split_critical_edges): Split also edges where we can't
20732         insert code even if they are not critical.
20733
20734 2009-04-25  Jan Hubicka  <jh@suse.cz>
20735
20736         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
20737         (gimple_can_remove_branch_p): EH edges won't remove branch by
20738         redirection.
20739         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
20740         updating of non-abnormal EH edges.
20741         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
20742         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
20743         (split_critical_edges): Split also edges where emitting code on them
20744         will lead to splitting later.
20745
20746 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
20747             H.J. Lu  <hongjiu.lu@intel.com>
20748
20749         PR target/39590
20750         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
20751         the configured assembler supports fildq and fistpq mnemonics.
20752         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
20753         * configure: Regenerated.
20754         * config.in: Ditto.
20755
20756         * config/i386/i386.c (print_operand): Handle 'Z'.
20757         ['z']: Remove handling of special fild/fist suffixes.
20758         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
20759         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
20760         suffix of fild insn.
20761         (*floatsi<mode>2_vector_mixed): Ditto.
20762         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
20763         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
20764         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
20765         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
20766         * config/i386/gas.h (GAS_MNEMONICS): Remove.
20767
20768 2009-04-25  Ben Elliston  <bje@au.ibm.com>
20769
20770         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
20771         the source of a set operation.
20772
20773 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
20774
20775         * target.h (struct gcc_target): Add case_values_threshold field.
20776         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
20777         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
20778         * targhooks.c (default_case_values_threshold): New function.
20779         * targhooks.h (default_case_values_threshold): Declare function.
20780         * stmt.c (expand_case): Use case_values_threshold target hook.
20781         * expr.h (case_values_threshold): Remove declartation.
20782         * expr.c (case_values_threshold): Remove function.
20783         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
20784
20785         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
20786         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
20787         (avr_case_values_threshold): Declare as static.
20788         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
20789
20790         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
20791         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
20792         (mn10300_case_values_threshold): New function.
20793
20794 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
20795
20796         * ira.c (setup_cover_and_important_classes): Add enum cast.
20797
20798 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
20799
20800         * genpreds.c (write_enum_constraint_num): Output definition of
20801         CONSTRAINT_NUM_DEFINED_P macro.
20802         * ira.c (setup_cover_and_important_classes): Use
20803         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
20804
20805 2009-04-24  DJ Delorie  <dj@redhat.com>
20806
20807         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
20808         __SH2A_SINGLE_ONLY__ also.
20809
20810 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
20811
20812         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
20813         (movdf_internal): Ditto.
20814         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
20815         SFmode and DFmode constants.
20816         (ia64_print_operand): Add 'G' format for printing
20817         floating point constants.
20818
20819 2009-04-24  Richard Guenther  <rguenther@suse.de>
20820
20821         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
20822         from unsigned additions.
20823
20824 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
20825
20826         * c-typeck.c (set_init_index): Allow array designators that are
20827         not integer constant expressions with a pedwarn if pedantic.
20828
20829 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
20830
20831         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
20832         zero if no overlap in nonzero bits between the operands.
20833
20834 2009-04-24  Ian Lance Taylor  <iant@google.com>
20835
20836         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
20837         (record_dead_and_set_regs): Likewise.
20838         * df.h (struct df_mw_hardreg): Change flags field to int.
20839         (struct df_base_ref): Likewise.
20840         (struct df): Change changeable_flags field to int.
20841         * df-scan.c (df_defs_record): Change clobber_flags to int.
20842         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
20843         constants rather than #define macros.
20844         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
20845         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
20846         (enum dwarf_calling_convention): Likewise.
20847         (enum dwarf_line_number_x_ops): Likewise.
20848         (enum dwarf_call_frame_info): Likewise.
20849         (enum dwarf_source_language): Likewise.
20850         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
20851         (add_calling_convention_attribute): Likewise.
20852         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
20853         (combine_comparisons): Change compcode to int.  Add cast to enum type.
20854         * genrecog.c (maybe_both_true_2): Change c to int.
20855         (write_switch): Likewise.  Add cast to enum type.
20856         * gimplify.c (gimplify_omp_for): Handle return values from
20857         gimplify_expr using MIN rather than bitwise or.
20858         (gimplify_expr): Add cast to enum type.
20859         * ipa-prop.c (update_jump_functions_after_inlining): Change
20860         IPA_BOTTOM to IPA_JF_UNKNOWN.
20861         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
20862         Add casts to enum type.
20863         (setup_cover_and_important_classes): Change cl to int.  Add casts
20864         to enum type.
20865         (setup_class_translate): Change cl and mode to int.
20866         (ira_init_once): Change mode to int.
20867         (free_register_move_costs): Likewise.
20868         (setup_prohibited_mode_move_regs): Add casts to enum type.
20869         * langhooks.c (add_builtin_function_common): Rework assertion that
20870         value fits bitfield.
20871         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
20872         * omega.c (omega_do_elimination): Avoid math on enum types.
20873         * optabs.c (expand_vec_shift_expr): Remove casts to int.
20874         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
20875         int local to handle integral_argment value.
20876         * regmove.c (try_auto_increment): Change PUT_MODE to
20877         PUT_REG_NOTE_KIND.
20878         * reload.c (push_secondary_reload): Add casts to enum type.
20879         (secondary_reload_class, find_valid_class): Likewise.
20880         * reload1.c (emit_input_reload_insns): Likewise.
20881         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
20882         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
20883         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
20884         constant.
20885         * tree.c (build_common_builtin_nodes): Add casts to enum type.
20886         * tree-complex.c (complex_lattice_t): Typedef to int rather than
20887         enum type.
20888         (expand_complex_libcall): Add casts to enum type.
20889         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
20890         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
20891         with ERROR_MARK, not NUM_TREE_CODES.
20892         (vect_create_epilog_for_reduction): Likewise.
20893         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
20894         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
20895         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
20896         enum machine_mode.
20897         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
20898         vect_unused_in_loop.  Change 0 to loop_vect.
20899         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
20900         * var-tracking.c (get_init_value): Change return type to enum
20901         var_init_status.
20902         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
20903         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
20904         arm_fp_model.
20905         (arm_override_options): Add casts to enum type.
20906         (arm_emit_tls_decoration): Likewise.
20907         * config/i386/i386.c (ix86_function_specific_restore): Add casts
20908         to enum type.
20909         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
20910         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
20911         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
20912         enum type.
20913         * config/s390/s390.c (code_for_builtin_64): Change to array of
20914         enum insn_code.
20915         (code_for_builtin_31): Likewise.
20916         (s390_expand_builtin): Change code_for_builtin to enum insn_code
20917         const *.
20918         * config/sparc/sparc.c (sparc_override_options): Change value
20919         field in struct code_model to enum cmodel.  In initializer change
20920         0 to NULL and add cast to enum type.
20921
20922         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
20923         Change all callers.  Issue a -Wc++-compat warning using
20924         lhs_origtype if necessary.
20925         (convert_for_assignment): Issue -Wc++-compat warnings about
20926         invalid conversions to enum type on assignment.
20927         * c-common.h (build_modify_expr): Update declaration.
20928
20929 2009-04-24  Nick Clifton  <nickc@redhat.com>
20930
20931         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
20932         (function_arg_advance): Likewise.
20933         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
20934         5th alternative.
20935
20936 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
20937
20938         * config/s390/constraints.md ('I', 'J'): Fix condition.
20939
20940 2009-04-24  Diego Novillo  <dnovillo@google.com>
20941
20942         * gengtype-parse.c (parse_error): Add newline after message.
20943
20944 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
20945
20946         * config/i386/sse.md (avxmodesuffixs): Removed.
20947         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
20948         (*avx_pinsr<ssevecsize>): This.
20949
20950 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
20951
20952         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
20953         follow chains of regs with a single definition, and allow expressions
20954         that are function_invariant_p.
20955         (simple_rhs_p): Allow expressions that are function_invariant_p.
20956
20957 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
20958
20959         PR middle-end/39867
20960         * fold-const.c (fold_cond_expr_with_comparison): When folding
20961         > and >= to MAX, make sure the MAX uses the same type as the
20962         comparison's operands.
20963
20964 2009-04-24  Nick Clifton  <nickc@redhat.com>
20965
20966         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
20967         addressing for DImode accesses.
20968         (frv_print_operand_address): Handle PLUS case.
20969         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
20970
20971 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
20972
20973         PR rtl-optimization/39794
20974         * alias.c (canon_true_dependence): Add x_addr argument.
20975         * rtl.h (canon_true_dependence): Adjust prototype.
20976         * cse.c (check_dependence): Adjust canon_true_dependence callers.
20977         * cselib.c (cselib_invalidate_mem): Likewise.
20978         * gcse.c (compute_transp): Likewise.
20979         * dse.c (scan_reads_nospill): Likewise.
20980         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
20981         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
20982         canon_base_addr of the group, plus optional offset.
20983         (struct group_info): Rename canon_base_mem to
20984         canon_base_addr.
20985         (get_group_info): Set canon_base_addr to canon_rtx of base, not
20986         canon_rtx of base_mem.
20987
20988 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
20989
20990         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
20991         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
20992
20993 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20994
20995         * config/spu/spu-builtins.h: Delete file.
20996
20997         * config/spu/spu.h (enum spu_builtin_type): Move here from
20998         spu-builtins.h.
20999         (struct spu_builtin_description): Likewise.  Add GTY marker.
21000         Do not use enum spu_function_code or enum insn_code.
21001         (spu_builtins): Add extern declaration.
21002
21003         * config/spu/spu.c: Do not include "spu-builtins.h".
21004         (enum spu_function_code, enum spu_builtin_type_index,
21005         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
21006         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
21007         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
21008         unsigned_V2DI_type_node): Move here from spu-builtins.h.
21009         (spu_builtin_types): Make static.  Add GTY marker.
21010         (spu_builtins): Add extern declaration with GTY marker.
21011         Include "gt-spu.h".
21012
21013         * config/spu/spu-c.c: Do not include "spu-builtins.h".
21014         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
21015         Check programmatically whether all parameters are scalar.
21016
21017         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
21018
21019 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
21020
21021         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
21022         assignment from the constructor either if the target is volatile.
21023
21024 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
21025
21026         * config/arm/arm.md (insv): Do not share operands[0].
21027
21028 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
21029
21030         * config/vxlib-tls.c (active_tls_threads): Delete.
21031         (delete_hook_installed): New.
21032         (tls_delete_hook): Don't delete the delete hook.
21033         (tls_destructor): Delete it here.
21034         (__gthread_set_specific): Adjust installing the delete hook.
21035         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
21036         __gthread_leave_tsd_dtor_context.
21037
21038 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
21039
21040         * c-format.c (gcc_tdiag_char_table): Add support for %E.
21041
21042 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
21043
21044         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
21045         enum type.
21046         (alpha_rtx_costs): Ditto.
21047         (emit_unlikely_jump): Use add_reg_note.
21048         (emit_frame_store_1): Ditto.
21049         (alpha_expand_prologue): Ditto.
21050         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
21051         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
21052
21053 2009-04-23  Nick Clifton  <nickc@redhat.com>
21054
21055         * config/v850/v850.md (epilogue): Remove suppressed code.
21056         (return): Rename to return_simple and remove test of frame size.
21057         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
21058         to gen_return_simple.
21059
21060 2009-04-22  Jing Yu  <jingyu@google.com>
21061
21062         PR testsuite/39781
21063         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
21064
21065 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21066
21067         PR C/31499
21068         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
21069         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
21070         value is a VECTOR_CST, the element type is the element type of the
21071         vector.
21072
21073 2009-04-22  DJ Delorie  <dj@redhat.com>
21074
21075         * config/m32c/m32c.h: Update GTY annotations to new syntax.
21076
21077 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
21078
21079         * alias.c (find_base_term): Move around LO_SUM case, so that
21080         CONST falls through into PLUS/MINUS handling.
21081
21082         PR c/39855
21083         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
21084         into 0, use omit_one_operand.
21085
21086 2009-04-23  Ben Elliston  <bje@au.ibm.com>
21087
21088         * config/rs6000/linux-unwind.h (get_regs): Remove type
21089         puns. Change the type of `pc' to an array of unsigned ints and
21090         update all users.  Constify frame24.
21091
21092 2009-04-22  DJ Delorie  <dj@redhat.com>
21093
21094         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
21095         declarations before code.
21096         (current_function_special_page_vector): Likewise.
21097         (m32c_expand_insv): Silence a warning.
21098
21099 2009-04-21  Taras Glek  <tglek@mozilla.com>
21100
21101         * alias.c: Update GTY annotations to new syntax.
21102         * basic-block.h: Likewise.
21103         * bitmap.h: Likewise.
21104         * c-common.h: Likewise.
21105         * c-decl.c: Likewise.
21106         * c-parser.c: Likewise.
21107         * c-pragma.c: Likewise.
21108         * c-tree.h: Likewise.
21109         * cfgloop.h: Likewise.
21110         * cgraph.h: Likewise.
21111         * config/alpha/alpha.c: Likewise.
21112         * config/arm/arm.h: Likewise.
21113         * config/avr/avr.h: Likewise.
21114         * config/bfin/bfin.c: Likewise.
21115         * config/cris/cris.c: Likewise.
21116         * config/darwin.c: Likewise.
21117         * config/frv/frv.c: Likewise.
21118         * config/i386/i386.c: Likewise.
21119         * config/i386/i386.h: Likewise.
21120         * config/i386/winnt.c: Likewise.
21121         * config/ia64/ia64.h: Likewise.
21122         * config/iq2000/iq2000.c: Likewise.
21123         * config/mips/mips.c: Likewise.
21124         * config/mmix/mmix.h: Likewise.
21125         * config/pa/pa.c: Likewise.
21126         * config/pa/pa.h: Likewise.
21127         * config/rs6000/rs6000.c: Likewise.
21128         * config/s390/s390.c: Likewise.
21129         * config/sparc/sparc.c: Likewise.
21130         * config/xtensa/xtensa.c: Likewise.
21131         * cselib.h: Likewise.
21132         * dbxout.c: Likewise.
21133         * dwarf2out.c: Likewise.
21134         * except.c: Likewise.
21135         * except.h: Likewise.
21136         * fixed-value.h: Likewise.
21137         * function.c: Likewise.
21138         * function.h: Likewise.
21139         * gimple.h: Likewise.
21140         * integrate.c: Likewise.
21141         * optabs.c: Likewise.
21142         * output.h: Likewise.
21143         * real.h: Likewise.
21144         * rtl.h: Likewise.
21145         * stringpool.c: Likewise.
21146         * tree-data-ref.c: Likewise.
21147         * tree-flow.h: Likewise.
21148         * tree-scalar-evolution.c: Likewise.
21149         * tree-ssa-address.c: Likewise.
21150         * tree-ssa-alias.h: Likewise.
21151         * tree-ssa-operands.h: Likewise.
21152         * tree.c: Likewise.
21153         * tree.h: Likewise.
21154         * varasm.c: Likewise.
21155         * varray.h: Likewise.
21156         * vec.h: Likewise.
21157         * coretypes.h: Do not define GTY macro if it is already defined.
21158         * doc/gty.texi: Update GTY documentation to new syntax.
21159         * gengtype-lex.l: Enforce attribute-like syntax for GTY
21160         annotations on structs.
21161         * gengtype-parse.c: Likewise.
21162
21163 2009-04-22  Mark Heffernan  <meheff@google.com>
21164
21165         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
21166
21167 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
21168
21169         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
21170         where appropriate.
21171
21172 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
21173
21174         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
21175         the same as a PLUS without a shift.  Increase the cost of a
21176         CONST_INT in MULT.
21177
21178 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21179
21180         * Makefile.in: Update dependencies.
21181         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
21182         * errors.h: Remove bogus comment about compatibility.
21183         (warning): Update declaration.
21184         * genautomata.c: Update all calls to warning.
21185         * gimple.c: Do not include errors.h. Include toplev.h.
21186         * tree-ssa-structalias.c: Do not include errors.h.
21187         * omega.c: Likewise.
21188         * tree-ssa-reassoc.c: Likewise.
21189         * config/spu/spu-c.c: Likewise.
21190         * config/spu/t-spu-elf: Update dependencies.
21191
21192 2009-04-22  Richard Guenther  <rguenther@suse.de>
21193
21194         PR tree-optimization/39824
21195         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
21196         make sure the types are compatible.
21197
21198 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21199
21200         PR c++/14875
21201         * c-common.c (c_parse_error): Take a token_flags parameter.
21202         Use token_type for the token type instead.
21203         Pass token_flags to cpp_type2name.
21204         * c-common.h (c_parse_error): Update declaration.
21205         * c-parser.c (c_parser_error): Pass 0 as token flags.
21206
21207 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
21208
21209         PR rtl-optimization/39580
21210         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
21211
21212 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21213
21214         * function.c (expand_function_end): Do not emit a jump to the "naked"
21215         return label for fall-through returns.
21216         * except.c (sjlj_emit_function_exit): Always place the call to the
21217         unregister function at the location installed by expand_function_end.
21218
21219 2009-04-22  Richard Guenther  <rguenther@suse.de>
21220
21221         PR tree-optimization/39845
21222         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
21223         (gen_inbound_check): Likewise.
21224
21225 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
21226
21227         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
21228         padding for PPC.
21229         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
21230         * config/vxlib.c (__gthread_once): Add race guard for PPC.
21231
21232 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
21233
21234         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
21235         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
21236         shift counts to avoid out-of-bounds array accesses.
21237
21238 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
21239
21240         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
21241         (Pmode): Move above.
21242
21243 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
21244
21245         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
21246         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
21247         GET_CODE macro.  Use IN_RANGE macro where appropriate.
21248         * config/alpha/alpha.h: Ditto.
21249         * config/alpha/alpha.md: Ditto.
21250         * config/alpha/constraints.md: Ditto.
21251         * config/alpha/predicates.md: Ditto.
21252
21253 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
21254
21255         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
21256         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21257         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21258         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21259         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21260         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21261         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21262         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21263         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21264         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21265         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21266         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21267         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21268         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21269         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21270         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21271         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21272         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21273         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21274         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21275         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21276         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21277         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21278         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21279         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21280         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21281         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
21282
21283 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
21284
21285         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
21286         references from comments.
21287         * cfgbuild.c (count_basic_blocks): Delete.
21288         (find_basic_blocks_1): Delete.
21289         (find_basic_blocks): Delete.
21290         * except.c (finish_eh_generation): Make static.  Move comment from
21291         except.h here.  Remove find_basic_blocks references from comments.
21292         * except.h (finish_eh_generation): Delete.
21293         * basic-block.h (find_basic_blocks): Delete.
21294         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
21295
21296 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
21297
21298         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
21299         (sdbout_parms):  Likewise.
21300
21301 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
21302
21303         * config/sh/sh.c (prepare_cbranch_operands): Use
21304         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
21305         (expand_cbranchdi4): Likewise.
21306         (from_compare): Add cast to enum type.
21307         (expand_cbranchsi4): Use add_reg_note.
21308         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
21309         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
21310         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
21311         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
21312         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
21313         instead of CODE_FOR_nothing.
21314         (cbranchdi4): Likewise.  Fix the order of arguments for
21315         gen_rtx_fmt_ee.
21316         (push_fpscr): Use add_reg_note.
21317         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
21318         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
21319
21320 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
21321
21322         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
21323         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
21324         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
21325         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
21326         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
21327         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
21328         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
21329         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
21330         config/alpha/x-vms, config/arc/t-arc,
21331         config/arm/README-interworking, config/arm/arm-c.c,
21332         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
21333         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
21334         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
21335         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
21336         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
21337         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
21338         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
21339         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
21340         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
21341         config/cris/t-elfmulti, config/crx/t-crx,
21342         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
21343         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
21344         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
21345         config/h8300/t-h8300, config/i386/athlon.md,
21346         config/i386/darwin-libgcc.10.4.ver,
21347         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
21348         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
21349         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
21350         config/i386/t-linux64, config/i386/t-nwld,
21351         config/i386/t-rtems-i386, config/i386/t-sol2-10,
21352         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
21353         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
21354         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
21355         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
21356         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
21357         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
21358         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
21359         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
21360         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
21361         config/m68k/t-uclinux, config/mcore/t-mcore,
21362         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
21363         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
21364         config/mips/crtn.asm, config/mips/irix-crti.asm,
21365         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
21366         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
21367         config/mips/mips-fixed.md, config/mips/sb1.md,
21368         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
21369         config/mips/t-iris6, config/mips/t-isa3264,
21370         config/mips/t-libgcc-mips16, config/mips/t-linux64,
21371         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
21372         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
21373         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
21374         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
21375         config/mn10300/t-linux, config/mn10300/t-mn10300,
21376         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
21377         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
21378         config/picochip/libgccExtras/clzsi2.asm,
21379         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
21380         config/rs6000/darwin-libgcc.10.4.ver,
21381         config/rs6000/darwin-libgcc.10.5.ver,
21382         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
21383         config/rs6000/t-aix43, config/rs6000/t-aix52,
21384         config/rs6000/t-darwin, config/rs6000/t-fprules,
21385         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
21386         config/rs6000/t-lynx, config/rs6000/t-netbsd,
21387         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
21388         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
21389         config/rs6000/t-rtems, config/rs6000/t-spe,
21390         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
21391         config/score/t-score-elf, config/sh/divcost-analysis,
21392         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
21393         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
21394         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
21395         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
21396         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
21397         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
21398         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
21399         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
21400         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
21401         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
21402         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
21403         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
21404         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
21405         limitx.h, version.c, xcoff.h: Add copyright and license notices.
21406         * config/h8300/genmova.sh: Include copyright and license notices
21407         in generated output.
21408         * config/h8300/mova.md: Regenerate.
21409         * doc/install.texi2html: Include word "Copyright" in copyright
21410         notice and use name "Free Software Foundation, Inc.".
21411         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
21412         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
21413         ChangeLog-2007, ChangeLog-2008: Correct dates.
21414
21415 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
21416
21417         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
21418         NE_EXPR operations as well.
21419         * c-parser.c (c_parser_condition): Do not set location information on
21420         the condition.
21421         (c_parser_conditional_expression): Likewise.
21422         (c_parser_binary_expression): Set location information on operators.
21423         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
21424         TRUTH_NOT_EXPR has been folded.
21425         * fold-const.c (fold_truth_not_expr): Copy location information from
21426         the incoming expression to the outgoing one.
21427         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
21428         recursive calls on the LHS of the operator but pass that of the
21429         operator to recursive calls on the RHS of the operator.  Set it
21430         on the COND_EXPR.
21431         (shortcut_cond_expr): Set the locus of the operator on the second
21432         COND_EXPR and that of the expression on the first in degenerate cases.
21433         Pass the locus of the expression to calls to shortcut_cond_r.
21434         Set the locus of the 'then' block on the associated jump, if any.
21435         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
21436         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
21437         expression to call to gimplify_boolean_expr.
21438
21439 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
21440
21441         * config.gcc: Add additional configuration for
21442         i686-w64-mingw* and x86_64-w64-mingw* triplet.
21443         * config/i386/mingw-w64.h: New mingw-w64 specific header.
21444         (CPP_SPEC): Redefine for allowing -municode option.
21445         (STARTFILE_SPEC): Likewise.
21446         * config/i386/t-mingw-w64: New.
21447         * config/i386/mingw-w64.opt: New.
21448         (municode): Add new target option.
21449         * doc/invoke.texi (municode): Add documentation for new option.
21450
21451 2009-04-21  Ian Lance Taylor  <iant@google.com>
21452
21453         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21454         Correct test for number of arguments.
21455         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
21456
21457 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
21458
21459         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
21460         argument of emit_library_call.
21461
21462 2009-04-21  Richard Guenther  <rguenther@suse.de>
21463
21464         PR middle-end/39829
21465         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
21466         inside VIEW_CONVERT_EXPRs.
21467
21468 2009-04-21  Martin Jambor  <mjambor@suse.cz>
21469
21470         * tree-switch-conversion.c (build_constructors): Split a long line.
21471         (constructor_contains_same_values_p): New function.
21472         (build_one_array): Create assigns of constants if possible, do not
21473         call mark_sym_for_renaming, call update_stmt.
21474         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
21475         make_rename_temp.  Do not call mark_symbols_for_renaming, call
21476         update_stmt.
21477         (gen_def_assigns): Do not call mark_symbols_for_renaming or
21478         find_new_referenced_vars, call update_stmt.
21479         (gen_inbound_check): Use create_tmp_var and create ssa names manually
21480         instead of calling make_rename_temp.  Do not call
21481         find_new_referenced_vars or mark_symbols_for_renaming, call
21482         update_stmt.
21483
21484 2009-04-21  Richard Guenther  <rguenther@suse.de>
21485
21486         PR tree-optimization/39827
21487         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
21488         (tree_ssa_phiprop): Pass the correct array size.
21489
21490 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
21491
21492         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
21493
21494 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21495
21496         PR 16202
21497         * c-typeck.c (lvalue_p): Move declaration ...
21498         * c-common.h (lvalue_p): ... to here.
21499         * c-common.c (candidate_equal_p): New.
21500         (add_tlist): Use it.
21501         (merge_tlist): Use it.
21502         (warn_for_collisions_1): Likewise.
21503         (warning_candidate_p): Accept more candidates.
21504         (verify_tree): A warning candidate can be an expression. Use
21505         candidate_equal_p.
21506
21507 2009-04-21  Ben Elliston  <bje@au.ibm.com>
21508
21509         PR target/5267
21510         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
21511         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
21512         options.  Remove -mcall-solaris documentation.
21513
21514 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21515
21516         PR c++/13358
21517         * doc/invoke.texi (-Wlong-long): Update description.
21518         * c-lex (interpret_integer): Only warn if there was no previous
21519         overflow and -Wlong-long is enabled.
21520         * c-decl.c (declspecs_add_type): Drop redundant flags.
21521         * c.opt (Wlong-long): Init to -1.
21522         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
21523         and front-end warn_long_long. Wlong-long only depends on other
21524         flags if it is uninitialized.
21525         * c-parser.c (disable_extension_diagnostics): warn_long_long is
21526         the same for CPP and FE.
21527         (restore_extension_diagnostics): Likewise.
21528
21529 2009-04-20  Ian Lance Taylor  <iant@google.com>
21530
21531         Fix enum conversions which are invalid in C++:
21532         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
21533         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
21534         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
21535         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
21536         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
21537         (dbxout_parms): Likewise.
21538         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
21539         (df_clear_flags): Likewise.
21540         * df-problems.c (df_rd_bb_local_compute_process_def): Change
21541         top_flag parameter to int.
21542         (df_chain_create_bb_process_use): Likewise.
21543         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
21544         Remove cast.
21545         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
21546         (df_ref_create_structure, df_def_record_1): Likewise.
21547         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
21548         (df_notes_rescan): Change 0 to VOIDmode in function call.
21549         (df_get_call_refs, df_insn_refs_collect): Likewise.
21550         (df_bb_regs_collect): Likewise.
21551         (df_entry_block_defs_collect): Likewise.
21552         (df_exit_block_uses_collect): Likewise.
21553         * df.h: Update declarations.
21554         * double-int.c (double_int_divmod): Add cast to enum type.
21555         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
21556         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
21557         (based_loc_descr): Likewise.
21558         (loc_descriptor_from_tree_1): Change first_op and second_op to
21559         enum dwarf_location_atom.  Add cast to enum type.
21560         * expmed.c (init_expmed): Change 0 to SET in function call.
21561         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
21562         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
21563         (do_store_flag): Likewise.
21564         * fixed-value.h (struct fixed_value): Change mode to enum
21565         machine_mode.
21566         * function.c (assign_parms): Change 0 to VOIDmode in function call.
21567         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
21568         function call.
21569         (insert_insn_decl, insert_decl, insert_state): Likewise.
21570         (automata_list_finish): Likewise.
21571         * genrecog.c (process_define_predicate): Add cast to enum type.
21572         * gensupport.c (init_predicate_table): Add cast to enum type.
21573         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
21574         function call.
21575         (gimple_build_call_1, gimple_build_label): Likewise.
21576         (gimple_build_goto, gimple_build_asm_1): Likewise.
21577         (gimple_build_switch_1, gimple_build_cdt): Likewise.
21578         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
21579         (enum fallback): Rename from enum fallback_t.
21580         (fallback_t): Typedef as int.
21581         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
21582         GSI_SAME_STMT in function call.
21583         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
21584         enum type.
21585         (setup_reg_class_relations): Likewise.
21586         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
21587         (setup_prohibited_class_mode_regs): Add cast to enum type.
21588         (setup_prohibited_mode_move_regs): Likewise.
21589         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
21590         (record_address_regs): Change i to enum reg_class.
21591         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
21592         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
21593         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
21594         (GET_MODE_2XWIDER_MODE): Likewise.
21595         (GET_CLASS_NARROWEST_MODE): Likewise.
21596         * omp-low.c (expand_omp_for): Add cast to enum type.
21597         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
21598         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
21599         * postreload.c (reload_cse_simplify_operands): Change rclass local
21600         to enum reg_class.
21601         * predict.c (combine_predictions_for_insn): Change best_predictor
21602         and predictor to enum br_predictor.
21603         (combine_predictions_for_bb): Likewise.
21604         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
21605         use SET_PREDICT_EXPR_OUTCOME.
21606         * real.c (real_arithmetic): Change icode to code in function call.
21607         * reginfo.c (init_move_cost): Add casts to enum type.
21608         (init_reg_sets_1, init_fake_stack_mems): Likewise.
21609         * regmove.c (regclass_compatible_p): Change class0 and class1 to
21610         enum reg_class.
21611         * reload.c (find_valid_class): Add casts to enum type.
21612         (push_reload): Change 0 to NO_REGS in function call.
21613         (find_reloads): Change this_alternative to array of enum
21614         reg_class.  Remove some now-unnecessary casts.
21615         (make_memloc): Change 0 to VOIDmode in function call.
21616         * reload1.c (reload): Change 0 to VOIDmode in function call.
21617         (eliminate_regs_1, elimination_effects): Likewise.
21618         (eliminate_regs_in_insn): Likewise.
21619         (emit_input_reload_insns): Add cast to enum type.
21620         (delete_output_reload): Change 0 to VOIDmode in function call.
21621         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
21622         to enum type in function call.
21623         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
21624         (SET_PREDICT_EXPR_OUTCOME): Define.
21625         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
21626         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
21627         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
21628         (dump_function): Likewise.
21629         * tree-dump.h: Update declarations.
21630         * tree-pass.h: Update declarations.
21631         * varasm.c (assemble_integer): Change mclass to enum mode_class.
21632         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
21633         enum type.
21634         (arm_rtx_costs_1): Correct parenthesization.
21635         (arm_rtx_costs): Add casts to enum type.
21636         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
21637         (vfp_emit_fstmd): Use add_rg_note.
21638         (emit_multi_reg_push, emit_sfm): Likewise.
21639         (thumb_set_frame_pointer): Likewise.
21640         (arm_expand_prologue): Likewise.
21641         (arm_regno_class): Change return type to enum reg_class.
21642         (thumb1_expand_prologue): Use add_reg_note.
21643         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
21644         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
21645         in function call.
21646         * config/arm/gentune.sh: Add cast to enum type.
21647         * config/arm/arm-tune.md: Rebuild.
21648         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
21649         (ix86_split_fp_branch, predict_jump): Likewise.
21650         (ix86_expand_multi_arg_builtin): Change sub_code from enum
21651         insn_code to enum rtx_code.
21652         (ix86_builtin_vectorized_function): Add cast to enum type.
21653         * config/i386/i386.md (truncdfsf2): Change slot to enum
21654         ix86_stack_slot.
21655         (truncxf<mode>2, isinf<mode>2): Likewise.
21656         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
21657         enum type.
21658         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
21659         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
21660         (insert_bundle_state): Change 1 to INSERT in function call.
21661         (ia64_add_bundle_selector_before): Likewise.
21662         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
21663         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
21664         (restore_stack_nonlocal): Likewise.
21665         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
21666         function call.
21667         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
21668         function call.
21669         (mips_rtx_costs): Likewise.
21670         (mips_override_options): Add casts to enum type.
21671         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
21672         in function call.
21673         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
21674         (store_reg, set_reg_plus_d): Likewise.
21675         (hppa_expand_prologue, hppa_profile_hook): Likewise.
21676         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
21677         cast to enum type.
21678         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
21679         function call.
21680         (emit_unlikely_jump): Use add_reg_note.
21681         (rs6000_emit_allocate_stack): Likewise.
21682         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
21683         (output_toc): Change 1 to INSERT in function call.
21684         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
21685         (rs6000_initialize_trampoline): Likewise.
21686         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
21687         function call.
21688         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
21689         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
21690         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
21691         (save_gprs): Use add_reg_note.
21692         (s390_emit_prologue): Likewise.
21693         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
21694         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
21695         (sparc_fold_builtin): Add cast to enum type.
21696         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
21697         enum insn_code.
21698         (spu_expand_prologue): Use add_reg_note.
21699         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
21700
21701 2009-04-20  Ian Lance Taylor  <iant@google.com>
21702
21703         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
21704         (c_parser_postfix_expression_after_primary): Get VEC for list of
21705         arguments.  Get original types of arguments.  Call
21706         build_function_call_vec.
21707         (cached_expr_list_1, cached_expr_list_2): New static variables.
21708         (c_parser_expr_list): Change return type to VEC *.  Add
21709         p_orig_types parameter.  Change all callers.
21710         (c_parser_release_expr): New static function.
21711         (c_parser_vec_to_tree_list): New static function.
21712         * c-typeck.c (build_function_call): Rewrite to build a VEC and
21713         call build_function_call_vec.
21714         (build_function_call_vec): New function, based on old
21715         build_function_call.
21716         (convert_arguments): Remove nargs and argarray parameters.  Change
21717         values to a VEC.  Add origtypes parameter.
21718         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
21719         (convert_for_assignment): Add origtype parameter.  Change all
21720         callers.  If warn_cxx_compat, check for conversion to an enum
21721         type when calling a function.
21722         (store_init_value): Add origtype parameter.  Change all callers.
21723         (digest_init): Likewise.
21724         (struct init_node): Add origtype field.
21725         (add_pending_init): Add origtype parameter.  Change all callers.
21726         (output_init_element): Likewise.
21727         (output_pending_init_elements): Pass origtype from init_node to
21728         output_init_element.
21729         (process_init_element): Pass origtype from c_expr to
21730         output_init_element.
21731         (c_finish_return): Add origtype parameter.  Change all callers.
21732         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
21733         caller.
21734         (sync_resolve_params): Likewise.
21735         (sync_resolve_return): Change params to first_param.  Change caller.
21736         (resolve_overloaded_builtins): Change params to VEC *.  Change
21737         callers.  Save first parameter around call to build_function_call_vec.
21738         * c-decl.c (finish_decl): Add origtype parameter.  Change all
21739         callers.  Call build_function_call_vec rather than
21740         build_function_call for cleanup.
21741         * c-tree.h: Update declarations.
21742         * c-common.h: Update declarations.
21743         * stub-objc.c (objc_rewrite_function_call): Change parameter from
21744         params to first_param.
21745         * target.h (struct gcc_target): Change resolve_overloaded_builtin
21746         params parameter from tree to void *.
21747         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21748         Change arglist parameter to have type void *, and to be a pointer
21749         to a VEC.
21750         * config/rs6000/rs6000-protos.h
21751         (altivec_resolve_overloaded_builtin): Update declaration.
21752         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
21753         fnargs parameter to have type void *, and to be a pointer to a
21754         VEC.  Call build_function_call_vec instead of
21755         build_function_call.
21756         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
21757
21758 2009-04-20  Joey Ye  <joey.ye@intel.com>
21759             Xuepeng Guo  <xuepeng.guo@intel.com>
21760             H.J. Lu  <hongjiu.lu@intel.com>
21761
21762         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
21763
21764         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
21765         (IX86_LEA_PRIORITY): Likewise.
21766         (distance_non_agu_define): New function.
21767         (distance_agu_use): Likewise.
21768         (ix86_lea_for_add_ok): Likewise.
21769         (ix86_dep_by_shift_count): Likewise.
21770
21771         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
21772         should split for LEA.
21773
21774         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
21775         function.
21776         (ix86_dep_by_shift_count): Likewise.
21777
21778 2009-04-20  Richard Guenther  <rguenther@suse.de>
21779
21780         * expr.c (handled_component_p): Move ...
21781         * tree.h (handled_component_p): ... here.
21782         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
21783         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
21784         and REALPART_EXPR to be in one group.
21785
21786 2009-04-20  Richard Guenther  <rguenther@suse.de>
21787
21788         * basic-block.h (get_all_dominated_blocks): Declare.
21789         * dominance.c (get_all_dominated_blocks): New function.
21790         * tree-cfg.c (get_all_dominated_blocks): Remove.
21791         (remove_edge_and_dominated_blocks): Adjust.
21792         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
21793         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
21794         instead of recursing.
21795
21796 2009-04-20  Doug Kwan  <dougkwan@google.com>
21797
21798         * cgraph.h (cgraph_node_ptr): New type for vector functions.
21799         (struct cgraph_node_set_def): New type.
21800         (cgraph_node_set) New type. Also declare vector functions.
21801         (struct cgraph_node_set_element_def): New type.
21802         (cgraph_node_set_element): Ditto.
21803         (cgraph_node_set_iterator): New iterator type.
21804         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
21805         cgraph_node_set_remove, dump_cgraph_node_set,
21806         debug_cgraph_node_set): New prototypes.
21807         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
21808         cgraph_node_set_size): New inlines.
21809         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
21810         including cgraph.h.
21811         (struct ipa_opt_pass): Add struct cgraph_node_set_def
21812         argument to function 'write_summary'.
21813         * ipa.c: Include ggc.h.
21814         (hash_cgraph_node_set_element,
21815         eq_cgraph_node_set_element, cgraph_node_set_new,
21816         cgraph_node_set_add, cgraph_node_set_remove,
21817         cgraph_node_set_find, dump_cgraph_node_set,
21818         debug_cgraph_node_set): New functions.
21819         * Makefile.in (ipa.o): Add dependency on GGC_H.
21820
21821 2009-04-20  Ira Rosen  <irar@il.ibm.com>
21822
21823         PR tree-optimization/39675
21824         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
21825         check of the return code of vect_schedule_slp. Check that
21826         stmt_vec_info still exists for the statement, before checking its
21827         vectorization type.
21828
21829 2009-04-20  Michael Matz  <matz@suse.de>
21830
21831         * Makefile.in (generated_files): Take out $(simple_generated_c).
21832
21833 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
21834
21835         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
21836         (UINTPTR_TYPE):  Likewise.
21837
21838 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
21839
21840         PR c/37481
21841         * c-typeck.c (digest_init): Check for initializing an array with a
21842         string literal.
21843
21844 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
21845
21846         PR c/19771
21847         * c-semantics.c (pop_stmt_list): Propagate
21848         STATEMENT_LIST_HAS_LABEL to parent statement list.
21849
21850 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
21851
21852         * config/mips/mips.h (mips_tune_attr): New macro.
21853         * config/mips/mips.md (cpu): Use it.
21854
21855 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
21856
21857         PR c/38243
21858         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
21859         declaring a tag.
21860
21861 2009-04-19  Diego Novillo  <dnovillo@google.com>
21862
21863         * toplev.c (compile_file): Move call to coverage_finish ...
21864         * cgraphunit.c (ipa_passes): ... here.
21865         Call cgraph_process_new_functions.
21866         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
21867         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
21868
21869 2009-04-19  Jan Hubicka  <jh@suse.cz>
21870
21871         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
21872         cfun.
21873         (dump_cgraph_node): Dump can throw external flag.
21874         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
21875
21876 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21877
21878         PR c/32061
21879         PR c++/36954
21880         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
21881         * common.opt (Wlogical-op): Move from here...
21882         * c.opt (Wlogical-op): ... to here.
21883         * c-typeck.c (parser_build_binary_op): Update call to
21884         warn_logical_operator.
21885         * c-opts.c (c_common_post_options): Enable warn_logical_op with
21886         extra_warnings.
21887         * c-common.c (warn_logical_op): Update.
21888         * c-common.h (warn_logical_op): Update declaration.
21889
21890 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
21891
21892         * tree.c (protected_set_expr_location): Fix formatting.
21893
21894 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
21895
21896         PR c/27676
21897         * c-typeck.c (readonly_warning): new.
21898         (build_unary_op, build_modify_expr): Use readonly_warning for
21899         storing into something readonly but not const-qualified.
21900
21901 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
21902
21903         PR c/22367
21904         * c-typeck.c (build_unary_op): Check for taking address of
21905         expression of type void.
21906
21907 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
21908
21909         PR c/35210
21910         * c-typeck.c (build_function_call): Check for calling a function
21911         with qualified void return types.  Call require_complete_type when
21912         generating a trap.
21913
21914 2009-04-18  Jan Hubicka  <jh@suse.cz>
21915
21916         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
21917         Set nothrow flag.
21918         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
21919         can_throw_external flag.
21920         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
21921         * ipa-pure-const.c (ignore_edge): New function.
21922         (propagate): Compute order for NOTHROW computation; set NOTHROWs
21923         only over can_throw_external edges.
21924         (local_pure_const): Add nothrow flag.
21925         * ipa-utils.c (searchc): Add ignore_edge callback.
21926         (ipa_utils_reduced_inorder): Add ignore_edge callback.
21927         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
21928         (set_nothrow_function_flags): Update cgraph.
21929         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
21930
21931 2009-04-18  Richard Guenther  <rguenther@suse.de>
21932
21933         PR middle-end/39804
21934         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
21935         (fold_stmt): ... this and ...
21936         (fold_stmt_inplace): ... this.
21937         (fold_stmt_1): Fold references in calls and asms.
21938         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
21939
21940 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
21941
21942         * tree-vrp.c (ssa_name_nonzero_p): Remove.
21943         * tree.h: Remove the prototype for ssa_name_nonzero_p.
21944
21945 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
21946
21947         * tree.c (function_args_count): Remove.
21948         * tree.h: Remove the prototype for function_args_count.
21949
21950 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
21951
21952         * tree-iterator.c (expr_only): Remove.
21953         * tree.h: Remove the prototype for expr_only.
21954
21955 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
21956
21957         * reginfo.c (cannot_change_mode_set_regs): Remove.
21958         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
21959
21960 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
21961
21962         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
21963         whether operands 0 and 1 overlaps.
21964
21965 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21966
21967         PR middle-end/36902
21968         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
21969         pointer. Use warning_at instead of warning.
21970         (search_for_addr_array): Likewise.
21971         (check_array_bounds): Likewise.
21972         (check_all_array_refs): Check that the incoming edge is not in the
21973         list of edges to be removed.
21974         (check_all_array_refs): Avoid the temporal pointer.
21975         (vrp_visit_cond_stmt): Fix typo.
21976         (simplify_switch_using_ranges): Handle the case where the switch
21977         index is an integer constant.
21978
21979 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
21980
21981         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
21982
21983 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
21984
21985         * doc/extend.texi, doc/invoke.texi: Fix typos.
21986
21987 2009-04-17  Cary Coutant  <ccoutant@google.com>
21988
21989         * tree-flow-inline.h (get_lineno): Fix inverted test.
21990
21991 2009-04-17  Diego Novillo  <dnovillo@google.com>
21992
21993         * tree-ssa-pre.c (create_expression_by_pieces): Remove
21994         assertion for AVAIL_OUT.
21995
21996 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
21997
21998         PR target/38627
21999         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
22000         * config/sh/linux-atomic.asm: Likewise.
22001
22002 2009-04-17  Diego Novillo  <dnovillo@google.com>
22003
22004         * except.c (debug_eh_tree): New.
22005         (struct eh_region, struct eh_status): Move ...
22006         * except.h: ... here.
22007         (add_type_for_runtime): Declare extern.
22008         (lookup_type_for_runtime): Likewise.
22009         (debug_eh_tree): Declare.
22010         * Makefile.in (GTFILES): List except.h before except.c
22011
22012 2009-04-17  Diego Novillo  <dnovillo@google.com>
22013
22014         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
22015         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
22016         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
22017         (find_vars_r): ... here.
22018         * tree-flow.h (find_referenced_vars_in): Declare.
22019         * tree-ssa-pre.c (create_expression_by_pieces): Assert
22020         that AVAIL_OUT exists for BLOCK.
22021         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
22022         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
22023         (tree-parloops.o): Likewise.
22024
22025 2009-04-17  Simon Baldwin  <simonb@google.com>
22026
22027         * toplev.c (default_tree_printer): Add handling for %E format.
22028
22029 2009-04-17  Diego Novillo  <dnovillo@google.com>
22030
22031         * tree-pretty-print.c (dump_generic_node): Add break after
22032         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
22033         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
22034         FUNCTION_TYPE together.  Call print_struct_decl when printing
22035         structures and TDF_SLIM is not given.
22036         (print_struct_decl): Fix logic for detecting recursion.
22037
22038 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
22039
22040         PR 31567
22041         * gcc.c (create_at_file): New.
22042         (compile_input_file_p): New.
22043         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
22044         * main.c (main): Update call to toplev_main.
22045         * toplev.c (toplev_main): Change signature. Call expandargv.
22046         * toplev.h (toplev_main): Change signature.
22047
22048 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
22049
22050         * dwarf2out.c (field_byte_offset): Use the type size as the field size
22051         if the latter is not constant.
22052
22053 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
22054
22055         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
22056
22057 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
22058
22059         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
22060         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
22061
22062 2009-04-17  Richard Guenther  <rguenther@suse.de>
22063
22064         * tree-ssa-structalias.c (get_constraint_for_component_ref):
22065         Handle component references view-converting an invariant address.
22066
22067 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
22068
22069         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
22070         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
22071         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
22072         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
22073         Use @deftypevr rather than @deftypevar.
22074
22075 2009-04-17  Richard Guenther  <rguenther@suse.de>
22076
22077         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
22078         (get_prop_source_stmt): Likewise.
22079         (can_propagate_from): Likewise.
22080
22081 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
22082
22083         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
22084         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
22085         (--with-multilib-list): Add default value.
22086         * configure: Regenerate.
22087         * Makefile.in (TM_ENDIAN_CONFIG): Define.
22088         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
22089         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
22090         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
22091         Don't add default cpu to multilib list unnecessarily, but do enable
22092         the relevant compiler option..
22093         Add support for --with-multilib-list=<blank> and
22094         --with-multilib-list=!<somelib> to supress unwanted multilibs.
22095         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
22096         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
22097         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
22098         TM_MULTILIB_CONFIG.
22099         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
22100         (MULTILIB_OSDIRNAMES): New variable.
22101         * config/sh/t-1e: Delete file.
22102         * config/sh/t-mlib-sh1: Delete file.
22103         * config/sh/t-mlib-sh2: Delete file.
22104         * config/sh/t-mlib-sh2a: Delete file.
22105         * config/sh/t-mlib-sh2a-nofpu: Delete file.
22106         * config/sh/t-mlib-sh2a-single: Delete file.
22107         * config/sh/t-mlib-sh2a-single-only: Delete file.
22108         * config/sh/t-mlib-sh2e: Delete file.
22109         * config/sh/t-mlib-sh3e: Delete file.
22110         * config/sh/t-mlib-sh4: Delete file.
22111         * config/sh/t-mlib-sh4-nofpu: Delete file.
22112         * config/sh/t-mlib-sh4-single: Delete file.
22113         * config/sh/t-mlib-sh4-single-only: Delete file.
22114         * config/sh/t-mlib-sh4a: Delete file.
22115         * config/sh/t-mlib-sh4a-nofpu: Delete file.
22116         * config/sh/t-mlib-sh4a-single: Delete file.
22117         * config/sh/t-mlib-sh4a-single-only: Delete file.
22118         * config/sh/t-mlib-sh4al: Delete file.
22119         * config/sh/t-mlib-sh5-32media: Delete file.
22120         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
22121         * config/sh/t-mlib-sh5-64media: Delete file.
22122         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
22123         * config/sh/t-mlib-sh5-compact: Delete file.
22124         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
22125         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
22126         * doc/install.texi (Options specification): Add
22127         --with-multilib-list and --with-endian.
22128
22129 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
22130
22131         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
22132         REVISION_c.
22133         (OBJS-common): Add plugin-version.o.
22134         (plugin-version.o): New.
22135         * gcc-plugin.h (plugin_gcc_version): New.
22136         (plugin_default_version_check): New.
22137         (plugin_init_func, plugin_init): Add version argument.
22138         * plugin-version.c: New.
22139         * plugin.c (str_plugin_gcc_version_name): New.
22140         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
22141         pass it to the init function.
22142         (plugin_default_version_check): New.
22143
22144 2009-04-17  Richard Guenther  <rguenther@suse.de>
22145
22146         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
22147         for decl-vs-decl disambiguation.
22148
22149 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
22150
22151         * config/s390/s390.h (s390_tune_attr): New macro definition.
22152         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
22153
22154 2009-04-17  Richard Guenther  <rguenther@suse.de>
22155
22156         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
22157         (fold_stmt_r): Likewise.
22158         (maybe_fold_reference): New function.
22159         (fold_gimple_assign): Handle cases fold_stmt_r did.
22160         (fold_stmt): Do not use fold_stmt_r.
22161         (fold_stmt_inplace): Likewise.
22162
22163 2009-04-17  Richard Guenther  <rguenther@suse.de>
22164
22165         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
22166         (record_equivalences_from_stmt): Remove useless checks and
22167         simplifications.
22168         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
22169         the type is already suitable.
22170
22171 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
22172
22173         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
22174
22175 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
22176
22177         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
22178         (CMPtype): Define as __gcc_CMPtype.
22179
22180 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
22181
22182         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
22183         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
22184
22185 2009-04-17  Richard Guenther  <rguenther@suse.de>
22186
22187         PR tree-optimization/39746
22188         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
22189         special-casing for builtins and static variable use/def.
22190         (call_may_clobber_ref_p_1): Likewise.
22191
22192 2009-04-16  Ian Lance Taylor  <iant@google.com>
22193
22194         * df.h: Include "timevar.h".
22195         (struct df_problem): Change tv_id field to timevar_id_t.
22196         * tree-pass.h: Include "timevar.h".
22197         (struct opt_pass): Change tv_id field to timevar_id_t.
22198         * timevar.h (timevar_id_t): Define TV_NONE.
22199         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
22200         TV_NONE rather than tv_id != 0.
22201         (execute_one_pass): Likewise.
22202         * Makefile.in (DF_H): Add $(TIMEVAR_H).
22203         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
22204         dependencies to $(TREE_PASS_H).
22205         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
22206         to TV_NONE.
22207         (pass_branch_target_load_optimize2): Likewise.
22208         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
22209         (pass_outof_cfg_layout_mode): Likewise.
22210         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
22211         (pass_rebuild_cgraph_edges): Likewise.
22212         (pass_remove_cgraph_callee_edges): Likewise.
22213         * df-core.c (pass_df_initialize_opt): Likewise.
22214         (pass_df_initialize_no_opt): Likewise.
22215         (pass_df_finish): Likewise.
22216         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
22217         * except.c (pass_set_nothrow_function_flags): Likewise.
22218         (pass_convert_to_eh_region_ranges): Likewise.
22219         * final.c (pass_compute_alignments): Likewise.
22220         * function.c (pass_instantiate_virtual_regs): Likewise.
22221         (pass_init_function): Likewise.
22222         (pass_leaf_regs): Likewise.
22223         (pass_match_asm_constraints): Likewise.
22224         * gimple-low.c (pass_lower_cf): Likewise.
22225         (pass_mark_used_blocks): Likewise.
22226         * init-regs.c (pass_initialize_regs): Likewise.
22227         * integrate.c (pass_initial_value_sets): Likewise.
22228         * ira.c (pass_ira): Likewise.
22229         * jump.c (pass_cleanup_barriers): Likewise.
22230         * omp-low.c (pass_expand_omp): Likewise.
22231         (pass_lower_omp): Likewise.
22232         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
22233         * recog.c (pass_split_all_insns): Likewise.
22234         (pass_split_after_reload): Likewise.
22235         (pass_split_before_regstack): Likewise.
22236         (pass_split_before_sched2): Likewise.
22237         (pass_split_for_shorten_branches): Likewise.
22238         * reginfo.c (pass_reginfo_init): Likewise.
22239         (pass_subregs_of_mode_init): Likewise.
22240         (pass_subregs_of_mode_finish): Likewise.
22241         * passes.c (pass_postreload): Likewise.
22242         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
22243         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
22244         (pass_warn_function_return): Likewise.
22245         (pass_warn_function_noreturn): Likewise.
22246         * tree-complex.c (pass_lower_complex): Likewise.
22247         (pass_lower_complex_O0): Likewise.
22248         * tree-if-conv.c (pass_if_conversion): Likewise.
22249         * tree-into-ssa.c (pass_build_ssa): Likewise.
22250         * tree-mudflap.c (pass_mudflap_1): Likewise.
22251         (pass_mudflap_2): Likewise.
22252         * tree-nomudflap.c (pass_mudflap_1): Likewise.
22253         (pass_mudflap_2): Likewise.
22254         * tree-nrv.c (pass_return_slot): Likewise.
22255         * tree-object-size.c (pass_object_sizes): Likewise.
22256         * tree-optimize.c (pass_all_optimizations): Likewise.
22257         (pass_early_local_passes): Likewise.
22258         (pass_all_early_optimizations): Likewise.
22259         (pass_cleanup_cfg): Likewise.
22260         (pass_cleanup_cfg_post_optimizing): Likewise.
22261         (pass_free_datastructures): Likewise.
22262         (pass_free_cfg_annotations): Likewise.
22263         (pass_fixup_cfg): Likewise.
22264         (pass_init_datastructures): Likewise.
22265         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
22266         (pass_late_warn_uninitialized): Likewise.
22267         (pass_update_address_taken): Likewise.
22268         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
22269         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
22270         (pass_cse_sincos): Likewise.
22271         (pass_convert_to_rsqrt): Likewise.
22272         * tree-ssa-structalias.c (pass_build_alias): Likewise.
22273         * tree-stdarg.c (pass_stdarg): Likewise.
22274         * tree-tailcall.c (pass_tail_recursion): Likewise.
22275         (pass_tail_calls): Likewise.
22276         * tree-vect-generic.c (pass_lower_vector): Likewise.
22277         (pass_lower_vector_ssa): Likewise.
22278         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
22279
22280 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
22281
22282         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
22283         XLR entry.
22284         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
22285         Handle -march=xlr.
22286         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
22287         logical and signext.
22288
22289 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
22290
22291         PR target/39767
22292         * config/sh/predicates.md (arith_operand): Check if the operand
22293         of TRUNCATE is a REG.
22294
22295 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
22296
22297         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
22298         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
22299
22300 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
22301
22302         * tree-iterator.c (tsi_split_statement_list_after,
22303         tsi_split_statement_list_before): Remove.
22304         * tree-iterator.h: Remove the prototypes for
22305         tsi_split_statement_list_after and tsi_split_statement_list_before.
22306
22307 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
22308
22309         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
22310         * tree-ssa-propagate.h: Remove the prototype for
22311         stmt_makes_single_load.
22312
22313 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
22314
22315         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
22316         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
22317
22318 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
22319
22320         * tree-iterator.c (EXPR_LAST_BODY): Remove.
22321
22322 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
22323
22324         * except.c (eh_region_outer_p): Remove.
22325         * except.h: Remove the prototype for eh_region_outer_p.
22326
22327 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
22328
22329         * function.c (current_function_assembler_name): Remove.
22330         * function.h: Remove the prototype for
22331         current_function_assembler_name.
22332
22333 2009-04-16  Ian Lance Taylor  <iant@google.com>
22334
22335         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
22336         (add_reg_note): Call alloc_reg_note.
22337         * rtl.h (alloc_reg_note): Declare.
22338         * combine.c (try_combine): Use alloc_reg_note.
22339         (recog_for_combine, move_deaths): Likewise.
22340         (distribute_notes): Use alloc_reg_note and add_reg_note.
22341         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
22342         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
22343         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
22344
22345 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
22346
22347         PR rtl-optimization/39762
22348         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
22349         ira_may_move_out_cost): Add comments about way of their usage.
22350         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
22351
22352         * ira-conflicts.c (process_regs_for_copy): Use function
22353         ira_get_register_move_cost instead of global
22354         ira_register_move_cost.
22355
22356         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
22357         color_pass, move_spill_restore, update_curr_costs): Ditto.
22358
22359         * ira-lives.c (process_single_reg_class_operands): Ditto.
22360
22361         * ira-emit.c (emit_move_list): Ditto.
22362
22363         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
22364         (record_reg_classes): Ditto.  Use functions
22365         ira_get_register_move_cost and ira_get_may_move_cost instead of
22366         global vars ira_register_move_cost, ira_may_move_out_cost and
22367         ira_may_move_in_cost.
22368         (record_address_regs): Don't call ira_init_register_move_cost.
22369         Use function ira_get_may_move_cost instead of global
22370         ira_may_move_in_cost.
22371         (process_bb_node_for_hard_reg_moves): Use function
22372         ira_get_register_move_cost instead of global ira_register_move_cost.
22373         (ira_costs): Don't call ira_init_register_move_cost.
22374
22375 2009-04-16  Richard Guenther  <rguenther@suse.de>
22376
22377         * tree-cfg.c (verify_gimple_assign_binary):
22378         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
22379         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
22380         (create_general_new_stmt): Note that this function is broken.
22381
22382 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
22383
22384         * common.opt (fhelp): Add Var(help_flag).
22385         * gcc-plugin.h (plugin_info): Add help.
22386         * plugin.c (plugin_name_args): Add help.
22387         (register_plugin_info): Set plugin->help.
22388         (print_help_one_plugin): New.
22389         (print_plugins_help): New.
22390         * plugin.h (print_plugins_help): New.
22391         * toplev.c (toplev_main): Call print_plugins_help if needed.
22392
22393 2009-04-16  Richard Guenther  <rguenther@suse.de>
22394
22395         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
22396         (gimple_ior_addresses_taken_1): New function.
22397         (gimple_ior_addresses_taken): Likewise.
22398         * gimple.h (struct gimple_statement_with_ops_base): Remove
22399         addresses_taken member.
22400         (gimple_ior_addresses_taken): Declare.
22401         (gimple_addresses_taken, gimple_addresses_taken_ptr,
22402         gimple_set_addresses_taken): Remove.
22403         * ipa-reference.c (mark_address): New function.
22404         (scan_stmt_for_static_refs): Use it for marking addresses taken.
22405         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
22406         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
22407         (gimple_add_to_addresses_taken): Remove.
22408         (get_tmr_operands): Call mark_address_taken.
22409         (get_asm_expr_operands): Likewise.
22410         (get_expr_operands): Likewise.
22411         (build_ssa_operands): Do not clear the addresses_taken bitmap.
22412         (free_stmt_operands): Do not free it.
22413         * tree-ssa.c (delete_tree_ssa): Likewise.
22414         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
22415
22416 2009-04-16  Richard Guenther  <rguenther@suse.de>
22417
22418         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
22419         (walk_stmt_load_store_ops): Likewise.
22420         * gimple.c (get_base_loadstore): New function.
22421         (walk_stmt_load_store_addr_ops): Likewise.
22422         (walk_stmt_load_store_ops): Likewise.
22423         * ipa-pure-const.c (check_op): Simplify.
22424         (check_load, check_store): New functions.
22425         (check_stmt): Use walk_stmt_load_store_ops.
22426         * ipa-reference.c (mark_load): Adjust signature.
22427         (mark_store): Likewise.
22428         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
22429
22430 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
22431
22432         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
22433         (plugin_info): New.
22434         * opts.c (common_handle_option): Don't call print_version.
22435         * plugin.c (plugin_name_args): Add version.
22436         (register_plugin_info): New.
22437         (register_callback): Handle PLUGIN_INFO.
22438         (try_init_one_plugin): New.
22439         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
22440         if failed to init.
22441         (finalize_one_plugin): New.
22442         (finalize_plugins): New.
22443         (print_one_plugin): New.
22444         (print_plugins_versions): New.
22445         * plugin.h (print_plugins_versions): New.
22446         (finalize_plugins): New.
22447         * toplev.c (compile_file): Don't call initialize_plugins.
22448         (print_version): Call print_plugins_versions.
22449         (toplev_main): Call initialize_plugins. Print version if needed.
22450         Call finalize_plugins.
22451
22452 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
22453
22454         * common.opt (fversion): New.
22455         * gcc.c (print_version): New.
22456         (process_command): Don't print the version. Just set print_version.
22457         (main): Print version. Call subprocesses if print_version and
22458         verbose_flag are set.
22459         * opts.c (common_handle_option): Handle OPT_fversion.
22460
22461 2009-04-16  Richard Guenther  <rguenther@suse.de>
22462             Ira Rosen  <irar@il.ibm.com>
22463
22464         PR tree-optimization/39698
22465         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
22466         type of the reduction variable.  Only generate the def if
22467         it is needed.
22468
22469         * omp-low.c (expand_omp_for_generic): When converting to a pointer
22470         make sure to first convert to an integer of the same precision.
22471         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
22472         the type of the evolution correctly in computing the new
22473         induction variable base.
22474
22475 2009-04-16  Richard Guenther  <rguenther@suse.de>
22476
22477         PR middle-end/39625
22478         * tree-cfg.c (make_blocks): Split statements with to-be
22479         abnormal SSA names on the lhs.
22480
22481 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
22482
22483         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
22484         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
22485         * c-typeck.c (really_start_incremental_init): Likewise.
22486         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
22487         (TARGET_INITIALIZER): Remove it.
22488         * target.h (struct target): Remove vector_opaque_p.
22489         * tree.c (build_opaque_vector_type): New.
22490         * tree.h (TYPE_VECTOR_OPAQUE): New.
22491         (build_opaque_vector_type): Declare.
22492         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
22493         * config/rs6000/rs6000.c (build_opaque_vector_type,
22494         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
22495         (rs6000_init_builtins): Use build_opaque_vector_type for
22496         opaque_V4SI_type_node.
22497
22498 2009-04-15  Catherine Moore  <clm@codesourcery.com>
22499
22500         * debug.h (set_name):  Declare.
22501         * dwarf2out.c (dwarf2out_set_name): Declare.
22502         (dwarf2_debug_hooks): Add set_name.
22503         (find_AT_string): New.
22504         (add_AT_string): Call find_AT_string.
22505         (dwarf2out_set_name): New.
22506         * cp/decl.c (grokdeclarator): Call set_name.
22507         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
22508         * debug.c (do_nothing_debug_hooks):  Likewise.
22509         * dbxout.c (dbx_debug_hooks): Likewise.
22510         * sdbout.c (sdb_debug_hooks): Likewise.
22511
22512 2009-04-15  Michael Eager  <eager@eagercon.com>
22513
22514         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
22515         reg for single-precision FPU.
22516         * config/rs6000/rs6000.md (movsi_internal1): Only for
22517         !TARGET_SINGLE_FPU.
22518         (movsi_internal1_single): New. Add pattern to move SI values to/from
22519         single-precision FP regs.
22520
22521 2009-04-15  Richard Guenther  <rguenther@suse.de>
22522
22523         * omp-low.c (lower_rec_input_clauses): Build correct address
22524         expressions.
22525         (expand_omp_for_generic): Fix multiplication type.
22526         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
22527         (generate_memset_zero): Fix types.
22528         * tree-profile.c (prepare_instrumented_value): Correctly
22529         widen a pointer.
22530
22531 2009-04-15  Ian Lance Taylor  <iant@google.com>
22532
22533         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
22534         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
22535         for -Wall and for -Wc++-compat.
22536         (c_common_post_options): For C++, set warn_enum_compare if not
22537         already set.
22538         * c-tree.h (struct c_expr): Add field original_type.
22539         (build_external_ref): Update declaration.
22540         * c-parser.c (c_parser_braced_init): Set original_type.
22541         (c_parser_initelt): Likewise.
22542         (c_parser_expr_no_commas): Likewise.
22543         (c_parser_conditional_expression): Likewise.
22544         (c_parser_cast_expression): Likewise.
22545         (c_parser_unary_expression): Likewise.  Pull setting of
22546         original_code to top of function.
22547         (c_parser_sizeof_expression): Set original_type.
22548         (c_parser_alignof_expression): Likewise.
22549         (c_parser_postfix_expression): Likewise.  Pull setting of
22550         original_code to top of function.
22551         (c_parser_postfix_expression_after_paren_type): Set original_type.
22552         (c_parser_postfix_expression_after_primary): Likewise.
22553         (c_parser_expression): Likewise.
22554         * c-typeck.c (build_external_ref): Add type parameter.  Change all
22555         callers.
22556         (c_expr_sizeof_expr): Set original_type field.
22557         (parser_build_unary_op): Likewise.
22558         (parser_build_binary_op): Likewise.  Optionally warn about
22559         comparisons of enums of different types.
22560         (digest_init): Set original_type field.
22561         (really_start_incremental_init): Likewise.
22562         (push_init_level, pop_init_level): Likewise.
22563         * doc/invoke.texi (Warning Options): -Wenum-compare now
22564         supported in C.
22565
22566 2009-04-15  Richard Guenther  <rguenther@suse.de>
22567
22568         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
22569         out a necessary conversion.
22570         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
22571         names we didn't value number.
22572         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
22573
22574 2009-04-15  Richard Guenther  <rguenther@suse.de>
22575
22576         PR tree-optimization/39764
22577         * tree-ssa-ccp.c (get_value): Canonicalize value with
22578         canonicalize_float_value.
22579
22580 2009-04-15  Jan Hubicka  <jh@suse.cz>
22581
22582         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
22583         Wrong version of patch.
22584
22585 2009-04-15  Jan Hubicka  <jh@suse.cz>
22586
22587         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
22588
22589 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
22590
22591         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
22592         our distinct integral and vector types.
22593
22594 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
22595
22596         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
22597         * init.c (build_vtbl_address): Remove call to assemble_external.
22598
22599 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
22600
22601         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
22602         output for other floating point modes.
22603
22604 2009-04-14  Diego Novillo  <dnovillo@google.com>
22605
22606         * diagnostic.c (diagnostic_report_diagnostic): Do not
22607         warn about loaded plugins for DK_ERROR and DK_WARNING.
22608         * c-decl.c (declspecs_add_type): Move call to
22609         invoke_plugin_callbacks ...
22610         * c-parser.c (c_parser_declspecs): ... here.
22611         * plugin.c (dump_active_plugins): Tidy output.
22612
22613 2009-04-14  Diego Novillo  <dnovillo@google.com>
22614             Le-Chun Wu  <lcwu@google.com>
22615
22616         * configure.ac: Add --enable-plugin support.
22617         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
22618         * Makefile.in (PLUGIN_H): Define.
22619         Export ENABLE_PLUGIN and GMPINC to site.exp.
22620         Add PLUGINLIBS to link command.
22621         Add/modify dependencies for plugin.o and files including plugin.h.
22622         (plugin.o): New.
22623         * config.in: Regenerate.
22624
22625         * opts.c (common_handle_option): Handle OPT_fplugin_ and
22626         OPT_fplugin_arg_.
22627
22628 2009-04-14  Le-Chun Wu  <lcwu@google.com>
22629
22630         * tree-pass.h (register_one_dump_file): Add a prototype for
22631         register_one_dump_file.
22632         * toplev.c (compile_file): Call initialize_plugins.
22633         (do_compile): Call invoke_plugin_callbacks.
22634         (toplev_main): Call invoke_plugin_callbacks.
22635         * common.opt: Add -fplugin= and -fplugin-arg-.
22636         * gcc-plugin.h: New public header file for plugins to include.
22637         * plugin.c: New source file.
22638         * plugin.h: New internal header file.
22639         * passes.c (register_one_dump_file): Make it external.
22640
22641         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
22642
22643 2009-04-14  Diego Novillo  <dnovillo@google.com>
22644
22645         * doc/plugins.texi: New.
22646         * doc/gccint.texi: Add reference to Plugins chapter.
22647         * doc/invoke.texi: Document -fplugin and -fplugin-arg
22648         * diagnostic.c (diagnostic_report_diagnostic): Warn about
22649         loaded plugins, if any.
22650         * timevar.def (TV_PLUGIN_INIT): Define.
22651         (TV_PLUGIN_RUN): Define.
22652         * plugin.c: Include timevar.h
22653         (plugins_active_p): New.
22654         (dump_active_plugins): New.
22655         (debug_active_plugins): New.
22656
22657 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
22658
22659         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
22660         library paths.
22661         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
22662
22663 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
22664
22665         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
22666         the same as a minus without a shift.
22667
22668 2009-04-14  Nick Clifton  <nickc@redhat.com>
22669
22670         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
22671         comparisons with small integers will always produce a short
22672         branch.
22673
22674 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
22675
22676         Merge:
22677         2008-12-19  Diego Novillo  <dnovillo@google.com>
22678
22679         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
22680
22681 2009-04-14  Richard Guenther  <rguenther@suse.de>
22682
22683         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
22684         verification.
22685         (verify_gimple_assign_binary): Likewise.  Handle shifts and
22686         rotates correctly.
22687         (verify_gimple_phi): Print the mismatched argument position.
22688         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
22689         Fix types.
22690         (vect_update_init_of_dr): Likewise.
22691         * matrix-reorg.c (transform_access_sites): Do what the
22692         comment suggests.
22693         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
22694
22695 2009-04-13  Michael Eager  <eager@eagercon.com>
22696
22697         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
22698         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
22699         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
22700         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
22701         remove duplicate config
22702
22703 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
22704
22705         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
22706         file_name:line_number type locator of the call site.
22707
22708 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
22709
22710         * genautomata.c: Put blank after comma.
22711         (automaton_decls): New.
22712         (struct unit_usage): Add comments to member next.
22713         (store_alt_unit_usage): Keep the list ordered.
22714         (unit_present_on_list_p, equal_alternatives_p): New.
22715         (check_regexp_units_distribution): Check units distribution
22716         correctness correctly.
22717         (main): Don't write automata if error is found.  Return correct
22718         exit code.
22719
22720         * config/m68k/cf.md (cfv4_ds): Remove.
22721         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
22722         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
22723
22724         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
22725         power4-load-ext, power4-store, power4-store-update,
22726         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
22727         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
22728         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
22729         power4-sqrt, power4-isync): Modify reservation to make correct
22730         unit distribution to automata.
22731
22732         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
22733         power5-store-update, power5-two, power5-three, power5-lmul,
22734         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
22735
22736 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
22737
22738         * except.c (pass_set_nothrow_function_flags): Set name and add
22739         TODO_dump_func.
22740         (set_nothrow_function_flags): Mention in the dump file when
22741         changing a function to nothrow.
22742
22743 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
22744
22745         PR/39066
22746         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
22747         instead of unsigned long.
22748
22749 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22750
22751         * config/arm/arm.c (return_used_this_function): Remove.
22752         (arm_output_function_prologue): Remove use of
22753         return_used_this_function.
22754         (output_return_instruction): Replace use of
22755         return_used_this_function
22756         by cfun->machine->return_used_this_function.
22757         (arm_output_epilogue): Likewise.
22758         (arm_output_function_epilogue): Likewise.
22759         (thumb_unexpanded_epilogue): Likewise.
22760         * config/arm/arm.h (struct machine_function):
22761         New member return_used_this_function.
22762
22763 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
22764
22765         * doc/install.texi: Correct description of default directory for
22766         --with-gxx-include-dir.
22767
22768 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
22769
22770         * fold-const.c (build_range_check): Properly deal with enumeral and
22771         boolean base types.
22772
22773 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
22774
22775         * doc/invoke.texi (max_gcse_passes): Remove documentation.
22776         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
22777         * params.h (MAX_GCSE_PASSES): Remove.
22778         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
22779         in sequence.  Remove ability to run multiple passes.
22780         (bypass_jumps): Report run as third CPROP pass.
22781
22782 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
22783
22784         PR middle-end/39651
22785         * except.c (can_throw_external): Look at each insn in a SEQUENCE
22786         when deciding whether the whole SEQUENCE can throw.
22787
22788 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
22789
22790         PR target/39740
22791         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
22792         offseted label references.
22793
22794 2009-04-11  Jan Hubicka  <jh@suse.cz>
22795
22796         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
22797
22798 2009-04-11  Richard Guenther  <rguenther@suse.de>
22799
22800         PR middle-end/39732
22801         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
22802         return variables as TREE_ADDRESSABLE.
22803
22804 2009-04-11  Richard Guenther  <rguenther@suse.de>
22805
22806         PR tree-optimization/39713
22807         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
22808         reference trees have SSA_NAME operands.
22809
22810 2009-04-11  Richard Guenther  <rguenther@suse.de>
22811
22812         PR c/39712
22813         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
22814         address expressions.
22815
22816 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
22817
22818         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
22819         match changes in Cygwin 1.7
22820         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
22821         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
22822
22823 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
22824
22825         PR tree-optimization/39701
22826         * doc/invoke.texi (Optimization Options): Document change in
22827         meaning and initialization of -fdelete-null-pointer-checks.
22828
22829 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
22830
22831         PR middle-end/39701
22832         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
22833
22834         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
22835         here.
22836
22837         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
22838
22839 2009-04-10  Chao-ying Fu  <fu@mips.com>
22840
22841         * doc/tm.texi (Instruction Output): Document
22842         TARGET_ASM_FINAL_POSTSCAN_INSN.
22843         * target.h (final_postscan_insn): New field in asm_out.
22844         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
22845         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
22846         * final.c (final_scan_insn): Call
22847         targetm.asm_out.final_postscan_insn after outputting
22848         an asm macro and a normal instruction.
22849
22850         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
22851         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
22852         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
22853         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
22854         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
22855
22856 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
22857
22858         PR middle-end/39701
22859         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
22860         variables as non-NULL even with -fdelete-null-pointer-checks.
22861
22862 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
22863
22864         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
22865
22866 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
22867
22868         PR target/39678
22869         * config/i386/i386.c (classify_argument): Handle SCmode with
22870         (bit_offset % 64) != 0.
22871
22872 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
22873
22874         * doc/invoke.texi (Optimize Options): Add cross-reference to
22875         -Q --help=optimizers examples.
22876
22877 2009-04-10  Ben Elliston  <bje@au.ibm.com>
22878
22879         PR target/36800
22880         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
22881         regalign for the reg == fpr and TDmode case.
22882
22883 2009-04-09  David Ayers  <ayers@fsfe.org>
22884
22885         PR objc/29200
22886         * objc/objc-act.c (warn_with_method): Remove helper function.
22887         (check_duplicates): Call warning and inform directly.
22888         (really_start_method): Likewise.
22889
22890 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
22891
22892         * expmed.c (expand_divmod): Always use a comparison for a division
22893         by a large unsigned integer.
22894
22895         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
22896         for things others than variables or functions as nonzero.
22897
22898 2009-04-09  Nick Clifton  <nickc@redhat.com>
22899
22900         * unwind-compat.c: Change copyright header to refer to version
22901         3 of the GNU General Public License with version 3.1 of the
22902         GCC Runtime Library Exception and to point readers at the
22903         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
22904         * config/alpha/crtfastmath.c: Likewise.
22905         * config/alpha/linux-unwind.h: Likewise.
22906         * config/alpha/qrnnd.asm: Likewise.
22907         * config/alpha/vms-crt0-64.c: Likewise.
22908         * config/alpha/vms-crt0.c: Likewise.
22909         * config/alpha/vms-dwarf2.asm: Likewise.
22910         * config/alpha/vms-dwarf2eh.asm: Likewise.
22911         * config/alpha/vms-psxcrt0-64.c: Likewise.
22912         * config/alpha/vms-psxcrt0.c: Likewise.
22913         * config/alpha/vms_tramp.asm: Likewise.
22914         * config/arc/initfini.c: Likewise.
22915         * config/arc/lib1funcs.asm: Likewise.
22916         * config/arm/bpabi-v6m.S: Likewise.
22917         * config/arm/bpabi.S: Likewise.
22918         * config/arm/bpabi.c: Likewise.
22919         * config/arm/crti.asm: Likewise.
22920         * config/arm/crtn.asm: Likewise.
22921         * config/arm/ieee754-df.S: Likewise.
22922         * config/arm/ieee754-sf.S: Likewise.
22923         * config/arm/lib1funcs.asm: Likewise.
22924         * config/arm/libunwind.S: Likewise.
22925         * config/arm/linux-atomic.c: Likewise.
22926         * config/arm/mmintrin.h: Likewise.
22927         * config/arm/pr-support.c: Likewise.
22928         * config/arm/unaligned-funcs.c: Likewise.
22929         * config/arm/unwind-arm.c: Likewise.
22930         * config/arm/unwind-arm.h: Likewise.
22931         * config/avr/libgcc.S: Likewise.
22932         * config/bfin/crti.s: Likewise.
22933         * config/bfin/crtlibid.s: Likewise.
22934         * config/bfin/crtn.s: Likewise.
22935         * config/bfin/lib1funcs.asm: Likewise.
22936         * config/bfin/linux-unwind.h: Likewise.
22937         * config/cris/arit.c: Likewise.
22938         * config/cris/cris_abi_symbol.c: Likewise.
22939         * config/darwin-64.c: Likewise.
22940         * config/darwin-crt2.c: Likewise.
22941         * config/darwin-crt3.c: Likewise.
22942         * config/darwin.h: Likewise.
22943         * config/dbxelf.h: Likewise.
22944         * config/dfp-bit.c: Likewise.
22945         * config/dfp-bit.h: Likewise.
22946         * config/elfos.h: Likewise.
22947         * config/fixed-bit.c: Likewise.
22948         * config/fixed-bit.h: Likewise.
22949         * config/fp-bit.c: Likewise.
22950         * config/fp-bit.h: Likewise.
22951         * config/fr30/crti.asm: Likewise.
22952         * config/fr30/crtn.asm: Likewise.
22953         * config/fr30/lib1funcs.asm: Likewise.
22954         * config/freebsd-spec.h: Likewise.
22955         * config/frv/cmovd.c: Likewise.
22956         * config/frv/cmovh.c: Likewise.
22957         * config/frv/cmovw.c: Likewise.
22958         * config/frv/frvbegin.c: Likewise.
22959         * config/frv/frvend.c: Likewise.
22960         * config/frv/lib1funcs.asm: Likewise.
22961         * config/glibc-stdint.h: Likewise.
22962         * config/h8300/clzhi2.c: Likewise.
22963         * config/h8300/crti.asm: Likewise.
22964         * config/h8300/crtn.asm: Likewise.
22965         * config/h8300/ctzhi2.c: Likewise.
22966         * config/h8300/fixunssfsi.c: Likewise.
22967         * config/h8300/lib1funcs.asm: Likewise.
22968         * config/h8300/parityhi2.c: Likewise.
22969         * config/h8300/popcounthi2.c: Likewise.
22970         * config/i386/ammintrin.h: Likewise.
22971         * config/i386/att.h: Likewise.
22972         * config/i386/avxintrin.h: Likewise.
22973         * config/i386/biarch64.h: Likewise.
22974         * config/i386/bmmintrin.h: Likewise.
22975         * config/i386/cpuid.h: Likewise.
22976         * config/i386/cross-stdarg.h: Likewise.
22977         * config/i386/crtfastmath.c: Likewise.
22978         * config/i386/crtprec.c: Likewise.
22979         * config/i386/cygming-crtbegin.c: Likewise.
22980         * config/i386/cygming-crtend.c: Likewise.
22981         * config/i386/cygwin.asm: Likewise.
22982         * config/i386/emmintrin.h: Likewise.
22983         * config/i386/gmm_malloc.h: Likewise.
22984         * config/i386/gthr-win32.c: Likewise.
22985         * config/i386/i386.h: Likewise.
22986         * config/i386/immintrin.h: Likewise.
22987         * config/i386/linux-unwind.h: Likewise.
22988         * config/i386/linux64.h: Likewise.
22989         * config/i386/mm3dnow.h: Likewise.
22990         * config/i386/mmintrin-common.h: Likewise.
22991         * config/i386/mmintrin.h: Likewise.
22992         * config/i386/nmmintrin.h: Likewise.
22993         * config/i386/pmm_malloc.h: Likewise.
22994         * config/i386/pmmintrin.h: Likewise.
22995         * config/i386/smmintrin.h: Likewise.
22996         * config/i386/sol2-c1.asm: Likewise.
22997         * config/i386/sol2-ci.asm: Likewise.
22998         * config/i386/sol2-cn.asm: Likewise.
22999         * config/i386/sol2-gc1.asm: Likewise.
23000         * config/i386/tmmintrin.h: Likewise.
23001         * config/i386/unix.h: Likewise.
23002         * config/i386/w32-unwind.h: Likewise.
23003         * config/i386/wmmintrin.h: Likewise.
23004         * config/i386/x86-64.h: Likewise.
23005         * config/i386/x86intrin.h: Likewise.
23006         * config/i386/xmmintrin.h: Likewise.
23007         * config/ia64/crtbegin.asm: Likewise.
23008         * config/ia64/crtend.asm: Likewise.
23009         * config/ia64/crtfastmath.c: Likewise.
23010         * config/ia64/crti.asm: Likewise.
23011         * config/ia64/crtn.asm: Likewise.
23012         * config/ia64/fde-glibc.c: Likewise.
23013         * config/ia64/lib1funcs.asm: Likewise.
23014         * config/ia64/linux-unwind.h: Likewise.
23015         * config/ia64/quadlib.c: Likewise.
23016         * config/ia64/unwind-ia64.c: Likewise.
23017         * config/linux.h: Likewise.
23018         * config/m32c/m32c-lib1.S: Likewise.
23019         * config/m32c/m32c-lib2-trapv.c: Likewise.
23020         * config/m32c/m32c-lib2.c: Likewise.
23021         * config/m32r/initfini.c: Likewise.
23022         * config/m68hc11/larith.asm: Likewise.
23023         * config/m68hc11/m68hc11-crt0.S: Likewise.
23024         * config/m68k/cf.md: Likewise.
23025         * config/m68k/crti.s: Likewise.
23026         * config/m68k/crtn.s: Likewise.
23027         * config/m68k/lb1sf68.asm: Likewise.
23028         * config/m68k/linux-unwind.h: Likewise.
23029         * config/mcore/crti.asm: Likewise.
23030         * config/mcore/crtn.asm: Likewise.
23031         * config/mcore/lib1.asm: Likewise.
23032         * config/mips/linux-unwind.h: Likewise.
23033         * config/mips/loongson.h: Likewise.
23034         * config/mips/mips16.S: Likewise.
23035         * config/mmix/crti.asm: Likewise.
23036         * config/mmix/crtn.asm: Likewise.
23037         * config/pa/fptr.c: Likewise.
23038         * config/pa/hpux-unwind.h: Likewise.
23039         * config/pa/lib2funcs.asm: Likewise.
23040         * config/pa/linux-atomic.c: Likewise.
23041         * config/pa/linux-unwind.h: Likewise.
23042         * config/pa/milli64.S: Likewise.
23043         * config/pa/quadlib.c: Likewise.
23044         * config/pa/stublib.c: Likewise.
23045         * config/picochip/libgccExtras/adddi3.asm: Likewise.
23046         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
23047         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
23048         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
23049         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
23050         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
23051         * config/picochip/libgccExtras/divmod15.asm: Likewise.
23052         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
23053         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
23054         * config/picochip/libgccExtras/longjmp.asm: Likewise.
23055         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
23056         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
23057         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
23058         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
23059         * config/picochip/libgccExtras/setjmp.asm: Likewise.
23060         * config/picochip/libgccExtras/subdi3.asm: Likewise.
23061         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
23062         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
23063         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
23064         * config/rs6000/750cl.h: Likewise.
23065         * config/rs6000/altivec.h: Likewise.
23066         * config/rs6000/biarch64.h: Likewise.
23067         * config/rs6000/crtresfpr.asm: Likewise.
23068         * config/rs6000/crtresgpr.asm: Likewise.
23069         * config/rs6000/crtresxfpr.asm: Likewise.
23070         * config/rs6000/crtresxgpr.asm: Likewise.
23071         * config/rs6000/crtsavfpr.asm: Likewise.
23072         * config/rs6000/crtsavgpr.asm: Likewise.
23073         * config/rs6000/darwin-asm.h: Likewise.
23074         * config/rs6000/darwin-fallback.c: Likewise.
23075         * config/rs6000/darwin-fpsave.asm: Likewise.
23076         * config/rs6000/darwin-ldouble.c: Likewise.
23077         * config/rs6000/darwin-tramp.asm: Likewise.
23078         * config/rs6000/darwin-unwind.h: Likewise.
23079         * config/rs6000/darwin-vecsave.asm: Likewise.
23080         * config/rs6000/darwin-world.asm: Likewise.
23081         * config/rs6000/e500crtres32gpr.asm: Likewise.
23082         * config/rs6000/e500crtres64gpr.asm: Likewise.
23083         * config/rs6000/e500crtres64gprctr.asm: Likewise.
23084         * config/rs6000/e500crtrest32gpr.asm: Likewise.
23085         * config/rs6000/e500crtrest64gpr.asm: Likewise.
23086         * config/rs6000/e500crtresx32gpr.asm: Likewise.
23087         * config/rs6000/e500crtresx64gpr.asm: Likewise.
23088         * config/rs6000/e500crtsav32gpr.asm: Likewise.
23089         * config/rs6000/e500crtsav64gpr.asm: Likewise.
23090         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
23091         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
23092         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
23093         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
23094         * config/rs6000/eabi-ci.asm: Likewise.
23095         * config/rs6000/eabi-cn.asm: Likewise.
23096         * config/rs6000/eabi.asm: Likewise.
23097         * config/rs6000/linux-unwind.h: Likewise.
23098         * config/rs6000/linux64.h: Likewise.
23099         * config/rs6000/paired.h: Likewise.
23100         * config/rs6000/paired.md: Likewise.
23101         * config/rs6000/ppc64-fp.c: Likewise.
23102         * config/rs6000/ppu_intrinsics.h: Likewise.
23103         * config/rs6000/rs6000.h: Likewise.
23104         * config/rs6000/si2vmx.h: Likewise.
23105         * config/rs6000/sol-ci.asm: Likewise.
23106         * config/rs6000/sol-cn.asm: Likewise.
23107         * config/rs6000/spe.h: Likewise.
23108         * config/rs6000/spu2vmx.h: Likewise.
23109         * config/rs6000/sysv4.h: Likewise.
23110         * config/rs6000/tramp.asm: Likewise.
23111         * config/rs6000/vec_types.h: Likewise.
23112         * config/s390/linux-unwind.h: Likewise.
23113         * config/s390/tpf-unwind.h: Likewise.
23114         * config/score/crti.asm: Likewise.
23115         * config/score/crtn.asm: Likewise.
23116         * config/sh/crt1.asm: Likewise.
23117         * config/sh/crti.asm: Likewise.
23118         * config/sh/crtn.asm: Likewise.
23119         * config/sh/divtab-sh4-300.c: Likewise.
23120         * config/sh/divtab-sh4.c: Likewise.
23121         * config/sh/divtab.c: Likewise.
23122         * config/sh/lib1funcs-4-300.asm: Likewise.
23123         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
23124         * config/sh/lib1funcs.asm: Likewise.
23125         * config/sh/lib1funcs.h: Likewise.
23126         * config/sh/linux-atomic.asm: Likewise.
23127         * config/sh/linux-unwind.h: Likewise.
23128         * config/sh/shmedia.h: Likewise.
23129         * config/sh/sshmedia.h: Likewise.
23130         * config/sh/ushmedia.h: Likewise.
23131         * config/sparc/crtfastmath.c: Likewise.
23132         * config/sparc/linux-unwind.h: Likewise.
23133         * config/sparc/sol2-c1.asm: Likewise.
23134         * config/sparc/sol2-ci.asm: Likewise.
23135         * config/sparc/sol2-cn.asm: Likewise.
23136         * config/spu/divmodti4.c: Likewise.
23137         * config/spu/divv2df3.c: Likewise.
23138         * config/spu/float_disf.c: Likewise.
23139         * config/spu/float_unsdidf.c: Likewise.
23140         * config/spu/float_unsdisf.c: Likewise.
23141         * config/spu/float_unssidf.c: Likewise.
23142         * config/spu/mfc_multi_tag_release.c: Likewise.
23143         * config/spu/mfc_multi_tag_reserve.c: Likewise.
23144         * config/spu/mfc_tag_release.c: Likewise.
23145         * config/spu/mfc_tag_reserve.c: Likewise.
23146         * config/spu/mfc_tag_table.c: Likewise.
23147         * config/spu/multi3.c: Likewise.
23148         * config/spu/spu_internals.h: Likewise.
23149         * config/spu/spu_intrinsics.h: Likewise.
23150         * config/spu/spu_mfcio.h: Likewise.
23151         * config/spu/vec_types.h: Likewise.
23152         * config/spu/vmx2spu.h: Likewise.
23153         * config/stormy16/stormy16-lib2.c: Likewise.
23154         * config/svr4.h: Likewise.
23155         * config/sync.c: Likewise.
23156         * config/v850/lib1funcs.asm: Likewise.
23157         * config/vxlib-tls.c: Likewise.
23158         * config/vxlib.c: Likewise.
23159         * config/vxworks-dummy.h: Likewise.
23160         * config/xtensa/crti.asm: Likewise.
23161         * config/xtensa/crtn.asm: Likewise.
23162         * config/xtensa/ieee754-df.S: Likewise.
23163         * config/xtensa/ieee754-sf.S: Likewise.
23164         * config/xtensa/lib1funcs.asm: Likewise.
23165         * config/xtensa/lib2funcs.S: Likewise.
23166         * config/xtensa/linux-unwind.h: Likewise.
23167         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
23168         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
23169         * coretypes.h: Likewise.
23170         * crtstuff.c: Likewise.
23171         * defaults.h: Likewise.
23172         * dwarf2.h: Likewise.
23173         * emutls.c: Likewise.
23174         * gbl-ctors.h: Likewise.
23175         * gcov-io.h: Likewise.
23176         * ginclude/float.h: Likewise.
23177         * ginclude/iso646.h: Likewise.
23178         * ginclude/stdarg.h: Likewise.
23179         * ginclude/stdbool.h: Likewise.
23180         * ginclude/stddef.h: Likewise.
23181         * ginclude/stdfix.h: Likewise.
23182         * ginclude/stdint-gcc.h: Likewise.
23183         * ginclude/tgmath.h: Likewise.
23184         * gthr-aix.h: Likewise.
23185         * gthr-dce.h: Likewise.
23186         * gthr-gnat.c: Likewise.
23187         * gthr-gnat.h: Likewise.
23188         * gthr-lynx.h: Likewise.
23189         * gthr-mipssde.h: Likewise.
23190         * gthr-nks.h: Likewise.
23191         * gthr-posix.c: Likewise.
23192         * gthr-posix.h: Likewise.
23193         * gthr-posix95.h: Likewise.
23194         * gthr-rtems.h: Likewise.
23195         * gthr-single.h: Likewise.
23196         * gthr-solaris.h: Likewise.
23197         * gthr-tpf.h: Likewise.
23198         * gthr-vxworks.h: Likewise.
23199         * gthr-win32.h: Likewise.
23200         * gthr.h: Likewise.
23201         * libgcc2.c: Likewise.
23202         * libgcc2.h: Likewise.
23203         * libgcov.c: Likewise.
23204         * tsystem.h: Likewise.
23205         * typeclass.h: Likewise.
23206         * unwind-c.c: Likewise.
23207         * unwind-compat.h: Likewise.
23208         * unwind-dw2-fde-compat.c: Likewise.
23209         * unwind-dw2-fde-darwin.c: Likewise.
23210         * unwind-dw2-fde-glibc.c: Likewise.
23211         * unwind-dw2-fde.c: Likewise.
23212         * unwind-dw2-fde.h: Likewise.
23213         * unwind-dw2.c: Likewise.
23214         * unwind-dw2.h: Likewise.
23215         * unwind-generic.h: Likewise.
23216         * unwind-pe.h: Likewise.
23217         * unwind-sjlj.c: Likewise.
23218         * unwind.inc: Likewise.
23219         * config/arm/neon-gen.ml: Change generated copyright header to
23220         refer to version 3 of the GNU General Public License with
23221         version 3.1 of the GCC Runtime Library Exception and to point
23222         readers at the COPYING3 and COPYING3.RUNTIME files and the
23223         FSF's license web page.
23224         * config/arm/arm_neon.h: Regenerate.
23225
23226 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
23227
23228         * config/cris/cris.md: Change copyright header to refer to version
23229         3 of the GNU General Public License.
23230         * doc/install.texi2html: Change copyright header to refer to version
23231         3 of the GNU General Public License and to point readers at the
23232         COPYING3 file and the FSF's license web page.
23233         * config/vax/linux.h: Likewise.
23234
23235 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
23236
23237         * config/i386/i386.md (cmpcc): New.
23238         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
23239         (sync_compare_and_swap_cc*): Delete.
23240
23241         * config/s390/s390.c (s390_compare_emitted): Remove.
23242         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
23243         s390_compare_emitted used to be handled.  Assert that modes match.
23244         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
23245         refer to sync_compare_and_swap_ccsi.
23246         * config/s390/s390.h (s390_compare_emitted): Remove.
23247         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
23248         instead of s390_compare_emitted.
23249         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
23250         instead of s390_compare_emitted.
23251         * config/s390/s390.md (cmpcc): New.
23252         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
23253         CC_REGNUM, do not pretend it's set.
23254         (sync_compare_and_swap_cc*): Delete.
23255         * config/s390/predicates.md (cc_reg_operand): New.
23256
23257         * expr.c (sync_compare_and_swap_cc): Delete.
23258         * optabs.h (sync_compare_and_swap_cc): Delete.
23259         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
23260         is being used with can_compare_p.
23261         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
23262         (find_cc_set): New.
23263         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
23264         look for a MODE_CC set instead.  Use emit_store_flag.
23265         (expand_compare_and_swap_loop): Likewise, with some additional
23266         complication to avoid a force_reg when useless.  Use
23267         emit_cmp_and_jump_insns.
23268         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
23269         * doc/md.texi (sync_compare_and_swap_cc): Merge with
23270         sync_compare_and_swap documentation.
23271
23272 2009-04-09  Jan Hubicka  <jh@suse.cz>
23273
23274         * except.c (find_prev_try): Break out from ....
23275         (duplicate_eh_regions): ... here; properly update prev_try pointers
23276         when duplication part of tree.
23277         (dump_eh_tree): Improve dumping.
23278         (verify_eh_region): New.
23279         (verify_eh_tree): Use it.
23280
23281 2009-04-06  Richard Guenther  <rguenther@suse.de>
23282
23283         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
23284         &ARRAY addresses by adjusting their types and prepending
23285         a conversion.
23286         * tree-cfg.c (verify_gimple_assign_single): Verify that
23287         addresses are correct.
23288
23289 2009-04-09  Richard Guenther  <rguenther@suse.de>
23290
23291         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
23292         indices into an array reference if possible.
23293         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
23294         Fold POINTER_PLUS_EXPR statements with invariant address.
23295
23296 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
23297
23298         PR target/39634
23299         * config.gcc (powerpc64-*-linux*): Always build biarch.
23300
23301 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
23302
23303         PR c/39613
23304         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
23305         it and pedwarn if this results in an INTEGER_CST.
23306
23307 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23308
23309         * doc/install.texi: Update minimum GMP version.  Remove obsolete
23310         text in MPFR section.
23311
23312 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
23313
23314         * dwarf2out.c (class_scope_p): New static inline.
23315         (class_or_namespace_scope_p): Use it.
23316         (gen_variable_die): Use DW_TAG_member tag for static data member
23317         declarations instead of DW_TAG_variable.
23318
23319         PR middle-end/39573
23320         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
23321         variables.
23322
23323 2009-04-08  Richard Guenther  <rguenther@suse.de>
23324
23325         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
23326         valueize random data.
23327
23328 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
23329
23330         * config.gcc (aix tm_file):  Add aix-stdint.h.
23331         (aix tm clause use_gcc_stdint):  Set to wrap.
23332         * config/rs6000/aix-stdint.h:  New file.
23333
23334 2009-04-08  Richard Guenther  <rguenther@suse.de>
23335
23336         PR middle-end/36291
23337         * tree-dfa.c (add_referenced_var): Do not recurse into
23338         global initializers.
23339         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
23340         exposed variables.
23341         (fold_const_aggregate_ref): Likewise.
23342
23343 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
23344
23345         * recog.c (ordered_comparison_operator): New.
23346         * gensupport.c (std_preds): Add it.
23347         * doc/md.texi (Machine-Independent Predicates): Document it.
23348
23349 2009-04-08  Jan Hubicka  <jh@suse.cz>
23350
23351         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
23352         * function.h (rtl_eh): Remove exception_handler_label_map.
23353         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
23354         remove_exception_handler_label, for_each_eh_label_1): Remove.
23355         (rtl_remove_unreachable_regions): Remove.
23356         (convert_from_eh_region_ranges): Do not remove unreachable regions.
23357         (find_exception_handler_labels): Don't build the hashtable.
23358         (maybe_remove_eh_handler): Remove.
23359         (for_each_eh_label): Rewrite to walk the tree.
23360         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
23361         * except.h (maybe_remove_eh_handler): Remove.
23362         * passes.c (init_optimization_passes): Schedule second EH cleanup
23363         before out-of-ssa.
23364         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
23365         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
23366
23367 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
23368
23369         * genoutput.c (validate_optab_operands): New.
23370         (gen_insn, gen_expand): Call it.
23371
23372         * genflags.c (gen_insn): Detect misused iterators.
23373         (main): Pass line_no to gen_insn, exit with status 1 on error.
23374
23375         * genextract.c (line_no): Make global.
23376         (VEC_safe_set_locstr): Change assertion to error message.
23377         (main): Exit with status 1 on error.
23378
23379 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
23380
23381         PR c/39614
23382         PR c/39673
23383         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
23384         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
23385         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
23386         * c-convert.c (convert): Do not call fold on results of conversion
23387         functions when the result is a C_MAYBE_CONST_EXPR.
23388         * c-parser.c (c_parser_postfix_expression): Do not fold condition
23389         of __builtin_choose_expr.
23390         * c-typeck.c (remove_c_maybe_const_expr): New.
23391         (build_unary_op, build_conditional_expr, build_compound_expr,
23392         build_binary_op, c_objc_common_truthvalue_conversion): Call
23393         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
23394         integer operands.
23395
23396 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
23397
23398         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
23399         CODE to produce a new one. Add a prototype to use fold_convert_const
23400
23401 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
23402
23403         PR bootstrap/39660
23404         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
23405         mix declarations and code.
23406
23407 2009-04-08  Ben Elliston  <bje@au.ibm.com>
23408
23409         * gcc.c: Replace `CC' with `GCC' throughout.
23410
23411 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
23412
23413         * doc/invoke.texi: Document Atom support.
23414
23415 2009-04-07  Jason Merrill  <jason@redhat.com>
23416
23417         PR c++/25185
23418         * c-common.h, c-common.c: Add flag_pretty_templates.
23419         * c-opts.c (c_common_handle_option): Set it.
23420         * c.opt: Add -fno-pretty-templates.
23421         * doc/invoke.texi (C++ Dialect Options): Likewise.
23422
23423 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
23424
23425         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
23426         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
23427         (ia64_expand_builtin): Likewise.
23428
23429 2009-04-07  Martin Jambor  <mjambor@suse.cz>
23430
23431         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
23432         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
23433         ADDR_EXPRS are include too.
23434
23435 2009-04-07  Richard Guenther  <rguenther@suse.de>
23436
23437         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
23438         decls are only used if passes as parameters or if they are
23439         local statics and the call is not to a builtin.
23440         (call_may_clobber_ref_p_1): Likewise.
23441
23442 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
23443
23444         * expr.c (do_store_flag): Remove last argument.  Simplify code
23445         to avoid duplication of tests already done by can_compare_p.
23446         (expand_expr_real_1): Adjust caller.
23447
23448 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
23449
23450         * optabs.c (can_compare_p): Test the predicate of a
23451         cbranch and cstore pattern.
23452
23453 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
23454
23455         * expr.c (convert_move): Use emit_store_flag instead of
23456         "emulating" it.
23457
23458 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
23459
23460         * config/i386/i386.c (ix86_compare_emitted): Remove.
23461         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
23462         ix86_compare_op0 like ix86_compare_emitted used to be handled.
23463         * config/i386/i386.h (ix86_compare_emitted): Remove.
23464         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
23465         instead of ix86_compare_emitted.
23466         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
23467
23468 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
23469
23470         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
23471         Add t-sysroot-suffix to tmake_file.
23472         * config/print-sysroot-suffix.sh: New file.
23473         * config/t-sysroot-suffix: New file.
23474
23475 2009-04-07  Ben Elliston  <bje@au.ibm.com>
23476
23477         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
23478         as the latter produces a warning when the target does not support
23479         infinity.
23480
23481 2009-04-07  Ben Elliston  <bje@au.ibm.com>
23482
23483         * dfp.c: Replace type punning assignments with memcpy throughout.
23484         * Makefile.in (dfp.o-warn): Remove.
23485
23486 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
23487
23488         PR target/39634
23489         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
23490         Include soft-fp/t-softfp after rs6000/t-linux64.
23491
23492 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
23493
23494         * stor-layout.c (set_sizetype): Use the full precision of their
23495         machine mode for bitsize types.
23496
23497 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
23498
23499         * config/i386/i386.md: Revert 2 accidental checkins.
23500
23501 2009-04-06  Joey Ye  <joey.ye@intel.com>
23502             Xuepeng Guo  <xuepeng.guo@intel.com>
23503             H.J. Lu  <hongjiu.lu@intel.com>
23504
23505         Atom pipeline model, tuning and insn selection.
23506         * config.gcc (atom): Add atom config options and target.
23507
23508         * config/i386/atom.md: New.
23509
23510         * config/i386/i386.c (atom_cost): New cost.
23511         (m_ATOM): New macro flag.
23512         (initial_ix86_tune_features): Set m_ATOM.
23513         (x86_accumulate_outgoing_args): Likewise.
23514         (x86_arch_always_fancy_math_387): Likewise.
23515         (processor_target): Add Atom cost.
23516         (cpu_names): Add Atom cpu name.
23517         (override_options): Set Atom ISA.
23518         (ix86_issue_rate): New case PROCESSOR_ATOM.
23519         (ix86_adjust_cost): Likewise.
23520
23521         * config/i386/i386.h (TARGET_ATOM): New target macro.
23522         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
23523         (TARGET_OPT_AGU): New target option.
23524         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
23525         (processor_type): Add PROCESSOR_ATOM.
23526
23527         * config/i386/i386.md (cpu): Add new value "atom".
23528         (use_carry, movu): New attr.
23529         (atom.md): Include atom.md.
23530         (adddi3_carry_rex64): Set attr "use_carry".
23531         (addqi3_carry): Likewise.
23532         (addhi3_carry): Likewise.
23533         (addsi3_carry): Likewise.
23534         (*addsi3_carry_zext): Likewise.
23535         (subdi3_carry_rex64): Likewise.
23536         (subqi3_carry): Likewise.
23537         (subhi3_carry): Likewise.
23538         (subsi3_carry): Likewise.
23539         (x86_movdicc_0_m1_rex64): Likewise.
23540         (*x86_movdicc_0_m1_se): Likewise.
23541         (x86_movsicc_0_m1): Likewise.
23542         (*x86_movsicc_0_m1_se): Likewise.
23543         (*adddi_1_rex64): Emit add insn as much as possible.
23544         (*addsi_1): Likewise.
23545         (return_internal): Set atom_unit.
23546         (return_internal_long): Likewise.
23547         (return_pop_internal): Likewise.
23548         (*rcpsf2_sse): Set atom_sse_attr attr.
23549         (*qrt<mode>2_sse): Likewise.
23550         (*prefetch_sse): Likewise.
23551
23552         * config/i386/i386-c.c (ix86_target_macros_internal): New case
23553         PROCESSOR_ATOM.
23554         (ix86_target_macros_internal): Likewise.
23555
23556         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
23557         (*prefetch_sse_rex): Likewise.
23558         (sse_rcpv4sf2): Likewise.
23559         (sse_vmrcpv4sf2): Likewise.
23560         (sse_sqrtv4sf2): Likewise.
23561         (<sse>_vmsqrt<mode>2): Likewise.
23562         (sse_ldmxcsr): Likewise.
23563         (sse_stmxcsr): Likewise.
23564         (*sse_sfence): Likewise.
23565         (sse2_clflush): Likewise.
23566         (*sse2_mfence): Likewise.
23567         (*sse2_lfence): Likewise.
23568         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
23569         (<sse>_movup<ssemodesuffixf2c>): Likewise.
23570         (avx_movdqu<avxmodesuffix>): Likewise.
23571         (avx_lddqu<avxmodesuffix>): Likewise.
23572         (sse2_movntv2di): Change attr "type" to "ssemov".
23573         (sse2_movntsi): Likewise.
23574         (rsqrtv8sf2): Change attr "type" to "sseadd".
23575         (sse3_addsubv2df3): Set attr "atom_unit".
23576         (sse3_h<plusminus_insn>v4sf3): Likewise.
23577         (*sse2_pmaddwd): Likewise.
23578         (*vec_extractv2di_1_rex64): Likewise.
23579         (*vec_extractv2di_1_avx): Likewise.
23580         (sse2_psadbw): Likewise.
23581         (ssse3_phaddwv8hi3): Likewise.
23582         (ssse3_phaddwv4hi3): Likewise.
23583         (ssse3_phadddv4si3): Likewise.
23584         (ssse3_phadddv2si3): Likewise.
23585         (ssse3_phaddswv8hi3): Likewise.
23586         (ssse3_phaddswv4hi3): Likewise.
23587         (ssse3_phsubwv8hi3): Likewise.
23588         (ssse3_phsubwv4hi3): Likewise.
23589         (ssse3_phsubdv4si3): Likewise.
23590         (ssse3_phsubdv2si3): Likewise.
23591         (ssse3_phsubswv8hi3): Likewise.
23592         (ssse3_phsubswv4hi3): Likewise.
23593         (ssse3_pmaddubsw128): Likewise.
23594         (sse3_pmaddubsw: Likewise.
23595         (ssse3_palignrti): Likewise.
23596         (ssse3_palignrdi): Likewise.
23597
23598 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
23599
23600         * doc/install.texi (Specific): Fix two cross-references to MinGW.
23601
23602 2009-04-06  Richard Guenther  <rguenther@suse.de>
23603
23604         PR tree-optimization/28868
23605         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
23606         of which PHI results we inserted.
23607         (insert_into_preds_of_block): Record inserted PHIs.
23608         (eliminate): Eliminate redundant PHI nodes.
23609         (init_pre): Init inserted_phi_names.
23610
23611 2009-04-06  Richard Guenther  <rguenther@suse.de>
23612
23613         PR tree-optimization/39643
23614         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
23615         IMAGPART_EXPRs of complex constants.
23616         (execute_fold_all_builtins): If we folded a call queue
23617         TODO_update_address_taken.
23618
23619 2009-04-06  Jan Hubicka  <jh@suse.cz>
23620
23621         PR middle-end/39659
23622         * except.c (remove_unreachable_regions): Propagate may_contain_throw
23623         flag.
23624
23625 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
23626
23627         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
23628         delay slot.
23629         (ic_invalidate_array): Likewise.
23630
23631 2009-04-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
23632
23633         * calls.c (emit_library_call_value_1): Fix a problem with parameter
23634         alignment for library calls.
23635
23636 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
23637
23638         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
23639         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
23640         * config/i386/mingw-stdint.h:  New file.
23641
23642 2009-04-05  Richard Guenther  <rguenther@suse.de>
23643
23644         PR tree-optimization/39648
23645         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
23646         our &A vs. &A[0] IL deficiencies.
23647
23648 2009-04-04  Jan Hubicka  <jh@suse.cz>
23649
23650         * except.c (sjlj_find_directly_reachable_regions): Be ready for
23651         removed toplevel regions.
23652         (sjlj_mark_call_sites): Likewise.
23653
23654 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
23655
23656         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
23657         (cygwin tm clause use_gcc_stdint):  Set to wrap.
23658         * config/i386/cygwin-stdint.h:  New file.
23659
23660 2009-04-04  Richard Guenther  <rguenther@suse.de>
23661
23662         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
23663         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
23664         single-argument PHIs if we are in loop-closed SSA form.
23665         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
23666         for the pre-condition.
23667         (slpeel_tree_peel_loop_to_edge): Likewise.
23668         (vect_build_loop_niters): Take an optional sequence to append stmts.
23669         (vect_generate_tmps_on_preheader): Likewise.
23670         (vect_do_peeling_for_loop_bound): Take extra guards for the
23671         pre-condition.
23672         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
23673         the cost model check.
23674         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
23675         guards if we are going to peel.  Do not apply versioning in that case.
23676         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
23677         (vect_do_peeling_for_loop_bound): Likewise.
23678         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
23679         loop bound only record extra pre-conditions, do not apply loop
23680         versioning.
23681
23682 2009-04-04  Richard Guenther  <rguenther@suse.de>
23683
23684         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
23685         renaming code.
23686
23687 2009-04-04  Jan Hubicka  <jh@suse.cz>
23688
23689         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
23690         last_basic_block for size of bb->index indexed array.
23691         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
23692         compute_out, link_btr_uses, build_btr_def_use_webs,
23693         build_btr_def_use_webs, migrate_btr_defs): Likewise.
23694
23695 2009-04-04  Jan Hubicka  <jh@suse.cz>
23696
23697         * except.c (remove_eh_handler_and_replace): Break out from ...
23698         (remove_eh_handler): ... here.
23699         (bring_to_root): New function.
23700         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
23701         handled ones, bring others to root of tree.
23702
23703 2009-04-04  Jan Hubicka  <jh@suse.cz>
23704
23705         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
23706         (all_phis_safe_to_merge): New function.
23707         (update_info): New structure.
23708         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
23709         (cleanup_empty_eh): Update SSA if possible.
23710
23711 2009-04-04  Richard Guenther  <rguenther@suse.de>
23712
23713         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
23714         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
23715         (append_vuse): Likewise.
23716
23717 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
23718
23719         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
23720         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
23721         instead of REG_UNSAVED for DW_CFA_undefined.
23722         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
23723         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
23724         outermost frame.
23725
23726 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
23727
23728         PR target/39501
23729         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
23730
23731 2009-04-04  Richard Guenther  <rguenther@suse.de>
23732
23733         PR tree-optimization/8781
23734         PR tree-optimization/37892
23735         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
23736         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
23737         (valueize_refs): Call it for *& valueizations.
23738         (shared_reference_ops_from_ref): Rename to ...
23739         (valueize_shared_reference_ops_from_ref): ... this and valueize.
23740         (shared_reference_ops_from_call): Rename to ...
23741         (valueize_shared_reference_ops_from_call): ... this and valueize.
23742         (vn_reference_lookup): Update.
23743         (visit_reference_op_call): Likewise.
23744         * tree-ssa-pre.c (phi_translate_1): Fold *&.
23745         (eliminate): Value-replace the call address in call statements.
23746
23747 2009-04-04  Richard Guenther  <rguenther@suse.de>
23748
23749         PR tree-optimization/39636
23750         * tree-ssa-forwprop.c
23751         (forward_propagate_addr_into_variable_array_index): Check for
23752         GIMPLE_ASSIGN before accessing the rhs code.
23753
23754 2009-04-03  Jason Merrill  <jason@redhat.com>
23755
23756         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
23757
23758 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
23759
23760         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
23761         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
23762         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
23763         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
23764         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
23765         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
23766         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
23767         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
23768         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
23769         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
23770         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
23771         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
23772         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
23773         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
23774         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
23775         Use fr_reg_or_fp01_operand instead of fr_register_operand
23776
23777         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
23778         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
23779         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
23780
23781 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
23782
23783         PR rtl-optimization/39607
23784         PR rtl-optimization/39631
23785
23786         Revert:
23787
23788         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
23789         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
23790         instead of DF_LR_OUT.
23791         * ira-lives.c (process_bb_node_lives): Ditto.
23792         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
23793         instead of DF_LR_{OUT,IN}.
23794         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
23795         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
23796
23797 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
23798
23799         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
23800         (execute_lower_omp): Always run but take the short way out if -fopenmp
23801         is not given.
23802         (gate_lower_omp): Remove, forcing the pass manager to always run the
23803         pass and always set PROP_gimple_lomp.
23804         (pass_lower_omp): Remove gate function.
23805         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
23806         PROP_trees.  Instead, require it.
23807         * ipa-cp.c (pass_ipa_cp): Likewise.
23808         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
23809         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
23810         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
23811         and PROP_gimple_leh.
23812
23813 2009-04-03  Richard Guenther  <rguenther@suse.de>
23814
23815         PR middle-end/13146
23816         PR tree-optimization/23940
23817         PR tree-optimization/33237
23818         PR middle-end/33974
23819         PR middle-end/34093
23820         PR tree-optimization/36201
23821         PR tree-optimization/36230
23822         PR tree-optimization/38049
23823         PR tree-optimization/38207
23824         PR tree-optimization/38230
23825         PR tree-optimization/38301
23826         PR tree-optimization/38585
23827         PR middle-end/38895
23828         PR tree-optimization/38985
23829         PR tree-optimization/39299
23830         * tree-ssa-structalias.h: Remove.
23831         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
23832         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
23833         (struct vuse_element_d): Remove.
23834         (struct vuse_vec_d): Likewise.
23835         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
23836         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
23837         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
23838         VUSE_ELEMENT_VAR): Likewise.
23839         (struct voptype_d): Likewise.
23840         (NUM_VOP_FREE_BUCKETS): Likewise.
23841         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
23842         (struct stmt_operands_d): Remove.
23843         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
23844         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
23845         VDEF_NUM, VDEF_VECT): Likewise.
23846         (copy_virtual_operands): Remove.
23847         (operand_build_cmp): Likewise.
23848         (create_ssa_artificial_load_stmt): Likewise.
23849         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
23850         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
23851         vuse_index and mayuse_index members.  Pack and move done and iter_type
23852         members to the front.
23853         (SSA_OP_VMAYUSE): Remove.
23854         (SSA_OP_VIRTUAL_USES): Adjust.
23855         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
23856         (unlink_stmt_vdef): Declare.
23857         (add_to_addressable_set): Remove.
23858         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
23859         (vrp_visit_stmt): Likewise.
23860         * doc/tree-ssa.texi (Alias analysis): Update.
23861         * doc/invoke.texi (max-aliased-vops): Remove docs.
23862         (avg-aliased-vops): Likewise.
23863         * tree-into-ssa.c (syms_to_rename): Remove.
23864         (need_to_update_vops_p): Likewise.
23865         (need_to_initialize_update_ssa_p): Rename to ...
23866         (update_ssa_initialized_fn): ... this.  Track function we are
23867         initialized for.
23868         (symbol_marked_for_renaming): Simplify.
23869         (add_new_name_mapping): Do not set need_to_update_vops_p.
23870         (dump_currdefs): Use SYMS_TO_RENAME.
23871         (rewrite_update_stmt): Always walk all uses/defs.
23872         (dump_update_ssa): Adjust.
23873         (init_update_ssa): Take function argument.  Track what we are
23874         initialized for.
23875         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
23876         (create_new_def_for): Initialize for cfun, assert we are initialized
23877         for cfun.
23878         (mark_sym_for_renaming): Simplify.
23879         (mark_set_for_renaming): Do not initialize update-ssa.
23880         (need_ssa_update_p): Simplify.  Take function argument.
23881         (name_mappings_registered_p): Assert we ask for the correct function.
23882         (name_registered_for_update_p): Likewise.
23883         (ssa_names_to_replace): Likewise.
23884         (release_ssa_name_after_update_ssa): Likewise.
23885         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
23886         (dump_decl_set): Do not print a newline.
23887         (debug_decl_set): Do it here.
23888         (dump_update_ssa): And here.
23889         * tree-ssa-loop-im.c (move_computations): Adjust.
23890         (movement_possibility): Likewise.
23891         (determine_max_movement): Likewise.
23892         (gather_mem_refs_stmt): Likewise.
23893         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
23894         or NAME_MEMORY_TAG.
23895         * tree-complex.c (update_all_vops): Remove.
23896         (expand_complex_move): Adjust.
23897         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
23898         Simplify test for memory referencing statement.  Exclude
23899         non-invariant ADDR_EXPRs.
23900         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
23901         * tree-loop-distribution.c (generate_memset_zero): Adjust.
23902         (rdg_flag_uses): Likewise.
23903         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
23904         related code.
23905         (tree_optimize_tail_calls_1): Also split the
23906         edge from the entry block if we have degenerate PHI nodes in
23907         the first basic block.
23908         * tree.c (init_ttree): Remove memory-tag related code.
23909         (tree_code_size): Likewise.
23910         (tree_node_structure): Likewise.
23911         (build7_stat): Re-write to be build6_stat.
23912         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
23913         (SSA_VAR_P): Adjust.
23914         (struct tree_memory_tag): Remove.
23915         (struct tree_memory_partition_tag): Likewise.
23916         (union tree_node): Adjust.
23917         (build7): Re-write to be build6.
23918         * tree-pass.h (pass_reset_cc_flags): Remove.
23919         (TODO_update_address_taken): New flag.
23920         (pass_simple_dse): Remove.
23921         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
23922         * params.h (MAX_ALIASED_VOPS): Remove.
23923         (AVG_ALIASED_VOPS): Likewise.
23924         * omp-low.c (expand_omp_taskreg): Update SSA form.
23925         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
23926         aliases the lhs in a copy stmt.
23927         * tree-ssa-dse.c (struct address_walk_data): Remove.
23928         (memory_ssa_name_same): Likewise.
23929         (memory_address_same): Likewise.
23930         (get_kill_of_stmt_lhs): Likewise.
23931         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
23932         unused stores.  Look through PHI nodes into post-dominated regions.
23933         (dse_optimize_stmt): Simplify.  Properly remove stores.
23934         (tree_ssa_dse): Compute dominators.
23935         (execute_simple_dse): Remove.
23936         (pass_simple_dse): Likewise.
23937         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
23938         gimple_loaded_syms and gimple_stored_syms computation.
23939         * toplev.c (dump_memory_report): Dump alias and pta stats.
23940         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
23941         (vn_reference_eq): Likewise.
23942         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
23943         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
23944         valueize_vuses): Remove.
23945         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
23946         (get_def_ref_stmt_vuse): ... this.
23947         (vn_reference_lookup_2): New function.
23948         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
23949         walking equivalent vuses.  Simplify.
23950         (vn_reference_lookup): Likewise.
23951         (vn_reference_insert): Likewise.
23952         (vn_reference_insert_pieces): Likewise.
23953         (visit_reference_op_call): Simplify.
23954         (visit_reference_op_load): Likewise.
23955         (visit_reference_op_store): Likewise.
23956         (init_scc_vn): Remove shared_lookup_vuses initialization.
23957         (free_scc_vn): Remove shared_lookup_vuses freeing.
23958         (sort_vuses, sort_vuses_heap): Remove.
23959         (get_ref_from_reference_ops): Export.
23960         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
23961         vector with single vuse pointer.
23962         (vn_reference_lookup_pieces, vn_reference_lookup,
23963         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
23964         (shared_vuses_from_stmt): Remove.
23965         (get_ref_from_reference_ops): Declare.
23966         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
23967         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
23968         memory-tag related code.
23969         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
23970         (likely_value): Add comment, skip static-chain of call statements.
23971         (surely_varying_stmt_p): Adjust.
23972         (gimplify_and_update_call_from_tree): Likewise.
23973         (execute_fold_all_builtins): Do not rebuild alias info.
23974         (gimplify_and_update_call_from_tree): Properly update VOPs.
23975         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
23976         (copy_ref_info): Remove memory-tag related code.
23977         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
23978         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
23979         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
23980         computation.
23981         * tree-ssa-dom.c (gimple_p): Remove typedef.
23982         (eliminate_redundant_computations): Adjust.
23983         (record_equivalences_from_stmt): Likewise.
23984         (avail_expr_hash): Likewise.
23985         (avail_expr_eq): Likewise.
23986         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
23987         (stmt_makes_single_load): Likewise.
23988         (stmt_makes_single_store): Likewise.
23989         * tree-ssa-alias.c: Rewrite completely.
23990         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
23991         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
23992         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
23993         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
23994         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
23995         Remove public functions.
23996         (pass_reset_cc_flags): Remove.
23997         (pass_build_alias): Move ...
23998         * tree-ssa-structalias.c (pass_build_alias): ... here.
23999         * tree-ssa-alias.c (may_be_aliased): Move ...
24000         * tree-flow-inline.h (may_be_aliased): ... here.
24001         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
24002         count_uses_and_derefs): Move ...
24003         * gimple.c: ... here.
24004         * gimple.h (count_uses_and_derefs): Declare.
24005         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
24006         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
24007         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
24008         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
24009         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
24010         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
24011         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
24012         New functions.
24013         * tree-dfa.c (refs_may_alias_p): Move ...
24014         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
24015         * tree-ssa-alias.h: New file.
24016         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
24017         (statement_sink_location): Likewise.
24018         * opts.c (decode_options): Do not adjust max-aliased-vops or
24019         avg-aliased-vops values.
24020         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
24021         (TV_CALL_CLOBBER): Likewise.
24022         (TV_FLOW_SENSITIVE): Likewise.
24023         (TV_FLOW_INSENSITIVE): Likewise.
24024         (TV_MEMORY_PARTITIONING): Likewise.
24025         (TV_ALIAS_STMT_WALK): New timevar.
24026         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
24027         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
24028         (get_address_description): Remove memory-tag related code.
24029         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
24030         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
24031         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
24032         and immediate uses in statements.  Document.
24033         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
24034         (dump_symbols): Remove.
24035         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
24036         * alias.c (get_deref_alias_set): New function split out from ...
24037         (get_alias_set): ... here.
24038         * alias.h (get_deref_alias_set): Declare.
24039         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
24040         type parameter.  Remove restrict pointer handling.  Create a
24041         ref-all pointer in case type-based alias sets do not conflict.
24042         (vect_analyze_data_refs): Remove SMT related code.
24043         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
24044         (vectorizable_load): Likewise.
24045         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
24046         (DR_SYMBOL_TAG, DR_VOPS): Remove.
24047         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
24048         Ignore vops and SMTs.
24049         (dr_analyze_alias): Likewise..
24050         (free_data_ref): Likewise.
24051         (create_data_ref): Likewise.
24052         (analyze_all_data_dependences): Likewise.
24053         (get_references_in_stmt): Adjust.
24054         * tree-flow-inline.h (gimple_aliases_computed_p,
24055         gimple_addressable_vars, gimple_call_clobbered_vars,
24056         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
24057         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
24058         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
24059         gimple_mem_ref_stats): Remove.
24060         (gimple_vop): New function.
24061         (op_iter_next_use): Remove vuses and mayuses cases.
24062         (op_iter_next_def): Remove vdefs case.
24063         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
24064         (clear_and_done_ssa_iter): Do not set removed fields.
24065         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
24066         Assert we are not iterating over vuses or vdefs if not also
24067         iterating over uses or defs.
24068         (op_iter_init_use): Likewise.
24069         (op_iter_init_def): Likewise.
24070         (op_iter_next_vdef): Remove.
24071         (op_iter_next_mustdef): Likewise.
24072         (op_iter_init_vdef): Likewise.
24073         (compare_ssa_operands_equal): Likewise.
24074         (link_use_stmts_after): Handle vuse operand.
24075         (is_call_used): Use is_call_clobbered.
24076         (is_call_clobbered): Global variables are always call clobbered,
24077         query the call-clobbers bitmap.
24078         (mark_call_clobbered): Ignore global variables.
24079         (clear_call_clobbered): Likewise.
24080         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
24081         virtual operands sanity check.
24082         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
24083         Remove.
24084         (TARGET_MEM_REF): Remove TMR_TAG operand.
24085         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
24086         Remove call-clobber related code.
24087         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
24088         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
24089         partitions or escape reason.
24090         (get_single_def_stmt, get_single_def_stmt_from_phi,
24091         get_single_def_stmt_with_phi): Remove.
24092         (dump_referenced_vars): Tidy.
24093         (get_ref_base_and_extent): Allow bare decls.
24094         (collect_dfa_stats): Adjust.
24095         * graphite.c (rename_variables_in_stmt): Adjust.
24096         (graphite_copy_stmts_from_block): Likewise.
24097         (translate_clast): Likewise.
24098         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
24099         (EXPR_DIES): New.
24100         (translate_vuse_through_block): Use the oracle.
24101         (phi_translate_1): Adjust.
24102         (value_dies_in_block_x): Use the oracle.  Cache the outcome
24103         in EXPR_DIES.
24104         (valid_in_sets): Check if the VUSE for
24105         a REFERENCE is available.
24106         (eliminate): Do not remove stmts during elimination,
24107         instead queue and remove them afterwards.
24108         (do_pre): Do not rebuild alias info.
24109         (pass_pre): Run TODO_rebuild_alias before PRE.
24110         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
24111         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
24112         (mark_all_v_defs_stmt): Remove.
24113         (mark_all_v_defs_seq): Adjust.
24114         (sra_replace): Likewise.
24115         (scalarize_use): Likewise.
24116         (scalarize_copy): Likewise.
24117         (scalarize_init): Likewise.
24118         (scalarize_ldst): Likewise.
24119         (todoflags): Remove.
24120         (tree_sra): Do not rebuild alias info.
24121         (tree_sra_early): Adjust.
24122         (pass_sra): Run TODO_update_address_taken before SRA.
24123         * tree-predcom.c (set_alias_info): Remove.
24124         (prepare_initializers_chain): Do not call it.
24125         (mark_virtual_ops_for_renaming): Adjust.
24126         (mark_virtual_ops_for_renaming_list): Remove.
24127         (initialize_root_vars): Adjust.
24128         (initialize_root_vars_lm): Likewise.
24129         (prepare_initializers_chain): Likewise.
24130         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
24131         (may_propagate_copy_into_stmt): Likewise.
24132         (merge_alias_info): Do nothing for now.
24133         (propagate_tree_value_into_stmt): Adjust.
24134         (stmt_may_generate_copy): Likewise.
24135         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
24136         not mark symbols for renaming.
24137         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
24138         with the same statement, make sure to update the new pointed-to one.
24139         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
24140         call statements, do not mark symbols for renaming.
24141         (mark_operand_necessary): Dump something.
24142         (ref_may_be_aliased): New function.
24143         (mark_aliased_reaching_defs_necessary_1): New helper function.
24144         (mark_aliased_reaching_defs_necessary): Likewise.
24145         (mark_all_reaching_defs_necessary_1): Likewise.
24146         (mark_all_reaching_defs_necessary): Likewise.
24147         (propagate_necessity): Do not process virtual PHIs.  For
24148         non-aliased loads mark all reaching definitions as necessary.
24149         For aliased loads and stores mark the immediate dominating
24150         aliased clobbers as necessary.
24151         (visited): New global static.
24152         (perform_tree_ssa_dce): Free visited bitmap after propagating
24153         necessity.
24154         (remove_dead_phis): Perform simple dead virtual PHI removal.
24155         (remove_dead_stmt): Properly unlink virtual operands when
24156         removing stores.
24157         (eliminate_unnecessary_stmts): Schedule PHI removal after
24158         stmt removal.
24159         * tree-ssa-ter.c (is_replaceable_p): Adjust.
24160         (process_replaceable): Likewise.
24161         (find_replaceable_in_bb): Likewise.
24162         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
24163         based on the single gimple vop.
24164         (verify_flow_insensitive_alias_info): Remove.
24165         (verify_flow_sensitive_alias_info): Likewise.
24166         (verify_call_clobbering): Likewise.
24167         (verify_memory_partitions): Likewise.
24168         (verify_alias_info): Likewise.
24169         (verify_ssa): Adjust..
24170         (execute_update_addresses_taken): Export.  Update SSA
24171         manually.  Optimize only when optimizing.  Use a local bitmap.
24172         (pass_update_address_taken): Remove TODO_update_ssa, add
24173         TODO_dump_func.
24174         (pass_update_address_taken): Just use TODO_update_address_taken.
24175         (init_tree_ssa): Do not initialize addressable_vars.
24176         (verify_ssa): Verify new VUSE / VDEF properties.
24177         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
24178         Do not call verify_alias_info.
24179         (delete_tree_ssa): Clear the VUSE, VDEF operands.
24180         Do not free the loaded and stored syms bitmaps.  Reset the escaped
24181         and callused solutions.  Do not free addressable_vars.
24182         Remove memory-tag related code.
24183         (warn_uninitialized_var): Aliases are always available.
24184         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
24185         * lambda-code.c (can_put_in_inner_loop): Adjust.
24186         (can_put_after_inner_loop): Likewise.
24187         (perfect_nestify): Likewise.
24188         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
24189         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
24190         (vectorizable_conversion): Do not mark symbols for renaming.
24191         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
24192         (expand_call_inline): Unlink the calls virtual operands before
24193         replacing it.
24194         (tree_function_versioning): Do not call update_ssa if we are not
24195         updating clones.  Simplify.
24196         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
24197         (propagate_with_phi): Likewise..
24198         * tree-outof-ssa.c (create_temp): Remove memory tag and call
24199         clobber code.  Assert we are not aliased or global.
24200         * tree-flow.h: Include tree-ssa-alias.h
24201         (enum escape_type): Remove.
24202         (struct mem_sym_stats_d): Likewise.
24203         (struct mem_ref_stats_d): Likewise.
24204         (struct gimple_df): Add vop member.  Remove global_var,
24205         call_clobbered_vars, call_used_vars, addressable_vars,
24206         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
24207         escaped and callused members.
24208         (struct ptr_info_def): Remove all members, add points-to solution
24209         member pt.
24210         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
24211         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
24212         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
24213         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
24214         (tree-ssa-alias.o): Likewise.
24215         (toplev.o): Add tree-ssa-alias.h
24216         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
24217         * gimple.c (gimple_set_bb): Fix off-by-one error.
24218         (is_gimple_reg): Do not handle memory tags.
24219         (gimple_copy): Also copy virtual operands.
24220         Delay updating the statement.  Do not reset loaded and stored syms.
24221         (gimple_set_stored_syms): Remove.
24222         (gimple_set_loaded_syms): Likewise.
24223         (gimple_call_copy_skip_args): Copy the virtual operands
24224         and mark the new statement modified.
24225         * tree-ssa-structalias.c (may_alias_p): Remove.
24226         (set_uids_in_ptset): Take the alias set to prune with as
24227         parameter.  Fold in the alias test of may_alias_p.
24228         (compute_points_to_sets): Compute whether a ptr is dereferenced
24229         in a local sbitmap.
24230         (process_constraint): Deal with &ANYTHING on the lhs, reject all
24231         other ADDRESSOF constraints on the lhs.
24232         (get_constraint_for_component_ref): Assert that we don't get
24233         ADDRESSOF constraints from the base of the reference.
24234         Properly generate UNKNOWN_OFFSET for DEREF if needed.
24235         (struct variable_info): Remove collapsed_to member.
24236         (get_varinfo_fc): Remove.
24237         (new_var_info): Do not set collapsed_to.
24238         (dump_constraint): Do not follow cycles.
24239         (dump_constraint_graph): Likewise.
24240         (build_pred_graph): Likewise.
24241         (build_succ_graph): Likewise.
24242         (rewrite_constraints): Likewise.
24243         (do_simple_structure_copy): Remove.
24244         (do_rhs_deref_structure_copy): Remove.
24245         (do_lhs_deref_structure_copy): Remove.
24246         (collapse_rest_of_var): Remove.
24247         (do_structure_copy): Re-implement.
24248         (pta_stats): New global variable.
24249         (dump_pta_stats): New function.
24250         (struct constraint_expr): Make offset signed.
24251         (UNKNOWN_OFFSET): Define special value.
24252         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
24253         (solution_set_expand): New helper function split out from ...
24254         (do_sd_constraint): ... here.
24255         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
24256         (do_ds_constraint): Likewise.
24257         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
24258         and CALLUSED = *CALLUSED.
24259         (set_union_with_increment): Make inc argument signed.
24260         (type_safe): Remove.
24261         (get_constraint_for_ptr_offset): Handle unknown and negative
24262         constant offsets.
24263         (first_vi_for_offset): Handle offsets before start.  Bail
24264         out early for offsets beyond the variable extent.
24265         (first_or_preceding_vi_for_offset): New function.
24266         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
24267         Together with ESCAPED = *ESCAPED this properly computes reachability.
24268         (find_what_var_points_to): New function.
24269         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
24270         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
24271         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
24272         pt_solutions_intersect): New functions.
24273         (compute_call_used_vars): Remove.
24274         (compute_may_aliases): New main entry into PTA computation.
24275         * gimple.h (gimple_p): New typedef.
24276         (struct gimple_statement_base): Remove references_memory_p.
24277         (struct gimple_statement_with_memory_ops_base): Remove
24278         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
24279         members.
24280         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
24281         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
24282         gimple_set_references_memory): Remove.
24283         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
24284         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
24285         New functions.
24286         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
24287         (verify_expr): Allow RESULT_DECL.
24288         (gimple_duplicate_bb): Do not copy virtual operands.
24289         (gimple_duplicate_sese_region): Adjust.
24290         (gimple_duplicate_sese_tail): Likewise.
24291         (mark_virtual_ops_in_region): Remove.
24292         (move_sese_region_to_fn): Do not call it.
24293         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
24294         and pass_simple_dse.
24295         (execute_function_todo): Handle TODO_update_address_taken,
24296         call execute_update_addresses_taken for TODO_rebuild_alias.
24297         (execute_todo): Adjust.
24298         (execute_one_pass): Init dump files early.
24299         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
24300         call-clobbered.
24301         (create_general_new_stmt): Clear vops.
24302         * tree-ssa-reassoc.c (get_rank): Adjust.
24303         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
24304         symbols for renaming.
24305         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
24306         (PARAM_AVG_ALIASED_VOPS): Likewise.
24307         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
24308         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
24309         * tree-ssa-operands.c: Simplify for new virtual operand representation.
24310         (operand_build_cmp, copy_virtual_operands,
24311         create_ssa_artificial_load_stmt, add_to_addressable_set,
24312         gimple_add_to_addresses_taken): Remove public functions.
24313         (unlink_stmt_vdef): New function.
24314
24315 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
24316
24317         * config.gcc (powerpc-*-linux*): Merge variants.
24318
24319 2009-04-02  Chao-ying Fu  <fu@mips.com>
24320             James Grosbach  <james.grosbach@microchip.com>
24321
24322         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
24323         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
24324         cop0_sp_offset.
24325         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
24326         keep_interrupts_masked_p, use_debug_exception_return_p.
24327         (mips_attribute_table): Add interrupt, use_shadow_register_set,
24328         keep_interrupts_masked, use_debug_exception_return.
24329         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
24330         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
24331         New functions.
24332         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
24333         (mips_print_operand): Process COP0 registers to print $0 .. $31
24334         correctly for GAS to process.
24335         (mips_interrupt_extra_call_saved_reg_p): New function.
24336         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
24337         extra registers.
24338         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
24339         (mips_compute_frame_info): Add supports for interrupt context that
24340         includes doubleword accumulators and COP0 registers.
24341         (mips_for_each_saved_acc): New function.
24342         (mips_for_each_saved_gpr_and_fpr): Change the function name from
24343         mips_for_each_saved_reg.
24344         (mips_save_reg): Save accumulators.
24345         (mips_kernel_reg_p): A new for_each_rtx callback.
24346         (mips_expand_prologue): Support interrupt handlers.
24347         (mips_restore_reg): Restore accumulators.
24348         (mips_expand_epilogue): Support interrupt handlers.
24349         (mips_can_use_return_insn): Return false for interrupt handlers.
24350         (mips_epilogue_uses): New function.
24351         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
24352         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
24353         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
24354         cop0_move): New instructions.
24355         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
24356         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
24357         defines.
24358         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
24359         New defines.
24360         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
24361         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
24362         interrupt handlers, we use K0 as the temporary register.
24363         (EPILOGUE_USES): Change to a function call.
24364         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
24365         handlers, we use K0 as the temporary register.
24366
24367         * doc/extend.texi (Function Attributes): Document interrupt,
24368         use_shadow_register_set, keep_interrupts_masked,
24369         use_debug_exception_return for MIPS attributes.
24370
24371 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
24372
24373         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
24374         Remove a number of t-files from tmake_file.
24375         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
24376         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
24377         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
24378         target_prototype, not TARGET_PROTOTYPE.
24379         (LINK_OS_GNU_SPEC): Define.
24380         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
24381         and darwin-ldoubdle.c.
24382
24383 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
24384
24385         PR driver/39293
24386         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
24387         (cpp_options): Ditto.
24388         (default_compilers): Ditto.
24389         (display_help): Ditto.
24390         (process_command): Ditto.
24391         (do_spec_1): Ditto.
24392         (set_input): Use lbasename instead of duplicate code.
24393         (save_temps_prefix): New static for -save-temps=obj.
24394         (save_temps_length): Ditto.
24395
24396         * doc/invoke.texi (-save-temps=obj): Document new variant to
24397         -save-temps switch.
24398
24399 2009-04-02  Jeff Law  <law@redhat.com>
24400
24401         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
24402         variable.
24403
24404 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
24405
24406         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
24407         * configure: Regenerated.
24408
24409 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
24410
24411         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
24412         share the argument list.
24413
24414 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
24415
24416         Merge
24417
24418         2009-02-12  Diego Novillo  <dnovillo@google.com>
24419
24420         * varpool.c (debug_varpool): New.
24421         * cgraph.h (debug_varpool): Declare.
24422
24423 2009-04-02  Jan Hubicka  <jh@suse.cz>
24424
24425         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
24426         pass.
24427
24428 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
24429
24430         * config/i386/i386.c (ix86_abi): Move initialization to ...
24431         (override_options): Here.
24432
24433 2009-04-02  Christian Bruel  <christian.bruel@st.com>
24434
24435         * config/sh/sh.c (sh_dwarf_register_span): New function.
24436         (TARGET_DWARF_REGISTER_SPAN): Define.
24437         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
24438
24439 2009-04-02  Ira Rosen  <irar@il.ibm.com>
24440
24441         PR tree-optimization/39595
24442         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
24443         interleaved loads group is not  greater than the SLP group size.
24444
24445 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
24446
24447         * builtins.c (is_builtin_name): New.
24448         (called_as_built_in): Use is_builtin_name.
24449         * tree.h (is_builtin_name): New.
24450         * varasm.c (incorporeal_function_p): Use is_builtin_name
24451
24452 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
24453
24454         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
24455
24456 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
24457
24458         PR c++/26693
24459         * c-decl.c (clone_underlying_type): Move this ...
24460         * c-common.c (set_underlying_type): ... here.
24461         Also, make sure the function properly sets TYPE_STUB_DECL() on
24462         the newly created typedef variant type.
24463         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
24464         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
24465         points.
24466
24467 2009-04-02  Richard Guenther  <rguenther@suse.de>
24468
24469         PR tree-optimization/37221
24470         * tree-flow.h (degenerate_phi_result): Declare.
24471         * tree-ssa-dom.c (degenerate_phi_result): Export.
24472         * tree-scalar-evolution.c (analyze_initial_condition): If
24473         the initial condition is defined by a degenerate PHI node
24474         use the degenerate value.
24475
24476 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
24477
24478         PR rtl-optimization/39588
24479         * combine.c (merge_outer_ops): Do not set the constant when this
24480         is not necessary.
24481         (simplify_shift_const_1): Do not modify it either in this case.
24482
24483 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
24484
24485         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
24486         tuning is deprecated if -mtune value is set to an Itanium1 variant.
24487
24488 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
24489
24490         PR c/29027
24491         * c-lex.c (interpret_float): Default (no suffix) is double.
24492
24493 2009-04-1  Xinliang David Li  <davidxl@google.com>
24494
24495         * config/i386/i386.c (legitimate_constant_p): Recognize
24496         all one vector constant.
24497
24498 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
24499
24500         * config/vax/vax.c: Add #includes to silence warnings.
24501         Change #include order to silence two warnings.
24502
24503 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
24504
24505         * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
24506         (ASM_SPEC): Pass -k to the assembler for PIC code.
24507
24508 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
24509
24510         * config.gcc: Add vax-*-linux* to the switch.
24511         * config/vax/linux.h: New file. (TARGET_VERSION,
24512         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
24513
24514 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
24515
24516         * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
24517         Use predicate macros instead of GET_CODE() == foo.
24518         * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
24519         ashlsi3, rotrsi3, <unnamed>): Likewise.
24520
24521 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
24522
24523         * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
24524         jbbccihi, jbbccisi): Remova trailing whitespace.
24525         * config/vax/constraints.md: Likewise.
24526         * config/vax/elf.h (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
24527         * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
24528         * config/vax/predicates.md: Likewise.
24529         * config/vax/vax.c (print_operand_address, vax_output_int_move,
24530         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
24531         * config/vax/vax.h: Likewise.
24532         * config/vax/vax.md (nonlocal_goto): Likewise.
24533
24534 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
24535
24536         * config/vax/vax.c (vax_float_literal, vax_output_int_move)
24537         (indirectable_address_p, adjacent_operands_p): Add spaces around
24538         braces.
24539         * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
24540
24541 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
24542
24543         * config/vax/vax.c (legitimate_constant_address_p,
24544         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
24545         index_term_p, reg_plus_index_p, legitimate_address_p,
24546         vax_mode_dependent_address_p): Update comments to match functions
24547         modified by the recent int->bool conversion.
24548
24549 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
24550
24551         * config/vax/builtins.md: Update copyright message.
24552         * config/vax/constraints.md: Likewise.
24553         * config/vax/netbsd-elf.h: Likewise.
24554         * config/vax/predicates.md: Likewise.
24555         * config/vax/vax-protos.h: Likewise.
24556         * config/vax/vax.c: Likewise.
24557         * config/vax/vax.h: Likewise.
24558         * config/vax/vax.md: Likewise.
24559         * config/vax/vax.opt: Likewise.
24560
24561 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
24562
24563         * config/vax/builtins.md (ffssi2, ffssi2_internal,
24564         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
24565         * config/vax/constraints.md (B, R): Likewise.
24566         * config/vax/predicates.md (external_memory_operand,
24567         nonimmediate_addsub_di_operand): Likewise.
24568         * config/vax/vax.c (vax_output_int_add): Likewise.
24569         * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
24570         untyped_call): Likewise.
24571
24572 2009-04-01  Matt Thomas  <matt@3am-software.com>
24573
24574         * config/vax/predicates.md: New file.
24575         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
24576         external_const_operand, nonsymbolic_operand, external_memory_operand,
24577         indirect_memory_operand, indexed_memory_operand,
24578         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
24579         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
24580         predicate.
24581         * config/vax/constraints.md: New file.
24582         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
24583         New constraint.
24584         * config/vax/builtins.md: New file.
24585         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
24586         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
24587         jbbccisi): Define.
24588         * config/vax/vax.opt (mqmath): Add option.
24589         * config/vax/vax.md (isfx): Extend with DI.
24590         (VAXintQH, VAXintQHSD): Define.
24591         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
24592         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
24593         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
24594         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
24595         (movdi): Update constraints and use vax_output_int_move().
24596         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
24597         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
24598         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
24599         nonlocal_goto): New.
24600         (mov<mode>): Extend accepted operand types.
24601         (subdi3_old): Rename from subdi3, change update constraints and use
24602         a new implementation.
24603         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
24604         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
24605         MOVE_RATIO, CLEAR_RATIO): Define.
24606         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
24607         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
24608         (PRINT_OPERAND): Redefine using a function instead of inlined code.
24609         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
24610         (split_quadword_operands): Make static and really allow variable
24611         splitting.
24612         (print_operand_address): Update for PIC generation.
24613         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
24614         indexable_address_p, fixup_mathdi_operand,
24615         vax_expand_addsub_di_operands, adjacent_operands_p): New.
24616         (vax_float_literal, legitimate_constant_p,
24617         indirectable_constant_address_p, index_term_p,
24618         reg_plus_index_p): Return bool instead of int.
24619         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
24620         where needed.
24621         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
24622         generation.
24623         (vax_output_conditional_branch): Indent.
24624         (legitimate_constant_address_p, indirectable_constant_address_p,
24625         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
24626         vax_mode_dependent_address_p): Return bool instead of int, update for
24627         PIC generation.
24628         * config/vax/vax-protos.h (legitimate_constant_address_p,
24629         legitimate_constant_p, legitimate_address_p,
24630         vax_mode_dependent_address_p): Change declaration to bool.
24631         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
24632         vax_expand_addsub_di_operands, vax_output_int_subtract,
24633         vax_output_movmemsi): Declare.
24634         (split_quadword_operands, vax_float_literal): Delete declaration.
24635         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
24636         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
24637         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
24638         ASM_OUTPUT_DWARF_PCREL): Define.
24639         (ASM_SPEC): Change definition to allow PIC generation.
24640
24641 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
24642
24643         * doc/sourcebuild.texi: Update front-end requirements.
24644
24645 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
24646
24647         PR target/39226
24648         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
24649         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
24650         (booldi3_internal3): Use boolean_or_operator instead of
24651         boolean_operator.
24652
24653 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
24654
24655         PR c/39605
24656         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
24657         declarator whose size is not an integer constant expression but
24658         folds to an integer constant, then treat it as a constant
24659         subsequently.
24660
24661 2009-04-01  Richard Guenther  <rguenther@suse.de>
24662
24663         * fold-const.c (fold_plusminus_mult_expr): Do not fold
24664         i * 4 + 2 to (i * 2 + 1) * 2.
24665
24666 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
24667
24668         PR c/37772
24669         * c-parser.c (c_parser_asm_statement): Skip until close paren and
24670         return if c_parser_asm_string_literal returned NULL.
24671
24672 2009-04-01  Nick Clifton  <nickc@redhat.com>
24673
24674         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
24675         already defined.
24676         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
24677         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
24678         other typedefs to avoid conflicts with libgcc2.c.  Define labels
24679         to gain 16-bit bit-manipulation functions from libgcc2.c and then
24680         include it.
24681         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
24682         to gain 16-bit trapping arithmetic functions from libgcc2.c and
24683         then include it.
24684
24685 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
24686
24687         * varasm.c (default_function_rodata_section): Declare DOT as
24688         const char*.
24689
24690 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
24691             Andrey Galkin  <agalkin@hypercom.com>
24692
24693         PR/39492
24694         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
24695         Make object_name unique for each process.
24696
24697 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
24698
24699         PR other/39591
24700         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
24701         addressable variables in the parallel that could go out of scope while
24702         running queued tasks.
24703
24704 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
24705
24706         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
24707         (CASE_VALUES_THRESHOLD): Redefine.
24708         * config/avr/avr.c (avr_override_options): Remove initialization of
24709         avr_case_values_threshold variable.
24710         (avr_case_values_threshold): Remove variable. Add new function.
24711         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
24712         * config/avr/avr.opt (mno-tablejump): Remove option.
24713         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
24714
24715 2009-04-01  DJ Delorie  <dj@redhat.com>
24716
24717         * varasm.c (default_function_rodata_section): Don't assume
24718         anything about where the first '.' in the section name is.
24719
24720 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
24721
24722         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
24723         rs6000_emit_stack_tie.
24724
24725 2009-03-31  Ian Lance Taylor  <iant@google.com>
24726
24727         * tree-eh.c (tree_remove_unreachable_handlers): Compare
24728         gimple_code with GIMPLE_RESX, not RESX.
24729
24730 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
24731
24732         * c-common.c (c_get_ident): New.
24733         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
24734
24735 2009-04-01  Ben Elliston  <bje@au.ibm.com>
24736
24737         * config/rs6000/sysv4.opt (msdata): Improve option description.
24738
24739 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
24740
24741         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
24742         (divdf3_internal_lat): Remove.
24743         (divxf3_internal_lat): Remove.
24744         (divxf3_internal_thr): Remove.
24745         (divxf): Use divxf3_internal.
24746         * config/ia64/div.md (divsf3_internal_lat): New.
24747         (divdf3_internal_lat): New.
24748         (divxf3_internal): New.
24749
24750 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
24751
24752         PR c/448
24753         * Makefile.in (USE_GCC_STDINT): Define.
24754         (stmp-int-hdrs): Install stdint.h if applicable.
24755         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
24756         if known.
24757         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
24758         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
24759         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
24760         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
24761         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
24762         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
24763         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
24764         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
24765         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
24766         (c_common_nodes_and_builtins): Initialize
24767         underlying_wchar_type_node.  Do not initialize
24768         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
24769         nodes for new types.
24770         (c_stddef_cpp_builtins): Define macros for new types.
24771         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
24772         Remove.
24773         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
24774         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
24775         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
24776         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
24777         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
24778         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
24779         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
24780         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
24781         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
24782         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
24783         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
24784         int16_type_node, int32_type_node, int64_type_node,
24785         uint8_type_node, uint16_type_node, c_uint32_type_node,
24786         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
24787         int_least32_type_node, int_least64_type_node,
24788         uint_least8_type_node, uint_least16_type_node,
24789         uint_least32_type_node, uint_least64_type_node,
24790         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
24791         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
24792         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
24793         uintptr_type_node): Define.
24794         * c-cppbuiltin.c (builtin_define_constants,
24795         builtin_define_type_minmax): New.
24796         (builtin_define_stdint_macros): Define more macros.
24797         (c_cpp_builtins): Define more limit macros.
24798         (type_suffix): New.
24799         (builtin_define_type_max): Define in terms of
24800         builtin_define_type_minmax.  Remove is_long parameter.  All
24801         callers changed.
24802         * config.gcc (use_gcc_stdint): Define.
24803         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
24804         Add newlib-stdint.h for generic targets.
24805         * config/glibc-stdint.h, config/newlib-stdint.h,
24806         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
24807         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
24808         * config/score/score.h (UINTPTR_TYPE): Define.
24809         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
24810         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
24811         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
24812         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
24813         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
24814         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
24815         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
24816         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
24817         * config/spu/spu.h (STDINT_LONG32): Define.
24818         * configure.ac (use_gcc_stdint): Substitute.
24819         * configure: Regenerate.
24820         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
24821         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
24822         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
24823         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
24824         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
24825         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
24826         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
24827         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
24828         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
24829         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
24830         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
24831         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
24832         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
24833         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
24834         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
24835         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
24836         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
24837         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
24838         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
24839         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
24840         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
24841         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
24842         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
24843         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
24844         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
24845         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
24846         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
24847         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
24848         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
24849
24850 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
24851
24852         * loop-iv.c (suitable_set_for_replacement): Renamed from
24853         simplify_using_assignment; changed to return bool and to accept new
24854         args DEST and SRC.  Return true iff we find a source/destination pair
24855         that can be used to make a replacement, and fill SRC and DEST if so.
24856         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
24857         changed.
24858         (simplify_using_initial_values): Deal with altered regs here and track
24859         more precisely the effect they have on the validity of our expression.
24860
24861         * loop-iv.c (simplify_using_condition): A condition of the form
24862         (EQ REG CONST) can be used to simply make a substitution.
24863         (simplify_using_initial_values): Keep track of conditions we have seen
24864         and keep using them to simplify new expressions, while applying the
24865         same substitutions to them as to the expression.
24866
24867         * simplify-rtx.c (simplify_relational_operation_1): Simplify
24868         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
24869         GEU/LTU reversed.
24870
24871         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
24872         changed.  Use this when trying to improve the upper bound.
24873         Generate the comparison by using simplify_gen_relational.
24874
24875         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
24876
24877         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
24878         functions.
24879         (simplify_using_assignment, simplify_using_initial_values): Call
24880         replace_in_expr to make replacements.  Call replace_single_def_regs
24881         once on the initial version of the expression.
24882
24883 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24884
24885         PR target/27237
24886         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
24887
24888 2009-03-31  Richard Guenther  <rguenther@suse.de>
24889
24890         PR middle-end/31029
24891         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
24892         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
24893
24894 2009-03-31  Richard Guenther  <rguenther@suse.de>
24895
24896         * tree.h (div_if_zero_remainder): Declare.
24897         * fold-const.c (div_if_zero_remainder): Export.
24898         * tree-ssa-forwprop.c
24899         (forward_propagate_addr_into_variable_array_index): Handle
24900         constant array index addition outside of the variable index.
24901
24902 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
24903
24904         PR target/39592
24905         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
24906         define_splits, floatunssi<mode>2): Require x87 conversions from
24907         DImode to be permitted.
24908
24909 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
24910
24911         PR preprocessor/15638
24912         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
24913
24914 2009-03-31  Richard Guenther  <rguenther@suse.de>
24915
24916         PR middle-end/23401
24917         PR middle-end/27810
24918         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
24919         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
24920         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
24921         a separate statement.
24922         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
24923         (lookup_tmp_var): Likewise.
24924         (is_gimple_formal_tmp_or_call_rhs): Remove.
24925         (is_gimple_reg_or_call_rhs): Rename to ...
24926         (is_gimple_reg_rhs_or_call): ... this.
24927         (is_gimple_mem_or_call_rhs): Rename to ...
24928         (is_gimple_mem_rhs_or_call): ... this.
24929         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
24930         DECL_GIMPLE_REG_P only if is_formal is true.
24931         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
24932         for non-proper post-modify expression gimplification.
24933         (gimplify_self_mod_expr): For post-modify expressions gimplify
24934         the lvalue to a minimal lvalue.
24935         (rhs_predicate_for): Remove formal temp case.
24936         (gimplify_modify_expr_rhs): Likewise.
24937         (gimplify_addr_expr): Use is_gimple_reg.
24938         (gimplify_expr): Remove formal temp cases.
24939         (gimple_regimplify_operands): Likewise.
24940         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
24941         and FILTER_EXPR like constants.
24942         * gimple.c (walk_gimple_op): Fix val_only initialization, use
24943         is_gimple_reg.
24944         (is_gimple_formal_tmp_rhs): Remove.
24945         (is_gimple_reg_rhs): Remove special casing.
24946         (is_gimple_mem_rhs): Fix.
24947         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
24948         (is_gimple_formal_tmp_var): Remove.
24949         (is_gimple_formal_tmp_reg): Likewise.
24950         (is_gimple_min_lval): Allow invariant component ref parts.
24951         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
24952         is_gimple_formal_tmp_reg): Remove declarations.
24953         * tree-cfg.c (verify_expr): Verify that variables with address
24954         taken do not have DECL_GIMPLE_REG_P set.
24955         * tree-mudflap.c (mf_build_check_statement_for): Use
24956         force_gimple_operand instead of gimplify_expr.
24957
24958 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
24959
24960         * modulo-sched.c (sms_schedule_by_order): Pass the actual
24961         schedulable rows to compute_split_row.
24962
24963 2009-03-31  Ben Elliston  <bje@au.ibm.com>
24964
24965         PR target/31635
24966         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
24967         OPT_mvrsave.
24968
24969 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
24970
24971         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
24972         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
24973         * configure: Regenerate.
24974         * config.in: Regenerate.
24975         * config/rs6000/rs6000.opt (mtls-markers): Add.
24976         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
24977         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
24978         (tls_ld_aix, tls_ld_sysv): Likewise.
24979         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
24980         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
24981
24982 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
24983
24984         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
24985
24986 2009-03-30  Jan Hubicka  <jh@suse.cz>
24987
24988         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
24989         out of RESX.
24990         (tree_remove_unreachable_handlers): Cleanup EH predecestor
24991         detection and label handling.
24992
24993 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
24994
24995         * ira-int.h (ira_allocno): Rename left_conflicts_num to
24996         left_conflicts_size.
24997         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
24998         ALLOCNO_LEFT_CONFLICTS_SIZE.
24999
25000         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
25001         remove_allocno_from_bucket_and_push,
25002         allocno_spill_priority_compare, push_allocnos_to_stack,
25003         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
25004         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
25005         (setup_allocno_left_conflicts_num): Ditto.  Rename to
25006         setup_allocno_left_conflicts_size.
25007         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
25008         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
25009         setup_allocno_left_conflicts_size instead of
25010         setup_allocno_left_conflicts_num.
25011
25012         * ira-build.c (ira_create_allocno): Use
25013         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
25014         ALLOCNO_LEFT_CONFLICTS_NUM.
25015
25016 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
25017
25018         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
25019         instead of DF_LR_OUT.
25020
25021         * ira-lives.c (process_bb_node_lives): Ditto.
25022
25023         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
25024         instead of DF_LR_{OUT,IN}.
25025
25026         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
25027
25028         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
25029
25030 2009-03-30  Jan Hubicka  <jh@suse.cz>
25031
25032         * except.c (label_to_region_map): Fix thinko.
25033
25034 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
25035
25036         PR middle-end/38237
25037         * tree.h (tree_find_value): New declaration.
25038         * tree.c (tree_find_value): New function.
25039         * varasm.c (assemble_external): Avoid duplicate entries on lists.
25040
25041 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
25042
25043         PR debug/39563
25044         * c-decl.c (struct c_binding): Add locus field.
25045         (bind): Add locus argument, set locus field from it.
25046         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
25047         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
25048         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
25049         implicitly_declare, undeclared_variable, lookup_label,
25050         declare_label, c_make_fname_decl, c_builtin_function,
25051         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
25052         bind callers.
25053
25054 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
25055
25056         PR target/38781
25057         * config/i386/i386.c (classify_argument): Check total size of
25058         structure.
25059
25060 2009-03-30  Martin Jambor  <mjambor@suse.cz>
25061
25062         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
25063         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
25064         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
25065         respectively.
25066
25067         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
25068         seen_variable_array_ref while also traversing a union.
25069
25070         * tree-inline.c (optimize_inline_calls): Do not call
25071         cgraph_node_remove_callees.
25072         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
25073         (pass_remove_cgraph_callee_edges): New variable.
25074         * passes.c (init_optimization_passes): Add
25075         pass_remove_cgraph_callee_edges after early inlining and before all
25076         late intraprocedural passes.
25077
25078         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
25079
25080 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
25081
25082         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
25083         Fix typos in names.
25084
25085 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
25086
25087         * combine.c (simplify_comparison): Use have_insn_for.
25088         * dojump.c (do_jump): Likewise.
25089
25090 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
25091
25092         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
25093         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
25094         sparc_compare_op0 like sparc_compare_emitted used to be handled.
25095         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
25096         instead of sparc_compare_emitted.
25097         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
25098         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
25099         instead of sparc_compare_emitted.
25100
25101 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
25102
25103         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
25104         enter/exit cfglayout mode.
25105         (pass_partition_block): Require it.
25106         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
25107         (combine_instructions): Track basic blocks instead of labels.
25108         (update_cfg_for_uncondjump): New.
25109         (try_combine): Use it.  Update jumps after rescanning.
25110         (pass_combine): Require PROP_cfglayout.
25111         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
25112
25113 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
25114
25115         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
25116         Provide/destroy PROP_cfglayout respectively.
25117         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
25118         * tree-pass.h (PROP_cfglayout): New.
25119
25120 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
25121
25122         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
25123         fold_convert_const_fixed_from_fixed,
25124         fold_convert_const_fixed_from_int,
25125         fold_convert_const_fixed_from_real, fold_negate_const): Do not
25126         set TREE_CONSTANT_OVERFLOW.
25127         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
25128         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
25129
25130 2009-03-30  Ira Rosen  <irar@il.ibm.com>
25131
25132         * tree-vect-loop-manip.c: New file.
25133         * tree-vectorizer.c: Update documentation and included files.
25134         (vect_loop_location): Make extern.
25135         (rename_use_op): Move to tree-vect-loop-manip.c
25136         (rename_variables_in_bb, rename_variables_in_loop,
25137         slpeel_update_phis_for_duplicate_loop,
25138         slpeel_update_phi_nodes_for_guard1,
25139         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
25140         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
25141         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
25142         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
25143         find_loop_location): Likewise.
25144         (new_stmt_vec_info): Move to tree-vect-stmts.c.
25145         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
25146         get_vectype_for_scalar_type, vect_is_simple_use,
25147         supportable_widening_operation, supportable_narrowing_operation):
25148         Likewise.
25149         (bb_in_loop_p): Move to tree-vect-loop.c.
25150         (new_loop_vec_info, destroy_loop_vec_info,
25151         reduction_code_for_scalar_code, report_vect_op,
25152         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
25153         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
25154         (vect_supportable_dr_alignment): Likewise.
25155         * tree-vectorizer.h (tree-data-ref.h): Include.
25156         (vect_loop_location): Declare.
25157         Reorganize function declarations according to the new file structure.
25158         * tree-vect-loop.c: New file.
25159         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
25160         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
25161         * tree-vect-data-refs.c: New file.
25162         * tree-vect-patterns.c (timevar.h): Don't include.
25163         * tree-vect-stmts.c: New file.
25164         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
25165         tree-vect-slp.c, tree-vect-loop.c.
25166         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
25167         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
25168         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
25169         (tree-vect-analyze.o): Remove.
25170         (tree-vect-transform.o): Likewise.
25171         (tree-vect-data-refs.o): Add rule.
25172         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
25173         tree-vect-slp.o): Likewise.
25174         (tree-vect-patterns.o): Remove redundant dependencies.
25175         (tree-vectorizer.o): Likewise.
25176         * tree-vect-slp.c: New file.
25177
25178 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25179
25180         * optc-gen.awk: Warn if an option flag has multiple different
25181         help strings.
25182
25183 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
25184
25185         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
25186         -floop-block): Document dependences on PPL, CLooG and Graphite.
25187
25188 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
25189
25190         PR rtl-optimization/323
25191         * c-common.c (c_fully_fold, convert_and_check,
25192         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
25193         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
25194         * c-common.def (EXCESS_PRECISION_EXPR): New.
25195         * c-cppbuiltin.c (builtin_define_float_constants): Define
25196         constants with enough digits for long double.
25197         * c-lex.c (interpret_float): Interpret constant with excess
25198         precision where appropriate.
25199         * c-opts.c (c_common_post_options): Set
25200         flag_excess_precision_cmdline.  Give an error for
25201         -fexcess-precision=standard for C++ for processors where the
25202         option is significant.
25203         * c-parser.c (c_parser_conditional_expression): Handle excess
25204         precision in condition.
25205         * c-typeck.c (convert_arguments): Handle arguments with excess
25206         precision.
25207         (build_unary_op): Move excess precision outside operation.
25208         (build_conditional_expr): Likewise.
25209         (build_compound_expr): Likewise.
25210         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
25211         (build_modify_expr): Handle excess precision in RHS.
25212         (convert_for_assignment): Handle excess precision in converted
25213         value.
25214         (digest_init, output_init_element, process_init_element): Handle
25215         excess precision in initializer.
25216         (c_finish_return): Handle excess precision in return value.
25217         (build_binary_op): Handle excess precision in operands and add
25218         excess precision as needed for operation.
25219         * common.opt (-fexcess-precision=): New option.
25220         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
25221         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
25222         For standard excess precision, output explicit conversion to and
25223         truncation from XFmode.
25224         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
25225         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
25226         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
25227         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
25228         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
25229         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
25230         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
25231         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
25232         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
25233         define_splits, sqrt<mode>2): Disable where appropriate for
25234         standard excess precision.
25235         * convert.c (convert_to_real): Do not shorten arithmetic to type
25236         for which excess precision would be used.
25237         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
25238         * doc/invoke.texi (-fexcess-precision=): Document option.
25239         (-mfpmath=): Correct index entry.
25240         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
25241         flag_excess_precision): New.
25242         * langhooks.c (lhd_post_options): Set
25243         flag_excess_precision_cmdline.
25244         * opts.c (common_handle_option): Handle -fexcess-precision=.
25245         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
25246         init_excess_precision): New.
25247         (lang_dependent_init_target): Call init_excess_precision.
25248         * tree.c (excess_precision_type): New.
25249         * tree.h (excess_precision_type): Declare.
25250
25251 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
25252
25253         PR c/35235
25254         * c-typeck.c (build_component_ref): Do not copy qualifiers from
25255         non-lvalue to component.
25256
25257 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
25258
25259         PR preprocessor/34695
25260         * Makefile.in (c-opts.o): Depend on c-tree.h.
25261         * c-common.c: Move down include of diagnostic.h.
25262         (done_lexing, c_cpp_error): New.
25263         * c-common.h (done_lexing): Declare.
25264         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
25265         (parse_in).
25266         * c-opts.c: Include c-tree.h.
25267         (c_common_init_options): Set preprocessor error callback.
25268         (c_common_handle_option): Do not set preprocessor
25269         inhibit_warnings, warnings_are_errors, warn_system_headers,
25270         pedantic_errors or inhibit_warnings flags.
25271         (c_common_post_options): Do not check cpp_errors (parse_in).
25272         (c_common_finish): Do not output dependencies if there were
25273         errors.  Do not check return value of cpp_finish.
25274         * c-ppoutput.c (pp_file_change): Set input_location.
25275         * c-tree.h (c_cpp_error): Declare.
25276         * diagnostic.c (diagnostic_set_info_translated): Also initialize
25277         override_column.
25278         (diagnostic_build_prefix): Check override_column.
25279         * diagnostic.h (diagnostic_info): Add override_column field.
25280         (diagnostic_override_column): Define.
25281
25282 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
25283
25284         * c-common.c (c_expand_expr, c_staticp): Remove.
25285         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
25286         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
25287         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
25288         * c-gimplify.c (gimplify_compound_literal_expr,
25289         optimize_compound_literals_in_ctor): Remove.
25290         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
25291         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
25292         * c-semantics.c (emit_local_var): Remove.
25293
25294         * langhooks-def.h (lhd_expand_expr): Remove.
25295         * langhooks.c (lhd_expand_expr): Remove.
25296         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
25297
25298         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
25299         handling from c-semantics.c; don't call into langhook.
25300         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
25301         * gimplify.c (gimplify_compound_literal_expr,
25302         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
25303         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
25304         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
25305         as was done in c-gimplify.c.
25306         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
25307         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
25308         Move from c-common.h.
25309         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
25310
25311         * tree.c (staticp): Do not call langhook.
25312         * langhooks.c (lhd_staticp): Delete.
25313         * langhooks-def.h (lhd_staticp): Delete prototype.
25314         (LANG_HOOKS_STATICP): Delete.
25315         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
25316
25317         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
25318         instead of DECL_STMTs.
25319
25320 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
25321
25322         PR c/456
25323         PR c/5675
25324         PR c/19976
25325         PR c/29116
25326         PR c/31871
25327         PR c/35198
25328         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
25329         void_type_node.
25330         (fold_call_expr): Return a NOP_EXPR from folding rather than the
25331         contained expression.
25332         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
25333         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
25334         conditional expressions for C.
25335         (decl_constant_value_for_optimization): Move from
25336         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
25337         whether optimizing and that the expression is a VAR_DECL not of
25338         array type instead of doing such checks in the caller.  Do not
25339         check pedantic.  Call gcc_unreachable for C++.
25340         * c-common.def (C_MAYBE_CONST_EXPR): New.
25341         * c-common.h (c_fully_fold, c_save_expr,
25342         decl_constant_value_for_optimization): New prototypes.
25343         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
25344         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
25345         EXPR_INT_CONST_OPERANDS): Define.
25346         * c-convert.c (convert): Strip nops from expression.
25347         * c-decl.c (groktypename): Take extra parameters expr and
25348         expr_const_operands.  Update call to grokdeclarator.
25349         (start_decl): Update call to grokdeclarator.  Add statement for
25350         expressions used in type of decl.
25351         (grokparm): Update call to grokdeclarator.
25352         (push_parm_decl): Update call to grokdeclarator.
25353         (build_compound_literal): Add parameter non_const and build a
25354         C_MAYBE_COSNT_EXPR if applicable.
25355         (grokdeclarator): Take extra parameters expr and
25356         expr_const_operands.  Track expressions used in declaration
25357         specifiers and declarators.  Fold array sizes and track whether
25358         they are constant expressions and whether they are integer
25359         constant expressions.
25360         (parser_xref_tag): Set expr and expr_const_operands fields in
25361         return value.
25362         (grokfield): Update call to grokdeclarator.
25363         (start_function): Update call to grokdeclarator.
25364         (build_null_declspecs): Set expr and expr_const_operands fields in
25365         return value.
25366         (declspecs_add_type): Handle expressions in typeof specifiers.
25367         * c-parser.c (c_parser_declspecs): Set expr and
25368         expr_const_operands fields for declaration specifiers.
25369         (c_parser_enum_specifier): Likewise.
25370         (c_parser_struct_or_union_specifier): Likewise.
25371         (c_parser_typeof_specifier): Likewise.  Update call to
25372         groktypename.  Fold expression as needed.  Return expressions with
25373         type instead of adding statements.
25374         (c_parser_attributes): Update calls to c_parser_expr_list.
25375         (c_parser_statement_after_labels): Fold expression before passing
25376         to objc_build_throw_stmt.
25377         (c_parser_condition): Fold expression.
25378         (c_parser_asm_operands): Fold expression.
25379         (c_parser_conditional_expression): Use c_save_expr.  Update call
25380         to build_conditional_expr.
25381         (c_parser_alignof_expression): Update call to groktypename.
25382         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
25383         original_code.  Fold expression argument of va_arg.  Create
25384         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
25385         argument to va_arg.  Update calls to groktypename.  Fold array
25386         index for offsetof.  Verify that first argument to
25387         __builtin_choose_expr has integer type.
25388         (c_parser_postfix_expression_after_paren_type): Update calls to
25389         groktypename and build_compound_literal.  Handle expressions with
25390         side effects in type name.
25391         (c_parser_postfix_expression_after_primary): Update call to
25392         c_parser_expr_list.  Set original_code for calls to
25393         __builtin_constant_p.
25394         (c_parser_expr_list): Take extra parameter fold_p.  Fold
25395         expressions if requested.
25396         (c_parser_objc_type_name): Update call to groktypename.
25397         (c_parser_objc_synchronized_statement): Fold expression.
25398         (c_parser_objc_receiver): Fold expression.
25399         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
25400         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
25401         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
25402         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
25403         (struct c_typespec): Add elements expr and expr_const_operands.
25404         (struct c_declspecs): Add elements expr and expr_const_operands.
25405         (groktypename, build_conditional_expr, build_compound_literal):
25406         Update prototypes.
25407         (in_late_binary_op): Declare.
25408         * c-typeck.c (note_integer_operands): New function.
25409         (in_late_binary_op): New variable.
25410         (decl_constant_value_for_broken_optimization): Move to c-common.c
25411         and rename to decl_constant_value_for_optimization.
25412         (default_function_array_conversion): Do not strip nops.
25413         (default_conversion): Do not call
25414         decl_constant_value_for_broken_optimization.
25415         (build_array_ref): Do not fold result.
25416         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
25417         result when operand is a VLA.
25418         (c_expr_sizeof_type): Update call to groktypename.  Handle
25419         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
25420         result when operand names a VLA type.
25421         (build_function_call): Update call to build_compound_literal.
25422         Only fold result for calls to __builtin_* functions.  Strip
25423         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
25424         the function designator.
25425         (convert_arguments): Fold arguments.  Update call to
25426         convert_for_assignment.
25427         (build_unary_op): Handle increment and decrement of
25428         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
25429         decrement earlier.  Fold operand of increment and decrement.
25430         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
25431         built for integer operand.  Wrap returns that are INTEGER_CSTs
25432         without being integer constant expressions or that have integer
25433         constant operands without being INTEGER_CSTs.
25434         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
25435         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
25436         result is an integer constant expression or can be used in
25437         unevaluated parts of one and avoid folding and wrap as
25438         appropriate.  Fold operands before possibly doing -Wsign-compare
25439         warnings.
25440         (build_compound_expr): Wrap result for C99 if operands can be used
25441         in integer constant expressions.
25442         (build_c_cast): Update call to digest_init.  Do not ignore
25443         overflow from casting floating-point constants to integers.  Wrap
25444         results that could be confused with integer constant expressions,
25445         null pointer constants or floating-point constants.
25446         (c_cast_expr): Update call to groktypename.  Handle expressions
25447         included in type name.
25448         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
25449         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
25450         Update calls to convert_for_assignment.
25451         (convert_for_assignment): Take new parameter
25452         null_pointer_constant.  Do not strip nops or call
25453         decl_constant_value_for_broken_optimization.  Set
25454         in_late_binary_op for conversions to boolean.
25455         (store_init_value): Update call to digest_init.
25456         (digest_init): Take new parameter null_pointer_constant.  Do not
25457         call decl_constant_value_for_broken_optimization.  pedwarn for
25458         initializers not constant expressions.  Update calls to
25459         convert_for_assignment.
25460         (constructor_nonconst): New.
25461         (struct constructor_stack): Add nonconst element.
25462         (really_start_incremental_init, push_init_level, pop_init_level):
25463         Handle constructor_nonconst and nonconst element.
25464         (set_init_index): Call constant_expression_warning for array
25465         designators.
25466         (output_init_element): Fold value.  Set constructor_nonconst as
25467         applicable.  pedwarn for initializers not constant expressions.
25468         Update call to digest_init.  Call constant_expression_warning
25469         where constant initializers are required.
25470         (process_init_element): Use c_save_expr.
25471         (c_finish_goto_ptr): Fold expression.
25472         (c_finish_return): Fold return value.  Update call to
25473         convert_for_assignment.
25474         (c_start_case): Fold switch expression.
25475         (c_process_expr_stmt): Fold expression.
25476         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
25477         ensure statement expression is not evaluated in constant expression.
25478         (build_binary_op): Track whether results are integer constant
25479         expressions or may occur in such, disable folding and wrap results
25480         as applicable.  Fold operands for -Wsign-compare warnings unless
25481         in_late_binary_op.
25482         (c_objc_common_truthvalue_conversion): Handle results folded to
25483         integer constants that are not integer constant expressions.
25484         * doc/extend.texi: Document when typeof operands are evaluated,
25485         that condition of __builtin_choose_expr is an integer constant
25486         expression, and more about use of __builtin_constant_p in
25487         initializers.
25488
25489 2009-03-29  Richard Guenther  <rguenther@suse.de>
25490
25491         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
25492         propagate addresses of array references.
25493
25494 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
25495
25496         * regmove.c (perhaps_ends_bb_p): Remove.
25497         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
25498         from INSN and check that the main loop stays within that basic block.
25499         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
25500         (regmove_forward_pass): Split out from regmove_optimize.  Use
25501         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
25502         (regmove_backward_pass): Split out from regmove_optimize.  Use
25503         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
25504         (regmove_optimize): Simplify.
25505
25506 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
25507
25508         PR target/39545
25509         * config/i386/i386.c (classify_argument): Ignore flexible array
25510         member in struct and warn ABI change.
25511
25512 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
25513
25514         * config/i386/i386-protos.h (ix86_agi_dependent): New.
25515
25516         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
25517         (ix86_adjust_cost): Updated.
25518
25519 2009-03-29  Jan Hubicka  <jh@suse.cz>
25520
25521         PR middle-end/28850
25522         * tree-pass.h (pass_cleanup_eh): New function.
25523         (remove_unreachable_regions): Break code handling RTL
25524         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
25525         that can not be reached by runtime.
25526         (can_be_reached_by_runtime): New function.
25527         (label_to_region_map): New function.
25528         (num_eh_regions): New function.
25529         (rtl_remove_unreachable_regions): New function.
25530         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
25531         (remove_eh_region): New function.
25532         * except.h: Include sbitmap and vecprim.
25533         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
25534         num_eh_regions): Declare.
25535         * passes.c (init_optimization_passes): Schedule cleanup_eh.
25536         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
25537         * tree-eh.c (tree_remove_unreachable_handlers): New function.
25538         (tree_empty_eh_handler_p): New function.
25539         (cleanup_empty_eh): New function.
25540         (cleanup_eh): New function.
25541         (pass_cleanup_eh): New function.
25542
25543 2009-03-29  Jan Hubicka  <jh@suse.cz>
25544
25545         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
25546         for removed regions.
25547
25548 2009-03-29  Jan Hubicka  <jh@suse.cz>
25549
25550         * except.c (dump_eh_tree): Dump all datastructures.
25551
25552 2009-03-29  Jan Hubicka  <jh@suse.cz>
25553
25554         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
25555         (duplicate_eh_regions_1): Likewise.
25556         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
25557         vector; call EH verification.
25558         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
25559         Be ready for region being removed.
25560
25561 2009-03-29  Jan Hubicka  <jh@suse.cz>
25562
25563         * bitmap.c (bitmap_last_set_bit): New function.
25564         * bitmap.h (bitmap_last_set_bit): Declare.
25565
25566 2009-03-29  David Ayers  <ayers@fsfe.org>
25567
25568         PR objc/27377
25569         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
25570         by calling objc_compare_types and surpress warnings about
25571         incompatible C pointers that are compatible ObjC pointers.
25572
25573 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
25574
25575         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
25576         call initialize_inline_failed.
25577         (initialize_inline_failed): Move it from here ...
25578         * cgraph.c (initialize_inline_failed): ... to here.
25579         (cgraph_create_edge): Call initialize_inline_failed rather than
25580         setting inline_failed directly.
25581
25582 2009-03-29  Ben Elliston  <bje@au.ibm.com>
25583
25584         PR target/32542
25585         * sysv4.opt (msdata): Improve comment.
25586         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
25587         * sysv4.h (SVR4_ASM_SPEC): Likewise.
25588
25589 2009-03-29  Ben Elliston  <bje@au.ibm.com>
25590
25591         PR target/30451
25592         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
25593         load and store attributes.
25594
25595 2009-03-29  Ben Elliston  <bje@au.ibm.com>
25596
25597         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
25598         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
25599         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
25600         * doc/extend.texi (X86 Built-in Functions): Add index entries for
25601         __builtin_infq and __builtin_huge_valq.
25602
25603 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
25604
25605         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
25606         atmega8m1 devices.
25607         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
25608         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
25609
25610 2009-03-28  Xinliang David Li  <davidxl@google.com>
25611
25612         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
25613         (do_dbg_cnt): New function.
25614
25615 2009-03-28  Jan Hubicka  <jh@suse.cz>
25616
25617         Merge from pretty-ipa:
25618
25619         2009-03-27  Jan Hubicka  <jh@suse.cz>
25620
25621         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
25622         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
25623         * passes.c (function_called_by_processed_nodes_p): New.
25624         * ipa-pure-const.c (check_call): Fix handling of operands.
25625         (analyze_function): Dump debug output for skipped bodies.
25626         (local_pure_const): Use function_called_by_processed_nodes_p.
25627         * dwarf2out.c (reference_to_unused): Use output.
25628         * passes.c (do_per_function_toporder): Likewise.
25629
25630         2008-11-12  Jan Hubicka  <jh@suse.cz>
25631
25632         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
25633         * ipa-pure-const.c (funct_state_d): Add can throw field; make
25634         state_set_in_source enum
25635         (check_decl): Ignore memory tags; do not set fake looping flags;
25636         dump diagnostics.
25637         (check_operand, check_tree, check_rhs_var, check_lhs_var,
25638         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
25639         (check_call, analyze_function): Rewrite.
25640         (check_stmt): New.
25641         (add_new_function): Update call of analyze_function.
25642         (generate_summary): Add call of analyze_function.
25643         (propagate): Propagate can_throw; handle state_set_in_source correctly.
25644         (local_pure_const): New function.
25645         (pass_local_pure_const): New pass.
25646         * ipa-inline.c (inline_transform): Set after_inlining.
25647         * tree-eh.c (stmt_can_throw_external): New.
25648         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
25649         work with aliasing built.
25650         * tree-flow.h (stmt_can_throw_external): New.
25651         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
25652         and local pure/const pass in early and late optimization queue.
25653
25654 2009-03-28  Martin Jambor  <mjambor@suse.cz>
25655
25656         * fold-const.c (get_pointer_modulus_and_residue): New parameter
25657         allow_func_align.
25658         (fold_binary): Allow function decl aligment consideration is the
25659         second argument is integer constant one.
25660         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
25661         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
25662         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
25663
25664 2009-03-28  Jan Hubicka  <jh@suse.cz>
25665
25666         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
25667         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
25668         * function.h (rtl_data): Add nothrow flag.
25669         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
25670         set DECL_NOTHROW for AVAILABLE functions.
25671
25672 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
25673
25674         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
25675         following vector keyword has expansion starting with pixel or bool
25676         keyword, expand vector to __vector and pixel or bool to __pixel or
25677         __bool.
25678
25679         PR c++/39554
25680         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
25681         warn_if_disallowed_function_p): Removed.
25682         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
25683         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
25684         warning_if_disallowed_function_p.
25685         * flags.h (warn_if_disallowed_function_p,
25686         warn_disallowed_functions): Removed.
25687         * common.opt (Wdisallowed-function-list=): Removed.
25688         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
25689
25690 2009-03-28  Richard Guenther  <rguenther@suse.de>
25691
25692         PR tree-optimization/38723
25693         * tree-ssa-pre.c (compute_avail): Add all default definitions to
25694         the entry block.
25695
25696 2009-03-28  Jan Hubicka  <jh@suse.cz>
25697
25698         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
25699         test introduced by my previous patch.
25700
25701 2009-03-28  Richard Guenther  <rguenther@suse.de>
25702
25703         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
25704         the PHIs value undefined.
25705
25706 2009-03-28  Jan Hubicka  <jh@suse.cz>
25707
25708         * tree-pass.h (pass_fixup_cfg): New pass.
25709         * ipa-inline.c (inline_transform): Set
25710         always_inline_functions_inlined/after_inlining.
25711         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
25712         (pass_fixup_cfg): New pass.
25713         * passes.c (init_optimization_passes): Add fixup_cfg.
25714
25715 2009-03-28  Richard Guenther  <rguenther@suse.de>
25716
25717         PR tree-optimization/38458
25718         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
25719         argument use the arguments copy-of value.
25720
25721 2009-03-28  Richard Guenther  <rguenther@suse.de>
25722
25723         PR tree-optimization/38180
25724         * tree-ssa-ccp.c (get_default_value): Simplify.
25725         (likely_value): Likewise.
25726         (surely_varying_stmt_p): Properly handle VOP case.
25727         (ccp_initialize): Likewise.
25728         (ccp_fold): Handle propagating through *&.
25729         (fold_const_aggregate_ref): Also handle decls.
25730
25731 2009-03-28  Jan Hubicka  <jh@suse.cz>
25732
25733         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
25734         * cgraph.h (cgraph_node): Likewise.
25735         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
25736         (cgraph_reset_node): Use process flag.
25737         (cgraph_mark_functions_to_output): Likewise.
25738         (cgraph_expand_function): Likewise.
25739         (cgraph_expand_all_functions): Likewise.
25740         (cgraph_output_in_order): Likewise.
25741         * dwarf2out.c (reference_to_unused): Likewise.
25742         * passes.c do_per_function_toporder): Likewise.
25743
25744 2009-03-28  Jan Hubicka  <jh@suse.cz>
25745
25746         Bring from lto-branch:
25747
25748         2008-09-03  Doug Kwan  <dougkwan@google.com>
25749
25750         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
25751         enums instead of reason strings.
25752         * cgraph.c (cgraph_create_edge): Same.
25753         (cgraph_inline_failed_string): New function.
25754         * cgraph.h (cgraph_inline_failed_t): New enum type.
25755         (cgraph_inline_failed_string): New prototype.
25756         (struct cgraph_edge): Change type of INLINED_FAILED from constant
25757         char pointer to cgraph_inline_failed_t.
25758         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
25759         (cgraph_default_inline_p): Ditto.
25760         * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
25761         to cgraph_inline_failed_t pointer.
25762         * cif-code.def: New file.
25763         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
25764         reason string.
25765         (cgraph_check_inline_limits): Change type of REASON to pointer to
25766         cgraph_inline_failed_t.  Replace reason strings with enums.
25767         (cgraph_default_inline_p): Ditto.
25768         (cgraph_recursive_inlining_p): Ditto.
25769         (update_caller_keys): Change type of FAILED_REASON to
25770         cgraph_inline_failed_t.
25771         (cgraph_set_inline_failed): Change type of REASON to pointer to
25772         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
25773         convert enums to strings for text output.
25774         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
25775         to be of type cgraph_inline_failed_t.  Replace reason strings with
25776         enums.  Call cgraph_inline_failed_string to covert enums
25777         to strings for text output.
25778         (cgraph_decide_inlining): Replace reason strings with enums.
25779         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
25780         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
25781         for text output.
25782         * tree-inline.c (expand_call_inline): Change type of REASON
25783         to cgraph_inline_failed_t.  Replace reason strings with enums.
25784         Call cgraph_inline_failed_string for text output.
25785         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
25786         (cgraph.o): Ditto.
25787
25788 2009-03-28  Jan Hubicka  <jh@suse.cz>
25789
25790         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
25791         cgraph_clone_node): Remove master clone handling.
25792         (cgraph_is_master_clone, cgraph_master_clone): Remove.
25793         * cgraph.h (master_clone): Remove.
25794         (cgraph_is_master_clone, cgraph_master_clone): Remove.
25795         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
25796         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
25797
25798 2009-03-28  Jan Hubicka  <jh@suse.cz>
25799
25800         * cgraph.c (cgraph_function_body_availability): Functions declared
25801         inline are always safe to assume that it is not going to be replaced.
25802
25803 2009-03-28  Richard Guenther  <rguenther@suse.de>
25804
25805         PR tree-optimization/38513
25806         * tree-ssa-pre.c (eliminate): Remove redundant stores.
25807         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
25808         EXC_PTR_EXPR and FILTER_EXPR.
25809         (get_ref_from_reference_ops): Likewise.
25810
25811 2009-03-28  Richard Guenther  <rguenther@suse.de>
25812
25813         PR tree-optimization/38968
25814         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
25815         Use FLOOR_MOD_EXPR to compute misalignment.
25816
25817 2009-03-28  Richard Guenther  <rguenther@suse.de>
25818
25819         PR tree-optimization/37795
25820         * tree.h (combine_comparisons): Declare.
25821         * fold-const.c (combine_comparisons): Export.
25822         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
25823         comparisons.
25824         (ifcombine_iforif): Use combine_comparisons.
25825
25826 2009-03-28  Jan Hubicka  <jh@suse.cz>
25827
25828         * tree-eh.c (inlinable_call_p): New function.
25829         (make_eh_edges): Use it.
25830         (verify_eh_edges): Use it.
25831         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
25832         * except.c (reachable_next_level): Add inlinable_function argument
25833         (sjlj_find_directly_reachable_regions): Update.
25834         (add_reachable_handler): Do not set saw_any_handlers.
25835         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
25836         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
25837         Add new inlinable call parameter.
25838         (can_throw_internal, can_throw_external): Update.
25839         * except.h (can_throw_internal_1, can_throw_external_1,
25840         foreach_reachable_handler): Update declaration.
25841
25842 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
25843
25844         * config/arm/t-arm-coff, config/h8300/coff.h,
25845         config/i386/i386-aout.h, config/i386/i386-coff.h,
25846         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
25847         config/pdp11/2bsd.h, config/rs6000/aix41.h,
25848         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
25849         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
25850         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
25851         sys-types.h: Remove.
25852         * Makefile.in: Remove protoize and fixproto support and references
25853         in comments.
25854         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
25855         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
25856         Remove.
25857         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
25858         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
25859         unprotoize$(exeext).
25860         (rest.encap): Don't depend on $(STMP_FIXPROTO)
25861         (.PHONY): Don't depend on proto.
25862         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
25863         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
25864         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
25865         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
25866         build/gen-protos.o, build/scan.o, xsys-protos.h,
25867         build/fix-header$(build_exeext), build/fix-header.o,
25868         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
25869         stmp-install-fixproto): Remove.
25870         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
25871         SYSCALLS.c or fixproto files.
25872         (install-common): Don't install protoize.
25873         (install-headers-tar, install-headers-cpio, install-headers-cp):
25874         Don't depend on $(STMP_FIXPROTO).
25875         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
25876         install fixproto files or write out fixproto settings.
25877         (uninstall): Don't uninstall protoize.
25878         * config.gcc (use_fixproto): Remove.
25879         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
25880         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
25881         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
25882         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
25883         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
25884         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
25885         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
25886         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
25887         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
25888         * config/t-vxworks (STMP_FIXPROTO): Remove.
25889         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
25890         STMP_FIXPROTO): Remove.
25891         * config.in, configure: Regenerate.
25892         * crtstuff.c (gid_t, uid_t): Don't undefine.
25893         * doc/install.texi: Change m68k-coff to m68k-elf in example.
25894         (arm-*-coff, arm-*-aout: Remove target entries.
25895         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
25896         Remove mention of AIX 4.1.
25897         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
25898         * doc/invoke.texi (Running Protoize): Remove.
25899         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
25900         (Protoize Caveats): Remove.
25901         * tsystem.h: Update comments on headers assumed to exist.
25902
25903 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
25904
25905         * genautomata.c: Add a new year to the copyright.  Add a new
25906         reference.
25907         (struct insn_reserv_decl): Add comments for member bypass_list.
25908         (find_bypass): Remove.
25909         (insert_bypass): New.
25910         (process_decls): Use insert_bypass.
25911         (output_internal_insn_latency_func): Output all bypasses with the
25912         same input insn in one switch case.
25913
25914         * rtl.def (define_bypass): Describe bypass choice.
25915         * doc/md.texi (define_bypass): Ditto.
25916
25917 2009-03-27  Richard Guenther  <rguenther@suse.de>
25918
25919         * gimplify.c (mark_addressable): Export.
25920         * tree-flow.h (mark_addressable): Declare.
25921         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
25922         * tree-ssa.c (verify_phi_args): Verify that address taken
25923         variables have TREE_ADDRESSABLE set.
25924
25925 2009-03-27  Richard Guenther  <rguenther@suse.de>
25926
25927         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
25928         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
25929         Do not mark decls TREE_ADDRESSABLE.
25930         (build_fold_addr_expr): Adjust.
25931         (fold_addr_expr): Remove.
25932         (fold_unary): Use build_fold_addr_expr.
25933         (fold_comparison): Likewise.
25934         (split_address_to_core_and_offset): Likewise.
25935         * coverage.c (tree_coverage_counter_addr): Mark the array decl
25936         TREE_ADDRESSABLE.
25937         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
25938         (gimplify_modify_expr_to_memcpy): Mark source and destination
25939         addressable.
25940         * omp-low.c (create_omp_child_function): Mark the object decl
25941         TREE_ADDRESSABLE.
25942         (lower_rec_input_clauses): Mark the var we take the address of
25943         TREE_ADDRESSABLE.
25944         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
25945
25946 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25947
25948         PR middle-end/39315
25949         * cfgexpand.c (expand_one_stack_var_at): Change alignment
25950         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
25951
25952 2009-03-27  Richard Guenther  <rguenther@suse.de>
25953
25954         PR tree-optimization/39120
25955         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
25956         constraints.
25957         (handle_lhs_call): Process return constraints.  Add escape
25958         constraints if necessary.
25959         (handle_const_call): Fill out return constraints.  Make nested
25960         case more precise.  Avoid consttmp if possible.
25961         (handle_pure_call): Fill out return constraints.  Avoid
25962         callused if possible.
25963         (find_func_aliases): Simplify call handling.
25964
25965 2009-03-27  Richard Guenther  <rguenther@suse.de>
25966
25967         PR tree-optimization/39120
25968         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
25969         as a representative.
25970         (solve_graph): Do propagate CALLUSED.
25971         (handle_pure_call): Use a scalar constraint from CALLUSED for
25972         the return value.
25973         (find_what_p_points_to): CALLUSED shall not appear in poins-to
25974         solutions.
25975
25976 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25977
25978         PR c/39323
25979         * c-common.c (handle_aligned_attribute): Properly check alignment
25980         overflow.  Use (1U << i) instead of (1 << i).
25981
25982         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
25983
25984         * expr.h (get_mem_align_offset): Updated.
25985
25986         * tree.h (tree_decl_common): Change align to "unsigned int" and
25987         move it before pointer_alias_set.
25988
25989 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25990             Jakub Jelinek  <jakub@redhat.com>
25991
25992         PR target/38034
25993         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
25994         gr_register_operand with gr_reg_or_0_operand.
25995         (cmpxchg_rel_di): Likewise.
25996         (sync_lock_test_and_set<mode>): Likewise.
25997
25998 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25999
26000         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
26001         (true_regnum): Likewise.
26002
26003         * rtlanal.c (subreg_info): Moved to ...
26004         * rtl.h (subreg_info): Here.  New.
26005         (subreg_get_info): New.
26006
26007         * rtlanal.c (subreg_get_info): Make it extern.
26008
26009 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
26010
26011         PR target/39472
26012         * config/i386/i386.c (ix86_abi): New.
26013         (override_options): Handle -mabi=.
26014         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
26015         (ix86_call_abi_override): Likewise.
26016         (init_cumulative_args): Likewise.
26017         (function_arg_advance): Likewise.
26018         (function_arg_64): Likewise.
26019         (function_arg): Likewise.
26020         (ix86_pass_by_reference): Likewise.
26021         (ix86_function_value_regno_p): Likewise.
26022         (ix86_build_builtin_va_list_abi): Likewise.
26023         (setup_incoming_varargs_64): Likewise.
26024         (is_va_list_char_pointer): Likewise.
26025         (ix86_init_machine_status): Likewise.
26026         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
26027         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
26028         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
26029         (ix86_function_abi): Make it static and return enum calling_abi.
26030         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
26031         with ix86_abi.
26032         (ix86_fn_abi_va_list): Updated.
26033
26034         * config/i386/i386.h (ix86_abi): New.
26035         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
26036         (CONDITIONAL_REGISTER_USAGE): Likewise.
26037         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
26038         (machine_function): Likewise.
26039
26040         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
26041         with ix86_abi.
26042         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
26043         (STACK_BOUNDARY): Likewise.
26044         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
26045
26046         * config/i386/i386.opt (mabi=): New.
26047
26048         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
26049         return enum calling_abi.
26050         (ix86_function_type_abi): Likewise.
26051         (ix86_function_abi): Removed.
26052
26053         * doc/invoke.texi: Document -mabi= option for x86.
26054
26055 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26056
26057         * builtins.c (real_dconstp): Delete.
26058         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
26059
26060 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
26061             Jakub Jelinek  <jakub@redhat.com>
26062
26063         PR debug/37959
26064         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
26065         (gen_subprogram_die): When a function is explicit, generate the
26066         DW_AT_explicit attribute.
26067         * langhooks.h (struct lang_hooks_for_decls): Add
26068         function_decl_explicit_p langhook.
26069         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
26070         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
26071
26072 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
26073
26074         * builtins.c (fold_builtin_memory_op): Optimize memmove
26075         into memcpy if we can prove source and destination don't overlap.
26076
26077         * tree-inline.c: Include gt-tree-inline.h.
26078         (clone_fn_id_num): New variable.
26079         (clone_function_name): New function.
26080         (tree_function_versioning): Use it.
26081         * Makefile.in (GTFILES): Add tree-inline.c.
26082
26083 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
26084
26085         * BASE-VER: Change to 4.5.0.
26086
26087 2009-03-27  Xinliang David Li  <davidxl@google.com>
26088
26089         PR tree-optimization/39557
26090         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
26091
26092 2009-03-27  Xinliang David Li  <davidxl@google.com>
26093
26094         PR tree-optimization/39548
26095         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
26096         candidate check.
26097
26098 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
26099
26100         * c-common.c (pointer_int_sum): Use %wd on return from
26101         tree_low_cst.
26102
26103 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
26104
26105         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
26106         on return from tree_low_cst.
26107
26108 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
26109
26110         PR c++/36799
26111         * ginclude/stdarg.h (va_copy): Define also for
26112         __GXX_EXPERIMENTAL_CXX0X__.
26113
26114 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
26115
26116         PR c++/35652
26117         * builtins.h (c_strlen): Do not warn here.
26118         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
26119         * c-common.c (pointer_int_sum): Take an explicit location.
26120         Warn about offsets out of bounds.
26121         * c-common.h (pointer_int_sum): Adjust declaration.
26122
26123 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26124
26125         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
26126         markup glitch.
26127
26128 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
26129
26130         PR c++/39554
26131         * opts.c (warn_if_disallowed_function_p): Don't assume
26132         get_callee_fndecl must return non-NULL.
26133
26134 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
26135
26136         PR rtl-optimization/39522
26137         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
26138         when reg_reloaded_valid is set.
26139
26140 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26141
26142         * config/spu/divv2df3.c: New file.
26143         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
26144         (DPBIT_FUNCS): Filter out _div_df.
26145
26146 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
26147
26148         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
26149         a jump insn, count that jump in the distance to the loop start.
26150
26151 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
26152
26153         PR target/39523
26154         * config/sh/sh.c (calc_live_regs): Fix condition for global
26155         registers except PIC_OFFSET_TABLE_REGNUM.
26156
26157 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
26158
26159         PR/39518
26160         * doc/invoke.texi (-mconsole): New.
26161         (-mcygwin): New.
26162         (-mno-cygwin): New.
26163         (-mdll): New.
26164         (-mnop-fun-dllimport): New.
26165         (-mthread): New.
26166         (-mwin32): New.
26167         (-mwindows): New.
26168         (sub section "i386 and x86-64 Windows Options"): New.
26169
26170 2009-03-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
26171
26172         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
26173         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
26174
26175 2009-03-25  Richard Guenther  <rguenther@suse.de>
26176
26177         PR middle-end/39497
26178         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
26179         of -Wno-error.
26180
26181 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
26182
26183         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
26184         neither of haifa/selective schedulers are working.
26185
26186 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26187
26188         * doc/invoke.texi (Debugging Options): Fix description of
26189         -fno-merge-debug-strings.
26190
26191 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
26192
26193         * config/cris/libgcc.ver: New version-script.
26194         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
26195
26196         * configure.ac <GAS features, nop mnemonic>: Add pattern
26197         crisv32-*-* for "nop".
26198         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
26199         * configure: Regenerate.
26200
26201 2009-03-24  Ira Rosen  <irar@il.ibm.com>
26202
26203         PR tree-optimization/39529
26204         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
26205         mark_sym_for_renaming for the tag copied to the new vector
26206         pointer.
26207
26208 2009-03-24  Arthur Loiret  <aloiret@debian.org>
26209
26210         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
26211         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
26212         EXTRA_SPEC_FUNCTIONS.
26213         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
26214         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
26215         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
26216         -march and -mtune options.
26217
26218 2009-03-24  Ralf Corsépius  <ralf.corsepius@rtems.org>
26219
26220         * config/m68k/t-rtems: Add m5329 multilib.
26221
26222 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
26223             Jakub Jelinek  <jakub@redhat.com>
26224
26225         PR debug/39524
26226         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
26227         nodes.
26228
26229 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
26230
26231         PR c/39495
26232         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
26233         instead of c_parser_expression_conv, if original_code isn't one of the
26234         4 allowed comparison codes, fail.
26235
26236 2009-03-23  Richard Guenther  <rguenther@suse.de>
26237
26238         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
26239         * tree.h (struct tree_type): Likewise.
26240         * reload.h (struct insn_chain): Likewise.
26241         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
26242         * function.h (struct function): Likewise.
26243         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
26244
26245 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
26246
26247         PR tree-optimization/39516
26248         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
26249
26250 2009-03-23  Bingfeng Mei  <bmei@broadcom.com>
26251
26252         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
26253         should be set true if BITS_PER_WORD of target is bigger than 32
26254
26255 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
26256
26257         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
26258         Translate -B-options to -rpath-link.  Correct existing
26259         rpath-link and conditionalize on !nostdlib.
26260
26261 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26262
26263         * doc/extend.texi (Function Attributes, Variable Attributes):
26264         Fix typos.
26265         * doc/invoke.texi (Debugging Options, Optimize Options)
26266         (i386 and x86-64 Options, MCore Options): Likewise.
26267
26268 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
26269
26270         PR debug/37890
26271         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
26272         it for block local namespace aliases.
26273         (gen_decl_die): Pass context_die to gen_namespace_die.
26274
26275 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
26276
26277         PR c/39495
26278         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
26279         minimum or maximum value.
26280
26281 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
26282
26283         * reginfo.c (globalize_reg): Recompute derived reg sets.
26284
26285 2009-03-19  Ozkan Sezer  <sezeroz@gmail.com>
26286
26287         PR target/39063
26288         * libgcc2.c (mprotect): Do not use signed arguments for
26289         VirtualProtect, use DWORD arguments.  Also fix the 'may
26290         be used uninitialized' warning for the np variable.
26291
26292 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
26293
26294         PR target/39496
26295         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
26296         functions using regparm calling conventions when not optimizing.
26297         (ix86_function_sseregparm): Similarly for sseregparm calling
26298         conventions.
26299
26300 2009-03-19  Li Feng  <nemokingdom@gmail.com>
26301
26302         PR middle-end/39500
26303         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
26304         dependence if the first conflict is after niter iterations.
26305
26306 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
26307
26308         PR middle-end/38609
26309         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
26310         functions with dynamic stack-pointer adjustments.
26311
26312 2009-03-19  Ben Elliston  <bje@au.ibm.com>
26313
26314         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
26315         option; change to -msdata=data.
26316
26317 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26318
26319         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
26320         and -fopenmp.
26321
26322 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
26323
26324         PR target/35180
26325         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
26326
26327 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
26328
26329         * doc/invoke.texi (Code Gen Options): Expand discussion of
26330         -fno-common.
26331
26332 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
26333
26334         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
26335         * matrix-reorg.c (struct matrix_info): Likewise.
26336         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
26337         * rtl.h (struct mem_attrs): Likewise.
26338         * df.h (struct df): Likewise.
26339         * tree-data-ref.h (struct data_dependence_relation): Likewise.
26340         * ira-int.h (struct ira_allocno): Likewise.
26341         * df-scan.c (struct df_collection_rec): Likewise.
26342         * ira.c (struct equivalence): Likewise.
26343         * function.c (struct temp_slot): Likewise.
26344         * cfgloop.h (struct loop): Likewise.
26345
26346         PR debug/39485
26347         * function.c (use_register_for_decl): When not optimizing, disregard
26348         register keyword for variables with types containing methods.
26349
26350 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
26351
26352         PR middle-end/39447
26353         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
26354         (is_simple_operand): Call contains_component_ref_p before calling data
26355         reference analysis that would fail on COMPONENT_REFs.
26356
26357         * tree-vrp.c (search_for_addr_array): Fix formatting.
26358
26359 2009-03-18  Richard Guenther  <rguenther@suse.de>
26360
26361         * tree-vect-transform.c (vect_loop_versioning): Fold the
26362         generated comparisons.
26363         * tree-vectorizer.c (set_prologue_iterations): Likewise.
26364         (slpeel_tree_peel_loop_to_edge): Likewise.
26365
26366 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26367
26368         PR middle-end/37805
26369         * opts.c (print_specific_help): In addition to `undocumented',
26370         accept `separate' and `joined' flags if passed alone.  Describe
26371         output by the first matched one of those.
26372         (common_handle_option): Skip over empty strings.
26373         * gcc.c (display_help): Fix help string for `--help='.
26374         * doc/invoke.texi (Option Summary, Overall Options): With
26375         `--help=', classes and qualifiers can both be repeated, but
26376         only the latter can be negated.  One should not pass only
26377         negated qualifiers.  Fix markup and examples.
26378
26379         Revert
26380         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
26381         PR middle-end/37805
26382         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
26383         and -fhelp=separate.
26384
26385 2009-03-17  Jing Yu  <jingyu@google.com>
26386
26387         PR middle-end/39378
26388         * function.h (struct rtl_data): Move is_thunk from here...
26389         (struct function): ...to here.
26390         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
26391         * varasm.c (assemble_start_function): Change is_thunk from crtl to
26392         cfun.
26393         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
26394         cfun.
26395         (alpha_does_function_need_gp, alpha_start_function): Likewise.
26396         (alpha_output_function_end_prologue): Likewise.
26397         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
26398         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
26399         (rs6000_output_function_epilogue): Likewise.
26400         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
26401
26402 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
26403
26404         PR target/39482
26405         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
26406         from different units in a single alternative.
26407         (*truncdfsf_i387): Ditto.
26408         (*truncxfsf2_mixed): Ditto.
26409         (*truncxfdf2_mixed): Ditto.
26410
26411 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
26412
26413         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
26414         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
26415
26416         PR debug/39474
26417         * tree-ssa-live.c (remove_unused_locals): Don't remove local
26418         unused non-artificial variables when not optimizing.
26419
26420         PR debug/39471
26421         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
26422         DW_TAG_imported_module even if decl is IMPORTED_DECL with
26423         NAMESPACE_DECL in its DECL_INITIAL.
26424
26425         PR middle-end/39443
26426         * optabs.c (set_user_assembler_libfunc): New function.
26427         * expr.h (set_user_assembler_libfunc): New prototype.
26428         * c-common.c: Include libfuncs.h.
26429         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
26430         for memcmp, memset, memcpy, memmove and abort.
26431         * Makefile.in (c-common.o): Depend on libfuncs.h.
26432
26433         PR debug/39412
26434         * dwarf2out.c (gen_inlined_enumeration_type_die,
26435         gen_inlined_structure_type_die, gen_inlined_union_type_die,
26436         gen_tagged_type_instantiation_die): Removed.
26437         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
26438         do nothing.
26439
26440 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
26441
26442         PR testsuite/38526
26443         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
26444         its use.
26445         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
26446         (check-parallel-%): Ditto.
26447         (check-consistency): Ditto.
26448
26449 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
26450
26451         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
26452         local variable rhs by NULL_TREE.
26453
26454 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
26455
26456         PR target/39477
26457         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
26458
26459 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
26460
26461         PR target/39476
26462         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
26463
26464 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
26465
26466         PR target/39473
26467         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
26468         for ms->sysv ABI calls only in 64bit mode.
26469
26470         * config/i386/i386.md (untyped_call): Support 32bit.
26471
26472 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
26473
26474         * doc/extend.texi: Replace x86_65 with x86_64.
26475
26476 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
26477
26478         PR tree-optimization/39455
26479         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
26480         mismatches for POINTER_TYPE_P (type).
26481         (number_of_iterations_le): Likewise.
26482
26483 2009-03-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
26484
26485         * config/picochip/picochip.c: Removed profiling support.
26486         * config/picochip/picochip.md: Removed profiling instruction.
26487         * config/picochip/picochip.h: Removed profiling builtin.
26488
26489 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
26490
26491         * doc/install.texi (--with-host-libstdcxx): Document.
26492
26493 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
26494
26495         PR target/34299
26496         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
26497         generate a warning if the function name does not begin with
26498         "__vector" and the function has either the 'signal' or 'interrupt'
26499         attribute, from here to ...
26500         (avr_declare_function_name): ...here. New function.
26501         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
26502         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
26503
26504 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
26505
26506         PR bootstrap/39454
26507         * cse.c (fold_rtx): Don't modify original const_arg1 when
26508         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
26509         separate variable instead.
26510         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
26511         from out of range shift counts.
26512         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
26513
26514 2009-03-13  Catherine Moore  <clm@codesourcery.com>
26515
26516         * config/i386/x-mingw32 (host-mingw32.o): Replace
26517         diagnostic.h with $(DIAGNOSTIC_H).
26518
26519 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
26520
26521         PR target/39431
26522         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
26523         predicate.
26524         * config/i386/sync.md (sync_compare_and_swap<mode>,
26525         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
26526         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
26527         into a register.
26528         (sync_double_compare_and_swapdi_pic,
26529         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
26530         cmpxchg8b_pic_memory_operand instead of just memory_operand.
26531
26532 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
26533
26534         PR target/39445
26535         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
26536
26537 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
26538
26539         PR target/39327
26540         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
26541         (avx_addsubv4df3): Likewise.
26542         (*avx_addsubv4sf3): Likewise.
26543         (sse3_addsubv4sf3): Likewise.
26544
26545 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
26546
26547         PR target/38824
26548         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
26549
26550 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
26551
26552         PR debug/39432
26553         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
26554         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
26555         registers for allocnos created from user-defined variables.
26556
26557 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26558
26559         PR target/39181
26560         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
26561         of non-integer mode as well.
26562
26563 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
26564
26565         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
26566         for functions for which the parameter types are unknown.
26567
26568 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
26569
26570         PR target/39137
26571         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
26572         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
26573         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
26574         * config/i386/i386.c (ix86_local_alignment): For
26575         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
26576         long long variables on the stack to avoid dynamic realignment.
26577         Allow the first argument to be a decl rather than type.
26578         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
26579
26580 2009-03-11  Nick Clifton  <nickc@redhat.com>
26581
26582         PR target/5362
26583         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
26584         options.
26585         Add description to mno-lsim option.
26586         * config/mcore/mcore.h: Remove comment about deprecated m4align
26587         option.
26588         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
26589         * doc/invoke.texi: Add description of mno-lsim and
26590         mstack-increment options.
26591
26592         * config/fr30/fr30.opt: Document the -mno-lsim option.
26593         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
26594         and -mno-lsim options.
26595
26596 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26597
26598         * fold-const.c (fold_comparison): Only call fold_inf_compare
26599         if the mode supports infinities.
26600
26601 2009-03-11  Jason Merrill  <jason@redhat.com>
26602
26603         PR debug/39086
26604         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
26605         end already did.  Notice GIMPLE_CALL modifications of the result.
26606         Don't copy debug information from an ignored decl or a decl from
26607         another function.
26608
26609 2009-03-10  Richard Guenther  <rguenther@suse.de>
26610             Nathan Froyd  <froydnj@codesourcery.com>
26611
26612         PR middle-end/37850
26613         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
26614         (__divMODE3): Likewise.
26615
26616 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
26617
26618         PR tree-optimization/39394
26619         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
26620         DECL_SIZE_UNIT of variable length FIELD_DECLs.
26621
26622 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26623
26624         * recog.c (verfiy_changes): Disallow renaming of hard regs in
26625         inline asms for register asm ("") declarations.
26626
26627 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
26628
26629         * fold-const.c (fold_unary): Fix comment.
26630
26631 2009-03-07  Jan Hubicka  <jh@suse.cz>
26632
26633         PR target/39361
26634         * tree-inline.c (setup_one_parameter): Do replacement of const
26635         argument by constant in SSA form.
26636
26637 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26638
26639         PR middle-end/38028
26640         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
26641         determine alignment passed to assign_stack_local.
26642         (assign_parms_unsplit_complex): Likewise.
26643         * except.c (sjlj_build_landing_pads): Likewise.
26644
26645 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
26646
26647         PR middle-end/39360
26648         * tree-flow.h (add_referenced_var): Return bool instead of void.
26649         * tree-dfa.c (add_referenced_var): Return result of
26650         referenced_var_check_and_insert call.
26651         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
26652         of referenced_var_check_and_insert.
26653
26654         PR debug/39372
26655         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
26656         (gen_variable_die): Emit DW_AT_location on abstract static variable's
26657         DIE, don't emit it if abstract origin already has it.
26658         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
26659         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
26660
26661 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
26662
26663         * genpreds.c (needs_variable): Fix parentheses at variable name
26664         detection.
26665         (write_tm_constrs_h): Indent generated code.
26666
26667 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26668
26669         * doc/extend.texi (Function Attributes): Add documentation
26670         for isr attributes.
26671
26672 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
26673
26674         PR debug/39387
26675         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
26676         take locus from its DECL_SOURCE_LOCATION instead of input_location.
26677
26678 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
26679
26680         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
26681         the loop as bad.
26682
26683 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
26684
26685         PR debug/39379
26686         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
26687         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
26688
26689 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
26690
26691         * config/i386/i386.md (R8_REG, R9_REG): New constants.
26692         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
26693         constants instead of magic numbers.
26694         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
26695         (QI_REG_P): Ditto.
26696         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
26697         (x86_64_ms_abi_int_parameter_registers): Ditto.
26698         (x86_64_int_return_registers): Ditto.
26699         (ix86_maybe_switch_abi): Ditto.
26700         (ix86_expand_call): Ditto for clobbered_registers array.
26701         (ix86_hard_regno_mode_ok): Ditto.
26702         (x86_extended_QIreg_mentioned_p): Ditto.
26703
26704 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
26705
26706         PR tree-optimization/39349
26707         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
26708
26709         * combine.c (gen_lowpart_for_combine): Use omode when generating
26710         clobber.
26711
26712 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
26713
26714         PR rtl-optimization/39235
26715         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
26716
26717 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
26718
26719         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
26720
26721 2009-03-04  Richard Guenther  <rguenther@suse.de>
26722
26723         PR tree-optimization/39362
26724         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
26725         that occur in abnormal PHIs should be varying.
26726
26727 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
26728
26729         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
26730         Extend comments.
26731         (simple_iv):  Take loop as an argument instead of statement.
26732         * tree-scalar-evolution.h (simple_iv): Declaration changed.
26733         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
26734         to simple_iv.
26735         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
26736         Ditto.
26737         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
26738         * matrix-reorg.c (analyze_transpose): Ditto.
26739         * tree-data-ref.c (dr_analyze_innermost): Ditto.
26740         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
26741         * tree-predcom.c (ref_at_iteration): Ditto.
26742         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
26743
26744 2009-03-04  Richard Guenther  <rguenther@suse.de>
26745
26746         PR tree-optimization/39358
26747         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
26748         escaped_id and callused_id.
26749         (solve_graph): Likewise.
26750
26751 2009-03-04  Richard Guenther  <rguenther@suse.de>
26752
26753         PR tree-optimization/39339
26754         * tree-sra.c (try_instantiate_multiple_fields): Make it
26755         no longer ICE on the above.
26756
26757 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
26758
26759         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
26760         that fits within Pmode.
26761
26762 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
26763
26764         PR middle-end/10109
26765         * tm.texi (LIBCALL_VALUE): Update description.
26766
26767 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
26768
26769         PR middle-end/34443
26770         * doc/extend.texi (section): Update description.
26771
26772 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
26773
26774         PR middle-end/39345
26775         * tree-inline.c (remapped_type): New.
26776         (can_be_nonlocal): Call remapped_type instead of remap_type.
26777
26778 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
26779
26780         PR fortran/39354
26781         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
26782         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
26783
26784 2009-03-03  Richard Guenther  <rguenther@suse.de>
26785
26786         PR middle-end/39272
26787         * tree.c (tree_nonartificial_location): New function.
26788         * tree.h (tree_nonartificial_location): Declare.
26789         * builtins.c (expand_builtin_memory_chk): Provide location
26790         of the call location for artificial function pieces.
26791         (maybe_emit_chk_warning): Likewise.
26792         (maybe_emit_sprintf_chk_warning): Likewise.
26793         (maybe_emit_free_warning): Likewise.
26794         * expr.c (expand_expr_real_1): Likewise.
26795
26796 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
26797
26798         PR tree-optimization/39343
26799         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
26800         COMPONENT_REF t has ARRAY_TYPE.
26801
26802 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
26803
26804         PR middle-end/39335
26805         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
26806         when the type precision of the induction variable should be
26807         larger than the type precision of nit.
26808         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
26809         * graphite.c (graphite_loop_normal_form): Same.
26810         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
26811
26812 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
26813
26814         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
26815         (*call_1_rex64_ms_sysv): Use named constants instead of magic
26816         numbers to describe clobbered registers.
26817         (*call_value_0_rex64_ms_sysv): Ditto.
26818         * config/i386/mmx.md (mmx_emms): Ditto.
26819         (mmx_femms): Ditto.
26820
26821 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
26822
26823         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
26824         of ABI_64.
26825
26826 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26827
26828         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
26829         (spu_section_type_flags): New function.
26830
26831 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
26832
26833         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
26834         reg_class_contents of FLOAT_REGS into a temporary.
26835
26836 2009-03-02  Richard Guenther  <rguenther@suse.de>
26837             Ira Rosen  <irar@il.ibm.com>
26838
26839         PR tree-optimization/39318
26840         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
26841         information to the vectorized statement.
26842
26843 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
26844
26845         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
26846         variable.  Use defined names instead of magic constants for REX SSE
26847         registers.
26848
26849 2009-03-01  Richard Guenther  <rguenther@suse.de>
26850
26851         PR tree-optimization/39331
26852         * omp-low.c (lower_send_shared_vars): Do not receive new
26853         values for the reference of DECL_BY_REFERENCE parms or results.
26854
26855 2009-03-01  Jan Hubicka  <jh@suse.cz>
26856
26857         PR debug/39267
26858         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
26859         BLOCK_NONLOCALIZED_VAR): New macros.
26860         (tree_block): Add nonlocalized_vars.
26861         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
26862         gen_decl_die): Add origin argument.  Allow generation of die with
26863         origin at hand only.
26864         (gen_member_die, gen_type_die_with_usage, force_decl_die,
26865         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
26866         of gen_*.
26867         (gen_block_die): Fix checking for unused blocks.
26868         (process_scope_var): Break out from .... ; work with origins only.
26869         (decls_for_scope) ... here; process nonlocalized list.
26870         (dwarf2out_ignore_block): Look for nonlocalized vars.
26871         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
26872         vars.
26873         (dump_scope_block): Dump them.
26874         * tree-inline.c (remap_decls): Handle nonlocalized vars.
26875         (remap_block): Likewise.
26876         (can_be_nonlocal): New predicate.
26877         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
26878
26879 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26880
26881         * configure: Regenerate.
26882
26883 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26884
26885         * optc-gen.awk: No need to duplicate option flags twice.
26886         Reuse help texts for duplicate options which do not have any.
26887
26888         * gcc.c (display_help): Document --version.
26889
26890         * gcc.c (main): If print_help_list and verbose_flag, ensure
26891         driver output comes before subprocess output.
26892
26893         * optc-gen.awk: Assign all remaining fields to help string,
26894         space-separated, for multi-line help in *.opt.
26895
26896         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
26897         -Wno-pedantic-ms-format is for MinGW targets only.
26898
26899         * doc/options.texi (Option file format): Fix bad indentation,
26900         restoring dropped sentence.
26901
26902 2009-02-28  Jan Hubicka  <jh@suse.cz>
26903
26904         * tree-inline.c (tree_function_versioning): Output debug info.
26905
26906 2009-02-28  Jan Hubicka  <jh@suse.cz>
26907
26908         PR debug/39267
26909         * tree-inline.c (setup_one_parameter): Do not copy propagate
26910         arguments when not optimizing.
26911
26912 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
26913
26914         PR target/39327
26915         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
26916         (avx_addsubv4df3): Likewise.
26917         (*avx_addsubv4sf3): Likewise.
26918         (sse3_addsubv4sf3): Likewise.
26919         (*avx_addsubv2df3): Likewise.
26920         (sse3_addsubv2df3): Likewise.
26921         (avx_unpckhps256): Correct item selectors.
26922         (avx_unpcklps256): Likewise.
26923         (avx_unpckhpd256): Likewise.
26924         (avx_unpcklpd256): Likewise.
26925
26926 2009-02-28  Jan Hubicka  <jh@suse.cz>
26927
26928         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
26929         static vars.
26930         (copy_arguments_for_versioning): If var is declared don't declare it.
26931         (tree_function_versioning): First setup substitutions and then copy
26932         args.
26933
26934 2009-02-27  Jan Hubicka  <jh@suse.cz>
26935
26936         PR debug/39267
26937         * cgraph.h (varpool_output_debug_info): Remove.
26938         * cgraphunit.c (varpool_output_debug_info): Remove.
26939         * dwarf2out.c (deferred_locations_struct): New struct
26940         (deferred_locations): New type.
26941         (deferred_locations_list): New static var.
26942         (deffer_location): New function.
26943         (gen_variable_die): Use it.
26944         (decls_for_scope): Output info on local static vars.
26945         (dwarf2out_finish): Process deferred locations.
26946         * varpool.c (varpool_output_debug_info): Remove.
26947
26948 2009-02-27  Jan Hubicka  <jh@suse.cz>
26949
26950         PR debug/39267
26951         * tree.h (TREE_PROTECTED): Fix comment.
26952         (BLOCK_HANDLER_BLOCK): Remove.
26953         (struct tree_block): Remove handler_block add body_block.
26954         (inlined_function_outer_scope_p): New.
26955         (is_body_block): Remove.
26956         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
26957         * dwarf2out.c (is_inlined_entry_point): Remove.
26958         (add_high_low_attributes): Use inlined_function_outer_scope_p.
26959         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
26960         code.
26961         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
26962         * gimplify.c (gimplify_expr): Gimplify body blocks.
26963         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
26964         block with multiple subblocks.
26965         (dump_scope_block): Prettier output; dump more flags and info.
26966         (dump_scope_blocks): New.
26967         (remove_unused_locals): Use dump_scope_blocks.
26968         * tree-flow.h (dump_scope_blocks): Declare.
26969         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
26970         * stmt.c (is_body_block): Remove.
26971         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
26972         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
26973
26974 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
26975
26976         PR middle-end/39308
26977         * graphite.c (graphite_loop_normal_form): Do not call
26978         number_of_iterations_exit from a gcc_assert.
26979
26980 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26981
26982         * config/s390/s390.c (s390_swap_cmp): Look for conditional
26983         jumps if COND is NULL.
26984         (find_cond_jump): New function.
26985         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
26986         * config/s390/s390.md: Remove z10_cobra attribute value.
26987
26988 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
26989
26990         * config/alpha/alpha.h (alpha_expand_mov): Return false if
26991         force_const_mem returns NULL_RTX.
26992
26993 2009-02-26  Jan Hubicka  <jh@suse.cz>
26994
26995         PR debug/39267
26996         * cgraph.h (varpool_output_debug_info): Remove.
26997         * cgraphunit.c (varpool_output_debug_info): Remove.
26998         * dwarf2out.c (deferred_locations_struct): New struct
26999         (deferred_locations): New type.
27000         (deferred_locations_list): New static var.
27001         (deffer_location): New function.
27002         (gen_variable_die): Use it.
27003         (decls_for_scope): Output info on local static vars.
27004         (dwarf2out_finish): Process deferred locations.
27005         * varpool.c (varpool_output_debug_info): Remove.
27006
27007 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
27008
27009         PR rtl-optimization/39241
27010         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
27011         to subreg_offset_representable_p.
27012
27013 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
27014
27015         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
27016         execute function prototype.  Get f and nregs from max_reg_num
27017         and get_insns.  Remove the first backward pass as it's dead,
27018         guard the forward pass by flag_expensive_optimizations.
27019         (rest_of_handle_regmove): Delete.
27020         (pass_regmove): Replace it with regmove_optimize.
27021
27022 2009-02-25  Martin Jambor  <mjambor@suse.cz>
27023
27024         PR tree-optimization/39259
27025         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
27026         calls_alloca function flags.
27027         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
27028         calls are detected.
27029
27030 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
27031
27032         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
27033         flags_set_1_rtx, flags_set_1_set): Delete.
27034         (regmove_optimize): Do not call mark_flags_life_zones.
27035
27036 2009-02-24  Julian Brown  <julian@codesourcery.com>
27037
27038         PR target/35965
27039         * config/arm/arm.c (require_pic_register): Only set
27040         cfun->machine->pic_reg once per function.
27041
27042 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
27043
27044         * doc/invoke.texi (Link Options): Document an easier way to pass
27045         options that take arguments to the GNU linker using -Xlinker and -Wl.
27046
27047 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
27048
27049         PR target/33785
27050         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
27051
27052 2009-02-24  Richard Guenther  <rguenther@suse.de>
27053
27054         PR debug/39285
27055         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
27056
27057 2009-02-24  Richard Guenther  <rguenther@suse.de>
27058             Zdenek Dvorak  <ook@ucw.cz>
27059
27060         PR tree-optimization/39233
27061         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
27062         from converting them to a generic type.
27063
27064 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
27065
27066         PR tree-optimization/39260
27067         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
27068         contains a condition with a real type.
27069         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
27070
27071 2009-02-23  Jason Merrill  <jason@redhat.com>
27072
27073         PR c++/38880
27074         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
27075         narrowing_initializer_constant_valid_p.
27076         (narrowing_initializer_constant_valid_p): Don't return
27077         null_pointer_node for adding a pointer to itself.
27078
27079 2009-02-23  Jan Hubicka  <jh@suse.cz>
27080
27081         PR c/12245
27082         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
27083         resizing.
27084
27085 2009-02-23  Jan Hubicka  <jh@suse.cz>
27086
27087         PR tree-optimization/37709
27088         * tree.c (block_ultimate_origin): Move here from dwarf2out.
27089         * tree.h (block_ultimate_origin): Declare.
27090         * dwarf2out.c (block_ultimate_origin): Move to tree.c
27091         * tree-ssa-live.c (remove_unused_scope_block_p):
27092         Eliminate blocks containig no instructions nor live variables nor
27093         nested blocks.
27094         (dump_scope_block): New function.
27095         (remove_unused_locals): Enable removal of dead blocks by default;
27096         enable dumping at TDF_DETAILS.
27097
27098 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
27099
27100         * config/i386/i386.c (classify_argument): Don't allow COImode
27101         and OImode.
27102         (function_arg_advance_32): Don't allow OImode.
27103         (function_arg_32): Likewise.
27104         (function_value_32): Likewise.
27105         (return_in_memory_32): Likewise.
27106         (function_arg_64): Remove OImode comment.
27107
27108 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
27109
27110         PR target/39261
27111         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
27112         ix86_expand_vector_set for V4DImode in 64bit mode only.
27113         (ix86_expand_vector_init_one_var): Likewise.
27114
27115 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
27116
27117         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
27118
27119 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
27120
27121         PR bootstrap/39257
27122         * loop-iv.c: Revert last change.
27123         * emit-rtl.c: Likewise.
27124
27125 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
27126
27127         PR target/39256
27128         * config/i386/i386.c (type_natural_mode): Remove an extra
27129         space in the warning message.
27130         (function_value_32): Handle 32-byte vector modes.
27131         (return_in_memory_32): Likewise.
27132
27133 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
27134
27135         * loop-iv.c (truncate_value): New function.
27136         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
27137         of lowpart_subreg.
27138         (lowpart_subreg): Move to...
27139         * emit-rtl.c: ...here.
27140
27141 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
27142
27143         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
27144         accidental and undocumented change at revision 140860.
27145
27146 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
27147
27148         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
27149         take gimple_seq * arguments.
27150         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
27151         types_compatible_p langhook.
27152
27153 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
27154             Joseph Myers  <joseph@codesourcery.com>
27155
27156         * config/arm/arm.c (arm_builtin_va_list): New function.
27157         (arm_expand_builtin_va_start): Likewise.
27158         (arm_gimplify_va_arg_expr): Likewise.
27159         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
27160         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
27161         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
27162         (va_list_type): New variable.
27163         (arm_mangle_type): Mangle va_list_type appropriately.
27164
27165 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
27166
27167         PR middle-end/39157
27168         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
27169         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
27170         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
27171         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
27172         parameter to 1000 for -O1 by default.
27173         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
27174         parameter.
27175         * loop-invariant.c: Include params.h.
27176         (move_loop_invariants): Don't call move_single_loop_invariants on
27177         very large loops.
27178
27179 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
27180
27181         * calls.c (emit_library_call_value_1): Use slot_offset instead of
27182         offset when calculating bounds for indexing stack_usage_map.  Fixes
27183         a buffer overflow with certain target setups.
27184
27185 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
27186
27187         PR target/39240
27188         * calls.c (expand_call): Clear try_tail_call if caller and callee
27189         disagree in promotion of function return value.
27190
27191 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
27192
27193         PR target/39175
27194         * c-common.c (c_determine_visibility): If visibility changed and
27195         DECL_RTL has been already set, call make_decl_rtl to update symbol
27196         flags.
27197
27198 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
27199
27200         PR c++/39188
27201         * varasm.c (assemble_variable): Don't check DECL_NAME when
27202         globalizing a variable.
27203
27204 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
27205
27206         PR c/38483
27207         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
27208         expression before any __builtin_trap call.
27209         * c-typeck.c (build_function_call): Convert and check function
27210         arguments before generating a call to a trap.  Evaluate the
27211         function arguments before the trap.
27212
27213 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
27214
27215         PR target/39228
27216         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
27217         (UNSPEC_FXAM_MEM): New unspec.
27218         (fxam<mode>2_i387_with_temp): New insn and split pattern.
27219         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
27220         memory using fxam<mode>2_i387_with_temp to remove excess precision.
27221
27222 2009-02-19  Richard Guenther  <rguenther@suse.de>
27223
27224         PR tree-optimization/39207
27225         PR tree-optimization/39074
27226         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
27227         storedanything_tree): New.
27228         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
27229         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
27230         (build_succ_graph): Add edges from STOREDANYTHING to all
27231         non-direct nodes.
27232         (init_base_vars): Initialize STOREDANYTHING.
27233         (compute_points_to_sets): Free substitution info after
27234         building the succ graph.
27235         (ipa_pta_execute): Likewise.
27236
27237         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
27238         field.
27239         (do_ds_constraint): Do not add to special var or non-pointer
27240         field solutions.
27241         (type_could_have_pointers): Split out from ...
27242         (could_have_pointers): ... here.  For arrays use the element type.
27243         (create_variable_info_for): Initialize may_have_pointers.
27244         (new_var_info): Likewise.
27245         (handle_lhs_call): Make the HEAP variable unknown-sized.
27246         (intra_create_variable_infos): Use a type with pointers for
27247         PARM_NOALIAS, make it unknown-sized.
27248
27249 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
27250
27251         PR target/39224
27252         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
27253
27254 2009-02-18  Jason Merrill  <jason@redhat.com>
27255
27256         PR target/39179
27257         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
27258         value if DECL_EXTERNAL.
27259         * tree-sra.c (sra_walk_gimple_assign): Likewise.
27260         * target.h (gcc_target::binds_local_p): Clarify "module".
27261         * tree.h (TREE_PUBLIC): Clarify "module".
27262
27263 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
27264
27265         PR target/38891
27266         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
27267         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
27268
27269 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
27270
27271         PR target/39082
27272         * c.opt (Wabi): Support C and ObjC.
27273         (Wpsabi): New.
27274
27275         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
27276
27277         * config/i386/i386.c (classify_argument): Warn once about the ABI
27278         change when passing union with long double.
27279
27280         * doc/invoke.texi: Update -Wabi for warning psABI changes.
27281
27282 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
27283
27284         PR c/35447
27285         * c-parser.c (c_parser_compound_statement): Always enter and leave
27286         a scope.
27287
27288 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27289
27290         PR target/34587
27291         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
27292
27293 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
27294
27295         PR tree-optimization/36922
27296         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
27297         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
27298         Likewise.
27299
27300 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
27301
27302         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
27303         to 0 for EABI64.
27304
27305 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
27306
27307         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
27308
27309 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
27310
27311         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
27312         tree sharing.
27313
27314 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
27315             Richard Sandiford  <rdsandiford@googlemail.com>
27316
27317         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
27318         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
27319         (loongson_biadd): ...this.
27320
27321 2009-02-17  Richard Guenther  <rguenther@suse.de>
27322
27323         PR tree-optimization/39202
27324         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
27325         a var make sure to follow existing collapses.
27326
27327 2009-02-17  Richard Guenther  <rguenther@suse.de>
27328
27329         PR middle-end/39214
27330         * langhooks.c (lhd_print_error_function): Check for NULL block.
27331
27332 2009-02-17  Richard Guenther  <rguenther@suse.de>
27333
27334         PR tree-optimization/39204
27335         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
27336         of the PHI arg.
27337
27338 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
27339
27340         * config/soft-fp/double.h: Update from glibc CVS.
27341
27342 2009-02-17  Richard Guenther  <rguenther@suse.de>
27343
27344         PR tree-optimization/39207
27345         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
27346         strict-aliasing warnings for pointers pointing to NULL.
27347
27348 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
27349
27350         PR c/35446
27351         * c-parser.c (c_parser_braced_init): Call pop_init_level when
27352         skipping until next close brace.
27353
27354 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
27355
27356         PR target/37049
27357         * config/i386/i386.c (ix86_expand_push): Set memory alignment
27358         to function argument boundary.
27359
27360 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
27361
27362         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
27363         in the lea_add. Reload eventually constraints it properly.
27364         * config/picochip/constraints.md: Remove the target constraint
27365         "b", since it is not needed anymore.
27366
27367 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
27368
27369         * gthr-dce.h: Uglify function parameter and local variable names.
27370         * gthr-gnat.h: Likewise.
27371         * gthr-mipssde.h: Likewise.
27372         * gthr-nks.h: Likewise.
27373         * gthr-posix95.h: Likewise.
27374         * gthr-posix.h: Likewise.
27375         * gthr-rtems.h: Likewise.
27376         * gthr-single.h: Likewise.
27377         * gthr-solaris.h: Likewise.
27378         * gthr-tpf.h: Likewise.
27379         * gthr-vxworks.h: Likewise.
27380         * gthr-win32.h: Likewise.
27381
27382 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
27383
27384         PR target/39196
27385         * config/i386/i386.md: Restrict the new peephole2 to move
27386         between MMX/SSE registers.
27387
27388 2009-02-15  Richard Guenther  <rguenther@suse.de>
27389
27390         Revert
27391         2009-02-13  Richard Guenther  <rguenther@suse.de>
27392
27393         * configure.ac: Enable LFS.
27394         * configure: Re-generate.
27395         * config.in: Likewise.
27396
27397 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27398
27399         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
27400         spu_srqwbyte, spu_srqwbytebc): Define.
27401         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
27402         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
27403         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
27404         "shrqby_<mode>"): New insn-and-split patterns.
27405         * config/spu/spu.c (expand_builtin_args): Determine and return
27406         number of operands using spu_builtin_description data.
27407         (spu_expand_builtin_1): Use it.
27408
27409 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
27410
27411         PR target/38056
27412         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
27413         TARGET_CONST_GP.
27414
27415 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
27416
27417         PR target/39149
27418         * config/i386/i386.c (override_options): Correct warning
27419         messages for -malign-loops, -malign-jumps and -malign-functions.
27420
27421 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
27422
27423         PR target/39152
27424         * config/i386/i386.md: Restrict the new peephole2 to move
27425         between the general purpose registers.
27426
27427 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
27428
27429         PR target/39162
27430         * config/i386/i386.c (type_natural_mode): Add a new argument.
27431         Return the original mode and warn ABI change if vector size is 32byte.
27432         (function_arg_advance): Updated.
27433         (function_arg): Likewise.
27434         (ix86_function_value): Likewise.
27435         (ix86_return_in_memory): Likewise.
27436         (ix86_sol10_return_in_memory): Likewise.
27437         (ix86_gimplify_va_arg): Likewise.
27438         (function_arg_32): Don't warn ABX ABI change here.
27439         (function_arg_64): Likewise.
27440
27441 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
27442
27443         * loop-iv.c (implies_p): In the final case, test that operands 0
27444         of the two comparisons match.
27445
27446         * config/bfin/bfin.c (find_prev_insn_start): New function.
27447         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
27448         (find_next_insn_start): Move.
27449
27450 2009-02-13  Richard Guenther  <rguenther@suse.de>
27451
27452         * configure.ac: Enable LFS.
27453         * configure: Re-generate.
27454         * config.in: Likewise.
27455
27456 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
27457
27458         PR c/35444
27459         * c-parser.c (c_parser_parms_list_declarator): Discard pending
27460         sizes on syntax error after some arguments have been parsed.
27461
27462 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
27463
27464         * doc/invoke.texi (-fira): Remove.
27465
27466 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
27467
27468         * caller-save.c: Replace regclass.c with reginfo.c in comments.
27469         * recog.c: Likewise.
27470         * rtl.h: Likewise.
27471
27472 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
27473
27474         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
27475         (umul_ppmm): Likewise.
27476         (count_leading_zeros): Likewise.
27477         (count_trailing_zeros): Likewise.
27478         (UMUL_TIME): Likewise.
27479
27480 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
27481
27482         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
27483         soft-fp/t-softfp to tmake_file.
27484
27485         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
27486         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
27487         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
27488         IA64_BUILTIN_INFQ]: New.
27489         (ia64_init_builtins): Initialize __builtin_infq,
27490         __builtin_fabsq and __builtin_copysignq if not HPUX.
27491         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
27492         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
27493
27494         * config/ia64/lib1funcs.asm (__divtf3): Define only if
27495         SHARED is defined.
27496         (__fixtfti): Likewise.
27497         (__fixunstfti): Likewise.
27498         (__floattitf): Likewise.
27499
27500         * config/ia64/libgcc-glibc.ver: New.
27501         * config/ia64/t-fprules-softfp: Likewise.
27502         * config/ia64/sfp-machine.h: Likewise.
27503
27504         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
27505         (LIBGCC2_TF_CEXT): Likewise.
27506         (TF_SIZE): Likewise.
27507         (TARGET_INIT_LIBFUNCS): Likewise.
27508
27509         * config/ia64/t-glibc (SHLINB_MAPFILES):
27510         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
27511
27512 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
27513
27514         * config/i386/i386.c (construct_container): Rewrite processing
27515         BLKmode with X86_64_SSE_CLASS.
27516
27517 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
27518
27519         PR target/39152
27520         * config/i386/i386.md: Replace simplify_replace_rtx with
27521         replace_rtx in the new peephole2.
27522
27523 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
27524
27525         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
27526         loop unrolling do not happen at -O2.
27527
27528 2009-02-12  Michael Matz  <matz@suse.de>
27529
27530         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
27531
27532 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
27533
27534         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
27535         for -g3.
27536
27537 2009-02-12  Ben Elliston  <bje@au.ibm.com>
27538
27539         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
27540         patterns when updating the back chain.  Missed in the 2009-02-10
27541         change.
27542
27543 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
27544
27545         * doc/extend.texi (Decimal Floating Types): Update identifier of
27546         draft TR and list of missing support.
27547
27548 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
27549
27550         PR middle-end/39154
27551         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
27552         bit to variable length decl's flags, add it also to its
27553         pointer replacement variable.
27554
27555 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
27556             Jakub Jelinek  <jakub@redhat.com>
27557
27558         PR target/39118
27559         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
27560         (memory_blockage): New expander.
27561         (*memory_blockage): New insn pattern.
27562         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
27563         instead of general blockage at the end of function prologue when
27564         frame pointer is used to access red zone area.  Do not emit blockage
27565         when profiling, it is emitted in generic code.
27566         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
27567         function epilogue when frame pointer is used to access red zone area.
27568
27569 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
27570
27571         PR target/38824
27572         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
27573         by arithmetic with memory operands.
27574         * config/i386/predicates.md (commutative_operator): New.
27575
27576 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
27577
27578         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
27579         bulleted lists.
27580
27581 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
27582
27583         * alias.h (record_alias_subset): Declare.
27584         * alias.c (record_alias_subset): Make global.
27585
27586 2009-02-10  Nick Clifton  <nickc@redhat.com>
27587
27588         * tree-parloops.c: Change license to GPLv3.
27589         * ipa-struct-reorg.c: Change license to GPLv3.
27590         * ipa-struct-reorg.h: Change license to GPLv3.
27591
27592 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
27593
27594         PR c/39084
27595         * c-decl.c (start_struct): Return NULL on error.
27596
27597 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
27598
27599         PR middle-end/39124
27600         * cfgloopmanip.c (remove_path): Call remove_bbs after
27601         cancel_loop_tree, not before it.
27602
27603         PR target/39139
27604         * function.h (struct function): Add has_local_explicit_reg_vars bit.
27605         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
27606         VAR_DECLs were seen.
27607         * tree-ssa-live.c (remove_unused_locals): Recompute
27608         cfun->has_local_explicit_reg_vars.
27609         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
27610         copies or clearings if cfun->has_local_explicit_reg_vars.
27611
27612 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
27613
27614         PR target/39118
27615         * config/i386/i386.c (expand_prologue): Emit blockage at the end
27616         of function prologue when frame pointer is used to access
27617         red zone area.
27618
27619 2009-02-10  Richard Guenther  <rguenther@suse.de>
27620
27621         PR middle-end/39127
27622         * gimplify.c (gimple_regimplify_operands): Always look if
27623         we need to create a temporary.
27624
27625 2009-02-10  Richard Guenther  <rguenther@suse.de>
27626
27627         PR tree-optimization/39132
27628         * tree-loop-distribution.c (todo): New global var.
27629         (generate_memset_zero): Trigger TODO_rebuild_alias.
27630         (tree_loop_distribution): Return todo.
27631
27632 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
27633
27634         PR target/39119
27635         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
27636         (x86_64_reg_class_name): Removed.
27637         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
27638         first one isn't X86_64_SSE_CLASS or any other ones aren't
27639         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
27640         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
27641         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
27642         and 3 X86_64_SSEUP_CLASS.
27643         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
27644         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
27645
27646 2009-02-10  Ben Elliston  <bje@au.ibm.com>
27647
27648         * config/rs6000/rs6000.md (allocate_stack): Always use an update
27649         form instruction to update the stack back chain word, even if the
27650         user has disabled the generation of update instructions.
27651         (movdi_<mode>_update_stack): New.
27652         (movsi_update_stack): Likewise.
27653         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
27654         always use an update form instruction to update the stack back
27655         chain word.
27656
27657 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
27658
27659         PR middle-end/38953
27660         * graphite.c (if_region_set_false_region): After moving a region in
27661         the false branch of a condition, remove the empty dummy basic block.
27662         (gloog): Remove wrong fix for PR38953.
27663
27664 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27665
27666         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
27667         generation due to implicit sign extension.
27668
27669 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
27670
27671         PR middle-end/38981
27672         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
27673         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
27674
27675 2009-02-09  Richard Guenther  <rguenther@suse.de>
27676
27677         PR middle-end/35202
27678         * convert.c (convert_to_real): Disable (float)fn((double)x)
27679         to fnf(x) conversion if errno differences may occur and
27680         -fmath-errno is set.
27681
27682 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
27683
27684         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
27685         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
27686         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
27687
27688 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
27689
27690         PR c/35434
27691         * c-common.c (handle_alias_attribute): Disallow attribute for
27692         anything not a FUNCTION_DECL or VAR_DECL.
27693
27694 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
27695
27696         PR c/39035
27697         * real.c (do_compare): Special-case compare of zero against
27698         decimal float value.
27699
27700 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
27701
27702         PR c/36432
27703         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
27704         as indicating flexible array members unless the field itself is
27705         being declarared as the incomplete array.
27706
27707 2009-02-06  Jan Hubicka  <jh@suse.cz>
27708
27709         PR tree-optimization/38844
27710         * ipa-inline.c (try_inline): Stop inlining recursion when edge
27711         is already inlined.
27712
27713 2009-02-06  Richard Guenther  <rguenther@suse.de>
27714
27715         PR middle-end/38977
27716         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
27717         fork because we may expand it as __gcov_fork.
27718
27719 2009-02-06  Nick Clifton  <nickc@redhat.com>
27720
27721         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
27722
27723 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
27724
27725         PR tree-optimization/35659
27726         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
27727         vn_phi_eq): Shortcut if hashcode does not match.
27728         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
27729         NULL operands.
27730         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
27731         and avoid iterative_hash_expr.
27732         (FOR_EACH_VALUE_ID_IN_SET): New.
27733         (value_id_compare): Remove.
27734         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
27735         sort expressions by value id.
27736
27737 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
27738
27739         PR target/38991
27740         * config/sh/predicates.md (general_movsrc_operand): Don't check
27741         the subreg of system registers here.
27742
27743 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
27744
27745         PR c++/39106
27746         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
27747         on the copied decl.
27748
27749 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
27750
27751         PR rtl-optimization/39110
27752         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
27753         addresses, not aligned ones.
27754
27755 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
27756             Richard Guenther  <rguenther@suse.de>
27757
27758         PR tree-optimization/39100
27759         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
27760         comment says and add edges.
27761
27762 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
27763
27764         PR c/35435
27765         * c-common.c (handle_tls_model_attribute): Ignore attribute for
27766         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
27767
27768 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
27769
27770         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
27771         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
27772         register_bb_in_sese, new_sese, free_sese): Moved.
27773         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
27774         outermost_loop_in_scop, build_scop_iteration_domain,
27775         expand_scalar_variables_ssa_name, get_vdef_before_scop,
27776         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
27777         Use loop_in_sese_p instead of loop_in_scop_p.
27778         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
27779         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
27780         (scopdet_basic_block_info): Fix bug in scop detection.
27781         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
27782         eq_loop_to_cloog_loop): Remove.
27783         (nb_loops_around_loop_in_scop, nb_loop
27784         ref_nb_loops): Moved here...
27785         * graphite.h (ref_nb_loops): ... from here.
27786         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
27787         (loop_domain_dim, loop_iteration_vector_dim): Remove.
27788         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
27789
27790 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
27791             Hans-Peter Nilsson  <hp@axis.com>
27792
27793         PR rtl-optimization/37889
27794         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
27795         Move offset handling from PLUS to before the switch.  Use new
27796         arguments when considering SYMBOL_REFs too.
27797         (rtx_addr_can_trap_p): Pass dummy offset and size.
27798         (enum may_trap_p_flags): Remove.
27799         (may_trap_p_1): Pass size from MEM_SIZE.
27800
27801         PR rtl-optimization/38921
27802         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
27803         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
27804         * rtlanal.c (may_trap_after_code_motion_p): Delete.
27805         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
27806
27807 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
27808
27809         AVX Programming Reference (January, 2009)
27810         * config/i386/sse.md (*vpclmulqdq): New.
27811
27812 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
27813
27814         PR tree-optimization/38977
27815         PR gcov-profile/38292
27816         * calls.c (special_function_p): Disregard __builtin_ prefix.
27817
27818 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
27819
27820         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
27821         non-indexable addresses even before reload.
27822
27823 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
27824
27825         PR c/29129
27826         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
27827         as having variable size.  Do not give an error for unnamed
27828         parameters with [*] declarators.  Give a warning for type names
27829         with [*] declarators and mark them as variable size.
27830         * c-parser.c (c_parser_sizeof_expression): Do not give an error
27831         for sizeof applied to [*] type names.
27832
27833 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
27834
27835         PR C++/36607
27836         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
27837
27838 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
27839
27840         * gcc.c (process_command): Update copyright notice dates.
27841         * gcov.c (print_version): Likewise.
27842         * gcov-dump.c (print_version): Likewise.
27843         * mips-tfile.c (main): Likewise.
27844         * mips-tdump.c (main): Likewise.
27845
27846 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
27847
27848         PR c/35433
27849         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
27850         for composite type involving a zero-length array type.
27851
27852 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
27853
27854         PR target/35318
27855         * function.c (match_asm_constraints_1): Skip over
27856         initial optional % in the constraint.
27857
27858         PR inline-asm/39059
27859         * c-parser.c (c_parser_postfix_expression): If fixed point is not
27860         supported, don't accept FIXED_CSTs.
27861         * c-decl.c (finish_declspecs): Error if fixed point is not supported
27862         and _Sat is used without _Fract/_Accum.  Set specs->type to
27863         integer_type_node for cts_fract/cts_accum if fixed point is not
27864         supported.
27865
27866 2009-02-02  Catherine Moore  <clm@codesourcery.com>
27867
27868         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
27869
27870 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
27871
27872         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
27873         (ABI_HAS_64BIT_SYMBOLS): Use it.
27874         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
27875
27876 2009-02-02  Paul Brook  <paul@codesourcery.com>
27877
27878         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
27879
27880 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
27881
27882         PR inline-asm/39058
27883         * recog.h (asm_operand_ok): Add constraints argument.
27884         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
27885         recurse on matching constraint.
27886         (check_asm_operands): Pass constraints as 3rd argument to
27887         asm_operand_ok.  Don't look up matching constraint here.
27888         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
27889         to asm_operand_ok.
27890
27891 2009-02-02  Ben Elliston  <bje@au.ibm.com>
27892
27893         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
27894         TARGET_NARROW_VOLATILE_BITFIELD macro names.
27895
27896 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27897
27898         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
27899         information.  Remove some obsolete information.  Reorganize.
27900
27901         * config/pa/fptr.c: Revert license to GPL 2.
27902         * config/pa/milli64.S: Likewise.
27903
27904 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
27905
27906         PR target/38904
27907         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
27908         LIBRARY name in, instead of hard-coding it.
27909         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
27910         extra target make frag to tmake_files according to EH model.
27911         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
27912         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
27913         frags that define makefile variable EH_MODEL appropriately.
27914         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
27915         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
27916         to "-sjlj" according to type of EH configured.
27917         (LIBGCC_SONAME):  Concatenate it to shared library base name.
27918         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
27919         to "_sjlj" according to type of EH configured.
27920         (LIBGCC_SONAME):  Concatenate it to shared library base name.
27921         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
27922         (SHLIB_LINK):  Add missing semicolon to if-else construct.
27923         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
27924         string value of "pe_dll" command-line option.
27925         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
27926         (SHLIB_SONAME):  Use it when overriding t-cygming default.
27927         (SHLIB_IMPLIB):  Override t-cygming default.
27928         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
27929         string value of "pe_dll" command-line option.
27930
27931 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
27932
27933         PR target/38952
27934         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
27935         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
27936
27937 2009-01-31  Richard Guenther  <rguenther@suse.de>
27938
27939         PR tree-optimization/38937
27940         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
27941         computing the transitive closure.
27942
27943 2009-01-30  Richard Guenther  <rguenther@suse.de>
27944
27945         PR tree-optimization/39041
27946         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
27947         Propagate variable indices only if the types match for this stmt.
27948
27949 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
27950
27951         PR target/39013
27952         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
27953         inline but never defined.
27954
27955 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
27956
27957         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
27958         (*insv_h_di_reg_extimm): New insn.
27959         (*insv_l<mode>_reg_extimm): New insn.
27960
27961 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
27962
27963         * config/picochip/picochip.c (flag_conserve_stack): set
27964         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
27965         fconserve-stack. Reduce call-overhead used by inliner.
27966
27967 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
27968
27969         PR/38157
27970         * common.opt (flag_conserve_stack): Initialised to zero.
27971
27972 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
27973
27974         PR/39002
27975         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
27976         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
27977         method.
27978
27979 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
27980
27981         * ira-color.c (allocno_reload_assign): Update comments.
27982         * regmove.c (regmove_optimize): Likewise.
27983
27984         * ra.h: Removed.
27985
27986 2009-01-29  Robert Millan  <rmh@aybabtu.com>
27987
27988         * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
27989         * config/i386/kopensolaris-gnu.h: New file.  Undefine
27990         `MD_UNWIND_SUPPORT'.
27991         * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
27992
27993 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
27994
27995         PR tree-optimization/39007
27996         * tree-loop-distribution.c (generate_builtin): Use
27997         recompute_dominator to compute the immediate dominator of the
27998         basic block just after the loop.
27999
28000 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
28001
28002         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
28003         (ASM_OUTPUT_DWARF_PCREL): Define.
28004
28005 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
28006
28007         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
28008         * doc/passes.texi: Remove entries about regclass, local-alloc, and
28009         global.  Modify entries about regmove and IRA.
28010
28011         * ra-conflict.c: Remove the file.
28012
28013         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
28014
28015         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
28016         (pass_regclass_init): Rename to pass_reginfo_init.
28017
28018         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
28019
28020         * toplev.h (flag_ira): Remove.
28021
28022         * caller-save.c (setup_save_areas): Remove flag_ira.
28023
28024         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
28025
28026         * global.c: Remove the file.
28027
28028         * opts.c (decode_options): Remove flag_ira.
28029
28030         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
28031
28032         * regmove.c: Modify file description.
28033         (find_use_as_address, try_auto_increment): Define them only if
28034         AUTO_INC_DEC is defined.
28035         (replacement_quality, replace_in_call_usage, fixup_match_1,
28036         stable_and_no_regs_but_for_p): Remove.
28037         (reg_set_in_bb): Make it static.
28038         (regmove_optimize): Remove flag_ira and code which worked for
28039         !flag_ira.
28040
28041         * local-alloc.c: Remove the file.
28042
28043         * common.opt (fira): Remove.
28044
28045         * ira.c: Include except.h.
28046         (eliminable_regset): Move from global.c.
28047         (mark_elimination): Ditto.  Remove flag_ira.
28048         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
28049         equiv_mem_modified, validate_equiv_mem_from_store,
28050         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
28051         contains_replace_regs, memref_referenced_p, memref_used_between_p,
28052         no_equiv, recorded_label_ref): Move from local-alloc.c.
28053         (update_equiv_regs): Ditto.  Make it static.
28054         (print_insn_chain, print_insn_chains): Move it from global.c.
28055         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
28056         (build_insn_chain): Ditto.  Make it static.
28057         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
28058         Rename to init_live_subregs.
28059         (gate_ira): Remove flag_ira.
28060
28061         * regclass.c: Rename reginfo.c.  Change file description.
28062         (FORBIDDEN_INC_DEC_CLASSES): Remove.
28063         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
28064         (init_reg_sets_1): Remove code for evaluation of
28065         reg_class_superclasses and losing_caller_save_reg_set.
28066         (init_regs): Remove init_reg_autoinc.
28067         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
28068         ok_for_base_p_nonstrict): Remove.
28069         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
28070         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
28071         corresponding entries.
28072         (dump_regclass, record_operand_costs, scan_one_insn,
28073         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
28074         record_address_regs, auto_inc_dec_reg_p): Remove.
28075         (gt-regclass.h): Rename to gt-reginfo.h.
28076
28077         * rtl.h (dump_global_regs, retry_global_alloc,
28078         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
28079
28080         * Makefile.in (RA_H): Remove.
28081         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
28082         Rename regclass.o to reginfo.o.
28083         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
28084         gt-reginfo.h.
28085         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
28086         (GTFILES): Rename regclass.c to reginfo.c.
28087
28088         * passes.c (init_optimization_passes): Remove pass_local_alloc and
28089         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
28090
28091         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
28092         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
28093         Remove flag_ira.
28094         (finish_spills): Ditto.  Remove code for !flag_ira.
28095
28096 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
28097
28098         PR middle-end/35854
28099         * doc/invoke.texi (rtl debug options): Complete rewrite.
28100         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
28101         to auto_inc_dec".
28102         * mode-switching.c (pass_mode_switching): Rename pass from
28103         "mode-sw" to "mode_sw".
28104         * except.c (pass_convert_to_eh_ranges): Rename pass from
28105         "eh-ranges" to "eh_ranges".
28106         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
28107         to "subreg1".
28108
28109
28110 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
28111             Alexander Monakov  <amonakov@ispras.ru>
28112
28113         PR middle-end/38857
28114         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
28115         register.
28116         (move_exprs_to_boundary): Change return type and pass through
28117         should_move from move_op.  Relax assert.  Update usage ...
28118         (schedule_expr_on_boundary): ... here.  Use should_move instead of
28119         cant_move.
28120         (move_op_orig_expr_found): Indicate that insn was disconnected from
28121         stream.
28122         (code_motion_process_successors): Do not call after_merge_succs
28123         callback if original expression was not found when traversing any of
28124         the branches.
28125         (code_motion_path_driver): Change return type.  Update prototype.
28126         (move_op): Update comment.  Add a new parameter (should_move).  Update
28127         prototype.  Set *should_move based on indication provided by
28128         move_op_orig_expr_found.
28129
28130 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
28131
28132         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
28133         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
28134         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
28135         * config/rs6000/rs6000.c (rs6000_override_options): Default
28136         avoid-indexed-addresses on for Power6, off for everything else.
28137         (avoiding_indexed_address_p): New function.
28138         (rs6000_legitimize_address): Use it.
28139         (rs6000_legitimate_address): Likewise.
28140         * config/rs6000/rs6000.md (movXX_updateX): Likewise
28141
28142 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
28143
28144         PR tree-optimization/38997
28145         * tree-loop-distribution.c (generate_memset_zero): Use
28146         POINTER_PLUS_EXPR for a pointer addition.
28147
28148 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
28149
28150         * config/s390/s390.md (bswap<mode>2): New pattern added.
28151
28152 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
28153
28154         * config/s390/s390.md (*tls_load_31): Added type attribute.
28155
28156 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
28157
28158         * config/s390/s390.md: Fix a few comments.
28159
28160 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
28161
28162         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
28163         (*tm<mode>_full): Fixed z10prop attribute.
28164         (*tst<mode>_extimm): Fixed z10prop attribute.
28165         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
28166         (*tstqiCCT_cconly): Fixed z10prop attribute.
28167         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
28168         (*movsi_larl): Fixed z10prop attribute.
28169         (*movsi_zarch): Fixed z10prop attribute.
28170         (*movsi_eas): Fixed z10prop attribute.
28171         (*movhi): Fixed z10prop attribute.
28172         (*movqi): Fixed z10prop attribute.
28173         (*movstrictqi): Fixed z10prop attribute.
28174         (*mov<mode>): Fixed z10prop attribute.
28175         (*movcc): Fixed z10prop attribute.
28176         (*sethighpartdi_64): Fixed z10prop attribute.
28177         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
28178         (*negdi2_sign_cc): Fixed z10prop attribute.
28179         (*negdi2_sign): Fixed z10prop attribute.
28180         (*absdi2_sign_cc): Fixed z10prop attribute.
28181         (*absdi2_sign): Fixed z10prop attribute.
28182         (*negabsdi2_sign_cc): Fixed z10prop attribute.
28183         (*negabsdi2_sign): Fixed z10prop attribute.
28184         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
28185         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
28186         (doloop_si64): Fixed z10prop attribute.
28187         (doloop_si31): Fixed z10prop attribute.
28188         (doloop_long): Fixed z10prop attribute.
28189         (indirect_jump): Fixed z10prop attribute.
28190         (nop): Fixed z10prop attribute.
28191         (main_base_64): Fixed z10prop attribute.
28192         (reload_base_64): Fixed z10prop attribute.
28193
28194 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
28195
28196         PR rtl-optimization/38740
28197         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
28198         if !optimize.
28199         * config/mips/mips.c (mips_reorg): Likewise.
28200
28201 2009-01-28  Richard Guenther  <rguenther@suse.de>
28202
28203         PR tree-optimization/38926
28204         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
28205         with the correct value id to a value.
28206         (do_regular_insertion): Use the value number of edoubleprime
28207         for the value number of the expr.
28208
28209         Revert
28210         2008-08-21  Richard Guenther  <rguenther@suse.de>
28211
28212         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
28213         a PHI ask VN if it is already available.
28214         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
28215         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
28216
28217 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
28218
28219         PR middle-end/38934
28220         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
28221         set to varying whenever max has TREE_OVERFLOW set, similarly
28222         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
28223
28224 2009-01-28  Richard Guenther  <rguenther@suse.de>
28225
28226         PR middle-end/38908
28227         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
28228         uninitialized aggregate uses in call arguments.
28229
28230 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
28231
28232         PR tree-optimization/38984
28233         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
28234         the nothing_id variable if -fno-delete-null-pointer-checks.
28235
28236 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
28237
28238         PR target/38988
28239         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
28240         (set_got_offset_rex64): Ditto.
28241
28242 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
28243
28244         PR target/38941
28245         * doc/extend.texi: Improve local variable with asm reg.
28246
28247 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
28248
28249         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
28250         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
28251         was not supplied then set warn_packed_bitfield_compat to the
28252         default value of 1.
28253         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
28254         against 1.
28255
28256 2009-01-27  Richard Guenther  <rguenther@suse.de>
28257
28258         PR tree-optimization/38503
28259         * cfgexpand.c (expand_gimple_basic_block): Ignore
28260         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
28261         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
28262         variables that cannot have TBAA applied.
28263         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
28264         statements.
28265
28266 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
28267
28268         PR middle-end/38969
28269         * calls.c (initialize_argument_information): Do not wrap complex
28270         arguments in SAVE_EXPR.
28271
28272 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
28273
28274         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
28275         (INSTALL_LIBGCC): Revert typo commit.
28276
28277 2009-01-26  Richard Guenther  <rguenther@suse.de>
28278
28279         PR tree-optimization/38745
28280         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
28281         from special handling.
28282
28283 2009-01-26  Richard Guenther  <rguenther@suse.de>
28284
28285         PR tree-optimization/38745
28286         * tree-ssa.c (execute_update_addresses_taken): Do not include
28287         variables that cannot possibly be a register in not_reg_needs.
28288         Do not clear TREE_ADDRESSABLE on vars that may not become
28289         registers.
28290         * tree-ssa.c (update_alias_info_1): Include those in the set
28291         of addressable vars.
28292
28293 2009-01-26  Richard Guenther  <rguenther@suse.de>
28294
28295         PR middle-end/38851
28296         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
28297         * tree-ssa-dse.c: Include langhooks.h
28298         (execute_simple_dse): Remove stores with zero size.
28299
28300 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
28301
28302         PR c/38957
28303         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
28304         as PLUS_EXPR.
28305
28306 2009-01-24  Julian Brown  <julian@codesourcery.com>
28307
28308         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
28309         config/arm/linux-atomic.c.
28310         * config/arm/linux-atomic.c: New.
28311
28312 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
28313
28314         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
28315         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
28316         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
28317
28318 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
28319
28320         PR c/38938
28321         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
28322         properly.
28323
28324 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
28325
28326         PR tree-optimization/38953
28327         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
28328         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
28329         (gloog): Split the exit of the scop when the scop exit is a loop exit.
28330         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
28331         changed the CFG.
28332
28333 2009-01-24  Paul Brook  <paul@codesourcery.com>
28334
28335         * config/arm/neon.md (neon_type): Move to arm.md.
28336         (neon_mov<VSTRUCT>): Add neon_type attribute.
28337         * config/arm/arm.md (neon_type): Move to here.
28338         (conds): Add "unconditioal" and use as default for NEON insns.
28339
28340 2009-01-24  Ben Elliston  <bje@au.ibm.com>
28341
28342         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
28343         void *' warning from -Wc++-compat.
28344         * Makefile.in (dominance.o-warn): Remove.
28345
28346 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
28347
28348         PR tree-optimization/38932
28349         * fold-const.c (fold_unary_ignore_overflow): New.
28350         * tree.h (fold_unary_ignore_overflow): Declare.
28351         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
28352         * tree-ssa-sccvn.c (visit_reference_op_load,
28353         simplify_unary_expression): Likewise.
28354
28355 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
28356
28357         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
28358         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
28359         regardless of their type.
28360         * c-common.c (handle_packed_attribute): Don't ignore packed on
28361         bitfields.
28362         * c.opt (Wpacked-bitfield-compat): New warning option.
28363         * stor-layout.c (place_field): Warn if offset of a field changed.
28364         * doc/extend.texi (packed): Mention the ABI change.
28365         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
28366         (Warning Options): Add it to the list.
28367
28368 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
28369
28370         * c-opts.c (c_common_post_options): Fix a typo in comments.
28371
28372 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
28373
28374         PR middle-end/38615
28375         * gimplify.c (gimplify_init_constructor): Fix promotion of const
28376         variables to static.
28377         * doc/invoke.texi (-fmerge-all-constants): Update description.
28378
28379 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
28380
28381         PR target/38931
28382         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
28383         (*movdi_1_rex64): Use type "mmx" for alternative 5.
28384
28385 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
28386
28387         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
28388         a word boundary.
28389         (LOCAL_ALIGNMENT): Similarly.
28390
28391 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
28392             Joseph Myers  <joseph@codesourcery.com>
28393
28394         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
28395         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
28396         * config/arm/arm-tune.md: Regenerate.
28397         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
28398         -march=iwmmxt2.
28399
28400 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
28401
28402         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
28403         version number to five.
28404
28405 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
28406
28407         PR c++/38930
28408         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
28409         * c-common.c (set_underlying_type): Likewise.
28410         (is_typedef_decl ): Likewise
28411         * tree.h: Likewise
28412         (set_underlying_type): Likewise.
28413         (is_typedef_type): Likewise.
28414
28415 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
28416
28417         PR middle-end/38587
28418         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
28419         crossing setjmps.
28420
28421 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
28422
28423         PR bootstrap/37660
28424         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
28425         (LIBGCC_SPEC):  Don't define.
28426         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
28427
28428 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
28429
28430         PR rtl-optimization/38879
28431         * alias.c (base_alias_check): Unaligned access via AND address can
28432         alias all surrounding object types except those with sizes equal
28433         or wider than the size of unaligned access.
28434
28435 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
28436
28437         PR c++/26693
28438         * c-decl.c (clone_underlying_type): Move this ...
28439         * c-common.c (set_underlying_type): ... here.
28440         Also, make sure the function properly sets TYPE_STUB_DECL() on
28441         the newly created typedef variant type.
28442         (is_typedef_decl ): New entry point.
28443         * tree.h: Added a new member member_types_needing_access_check to
28444         struct tree_decl_non_common.
28445         (set_underlying_type): New entry point.
28446         (is_typedef_type): Likewise.
28447
28448 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
28449
28450         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
28451         Check whether two instructions have memory references that
28452         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
28453         are helper functions for traversing.
28454         * alias.h (insn_alias_sets_confilict_p): New prototypes.
28455         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
28456         not to draw dependency edge for instructions with non-conflicting
28457         alias sets.
28458
28459 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
28460
28461         PR other/38758
28462         * longlong.h: Update copyright years.  Use soft-fp license notice.
28463         Sync __clz_tab declaration with glibc.
28464
28465 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
28466
28467         PR target/30687
28468         * doc/extend.texi (syscall_linkage): New.
28469         (version_id): Modify.
28470
28471 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
28472             Richard Guenther  <rguenther@suse.de>
28473
28474         PR tree-optimization/38747
28475         PR tree-optimization/38748
28476         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
28477         conversion if the base address is an indirect reference and the
28478         aliasing sets could cause issues.
28479
28480 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
28481
28482         * common.opt (fgraphite, fgraphite-identity): Add comment for
28483         explaining why these options are not documented.
28484
28485 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
28486
28487         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
28488         gimple_call_lhs is NULL.
28489
28490 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
28491
28492         PR target/38868
28493         * emit-rtl.c (adjust_address_1): Make sure memref is never
28494         overwritten.
28495
28496 2009-01-20  Ben Elliston  <bje@au.ibm.com>
28497
28498         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
28499         const qualifier from arg parameter. Remove unnecessary cast to char *.
28500         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
28501         const qualifier from arg 2.
28502
28503 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
28504
28505         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
28506
28507 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
28508
28509         PR c/38869
28510         * rtl.h (reinit_regs): New prototype.
28511         * regclass.c: Include ira.h.
28512         (reinit_regs): New.
28513         * Makefile.in (regclass.o): Add ira.h.
28514         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
28515
28516 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
28517
28518         PR target/38736
28519         * c-common.c (handle_aligned_attribute): Use
28520         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
28521         default alignment value.
28522
28523         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
28524
28525         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
28526         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
28527
28528         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
28529         __BIGGEST_ALIGNMENT__.
28530
28531         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
28532
28533 2009-01-18  Richard Guenther  <rguenther@suse.de>
28534
28535         PR tree-optimization/38819
28536         * tree-flow.h (operation_could_trap_helper_p): Declare.
28537         * tree-eh.c (operation_could_trap_helper_p): Export.
28538         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
28539         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
28540         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
28541         are about to insert a possibly trapping instruction and fail
28542         in this case.
28543
28544 2009-01-18  Andreas Schwab  <schwab@suse.de>
28545
28546         * doc/install.texi (Configuration): Remove obsolete paragraph
28547         about use of --with-gnu-ld with --with-gnu-as.
28548
28549 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
28550
28551         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
28552         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
28553         Follow spelling conventions.
28554
28555 2009-01-18  Ben Elliston  <bje@au.ibm.com>
28556
28557         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
28558         C++ warning about implicit conversion from void * to struct
28559         bitmap_head_def *.
28560         (bitmap_obstack_free): Likewise for bitmap_element *.
28561         * Makefile.in (bitmap.o-warn): Remove.
28562
28563 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
28564
28565         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
28566
28567 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
28568             Tobias Grosser  <tobi.grosser@amd.com>
28569
28570         * graphite.c (graphite_trans_scop_block): Do not block single
28571         nested loops.
28572
28573 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
28574
28575         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
28576         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
28577         test with assertion.
28578
28579 2009-01-16  Richard Guenther  <rguenther@suse.de>
28580
28581         PR tree-optimization/38835
28582         PR middle-end/36227
28583         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
28584         and INT + PTR -> (INT)(PTR p+ INT) folding.
28585         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
28586
28587 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
28588
28589         PR target/38554
28590         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
28591         the subreg from a lowpart subreg if it is also casting the value.
28592
28593 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
28594             Tobias Grosser  <tobi.grosser@amd.com>
28595
28596         * graphite.c (compare_prefix_loops): New.
28597         (build_scop_canonical_schedules): Rewritten.
28598         (graphite_transform_loops): Move build_scop_canonical_schedules
28599         after build_scop_iteration_domain.
28600
28601 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
28602             Tobias Grosser  <tobi.grosser@amd.com>
28603
28604         * graphite.c (add_conditions_to_domain): Add the loops to
28605         the dimension of the iteration domain.  Do copy the domain
28606         only when it exists.
28607         (build_scop_conditions_1): Do not call add_conditions_to_domain.
28608         (add_conditions_to_constraints): New.
28609         (can_generate_code_stmt, can_generate_code): Removed.
28610         (gloog): Do not call can_generate_code.
28611         (graphite_transform_loops): Call add_conditions_to_constraints
28612         after building the iteration domain.
28613
28614 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
28615
28616         PR tree-optimization/38789
28617         * tree-ssa-threadedge.c
28618         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
28619         __builtin_constant_p.
28620
28621 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
28622
28623         * dce.c (delete_unmarked_insns): Reversed the order that insns are
28624         examined before deleting them.
28625
28626 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
28627
28628         * function.c (aggregate_value_p): Correctly extract the function
28629         type from CALL_EXPR_FN lookup.
28630
28631 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
28632
28633         * config/picochip/picochip.c (picochip_override_options): Revert
28634         CFI asm flag disable commited previously.
28635
28636 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
28637             Tobias Grosser  <tobi.grosser@amd.com>
28638             Jan Sjodin  <jan.sjodin@amd.com>
28639
28640         * graphite.c (scan_tree_for_params): On substractions negate
28641         all the coefficients of the term.
28642         (clast_to_gcc_expression_red): New.  Handle reduction expressions
28643         of more than two operands.
28644         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
28645         (get_vdef_before_scop): Handle also the case of default definitions.
28646
28647 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
28648
28649         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
28650         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
28651         Also use them when walking CALL_INSN_FUNCTION_USAGE.
28652
28653 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
28654             Joey Ye  <joey.ye@intel.com>
28655
28656         PR middle-end/37843
28657         * cfgexpand.c (expand_stack_alignment): Don't update stack
28658         boundary nor check incoming stack boundary here.
28659         (gimple_expand_cfg): Update stack boundary and check incoming
28660         stack boundary here.
28661
28662 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
28663
28664         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
28665
28666 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
28667
28668         PR rtl-optimization/38245
28669         * calls.c (expand_call): Add stack arguments to
28670         CALL_INSN_FUNCTION_USAGE even for pure calls (when
28671         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
28672         in regs and partially in memory or BLKmode arguments.
28673         (emit_library_call_value_1): Add stack arguments to
28674         CALL_INSN_FUNCTION_USAGE even for pure calls (when
28675         ACCUMULATE_OUTGOING_ARGS).
28676         * dce.c: Include tm_p.h.
28677         (find_call_stack_args): New function.
28678         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
28679         argument.
28680         (mark_insn): Call find_call_stack_args for CALL_Ps.
28681         (prescan_insns_for_dce): Walk insns backwards in bb rather than
28682         forwards.  Allocate and free arg_stores bitmap if needed, pass it
28683         down to deletable_insn_p, don't mark stores set in arg_stores
28684         bitmap, clear the bitmap at the beginning of each bb.
28685         * Makefile.in (dce.o): Depend on $(TM_P_H).
28686
28687 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
28688
28689         PR target/22599
28690         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
28691         to make sure the insn is a conditional test (bug 22599).  Reformat a
28692         few long lines.
28693
28694 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
28695
28696         PR middle-end/38431
28697         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
28698         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
28699         (gloog): Do not call cleanup_tree_cfg.
28700         (graphite_transform_loops): Call cleanup_tree_cfg after all
28701         scops have been code generated.
28702
28703 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
28704         * doc/gty.texi (Invoking the garbage collector): Added new node
28705         and section documenting ggc_collect.
28706
28707 2009-01-14  Richard Guenther  <rguenther@suse.de>
28708
28709         PR tree-optimization/38826
28710         PR middle-end/38477
28711         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
28712         initialization notes only if we actually emitted a warning.
28713         (intra_create_variable_infos): Add constraints for a result decl
28714         that is passed by hidden reference.
28715         (build_pred_graph): Mark all related variables non-direct on
28716         address-taking.
28717
28718 2009-01-14  Nick Clifton  <nickc@redhat.com>
28719
28720         * ira-conflicts.c: Include addresses.h for the definition of
28721         base_reg_class.
28722         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
28723         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
28724
28725 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
28726
28727         PR target/38811
28728         * Makefile.in (ira-lives.o): Add except.h.
28729
28730         * ira-lives.c: Include except.h.
28731         (process_bb_node_lives): Process can_throw_internal.
28732
28733 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
28734
28735         PR rtl-optimization/38774
28736         * combine.c (simplify_set): When undoing cc_use change, don't do
28737         PUT_CODE on the newly created comparison, but instead put back the
28738         old comparison.
28739
28740 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
28741
28742         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
28743         values.  Remove duplicate arm8 entry.
28744
28745 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
28746
28747         PR tree-optimization/38786
28748         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
28749         the SSA_NAME case of expand_scalar_variables_expr.
28750         Set the type of an expression to the type of its assign statement.
28751         (expand_scalar_variables_expr): Also gather the scalar computation
28752         used to index the memory access.  Do not pass loop_p.
28753         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
28754         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
28755         the gimple_stmt_iterator where it inserts new code.
28756         Do not pass loop_p.
28757         (copy_bb_and_scalar_dependences): Do not pass loop_p.
28758         (translate_clast): Update call to copy_bb_and_scalar_dependences.
28759
28760 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
28761
28762         * graphite.h (debug_value): Removed.
28763         * graphite.c (debug_value): Removed.
28764
28765 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
28766
28767         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
28768         ldrd/strd with two 32-bit instructions.
28769
28770 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
28771
28772         * config/arm/arm.c (struct processors): Pass for speed down into
28773         cost helper functions.
28774         (const_ok_for_op): Handle COMPARE and inequality nodes.
28775         (arm_rtx_costs_1): Rewrite.
28776         (arm_size_rtx_costs): Update prototype.
28777         (arm_rtx_costs): Pass speed down to helper functions.
28778         (arm_slowmul_rtx_costs): Rework cost calculations.
28779         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
28780         (arm_9e_rtx_costs): Likewise.
28781
28782 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
28783
28784         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
28785         relocations of local symbols wider than UNITS_PER_WORD are not valid.
28786         (alpha_legitimize_address): Do not split local symbols wider than
28787         UNITS_PER_WORD into HIGH/LO_SUM parts.
28788
28789 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
28790
28791         PR bootstrap/38580
28792         * gcc.c (process_command): Replace call to execvp with calls
28793         to pex_one and exit.
28794
28795 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
28796
28797         PR target/29141
28798         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
28799         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
28800         variant for devices with 3-byte PC.
28801         (__tablejump_elpm__): New.
28802
28803 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
28804
28805         PR c/32041
28806         * c-parser.c (c_parser_postfix_expression): Allow `->' in
28807         offsetof member-designator, handle it as `[0].'.
28808
28809 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28810
28811         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
28812         function when not using named sections on targets with named sections
28813         if branch distance is less than 262132.
28814
28815 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
28816
28817         * combine.c (combine_instructions):  Recompute
28818         optimize_this_for_speed_p  for each BB in the main combine loop.
28819
28820 2009-01-12  Tomas Bily  <tbily@suse.cz>
28821
28822         PR middlend/38385
28823         * tree-loop-distribution.c (prop_phis): New function.
28824         (generate_builtin): Call prop_phis.
28825
28826 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
28827
28828         PR tree-optimization/38807
28829         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
28830         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
28831
28832 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
28833
28834         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
28835         subreg of op0 to the original op0.
28836
28837 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
28838
28839         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
28840
28841 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
28842
28843         PR debug/7055
28844         * mips-tfile.c (parse_def): Fix parsing of def strings
28845         starting with digits.
28846
28847 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
28848
28849         PR target/38695
28850         * config/arm/arm.c (arm_is_long_call_p): Don't call
28851         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
28852
28853 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
28854
28855         * regrename.c (regrename_optimize): Fix dumping.
28856         (find_oldest_value_reg): Preserve REG_POINTER.
28857         (copy_hardreg_forward_1): Likewise.
28858
28859 2009-01-09  Diego Novillo  <dnovillo@google.com>
28860
28861         * gimple.h (struct gimple_statement_base) <uid>: Document
28862         the restrictions on its use.
28863         (gimple_uid): Tidy.
28864         (gimple_set_uid): Tidy.
28865
28866 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
28867
28868         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
28869         zero guard even if align_bytes != 0 and count is smaller than
28870         size_needed.
28871
28872 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
28873
28874         PR rtl-optimization/38495
28875         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
28876         (add_range_and_copies_from_move_list): Print all added ranges.
28877         Add ranges to memory optimized destination.
28878
28879 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
28880
28881         PR target/38686
28882         PR target/38708
28883         * config/i386/i386.c (override_options): Reject
28884         -mstringop-strategy=rep_8byte with -m32.
28885         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
28886         to 1.  Do count comparison against epilogue_size_needed at compile
28887         time even when count_exp was constant forced into register.  For
28888         size_needed don't jump to epilogue, instead just avoid aligning
28889         and invoke the body algorithm.  If need_zero_guard, add zero guard
28890         even if count is non-zero, but smaller than size_needed + number of
28891         bytes that could be stored for alignment.
28892         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
28893         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
28894         but smaller than size_needed + number of bytes that could be stored
28895         for alignment.  Compare size_needed with epilogue_size_needed instead
28896         of desired_align - align, don't adjust size_needed, pass
28897         epilogue_size_needed to the epilogue expanders.
28898
28899         PR c/35742
28900         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
28901
28902 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28903
28904         * pa.c (last_address): Change to unsigned.
28905         (update_total_code_bytes): Change argument to unsigned.  Don't
28906         check if insn addresses are set.
28907         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
28908         addresses are not set.
28909         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
28910
28911 2009-01-09  Nick Clifton  <nickc@redhat.com>
28912
28913         * config/sh/symbian.c: Replace uses of DECL_INLINE with
28914         DECL_DECLARED_INLINE_P.
28915
28916 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
28917
28918         PR middle-end/38347
28919         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
28920         GET_MODE (op0) in operand_subword_force calls.
28921
28922         PR middle-end/38771
28923         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
28924         fold_convert arg0 operands to TREE_TYPE (op0) first.
28925
28926 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
28927
28928         * params.def (ira-max-conflict-table-size): Decrease default value
28929         to 1000.
28930
28931 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
28932
28933         PR tree-optimization/37031
28934         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
28935         on parameter_set.
28936         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
28937         allocate it using gc instead of heap, use VEC_quick_push instead of
28938         VEC_safe_push.
28939         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
28940         instead of heap, use VEC_quick_push instead of VEC_safe_push.
28941         * tree-data-ref.h (struct access_matrix): Change matrix to gc
28942         allocated vector from heap allocated.
28943         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
28944         * tree-loop-linear.c (linear_transform_loops): Allocate nest
28945         vector only after perfect_loop_nest_depth call.
28946
28947 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
28948             Jan Sjodin  <jan.sjodin@amd.com>
28949
28950         PR tree-optimization/38559
28951         * graphite.c (debug_value, copy_constraint,
28952         swap_constraint_variables, scale_constraint_variable, ): New.
28953         (get_lower_bound, get_upper_bound): Removed.
28954         (graphite_trans_bb_strip_mine): Clean up this code that works
28955         only for constant number of iterations.  Fully copy upper and
28956         lower bound constraints, not only the constant part of them.
28957         * graphite.h (debug_value): Declared.
28958
28959 2009-01-08  Ira Rosen  <irar@il.ibm.com>
28960
28961         PR tree-optimization/37194
28962         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
28963         Don't add the cost of cost model guard in prologue to scalar
28964         outside cost in case of known number of iterations.
28965
28966 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
28967             Alan Modra  <amodra@bigpond.net.au>
28968
28969         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
28970         non-word-aligned REG+CONST addressing.
28971
28972 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
28973
28974         PR target/38706
28975         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
28976         free_after_compilation when outputting a thunk.
28977         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
28978         Do not call free_after_compilation here.
28979
28980 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
28981
28982         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
28983         (ix86_valid_target_attribute_inner_p): Ditto.
28984
28985 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
28986
28987         PR tree-optimization/38492
28988         PR tree-optimization/38498
28989         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
28990         * tree-chrec.h (scev_is_linear_expression): Declared.
28991         * graphite.c (graphite_cannot_represent_loop_niter): New.
28992         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
28993         (graphite_loop_normal_form): Use gcc_assert.
28994         (scan_tree_for_params): Use CASE_CONVERT.
28995         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
28996         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
28997         Use gcc_assert.  Discard scops that contain unhandled cases.
28998         (build_scop_conditions): Return a boolean status for unhandled cases.
28999         (strip_mine_profitable_p): Print the loop number, not its depth.
29000         (is_interchange_valid): Pass the depth of the loop nest, don't
29001         recompute it wrongly.
29002         (graphite_trans_bb_block): Same.
29003         (graphite_trans_bb_block): Print tentative of loop blocking.
29004         (graphite_trans_scop_block): Do not print that the loop has been
29005         blocked.
29006         (graphite_transform_loops): Do not handle scops that contain condition
29007         scalar phi nodes.
29008
29009 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
29010
29011         AVX Programming Reference (December, 2008)
29012         * config/i386/avxintrin.h (_mm256_stream_si256): New.
29013         (_mm256_stream_pd): Likewise.
29014         (_mm256_stream_ps): Likewise.
29015
29016         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
29017         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
29018         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
29019         (bdesc_special_args): Add __builtin_ia32_movntdq256,
29020         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
29021         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
29022         (ix86_expand_special_args_builtin): Likewise.
29023
29024         * config/i386/sse.md (AVXMODEDI): New.
29025         (avx_movnt<mode>): Likewise.
29026         (avx_movnt<mode>): Likewise.
29027         (<sse>_movnt<mode>): Remove AVX support.
29028         (sse2_movntv2di): Likewise.
29029
29030 2009-01-07  Richard Guenther  <rguenther@suse.de>
29031
29032         PR middle-end/38751
29033         * fold-const.c (extract_muldiv): Remove obsolete comment.
29034         (fold_plusminus_mult_expr): Undo MINUS_EXPR
29035         to PLUS_EXPR canonicalization for the canonicalization.
29036
29037 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
29038
29039         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
29040         hosted cross-compilers generating less efficient code.
29041
29042 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
29043
29044         * function.h (rtl_data): Add a dbr_scheduled_p field.
29045         * reorg.c (dbr_schedule): Set it.
29046         (gate_handle_delay_slots): Check it.
29047         * config/mips/mips.c (mips_base_delayed_branch): Delete.
29048         (mips_reorg): Check flag_delayed_branch instead of
29049         mips_base_delayed_branch.
29050         (mips_override_options): Don't set mips_base_delayed_branch
29051         or flag_delayed_branch.
29052
29053 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
29054
29055         PR rtl-optimization/38426.
29056         * ira.c (ira): Set current_function_is_leaf earlier.
29057
29058 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
29059
29060         PR rtl-optimization/38722
29061         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
29062         too early, only set a flag and modify after last possible
29063         undo_all point.
29064
29065 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
29066
29067         PR c/34252
29068         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
29069         * real.c (decimal_single_format): Correct values of emin and emax.
29070         (decimal_double_format): Ditto.
29071         (decimal_quad_format): Ditto.
29072         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
29073         computation of DECnn_MIN and DECnn_MAX for corrected values of
29074         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
29075         __DECnn_MIN__, and adjust its computation for the corrected value
29076         of emin.
29077
29078 2009-01-06  Jan Hubicka  <jh@suse.cz>
29079
29080         PR target/38744
29081         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
29082
29083 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
29084
29085         * doc/contrib.texi (Contributors): Slightly adjust the end note.
29086         Add Robert Clark to the list of testers.
29087
29088 2009-01-06  Jan Hubicka  <jh@suse.cz>
29089             Kai Tietz  <kai.tietz@onevision.com>
29090
29091         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
29092         * config/i386/i386.c (ix86_expand_call): Add clobbers.
29093
29094 2009-01-06  Jan Hubicka  <jh@suse.cz>
29095             Kai Tietz  <kai.tietz@onevision.com>
29096
29097         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
29098         for w64 ABI.
29099         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
29100         (ix86_nsaved_regs): Count only general purpose regs.
29101         (ix86_nsaved_sseregs): New.
29102         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
29103         to 16 for w64; compute padding and size of sse reg save area.
29104         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
29105         general purpose regs.
29106         (ix86_emit_save_sse_regs_using_mov): New.
29107         (ix86_expand_prologue): Save SSE regs if needed.
29108         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
29109         (ix86_emit_restore_sse_regs_using_mov): New.
29110         (ix86_expand_epilogue): Save SSE regs if needed.
29111
29112 2009-01-06  Jan Hubicka  <jh@suse.cz>
29113             Kai Tietz  <kai.tietz@onevision.com>
29114
29115         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
29116         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
29117         functions when accumulate outgoing args is off.
29118
29119 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
29120
29121         PR bootstrap/38742
29122         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
29123         before using pseudos_have_intersected_live_ranges_p.
29124
29125         * ira-int.h (ira_assert): Always define.
29126
29127 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
29128
29129         AVX Programming Reference (December, 2008)
29130         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
29131         (_mm256_permute2_pd): Likewise.
29132         (_mm_permute2_ps): Likewise.
29133         (_mm256_permute2_ps): Likewise.
29134         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
29135         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
29136
29137         * config/i386/i386.c (ix86_builtins): Remove
29138         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
29139         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
29140         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
29141         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
29142         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
29143         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
29144         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
29145         __builtin_ia32_vpermil2ps256.
29146         (ix86_init_mmx_sse_builtins): Updated.
29147         (ix86_expand_args_builtin): Likewise.
29148
29149 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29150
29151         * pa.c (output_call): Relocate non-jump insns in the delay slot of
29152         long absolute calls when generating PA 2.0 code.
29153
29154 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
29155
29156         PR rtl-optimization/38583
29157         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
29158
29159         * params.def (ira-max-conflict-table-size): New.
29160
29161         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
29162
29163         * ira.h (ira_conflicts_p): New external definition.
29164
29165         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
29166         table.  Report this.  Return result of building.
29167         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
29168         building conflict table.
29169
29170         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
29171         (ira_color): Use ira_conflicts_p.
29172
29173         * global.c: Include ira.h.
29174         (pseudo_for_reload_consideration_p, build_insn_chain): Use
29175         ira_conflicts_p.
29176
29177         * Makefile.in (global.o): Add ira.h.
29178
29179         * ira-build.c (mark_all_loops_for_removal,
29180         propagate_some_info_from_allocno): New.
29181         (remove_unnecessary_allocnos): Call
29182         propagate_some_info_from_allocno.
29183         (remove_low_level_allocnos): New.
29184         (remove_unnecessary_regions): Add parameter.  Call
29185         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
29186         parameter to remove_unnecessary_regions.
29187         (ira_build): Remove all regions but root if the conflict table was
29188         not built.  Update conflict hard regs for allocnos crossing calls.
29189
29190         * ira.c (ira_conflicts_p): New global.
29191         (ira): Define and use ira_conflicts_p.
29192
29193         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
29194         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
29195         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
29196
29197 2009-01-06  Ben Elliston  <bje@au.ibm.com>
29198
29199         * gengtype-lex.l (YY_NO_INPUT): Define.
29200
29201 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
29202
29203         PR c/34911
29204         * c-common.c (handle_vector_size_attribute): Also reject
29205         BOOLEAN_TYPE types.
29206
29207 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
29208
29209         PR tree-optimization/38492
29210         * graphite.c (rename_map_elt, debug_rename_elt,
29211         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
29212         rename_map_elt_info, eq_rename_map_elts,
29213         get_new_name_from_old_name, bb_in_sese_p): Moved around.
29214         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
29215         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
29216         (sese_build_livein_liveouts): New.
29217         (new_sese, free_sese): New.
29218         (new_scop): Call new_sese.
29219         (free_scop): Call free_sese.
29220         (rename_variables_from_edge, rename_phis_end_scop): Removed.
29221         (register_old_new_names): Renamed register_old_and_new_names.
29222         (register_scop_liveout_renames, add_loop_exit_phis,
29223         insert_loop_close_phis, struct igp,
29224         default_liveout_before_guard, add_guard_exit_phis,
29225         insert_guard_phis, copy_renames): New.
29226         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
29227         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
29228         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
29229         (scop_adjust_phis_for_liveouts): New.
29230         (gloog): Call scop_adjust_phis_for_liveouts.
29231
29232         * graphite.h (struct sese): Documented.  Added fields liveout,
29233         num_ver and livein.
29234         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
29235         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
29236         (struct scop): Added field liveout_renames.
29237         (SCOP_LIVEOUT_RENAMES): New.
29238
29239 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
29240
29241         PR tree-optimization/38510
29242         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
29243         (translate_clast): Call recompute_all_dominators before
29244         graphite_verify.
29245         (gloog): Call recompute_all_dominators before graphite_verify.
29246
29247 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
29248             Jan Sjodin  <jan.sjodin@amd.com>
29249
29250         PR tree-optimization/38500
29251         * graphite.c (create_sese_edges): Call fix_loop_structure after
29252         splitting blocks.
29253
29254 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
29255
29256         * config.gcc: Add m32r*-*-rtems*.
29257         * config/m32r/rtems.h: New file.
29258
29259 2009-01-05  Ben Elliston  <bje@au.ibm.com>
29260
29261         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
29262         (.po.pox): Likewise.
29263         (po/gcc.pot): Likewise.
29264
29265 2009-01-04  David S. Miller  <davem@davemloft.net>
29266
29267         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
29268         (STARTING_FRAME_OFFSET): Always set to zero.
29269
29270 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
29271
29272         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
29273         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
29274         fixed-point types, and vectors of the same.
29275
29276 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
29277
29278         * config/mips/sync.md (*mb_barrier): Rename to...
29279         (*memory_barrier): ...this.
29280
29281 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
29282
29283         * doc/extend.texi (Function Attributes): Move @cindex after @item
29284         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
29285         and put in alphabetical order. Fix 'target' name and put in order.
29286         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
29287         typos.
29288
29289 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
29290
29291         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
29292         (memory_barrier): Expand as unspec instead of unspec_volatile.
29293         Remove mem:BLK from insn operands.  Use Pmode scratch register.
29294         (*memory_barrier): Define as unspec instead of unspec_volatile.
29295         Use (match_dup 0) as input operand.
29296
29297         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
29298         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
29299         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
29300         scratch register.  Remove operand 1.
29301         (*stbar): Define as unspec instead of unspec_volatile.
29302         Use (match_dup 0) as input operand, remove (const_int 8).
29303         (*membar): Define as unspec instead of unspec_volatile.
29304         Use (match_dup 0) as input operand, remove input operand 2.
29305
29306         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
29307         (memory_barrier): Expand as unspec instead of unspec_volatile.
29308         Remove mem:BLK from insn operands.  Use Pmode scratch register.
29309         (*memory_barrier): Define as unspec instead of unspec_volatile.
29310         Use (match_dup 0) as input operand.
29311
29312         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
29313         Remove mem:BLK from insn operands.  Use Pmode scratch register.
29314         Set volatile flag on operand 0.
29315         (*memory_barrier): New insn pattern.
29316
29317         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
29318         insn operands.
29319         (*memory_barrier): Use (match_dup 0) as input operand.
29320
29321         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
29322         Remove mem:BLK from insn operands.  Use Pmode scratch register.
29323         Set volatile flag on operand 0.
29324         (*mb_internal): New insn pattern.
29325
29326         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
29327
29328 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
29329
29330         PR middle-end/38586
29331         * function.c (struct temp_slot): Move to the section of the file
29332         that deals with temp slots.  Remove field 'address'.
29333         (temp_slot_address_table): New hash table of address -> temp slot.
29334         (struct temp_slot_address_entry): New struct, items for the table.
29335         (temp_slot_address_compute_hash, temp_slot_address_hash,
29336         temp_slot_address_eq, insert_temp_slot_address): Support functions
29337         for the new table.
29338         (find_temp_slot_from_address): Rewrite to use the new hash table.
29339         (remove_unused_temp_slot_addresses): Remove addresses of temp
29340         slots that have been made available.
29341         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
29342         worker function for remove_unused_temp_slot_addresses.
29343         (assign_stack_temp_for_type): Don't clear the temp slot address list.
29344         Add the temp slot address to the address -> temp slot map.
29345         (update_temp_slot_address): Update via insert_temp_slot_address.
29346         (free_temp_slots): Call remove_unused_temp_slot_addresses.
29347         (pop_temp_slots): Likewise.
29348         (init_temp_slots): Allocate the address -> temp slot map, or empty
29349         the map if it is already allocated.
29350         (prepare_function_start): Initialize temp slot processing.
29351
29352 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
29353
29354         PR middle-end/38584
29355         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
29356         Calculate the size of all stack vars assuming no packing of stack
29357         vars will happen, replacing a quadratic algorithm with a linear one.
29358
29359 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
29360
29361         PR target/38707
29362         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
29363         can't be used.
29364
29365 2009-01-03  Diego Novillo  <dnovillo@google.com>
29366
29367         * doc/contrib.texi: Update contributions.
29368
29369 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
29370
29371         PR c++/38705
29372         * builtins.c (fold_builtin_memory_op): Give up if either operand
29373         is volatile.  Set srctype or desttype to non-qualified version
29374         of the other type.
29375
29376         PR c/38700
29377         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
29378         and FUNCTION_DECLs.
29379
29380 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
29381
29382         PR rtl-optimization/35805
29383         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
29384         problem if fast dce is able to remove any instructions.
29385         * dce.c (dce_process_block): Fix dump message.
29386
29387 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
29388
29389         PR 33649
29390         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
29391
29392 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
29393
29394         PR middle-end/38690
29395         * tree-flow.h (op_code_prio, op_prio): New prototypes.
29396         * tree-pretty-print.c (op_code_prio): New function.
29397         (op_prio): No longer static.  Use op_code_prio.
29398         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
29399         Use op_prio and op_code_prio to determine if () should be
29400         printed around operand(s) or not.
29401
29402         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
29403         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
29404         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
29405         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
29406         pp_character instead of pp_string for single letter printing.
29407
29408 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
29409
29410         * doc/extend.texi: Fix '#pragma GCC option' typo.
29411
29412 2009-01-02  Richard Guenther  <rguenther@suse.de>
29413
29414         * doc/install.texi (--enable-checking): Mention different
29415         default for stage1.
29416         (--enable-stage1-checking): Document.
29417
29418 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
29419
29420         PR middle-end/30142
29421         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
29422         case to be an error.
29423
29424 2009-01-02  Ben Elliston  <bje@au.ibm.com>
29425
29426         * config/fp-bit.h (pack_d): Constify argument.
29427         * config/fp-bit.c (makenan): Constify return type. Remove casts.
29428         (isnan): Constify argument.
29429         (isinf): Likewise.
29430         (iszero): Likewise.
29431         (pack_d): Likewise.
29432         (_fpadd_parts): Constify return type.
29433         (_fpmul_parts): Likewise.
29434         (_fpdiv_parts): Likewise.
29435
29436 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
29437
29438         PR c/36489
29439         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
29440         warn about overwriting initializer with side-effects or
29441         -Woverride-init if !IMPLICIT.
29442         (output_init_element): Likewise.  Pass IMPLICIT down to
29443         add_pending_init.
29444         (process_init_element): Add IMPLICIT argument.  Pass it down
29445         to output_init_element.
29446         (push_init_element, pop_init_level, set_designator): Adjust
29447         process_init_element callers.
29448         (set_nonincremental_init, set_nonincremental_init_from_string):
29449         Adjust add_pending_init callers.
29450         (output_pending_init_elements): Adjust output_init_element callers.
29451         * c-tree.h (process_init_element): Adjust prototype.
29452         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
29453         process_init_element callers.
29454
29455 \f
29456 Copyright (C) 2009 Free Software Foundation, Inc.
29457
29458 Copying and distribution of this file, with or without modification,
29459 are permitted in any medium without royalty provided the copyright
29460 notice and this notice are preserved.