OSDN Git Service

* tree.h (contains_packed_reference): Mention ARRAY_RANGE_REF in
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-10-11  Eric Botcazou  <ebotcazou@adacore.com>
2
3         * tree.h (contains_packed_reference): Mention ARRAY_RANGE_REF in
4         head comment.
5         (array_ref_element_size): Likewise.
6         (array_ref_low_bound): Likewise.
7         (array_ref_up_bound): Likewise.
8         * expr.c (contains_packed_reference): Likewise.
9         (array_ref_element_size): Likewise.
10         (array_ref_low_bound): Likewise.
11         (array_ref_up_bound): Likewise.
12         * tree-ssa-loop-ivopts.c (idx_contains_abnormal_ssa_name_p): Deal
13         with ARRAY_RANGE_REF.
14         (idx_find_step): Likewise.
15         (idx_record_use): Likewise.
16         (strip_offset_1): Likewise.
17         (idx_remove_ssa_names): Likewise.
18
19 2008-10-11  Uros Bizjak  <ubizjak@gmail.com>
20             Andi Kleen  <ak@linux.intel.com>
21
22         * config/i386/cpuid.h (__cpuid_count): New defines.
23         * config/i386/driver-i386.c (struct cache_desc): New structure.
24         (describe_cache): Use struct cache_desc to pass cache descriptions.
25         (detect_l2_cache): Ditto. Rename from decode_l2_cache.
26         (detect_caches_amd): Use struct cache_desc to describe caches.
27         (decode_caches_intel): Use struct cache_desc to pass cache
28         descriptions.  Update descriptions to match latest (rev -032,
29         December 2007) CPUID documentation.  Do not check valid bit here.
30         Check for Xeon MP value 0x49 problems.
31         (detect_caches_cpuid2): New function, split from detect_caches_intel.
32         Check valid bit before calling decode_caches_intel.  Detect number
33         of times to repeat CPUID instruction.
34         (detect_caches_cpuid4): New function.
35         (detect_caches_intel): Depending on max_level, call
36         detect_caches_cpuid2 or detect_caches_cpuid4.  Call detect_l2_cache
37         only when other methods fail to provide valid L2 cache description.
38
39 2008-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
40
41         PR middle-end/37608
42         * pa.md (call, call_value): Generate an rtx for register r4 and pass
43         it to PIC call patterns.
44         (call_symref_pic): Revise pattern to expose PIC register save.  Remove
45         code generation and attributes from pattern.  Change peephole2 to split
46         for noreturn case.  Revise split pattern for non noreturn case.
47         (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic,
48         call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise.
49         * pa.c (attr_length_call): Simplify extraction of call rtx.  Add some
50         asserts.
51
52 2008-10-11  David Edelsohn  <edelsohn@gnu.org>
53
54         * config/rs6000/rs6000.md (aux_truncdfsf2): Remove TARGET_SINGLE_FLOAT.
55         (addsf3, subsf3, mulsf3 ! TARGET_POWERPC): Remove TARGET_SINGLE_FLOAT
56         and fp_type.
57         (divdf3): Reformat long line.
58
59 2008-10-11  Michael J. Eager  <eager@eagercon.com>
60
61         * config/rs6000/rs6000.c (rs6000_parse_fpu_option): Interpret
62         -mfpu options.
63         (rs6000_handle_option): Process -mfpu options.
64         * config/rs6000/rs6000.h: (TARGET_XILINX_FPU): New.
65         (enum fpu_type_t): New.
66         * config/rs6000/rs6000.md (attr fp_type): New.  Include xfpu.md.
67         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3, trunctfdf2): Set
68         fp_type.
69         (floatsisf2): Remove TARGET_SINGLE_FPU condition.
70         (floatdidf2): Add TARGET_SINGLE_FPU condition.
71         * config/rs6000/rs6000.opt (-mfpu): New.
72         (-mxilinx-fpu): New.
73         * config/rs6000/sysv4.h: (DRIVER_SELF_SPECS): New.
74         * config/rs6000/xfpu.h: New. Define TARGET_XILINX_FPU.
75         * config/rs6000/xfpu.md: New. Define Xilinx pipeline.
76         * gcc/config.gcc: powerpc-xilinx-eabi target: New.
77         * gcc/doc/invoke.texi (RS/6000 and PowerPC Options): Add -mfpu option.
78
79 2008-10-11  Jakub Jelinek  <jakub@redhat.com>
80
81         PR target/35760
82         * config/rs6000/rs6000.c (rs6000_legitimize_address): Only create
83         LO_SUM on Darwin if mode has just one unit.
84
85 2008-10-10  H.J. Lu  <hongjiu.lu@intel.com>
86
87         PR debug/37002
88         * dwarf2out.c (mem_loc_descriptor): Use DRAP for vDRAP which
89         has been optimized out.
90
91 2008-10-10  Richard Sandiford  <rdsandiford@googlemail.com>
92
93         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Test PIC_ADDR_P
94         instead of PIC_DIRECT_ADDR_P.
95         (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
96         (IS_LITERAL_OR_SYMBOLIC_S16_P, IS_LITERAL_OR_SYMBOLIC_U16_P): Delete.
97         (IS_NON_EXPLICIT_CONSTANT_P): Don't test PIC_OFFSET_P.
98         (PIC_OFFSET_P): Rename to...
99         (PCREL_SYMOFF_P): ...this.
100         (PIC_DIRECT_ADDR_P): Delete.
101         (MOVI_SHORI_BASE_OPERAND_P): Check PCREL_SYMOFF_P instead of
102         PIC_OFFSET_P.
103         (OUTPUT_ADDR_CONST_EXTRA): Don't require unspecs to have a
104         single argument.  Handle UNSPEC_EXTRACT_S16, UNSPEC_EXTRACT_U16,
105         UNSPEC_SYMOFF and UNSPEC_PCREL_SYMOFF.
106         * config/sh/sh.c (print_operand): Remove CONST handling.
107         (unspec_caller_rtx_p): Rewrite to use split_const and check
108         the operands of UNSPEC bases.
109         (fixup_mova): Replace (unspec [(minus A B)] UNSPEC_PIC)
110         with (unspec [A B] UNSPEC_SYMOFF).
111         (nonpic_symbol_mentioned_p): Check for UNSPEC_SYMOFF and
112         UNSPEC_PCREL_SYMOFF.
113         (sh_secondary_reload): Test PIC_ADDR_P instead of PIC_DIRECT_ADDR_P.
114         * config/sh/sh.md (UNSPEC_EXTRACT_S16): New unspec.
115         (UNSPEC_EXTRACT_U16): Likewise.
116         (UNSPEC_SYMOFF): Likewise.
117         (UNSPEC_PCREL_SYMOFF): Likewise.
118         (movsi_const): Use UNSPEC_EXTRACT_*16s to extract 16-bit portions
119         of constants.
120         (movsi_const_16bit): Likewise.
121         (movdi_const, movdi_const_32bit, movdi_const_16bit): Likewise.
122         (GOTaddr2picreg): Replace (unspec [(minus A (minus B pc))] UNSPEC_PIC)
123         with (unspec [A B] UNSPEC_PCREL_SYMOFF).
124         (sym_label2reg): Replace (minus (const (unspec [A] UNSPEC_PIC)) B)
125         with (unspec [A B] UNSPEC_SYMOFF).
126         (symPLT_label2reg): Replace (minus A (minus B pc)) with
127          (unspec [A B] PCREL_UNSPEC_SYMOFF).
128         * config/sh/constraints.md (Css): Check for an UNSPEC_EXTRACT_S16.
129         (Csu): Likewise UNSPEC_EXTRACT_U16.
130         (Csy): Test PIC_ADDR_P instead of PIC_DIRECT_ADDR_P.
131         (Cpg): Update after changes to IS_NON_EXPLICIT_CONSTANT_P.
132
133 2008-10-10  Stepan Kasal  <skasal@redhat.com>
134
135         * gcc/doc/invoke.texi (Optimize Options): Fix typo in examples
136         for loop strip mining and loop blocking.
137
138 2008-10-10  Alexandre Oliva  <aoliva@redhat.com>
139
140         * fortran/trans-types.c (gfc_get_nodesc_array_type): Don't
141         vary types depending on debug info.
142
143 2008-10-10  Alexandre Oliva  <aoliva@redhat.com>
144
145         * c-gimplify.c (c_genericize): Don't refer to DECL_ASSEMBLER_NAME
146         before ensuring it's already computed.
147
148 2008-10-09  Jakub Jelinek  <jakub@redhat.com>
149
150         * rtl.h (locator_eq): New decl.
151         * cfglayout.c (locator_scope): New function.
152         (insn_scope): Use it.
153         (locator_eq): New function.
154         (fixup_reorder_chain): Search for last insn in src bb
155         that has locator set or first insn in dest bb.  Use
156         locator_eq instead of == to compare locators.
157         * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
158         * cfgcleanup.c (try_forward_edges): Use locator_eq instead of
159         == to compare locators.
160
161         * tree-ssa-live.c (remove_unused_locals): Mark all edge's goto_block
162         as used.
163         * gimple-low.c (lower_function_body, lower_gimple_return,
164         lower_builtin_setjmp): Set gimple_block on the newly created stmts.
165         * tree-cfg.c (make_cond_expr_edges, make_goto_expr_edges): Only set
166         goto_block on edges if goto_locus is known.
167
168         PR middle-end/37774
169         * tree.h (get_object_alignment): Declare.
170         * emit-rtl.c (set_mem_attributes_minus_bitpos): Call
171         get_object_alignment if needed.
172         * builtins.c (get_pointer_alignment): Move ADDR_EXPR operand handling
173         to ...
174         (get_object_alignment): ... here.  New function.  Try harder to
175         determine alignment from get_inner_reference returned offset.
176
177 2008-10-08  Jakub Jelinek  <jakub@redhat.com>
178
179         * graphite.c (gloog): Don't call find_unreachable_blocks
180         before delte_unreachable_blocks.
181
182         * cfgexpand.c (expand_gimple_cond): Convert also goto_block and
183         goto_locus of true_edge into RTL locator.
184
185 2008-10-08  Uros Bizjak  <ubizjak@gmail.com>
186
187         * config/i386/i386.md (*jcc_btdi_rex64): Clobber FLAGS_REG.
188         (*jcc_btdi_mask_rex64): Ditto.
189         (*jcc_btsi): Ditto.
190         (*jcc_btsi_mask): Ditto.
191         (*jcc_btsi_1): Ditto.
192         (*jcc_btsi_mask_1): Ditto.
193
194 2008-10-08  Paul Brook  <paul@codesourcery.com>
195
196         * config/arm/bpabi.h (ARM_FUNCTION_PROFILER): Define new EABI
197         compatible profiler (__gnu_mcount_nc).
198         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
199
200 2008-10-08  H.J. Lu  <hongjiu.lu@intel.com>
201
202         * config/i386/i386.c (initial_ix86_tune_features): Add
203         X86_TUNE_USE_VECTOR_FP_CONVERTS.
204         * config/i386/i386.h (ix86_tune_indices): Likewise.
205         (TARGET_USE_VECTOR_FP_CONVERTS): New.
206
207         * config/i386/i386.md: Check TARGET_USE_VECTOR_FP_CONVERTS
208         instead of (TARGET_USE_VECTOR_CONVERTS || TARGET_GENERIC)
209         for FP to FP splitters.
210
211 2008-10-08  H.J. Lu  <hongjiu.lu@intel.com>
212
213         * config/i386/i386.md: Add missing gen_sse2_cvtdq2p to convert
214         splitter.
215
216 2008-10-08  Jakub Jelinek  <jakub@redhat.com>
217
218         PR target/36635
219         PR target/37290
220         PR rtl-optimization/37341
221         * cse.c (cse_cc_succs): Add ORIG_BB argument, don't follow edges
222         to ORIG_BB, pass through ORIG_BB recursively.
223         (cse_condition_code_reg): Adjust caller.
224
225 2008-10-08  Kai Tietz  <kai.tietz@onevision.com>
226
227         * sdbout.c (sdbout_one_type): Treat the value type
228         CONST_DECL for enumerals.
229
230 2008-10-07  H.J. Lu  <hongjiu.lu@intel.com>
231
232         * config/i386/i386.md: Remove trailing white spaces.
233
234 2008-10-07  Kenneth Zadeck <zadeck@naturalbridge.com>
235
236         PR rtl-optimization/37448
237         * alloc-pool.c (struct alloc_pool_descriptor) [elt_size]: New field.
238         (stuct alloc_pool_descriptor) [created, allocated, current, peak]:
239         Make unsigned long.
240         (struct output_info) [count]: Renamed total_created and made
241         unsigned long.
242         (struct output_info) [size]: Renamed total_allocated and made
243         unsigned long.
244         (create_alloc_pool, empty_alloc_pool, pool_alloc, pool_free):
245         Properly keep track of desc->size.
246         (print_statistics, dump_alloc_pool_statistics): Enhance the
247         printing of statistics to print the number of elements and to use
248         unsigned longs.
249         
250 2008-10-07  Jakub Jelinek  <jakub@redhat.com>
251
252         PR middle-end/37576
253         * opts.h (CL_SAVE): Move up to flags range.
254         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET,
255         CL_COMMON): Renumber.
256         (CL_MIN_OPTION_CLASS): Set to CL_PARAMS.
257         * opts.c (common_handle_option): Revert last change.
258
259 2008-10-07  H.J. Lu  <hongjiu.lu@intel.com>
260
261         * config/i386/i386-protos.h (ix86_schedule): New.
262
263         * config/i386/i386.c (ix86_schedule): New.
264         (override_options): Add schedule to processor_alias_table.  Set
265         ix86_schedule from the schedule field in processor_alias_table.
266         (ix86_function_specific_save): Save ix86_schedule.
267         (ix86_function_specific_restore): Restore ix86_schedule.
268
269         * config/i386/i386.md (cpu): Map to ix86_schedule instead of
270         ix86_tune.  Add none and remove i386, i486, pentium4, nocona
271         and generic32.
272
273         * config/i386/i386.opt: Add schedule.
274
275         * config/i386/ppro.md: Remove generic32.
276
277 2008-10-07  Simon Martin  <simartin@users.sourceforge.net>
278
279         PR c/35437
280         * expr.c (count_type_elements): Handle ERROR_MARK.
281
282 2008-10-07  Jakub Jelinek  <jakub@redhat.com>
283
284         PR debug/29609
285         PR debug/36690
286         PR debug/37616
287         * basic-block.h (struct edge_def): Add goto_block field.
288         * cfglayout.c (fixup_reorder_chain): Ensure that there is at least
289         one insn with locus corresponding to edge's goto_locus if !optimize.
290         * profile.c (branch_prob): Copy edge's goto_block.
291         * cfgrtl.c (force_nonfallthru_and_redirect): Use goto_locus for
292         emitted jumps.
293         (cfg_layout_merge_blocks): Emit a nop with edge's goto_locus
294         locator in between the merged basic blocks if !optimize and needed.
295         * cfgexpand.c (expand_gimple_cond): Convert goto_block and
296         goto_locus into RTL locator.  For unconditional jump use that
297         locator for the jump insn.
298         (expand_gimple_cond): Convert goto_block and goto_locus into
299         RTL locator for all remaining edges.  For unconditional jump
300         use that locator for the jump insn.
301         * cfgcleanup.c (try_forward_edges): Avoid the optimization if
302         there is more than one edge or insn locator along the forwarding
303         edges and !optimize.  If there is just one, set e->goto_locus.
304         * tree-cfg.c (make_cond_expr_edges, make_goto_expr_edges): Set also
305         edge's goto_block.
306         (move_block_to_fn): Adjust edge's goto_block.
307
308 2008-10-07  H.J. Lu  <hongjiu.lu@intel.com>
309
310         PR middle-end/37731
311         * expmed.c (expand_mult): Properly check DImode constant in
312         CONST_DOUBLE.
313
314 2008-10-07  Jakub Jelinek  <jakub@redhat.com>
315
316         PR debug/37738
317         * dwarf2out.c (common_block_die_table): New variable.
318         (common_block_die_table_hash, common_block_die_table_eq): New
319         functions.
320         (gen_variable_die): Look up a DW_TAG_common_block die for a particular
321         COMMON block in the current scope rather than globally.  Optimize
322         DW_OP_addr SYMBOL_REF DW_OP_plus_uconst off into
323         DW_OP_addr SYMBOL_REF+off.
324
325 2008-10-07  Eric Botcazou  <ebotcazou@adacore.com>
326
327         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <VIEW_CONVERT_EXPR>:
328         Return true for non-addressable GIMPLE operands.
329
330 2008-10-07  H.J. Lu  <hongjiu.lu@intel.com>
331
332         PR target/24765
333         * config/i386/i386.c (initial_ix86_tune_features): Remove
334         X86_TUNE_USE_BIT_TEST.
335         * config/i386/i386.h (ix86_tune_indices): Likewise.
336         (TARGET_USE_BIT_TEST): Removed.
337
338 2008-10-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
339
340         * config.gcc (arm*-*-*): Add aapcs-linux to supported ABIs.
341
342 2008-10-06  Adam Nemet  <anemet@caviumnetworks.com>
343
344         * config/mips/mips.md (mulsi3_mul3, muldi3_mul3): Merge these ...
345         (mul<mode>3_mul3): ... into this new template.
346
347 2008-10-06  Aldy Hernandez  <aldyh@redhat.com>
348
349         * gimplify.c (gimplify_arg): Add location argument.  Use it.
350         (gimplify_call_expr): Pass location to gimplify_arg.
351         (gimplify_modify_expr_to_memcpy): Same.
352         (gimplify_modify_expr_to_memset): Same.
353
354 2008-10-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
355
356         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
357         Update calls to build_unary_op and build_indirect_ref for location
358         changes.
359
360 2008-10-06  Aldy Hernandez  <aldyh@redhat.com>
361
362         build_modify_expr.
363         * c-decl.c (finish_decl): Pass input_location to build_unary_op.
364         * c-typeck.c (array_to_pointer_conversion): Pass location to
365         build_unary_op.
366         (function_to_pointer_conversion): Use error_at and warning_at.
367         (build_indirect_ref): Same.
368         (build_array_ref): Pass location to build_binary_op.
369         (parser_build_unary_op): Do not set location after calling
370         build_unary_op.
371         (build_unary_op): Add location argument.  Use it throughout.  Set
372         EXPR_LOCATION before returning new tree.
373         (build_modify_expr): Same.
374         (build_binary_op): Use location throughout.  Set EXPR_LOCATION before
375         returning node.
376         * c-omp.c (c_finish_omp_atomic): Pass location to build_unary_op,
377         build_indirect_ref, build_modify_expr.
378         (c_finish_omp_for): Same.  Use error_at instead of error.
379         * c-common.c (c_common_truthvalue_conversion): Pass location to
380         build_unary_op.
381         (warn_for_div_by_zero): Add location argument.
382         * c-common.h: Add argument to build_modify_expr, build_indirect_ref,
383         build_unary_op, warn_for_div_by_zero.
384         * c-parser.c (c_parser_typeof_specifier): Use
385         protected_set_expr_location.
386         (c_parser_statement_after_labels): Same.
387         (c_parser_condition): Same.
388         (c_parser_expr_no_commas): Pass correct location to build_modify_expr.
389         (c_parser_conditional_expression): Use protected_set_expr_location.
390         (c_parser_unary_expression): Pass location to build_indirect_ref.
391         (c_parser_postfix_expression_after_primary): Pass location to
392         build_indirect_ref, build_unary_op.
393         (c_parser_omp_for_loop): Set the increment expression's EXPR_LOCATION.
394
395 2008-10-06  Joshua Kinard  <kumba@gentoo.org>
396
397         * doc/invoke.texi: List r1x000 family under the -march MIPS option.
398         * config/mips/mips.h (PROCESSOR_R10000): New processor_type.
399         * config/mips/mips.c (mips_cpu_info_table): Add r10000, r12000,
400         r14000 and r16000.
401         (mips_rtx_cost_data): Add a PROCESSOR_R10000 entry.
402         (mips_issue_rate): Handle PROCESSOR_R10000.
403         * config/mips/mips.md (cpu): Add r10000.
404         Include r10000.md.
405         * config/mips/10000.md: New file.
406
407 2008-10-06  Richard Sandiford  <rdsandiford@googlemail.com>
408
409         * config/rs6000/rs6000-protos.h (rs6000_find_base_term): Declare.
410         * config/rs6000/rs6000.h (FIND_BASE_TERM): New macro.
411         * config/rs6000/rs6000.c (rs6000_find_base_term): New function.
412
413 2008-10-06  Richard Sandiford  <rdsandiford@googlemail.com>
414
415         * config/darwin-protos.h (machopic_function_base_name): Delete.
416         (machopic_function_base_sym): Likewise.
417         (machopic_gen_offset): Declare.
418         * config/darwin.h (MACHOPIC_FUNCTION_BASE_NAME): New macro.
419         (ASM_OUTPUT_LABELREF): Use it instead of a hard-coded string constant.
420         * config/darwin.c (machopic_function_base_name): Delete.
421         (machopic_function_base_sym): Likewise.
422         (gen_pic_offset): Rename to...
423         (machopic_gen_offset): ...this and remove the pic_base argument.
424         Instead use MACHO_DYNAMIC_NO_PIC_P to decide whether a PIC offset
425         is needed.  Create an UNSPEC_MACHOPIC_OFFSET if so, and set
426         crtl->uses_pic_offset_table.
427         (machopic_indirect_data_reference): Use new machopic_gen_offset
428         interface.
429         (machopic_legitimize_pic_address): Likewise.
430         (machopic_operand_p): Check for UNSPEC_MACHOPIC_OFFSET.
431
432         * config/i386/darwin.h (GOT_SYMBOL_NAME): Use
433         MACHOPIC_FUNCTION_BASE_NAME instead of machopic_function_base_name.
434         * config/i386/i386.c (output_set_got): Likewise.
435         (darwin_local_data_pic): Check for an UNSPEC_MACHOPIC_OFFSET
436         instead of a MINUS.
437         (legitimate_pic_operand_p): Handle UNSPEC_MACHOPIC_OFFSET.
438         (legitimate_address_p): Likewise.
439         (output_pic_addr_const): Likewise.
440         (output_addr_const_extra): Likewise.
441         (ix86_delegitimize_address): Expect darwin_local_data_pic to
442         match an UNSPEC rather than a MINUS.
443         * config/i386/i386.md (UNSPEC_MACHOPIC_OFFSET): Define.
444         (builtin_setjmp_receiver): Use machopic_gen_offset.
445         * config/i386/predicates.md (pic_symbolic_operand): Handle
446         UNSPEC_MACHOPIC_OFFSET.
447
448         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
449         Use machopic_gen_offset and machopic_operand_p.
450         (rs6000_output_addr_const_extra): Handle UNSPEC_MACHOPIC_OFFSET.
451         (rs6000_emit_prologue): Use MACHOPIC_FUNCTION_BASE_NAME.
452         * config/rs6000/rs6000.md (UNSPEC_MACHOPIC_OFFSET): Define.
453         (builtin_setjmp_receiver): Use MACHOPIC_FUNCTION_BASE_NAME.
454         Set crtl->uses_pic_offset_table.
455
456 2008-10-06  Richard Sandiford  <rdsandiford@googlemail.com>
457
458         * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
459         Declare.
460         * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): New macro.
461         * config/rs6000/rs6000.md (UNSPEC_TOCREL): New constant.
462         * config/rs6000/rs6000.c (constant_pool_expr_1): Delete.
463         (constant_pool_expr_p): Use split_const and check the base.
464         (toc_relative_expr_p): Likewise, checking for an UNSPEC_TOCREL
465         instead of a MINUS.
466         (legitimate_constant_pool_address_p): Check toc_relative_p
467         instead of constant_pool_expr_p.
468         (print_operand_address): Always use output_addr_const for
469         constant pool addresses.
470         (rs6000_output_addr_const_extra): New function.
471         (create_TOC_reference): Create an UNSPEC_TOCREL instead of a MINUS.
472
473 2008-10-06  Vladimir Makarov  <vmakarov@redhat.com>
474
475         PR middle-end/37535
476
477         * ira-lives.c (mark_reg_live, mark_reg_dead): New functions.
478         (mark_ref_live, mark_ref_dead): Use them.
479         (def_conflicts_with_inputs_p): Remove.
480         (mark_early_clobbers): New function.
481         (process_bb_node_lives): Call preprocess_constraints and
482         mark_early_clobbers.
483
484         * doc/rtx.texi (clobber): Change how RA deals with clobbers.
485
486 2008-10-06  Danny Smith  <dannysmith@users.sourceforge.net>
487
488         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Add thread cleanup
489         lib with -mthread switch.
490
491 2008-10-05  Dodji Seketeli  <dodji@redhat.com>
492
493         PR c++/37410
494         * dwarf2out.c (dwarf2out_imported_module_or_decl): Split this
495         function in two, making it call a new and reusable
496         dwarf2out_imported_module_or_decl() that takes the containing
497         BLOCK of the declaration in argument.
498         (dwarf2out_imported_module_or_decl_real): New function.
499         (decls_for_scope, gen_decl_die, dwarf2out_decl): Take
500         IMPORTED_DECL in account.
501         * tree.def: Added IMPORTED_DECL node type.
502         * tree.h: Added accessors for IMPORTED_DECL nodes.
503         * tree.c (init_ttree): Initialise IMPORTED_DECL node type.
504
505 2008-10-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
506
507         * doc/gimple.texi: Fix some typos, wrap some long lines,
508         fix some broken wraps with continuations.
509         * tree-ssa-reassoc.c: Fix comment typos.
510
511 2000-10-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
512
513         PR target/37603
514         * pa.c (legitimize_pic_address): Force function labels to memory in
515         word mode.
516
517 2008-10-04  Anton Blanchard  <anton@samba.org>
518
519         * config/rs6000/rs6000.c (rs6000_emit_sync): Use gen_lwsync().
520         (rs6000_split_atomic_op): Same.
521         (rs6000_split_compare_and_swap): Same.
522         (rs6000_split_compare_and_swapqhi): Same.
523
524 2008-10-04  Richard Guenther  <rguenther@suse.de>
525
526         * tree-ssa-sccvn.c (vn_reference_op_eq): Use types_compatible_p
527         instead of pointer equality.
528         (vn_nary_op_eq): Likewise.
529
530 2008-10-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
531
532         * config/rs6000/rs6000.md (fseldfsf4): Add TARGET_SINGLE_FLOAT 
533         condition.
534         (fselsfdf4): Make condition on "TARGET_HARD_FLOAT && TARGET_FPRS &&
535         TARGET_DOUBLE_FLOAT && TARGET_SINGLE_FLOAT".
536
537 2008-10-03  Danny Smith  <dannysmith@users.sourceforge.net>
538
539         * config/i386/winnt.c (i386_pe_strip_name_encoding_full):
540         Revert previous change.
541
542 2008-10-03  Tom Tromey  <tromey@redhat.com>
543
544         * stringpool.c (ggc_alloc_string): Terminate string.
545
546 2008-10-03  Jakub Jelinek  <jakub@redhat.com>
547
548         * gimplify.c (gimplify_function_tree): For -finstrument-functions
549         use gimple_bind_{,set_}block instead of gimple_{,set_}block.
550         * gimple.h (gimple_bind_set_block): Allow second argument to be NULL.
551
552         PR debug/37726
553         * gimplify.c (declare_vars): Use gimple_bind_block instead of
554         gimple_block.
555
556 2008-10-03  Pascal Obry  <obry@adacore.com>
557
558         * gcov.c (create_file_names): Properly handle UNIX and DOS
559         directory separators.
560         (make_gcov_file_name): Likewise + convert the ':' DOS drive
561         separator to '~' to ensure clean filenames on Windows.
562
563 2008-10-02  Danny Smith  <dannysmith@users.sourceforge.net>
564
565         * config/i386/winnt.c (i386_pe_strip_name_encoding_full):
566         Add a null terminator to the stripped name.
567
568 2008-10-02  David Edelsohn  <edelsohn@gnu.org>
569
570         * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Revert
571         TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
572         (function_arg_advance): Condition on TARGET_DOUBLE_FLOAT,
573         TARGET_SINGLE_FLOAT.  Revert SCALAR_FLOAT_MODE_P condition.
574         (function_arg): Condition on TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
575         (rs6000_function_value): Revert TARGET_DOUBLE_FLOAT,
576         TARGET_SINGLE_FLOAT.
577
578 2008-10-02  Daniel Jacobowitz  <dan@codesourcery.com>
579
580         * builtins.c (fold_builtin_pow): Check for 0 ** NEGATIVE.
581
582 2008-10-02  Richard Guenther  <rguenther@suse.de>
583
584         PR middle-end/37713
585         * tree-ssa.c (useless_type_conversion_p_1): For COMPLEX_TYPE
586         and VECTOR_TYPE recurse with useless_type_conversion_p which
587         properly handles void pointer conversion.
588
589 2008-10-02  Danny Smith  <dannysmith@users.sourceforge.net>  
590
591         PR target/37528
592         * config/i386/mingw32.h (LIBGCC_SPEC) : Replace with ..
593         (REAL_LIBGCC_SPEC): New.  Always include -lgcc.
594
595 2008-10-01  Andrew Pinski  <andrew_pinski@playstation.sony.com>
596
597         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
598         Handle ALTIVEC_BUILTIN_VEC_SPLATS, ALTIVEC_BUILTIN_VEC_PROMOTE,
599         ALTIVEC_BUILTIN_VEC_EXTRACT, and ALTIVEC_BUILTIN_VEC_INSERT specially,
600         they translate to non builtins.
601         * config/rs6000/rs6000.c (altivec_init_builtins): Add new variable
602         opaque_ftype_opaque.  Define builtins __builtin_vec_splats,
603         __builtin_vec_promote, __builtin_vec_extract, and
604         __builtin_vec_insert.
605         * config/rs6000/rs6000.h (enum rs6000_builtins): Add
606         ALTIVEC_BUILTIN_VEC_EXTRACT, ALTIVEC_BUILTIN_VEC_PROMOTE,
607         ALTIVEC_BUILTIN_VEC_INSERT, and ALTIVEC_BUILTIN_VEC_SPLATS.
608         * config/rs6000/altivec.h (vec_extract): Define
609         (vec_insert): Define.
610         (vec_splats): Define.
611         (vec_promote): Define.
612
613 2008-10-01  Andrew Pinski  <andrew_pinski@playstation.sony.com>
614             Yukishige Shibata  <shibata@rd.scei.sony.co.jp>
615             Trevor Smigiel  <Trevor_Smigiel@playstation.sony.com>
616
617         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add Cell
618         Altivec intrinsics.
619         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Delete
620         prototype.  Add new parameter, blk.
621         Use BLKmode for the MEM if blk is true.
622         (altivec_expand_builtin): Handle ALTIVEC_BUILTIN_STVLX,
623         ALTIVEC_BUILTIN_STVLXL, ALTIVEC_BUILTIN_STVRX, and
624         ALTIVEC_BUILTIN_STVRXL.
625         Update usage of altivec_expand_lv_builtin.
626         Handle ALTIVEC_BUILTIN_LVLX, ALTIVEC_BUILTIN_LVLXL,
627         ALTIVEC_BUILTIN_LVRX, and ALTIVEC_BUILTIN_LVRXL.
628         (altivec_init_builtins): If compiling for the Cell, also define the
629         cell VMX builtins.
630         * config/rs6000/rs6000.h (rs6000_builtins): Define
631         ALTIVEC_BUILTIN_LVLX, ALTIVEC_BUILTIN_LVLXL, ALTIVEC_BUILTIN_LVRX,
632         ALTIVEC_BUILTIN_LVRXL, ALTIVEC_BUILTIN_STVLX, ALTIVEC_BUILTIN_STVLXL,
633         ALTIVEC_BUILTIN_STVRX, ALTIVEC_BUILTIN_STVRXL,
634         ALTIVEC_BUILTIN_VEC_LVLX, ALTIVEC_BUILTIN_VEC_LVLXL,
635         ALTIVEC_BUILTIN_VEC_LVRX, ALTIVEC_BUILTIN_VEC_LVRXL,
636         ALTIVEC_BUILTIN_VEC_STVLX, ALTIVEC_BUILTIN_VEC_STVLXL,
637         ALTIVEC_BUILTIN_VEC_STVRX, and ALTIVEC_BUILTIN_VEC_STVRXL.
638         * config/rs6000/altivec.md (define_constants): Define UNSPEC_LVLX,
639         UNSPEC_LVLXL, UNSPEC_LVRX, UNSPEC_LVRXL, UNSPEC_STVLX, UNSPEC_STVLXL,
640         UNSPEC_STVRX, and UNSPEC_STVRXL.
641         (altivec_lvlx): New pattern.
642         (altivec_lvlxl): New pattern.
643         (altivec_lvrx): New pattern.
644         (altivec_lvrxl): New pattern.
645         (altivec_stvlx): New pattern.
646         (altivec_stvlxl): New pattern.
647         (altivec_stvrx): New pattern.
648         (altivec_stvrxl): New pattern.
649         * config/rs6000/altivec.h (vec_lvlx): Define if PPU is defined.
650         (vec_lvlxl): Likewise.
651         (vec_lvrx): Define if PPU is defined.
652         (vec_lvrxl): Likewise.
653         (vec_stvlx): Define if PPU is defined.
654         (vec_stvlxl): Likewise.
655         (vec_stvrx): Define if PPU is defined.
656         (vec_stvrxl): Likewise.
657
658 2008-10-01  Geert Bosch  <bosch@adacore.com>
659
660         * tree.c (contains_placeholder_p): Return 0 for a SAVE_EXPR.
661
662 2008-10-01  Richard Guenther  <rguenther@suse.de>
663
664         PR tree-optimization/37617
665         * tree-ssa-pre.c (create_expression_by_pieces): During FRE
666         do not add to the NEW_SETS.
667
668 2008-10-01  Richard Guenther  <rguenther@suse.de>
669
670         PR middle-end/37285
671         * tree-vrp.c (execute_vrp): If we optimized away the default
672         case make sure to promote the label that got in place of it
673         to a default case label.
674
675 2008-10-01  Richard Henderson  <rth@redhat.com>
676
677         PR tree-opt/35737
678         * tree-complex.c (set_component_ssa_name): Don't optimize
679         is_gimple_min_invariant values with ssa_names in abnormal phis.
680
681 2008-09-30  Paolo Bonzini  <bonzini@gnu.org>
682
683         PR tree-optimization/37662
684         * tree-ssa-ccp.c (fold_gimple_assign): Invert the operands of a
685         commutative binary operation if they are in the wrong order and
686         fold_build2 produces non-GIMPLE.
687
688 2008-09-30  Jakub Jelinek  <jakub@redhat.com>
689
690         PR tree-optimization/37662
691         PR tree-optimization/37663
692         * tree-vrp.c (simplify_truth_ops_using_ranges): Don't call
693         get_value_range with non-SSA_NAME.  Don't assert operands have been
694         folded, instead just bail out.
695
696 2008-09-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
697
698         * config/rs6000/rs6000.md (fnmadds combiner): Revert typo.
699
700 2008-09-30  Richard Guenther  <rguenther@suse.de>
701
702         PR middle-end/37491
703         * tree-vect-transform.c (vect_create_data_ref_ptr): Properly
704         build restrict-qualified pointers.
705         (vectorizable_store): Move alias check later.
706         (vectorizable_load): Likewise.
707
708 2008-09-30  Paolo Bonzini  <bonzini@gnu.org>
709
710         * c-common.c (empty_if_body_warning): Remove.
711         * c-common.h (empty_if_body_warning): Remove.
712         * c-parser.c (c_parser_if_body, c_parser_else_body): Implement
713         here the -Wempty-body warning for `if' and `else' statements.
714         * c-typeck.c (c_finish_if_stmt): Do not call empty_body_warning.
715
716 2008-09-29  H.J. Lu  <hongjiu.lu@intel.com>
717
718         * config/i386/i386.opt: Add msse2avx.
719
720         * config/i386/linux.h (ASM_SPEC): New.  Support -msse2avx.
721         * config/i386/linux64.h (ASM_SPEC): Likewise.
722
723         * doc/invoke.texi: Document -msse2avx.
724
725 2008-09-29  Eric Botcazou  <ebotcazou@adacore.com>
726
727         * dwarf2out.c (constant_size): Use HOST_WIDE_INT in parameter type.
728
729 2008-09-29  Joseph Myers  <joseph@codesourcery.com>
730
731         * ifcvt.c (noce_emit_store_flag): If using condition from original
732         jump, reverse it if if_info->cond was reversed.
733
734 2008-09-29  Eric Botcazou  <ebotcazou@adacore.com>
735
736         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
737         non-constant memory if it cannot be forced to constant memory.
738         Overhaul surrounding code and factor out common condition.
739
740 2008-09-29  Jeff Law <law@redhat.com>
741
742         * reload1.c (alter_reg): Add missing curly braces.
743
744 2008-09-29  Michael J. Eager  <eager@eagercon.com>
745
746         * config/rs6000/predicates.md (easy_fp_constant): Single FP consts
747         are easy.
748         * config/rs6000/rs6000.c (rs6000_override_options): Move
749         rs6000_init_hard_regno_mode_ok after all options changed.
750         Set rs6000_single_float, rs6000_double_float if TARGET_HARD_FLOAT.
751         (rs6000_handle_option): Process -msingle-float, -mdouble-float,
752         -msimple-fpu flags.  Add warning messages if single FP not configured.
753         (rs6000_file_start): Output gnu_attribute for single-float.
754         (legitimate_lo_sum_address_p): Condition on TARGET_DOUBLE_FLOAT.
755         (rs6000_legitimize_address): Likewise.
756         (rs6000_legitimize_reload_address): Likewise.
757         (rs6000_emit_move): Condition on TARGET_DOUBLE_FLOAT,
758         TARGET_SINGLE_FLOAT.
759         (function_arg_advance): Likewise (partial conversion).
760         (setup_incoming_varargs): Condition on TARGET_DOUBLE_FLOAT.
761         (rs6000_gimplify_va_arg): Condition on TARGET_DOUBLE_FLOAT,
762         TARGET_SINGLE_FLOAT.
763         (rs6000_split_multireg_move): Condition on TARGET_DOUBLE_FLOAT.
764         (rs6000_emit_prologue): Likewise.
765         (rs6000_function_value): Condition on TARGET_DOUBLE_FLOAT,
766         TARGET_SINGLE_FLOAT.
767         (rs6000_libcall_value): Likewise.
768         * config/rs6000/rs6000.h (TARGET_SINGLE_FLOAT): New default to 1.
769         (TARGET_DOUBLE_FLOAT): New default to 1
770         (TARGET_SIMPLE_FPU): New default to 0
771         (TARGET_SINGLE_FPU): New default to 0
772         (TARGET_SINGLE_FLOAT_MODE): New.
773         (TARGET_DOUBLE_FLOAT_MODE): New.
774         * config/rs6000/singlefp.h: New; redefine TARGET_SINGLE_FLOAT,
775         TARGET_DOUBLE_FLOAT, TARGET_SIMPLE_FPU, TARGET_SINGLE_FPU,
776         UNITS_PER_FP_WORD
777         * config/rs6000/rs6000.md (define_mode_iterator): Condition on
778         TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
779         (extendsfdf2, extendsfdf2_fpr, truncdfsf2, truncdfsf2_fpr,
780         copysigndf3,fseldfsf4, negdf2, negdf2_fpr, absdf2, absdf2_fpr,
781         nabsdf2_fpr, adddf3, adddf3_fpr, subdf3, subdf3_fpr, muldf3,
782         muldf3_fpr, divdf3, divdf3_fpr, sqrtdf2, smaxdf3, smindf3,
783         movdfcc, *fseldfdf4, floatsidf2, *floatsidf2_internal,
784         floatunssidf2, *floatunssidf2_internal, fix_truncdfsi2,
785         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
786         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2,
787         rounddf2, floatdidf2, floatsidf_ppc64_mfpgpr, floatsidf_ppc64,
788         floatunssidf_ppc64, fix_truncdfdi2, movdf_hardfloat32,
789         movdf_hardfloat64_mfpgpr, movdf_hardfloat64, extenddftf2_fprs,
790         extenddftf2_internal, trunctfdf2_internal2, fix_trunc_helper,
791         abstf2_internal, movdf_update1, movdf_update2, cmpdf_internal1,
792         cmptf_internal1, *cmptf_internal2): Condition on
793         TARGET_DOUBLE_FLOAT.
794         (aux_truncdfsf2, negsf2, *negsf2, abssf2, *abssf2, addsf3, subsf3,
795         mulsf3, divsf3, sqrtsf2, copysignsf3, smaxsf3, sminsf3, movsfcc,
796         *fselsfsf4, fixuns_truncsfsi2, fix_truncsfsi2, floatunssisf2,
797         btruncsf2, ceilsf2, floorsf2, roundsf2, floatdisf2_internal1,
798         floatdisf2_internal2, *movsf_hardfloat, trunctfsf2_fprs,
799         *movsf_update1, *movsf_update2, *cmpsf_internal1): Condition on
800         TARGET_SINGLE_FLOAT.
801         (divsf3, sqrtsf2, divdf3, divdf3_fpr): Condition on TARGET_SIMPLE_FPU.
802         * config/rs6000/rs6000.opt (-msingle-float): New.
803         (-mdouble-float): New.
804         (-msimple-fpu): New.
805         * doc/invoke.texi (RS/6000 and PowerPC Options): Add
806         -msingle-float, -mdouble-float, -msimple-fpu options.
807         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Set
808         _SOFT_DOUBLE for -msingle-float.
809         * config.gcc: New config for target=powerpc-xilinx-eabi.
810
811 2008-09-29  Tobias Grosser  <grosser@fim.uni-passau.de>
812
813         * graphite.c (dot_all_scops_1): Remove unused checks. SCoPs always
814         have exit and entry.
815         (new_scop): Take entry and exit edge to define new SCoP.
816         (sd_region_p): New structure used during SCoP detection.
817         (move_scops): Delete.
818         (move_sd_regions): New.
819         (scopdet_info): Change the definition from edges back to basic_blocks.
820         (scopdet_edge_info):  Work on basic_blocks and rename to
821         scopdet_basic_block_info.
822         (split_difficult_bb): At the moment removed. We should later
823         add it at another place.
824         (build_scops_1): Work on basic_blocks.
825         (bb_in_sd_region): New.
826         (find_single_entry_edge): New.
827         (find_single_exit_edge): New.
828         (create_single_entry_edge): New.
829         (sd_region_without_exit): New.
830         (create_single_exit_edge): New.
831         (unmark_exit_edges): New.
832         (mark_exit_edges): New.
833         (create_sese_edges): New.
834         (build_graphite_scops): New.
835         (build_scops): Make SCoPs SESE.
836         (limit_scops): Use the new functions.
837
838 2008-09-29  Hans-Peter Nilsson  <hp@axis.com>
839
840         * config/cris/cris.h (IRA_COVER_CLASSES): Define.
841
842 2008-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
843
844         PR target/37640
845         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Force
846         address to a register before taking the lower part.
847
848 2008-09-28  Kaz Kojima  <kkojima@gcc.gnu.org>
849
850         * config/sh/sh.h (OVERRIDE_OPTIONS): Unset flag_dwarf2_cfi_asm
851         for SHmedia.
852
853 2008-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
854             Kaushal Kantawala  <kaushal_kantawala@playstation.sony.com>
855
856         PR tree-opt/36891
857         * tree-ssa-loop-im.c (rewrite_reciprocal): Set DECL_GIMPLE_REG_P on
858         the newly created variable.
859         Create a VECTOR_CST of all 1s for vector types.
860
861 2008-09-28  Eric Botcazou  <ebotcazou@adacore.com>
862
863         PR middle-end/36575
864         * fold-const.c (div_and_round_double) <ROUND_DIV_EXPR>: Fix typo.
865
866 2008-09-28  Eric Botcazou  <ebotcazou@adacore.com>
867
868         * expmed.c (store_fixed_bit_field): Always use convert_to_mode in
869         order to convert between modes.
870         (extract_bit_field_1): Test TRULY_NOOP_TRUNCATION on the right mode.
871
872 2008-09-27  Kaz Kojima  <kkojima@gcc.gnu.org>
873
874         * config/sh/sh.c (sh_gimplify_va_arg_expr): Use VIEW_CONVERT_EXPR
875         if needed.
876
877 2008-09-26  Vladimir Makarov  <vmakarov@redhat.com>
878
879         Revert:
880         2008-09-25  Vladimir Makarov  <vmakarov@redhat.com>
881         * ira-lives.c:...
882         * doc/rtl.texi:...
883
884 2008-09-26  Adam Nemet  <anemet@caviumnetworks.com>
885
886         * config/mips/mips.h (ISA_HAS_DMUL3, ISA_HAS_BADDU, ISA_HAS_BBIT,
887         ISA_HAS_CINS, ISA_HAS_EXTS, ISA_HAS_SEQ_SNE, ISA_HAS_POP): Change
888         them to yield false with MIPS16.
889
890 2008-09-26  Jakub Jelinek  <jakub@redhat.com>
891
892         PR middle-end/37275
893         * dwarf2out.c (tls_mem_loc_descriptor): New function.
894         (mem_loc_descriptor): Use it for MEM.  For PLUS fail if second
895         mem_loc_descriptor failed.  Accept UNSPEC.
896         (loc_descriptor): Use tls_mem_loc_descriptor for MEM.  For PARALLEL
897         fail if one of the loc_descriptor calls for pieces failed.
898         (loc_descriptor_from_tree_1): Handle even DECL_EXTERNAL __thread vars,
899         as long as they bind locally.  For COMPONENT_REF, ARRAY_REF etc. fail
900         if loc_descriptor_from_tree_1 on offset failed.
901
902         PR middle-end/37576
903         * opts.c (common_handle_option): Don't call print_specific_help with
904         CL_SAVE as first argument.
905
906 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
907             Steve Ellcey  <sje@cup.hp.com>
908
909         * configure: Regenerate for new libtool.
910         * aclocal.m4: Ditto.
911
912 2008-09-26  Pat Haugen  <pthaugen@us.ibm.com>
913
914         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Use correct
915         alias set on MEM when saving stack pointer.
916         * config/rs6000/rs6000.md (allocate_stack): Likewise
917
918 2008-09-26  Dorit Nuzman  <dorit@il.ibm.com>
919
920         PR tree-optimization/37574
921         * tree-vectorizer.c (vect_is_simple_use): Fix indentation.
922         * tree-vect-transform.c (vect_get_constant_vectors): Use vectype
923         instead of vector_type for constants. Take computation out of loop.
924         (vect_get_vec_def_for_operand): Use only vectype for constant case,
925         and use only vector_type for invariant case.
926         (get_initial_def_for_reduction): Use vectype instead of vector_type.
927
928 2008-09-25  Jakub Jelinek  <jakub@redhat.com>
929
930         PR c/37645
931         * c-common.c (handle_weakref_attribute): Ignore the attribute unless
932         the decl is a VAR_DECL or FUNCTION_DECL.
933
934 2008-09-25  Vladimir Makarov  <vmakarov@redhat.com>
935
936         PR middle-end/37535
937         * ira-lives.c (mark_reg_live, mark_reg_dead): New functions.
938         (mark_ref_live, mark_ref_dead): Use them.
939         (def_conflicts_with_inputs_p): Remove.
940         (mark_early_clobbers): New function.
941         (process_bb_node_lives): Call preprocess_constraints and
942         mark_early_clobbers.
943
944         * doc/rtl.texi (clobber): Change how RA deals with clobbers.
945
946 2008-09-25  Vladimir Makarov  <vmakarov@redhat.com>
947
948         PR middle-end/37448
949         * ira-int.h (IRA_ALLOCNO_TEMP): Rename to ALLOCNO_TEMP.
950         (ira_compress_allocno_live_ranges): New prototype.
951
952         * ira-color.c: Rename IRA_ALLOCNO_TEMP to ALLOCNO_TEMP.
953         (coalesced_allocnos_living_at_program_points): New.
954         (coalesced_allocnos_live_at_points_p,
955         set_coalesced_allocnos_live_points): New functions.
956         (coalesce_spill_slots): Rewrite.
957         
958         * ira-lives.c (remove_some_program_points_and_update_live_ranges,
959         ira_compress_allocno_live_ranges): New functions.
960
961         * ira-build.c (ira_flattening): Call
962         ira_compress_allocno_live_ranges.
963         (ira_build): Ditto.
964
965 2008-09-25  H.J. Lu  <hongjiu.lu@intel.com>
966
967         * config/i386/i386.md: Check cmp/branch fuse for cmp peephole
968         optimization.
969
970 2008-09-25  Richard Sandiford  <rdsandiford@googlemail.com>
971
972         * combine.c (make_compound_operation): Handle the 'E' format.
973         (count_rtxs): Likewise.
974         (update_table_tick): Likewise.
975         (get_last_value_validate): Likewise.
976
977 2008-09-25  Eric Botcazou  <ebotcazou@adacore.com>
978
979         * dbxout.c (dbxout_parms): Fetch the inner REG inside a PARALLEL.
980
981 2008-09-25 Sergei Dyshel <sergeid@il.ibm.com>
982
983         * matrix-reorg.c (transform_allocation_sites): Initializers 
984         added to avoid the warning.
985
986 2008-09-25  Martin Jambor  <mjambor@suse.cz>
987
988         * cgraph.c (free_nodes): New variable.
989         (NEXT_FREE_NODE): New macro.
990         (cgraph_create_node): Reuse nodes from the free list.  Do not
991         update uid if doing so.
992         (cgraph_remove_node): Add the node to the free list.
993
994 2008-09-25  Gerald Pfeifer  <gerald@pfeifer.com>
995
996         * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
997
998 2008-09-24  Richard Henderson  <rth@redhat.com>
999
1000         * dwarf2.h (DW_OP_GNU_encoded_addr): New.
1001         * unwind-dw2.c (execute_stack_op): Handle it.
1002
1003 2008-09-24  David Edelsohn  <edelsohn@gnu.org>
1004
1005         Revert:
1006         2008-09-24  Michael J. Eager  <eager@eagercon.com>
1007
1008 2008-09-24  Aldy Hernandez  <aldyh@redhat.com>
1009
1010         * c-common.c (fname_decl): New location argument.
1011         * c-common.h (fname_decl): Same.
1012         * c-parser.c (c_lex_one_token): Use {warning,error}_at instead of
1013         {warning,error}.
1014         (c_parser_typeof_specifier): Same.
1015         (c_parser_parms_list_declarator): Same.
1016         (c_parser_asm_string_literal): Same.
1017         (c_parser_compound_statement_nostart): Same.
1018         (c_parser_label): Same.
1019         (c_parser_do_statement): Same.
1020         (c_parser_asm_statement): Same.
1021         (c_parser_unary_expression): Same.
1022         (c_parser_sizeof_expression): Same.
1023         (c_parser_postfix_expression): Same.
1024         (c_parser_pragma): Same.
1025         (c_parser_omp_clause_collapse): Same.
1026         (c_parser_omp_clause_num_threads): Same.
1027         (c_parser_omp_clause_schedule): Same.
1028         (c_parser_omp_all_clauses): Same.
1029         (c_parser_omp_sections_scope): Same.
1030         (c_parser_omp_for_loop): Same.  Pass condition's location to
1031         c_objc_common_truthvalue_conversion.
1032         (c_parser_enum_specifier): Remove comment.
1033
1034 2008-09-24  Michael J. Eager  <eager@eagercon.com>
1035
1036         * config/rs6000/predicates.md (easy_fp_constant): Single FP consts
1037         are easy.
1038         * config/rs6000/rs6000.c (rs6000_override_options): Move
1039         rs6000_init_hard_regno_mode_ok after all options changed.
1040         Set rs6000_single_float, rs6000_double_float if TARGET_HARD_FLOAT.
1041         (rs6000_handle_option): Process -msingle-float, -mdouble-float,
1042         -msimple-fpu flags.  Add warning messages if single FP not configured.
1043         (rs6000_file_start): Output gnu_attribute for single-float.
1044         (legitimate_lo_sum_address_p): Condition on TARGET_DOUBLE_FLOAT.
1045         (rs6000_legitimize_address): Likewise.
1046         (rs6000_legitimize_reload_address): Likewise.
1047         (rs6000_emit_move): Condition on TARGET_DOUBLE_FLOAT,
1048         TARGET_SINGLE_FLOAT.
1049         (function_arg_advance): Likewise.
1050         (function_arg): Likewise.
1051         (setup_incoming_varargs): Condition on TARGET_DOUBLE_FLOAT.
1052         (rs6000_gimplify_va_arg): Condition on TARGET_DOUBLE_FLOAT,
1053         TARGET_SINGLE_FLOAT.
1054         (rs6000_split_multireg_move): Condition on TARGET_DOUBLE_FLOAT.
1055         (rs6000_emit_prologue): Likewise.
1056         (rs6000_function_value): Condition on TARGET_DOUBLE_FLOAT,
1057         TARGET_SINGLE_FLOAT.
1058         (rs6000_libcall_value): Likewise.
1059         * config/rs6000/rs6000.h (TARGET_SINGLE_FLOAT): New default to 1.
1060         (TARGET_DOUBLE_FLOAT): New default to 1
1061         (TARGET_SIMPLE_FPU): New default to 0
1062         (TARGET_SINGLE_FPU): New default to 0
1063         (TARGET_SINGLE_FLOAT_MODE): New.
1064         (TARGET_DOUBLE_FLOAT_MODE): New.
1065         * config/rs6000/singlefp.h: New; redefine TARGET_SINGLE_FLOAT,
1066         TARGET_DOUBLE_FLOAT, TARGET_SIMPLE_FPU, TARGET_SINGLE_FPU,
1067         UNITS_PER_FP_WORD
1068         * config/rs6000/rs6000.md (define_mode_iterator): Condition on
1069         TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
1070         (extendsfdf2, extendsfdf2_fpr, truncdfsf2, truncdfsf2_fpr,
1071         copysigndf3,fseldfsf4, negdf2, negdf2_fpr, absdf2, absdf2_fpr,
1072         nabsdf2_fpr, adddf3, adddf3_fpr, subdf3, subdf3_fpr, muldf3,
1073         muldf3_fpr, divdf3, divdf3_fpr, sqrtdf2, smaxdf3, smindf3,
1074         movdfcc, *fseldfdf4, floatsidf2, *floatsidf2_internal,
1075         floatunssidf2, *floatunssidf2_internal, fix_truncdfsi2,
1076         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
1077         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2,
1078         rounddf2, floatdidf2, floatsidf_ppc64_mfpgpr, floatsidf_ppc64,
1079         floatunssidf_ppc64, fix_truncdfdi2, movdf_hardfloat32,
1080         movdf_hardfloat64_mfpgpr, movdf_hardfloat64, extenddftf2_fprs,
1081         extenddftf2_internal, trunctfdf2_internal2, fix_trunc_helper,
1082         abstf2_internal, movdf_update1, movdf_update2, cmpdf_internal1,
1083         cmptf_internal1, *cmptf_internal2): Condition on
1084         TARGET_DOUBLE_FLOAT.
1085         (aux_truncdfsf2, negsf2, *negsf2, abssf2, *abssf2, addsf3, subsf3,
1086         mulsf3, divsf3, sqrtsf2, copysignsf3, smaxsf3, sminsf3, movsfcc,
1087         *fselsfsf4, fixuns_truncsfsi2, fix_truncsfsi2, floatunssisf2,
1088         btruncsf2, ceilsf2, floorsf2, roundsf2, floatdisf2_internal1,
1089         floatdisf2_internal2, *movsf_hardfloat, trunctfsf2_fprs,
1090         *movsf_update1, *movsf_update2, *cmpsf_internal1): Condition on
1091         TARGET_SINGLE_FLOAT.
1092         (divsf3, sqrtsf2, divdf3, divdf3_fpr): Condition on TARGET_SIMPLE_FPU.
1093         * config/rs6000/rs6000.opt (-msingle-float): New.
1094         (-mdouble-float): New.
1095         (-msimple-fpu): New.
1096         * doc/invoke.texi (RS/6000 and PowerPC Options): Add
1097         -msingle-float, -mdouble-float, -msimple-fpu options.
1098         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Set
1099         _SOFT_DOUBLE for -msingle-float.
1100         * config.gcc: New config for target=powerpc-xilinx-eabi.
1101
1102 2008-09-23  Eric Botcazou  <ebotcazou@adacore.com>
1103
1104         * config/sparc/constraints.md: New file.
1105         * config/sparc/sparc.md: Include it.
1106         * config/sparc/sparc-protos.h (memory_ok_for_ldd): Declare.
1107         (sparc_extra_constraint_check): Delete.
1108         * config/sparc/sparc.c (register_ok_for_ldd): Minor tweaks.
1109         (memory_ok_for_ldd): New predicate.
1110         (sparc_extra_constraint_check): Delete.
1111         * config/sparc/sparc.h (REG_CLASS_FROM_LETTER): Likewise.
1112         (CONST_OK_FOR_LETTER_P): Likewise.
1113         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
1114         (EXTRA_CONSTRAINT): Likewise.
1115
1116 2008-08-23  Steve Ellcey  <sje@cup.hp.com>
1117
1118         * regrename.c (do_replace): Copy REG_POINTER value to new reg.
1119
1120 2008-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
1121
1122         * alias.c (find_base_value): Use FIND_BASE_TERM.
1123         * doc/tm.texi (FIND_BASE_TERM): Update documentation.
1124
1125 2008-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
1126
1127         * config/i386/i386.c: Include cselib.h.
1128         (ix86_pic_register_p): New function.
1129         (ix86_delegitimize_address): Use it to check for the PIC register.
1130
1131 2008-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
1132
1133         * doc/tm.texi (FIND_BASE_TERM): Expand documentation.
1134         * config/i386/i386.c (ix86_find_base_term): Don't check for
1135         SYMBOL_REF and LABEL_REF.
1136
1137 2008-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
1138
1139         * config/i386/i386.c (ix86_delegitimize_address): Wrap the
1140         constant PLUS in a CONST.
1141
1142 2008-09-23  Kai Tietz  <kai.tietz@onevision.com>
1143
1144         * config/i386/i386.c (ix86_function_ok_for_sibcall): Correct
1145         check for sibcall support for w64.
1146
1147 2008-09-23  Eric Botcazou  <ebotcazou@adacore.com>
1148
1149         * c-ppoutput.c (cb_used_define): Do nothing for a builtin node.
1150
1151 2008-09-23  Aldy Hernandez  <aldyh@redhat.com>
1152
1153         * c-tree.h: Add argument to c_objc_common_truthvalue_conversion,
1154         parser_build_binary_op.
1155         * c-decl.c (build_enumerator): Pass location to build_binary_op.
1156         * c-typeck.c (build_array_ref): Same.
1157         (parser_build_unary_op): New location argument.
1158         (pointer_diff): Pass location to build_binary_op,
1159         c_objc_common_truthvalue_conversion.
1160         (build_modify_expr): Same.
1161         (build_unary_op): New location argument.
1162         (build_binary_op): New location argument.
1163         (c_objc_common_truthvalue_conversion): Pass location to
1164         c_*common_truthvalue_conversion.
1165         * c-convert.c (convert): Same.
1166         * c-common.c (binary_op_error): New location argument.
1167         (pointer_int_sum): Pass location to build_binary_op.
1168         (c_common_truthvalue_conversion): New location argument.
1169         (warn_for_sign_compare): Same.
1170         * c-common.h: Add location argument to c_common_truthvalue_conversion,
1171         binary_op_error, build_binary_op, warn_for_sign_compare.
1172         * c-parser.c (c_parser_condition): Pass location to
1173         c_*common_truthvalue_conversion.
1174         (c_parser_conditional_expression): Save condition's location and pass
1175         it on down.
1176         (c_parser_binary_expression): Same, but for the binary operator's
1177         location.
1178         (c_parser_omp_for_loop): Pass location to
1179         c_objc_common_truthvalue_conversion.
1180
1181 2008-09-23  Martin Jambor  <mjambor@suse.cz>
1182
1183         * cgraph.c (cgraph_free_edge): Use sizeof(*e).
1184         (cgraph_node_remove_callees): New temporary f.  Hold the next item
1185         in f when looping.
1186         (cgraph_node_remove_callers): Likewise.
1187
1188         * ipa-prop.c (ipa_edge_removal_hook): Use ATTRIBUTE_UNUSED.
1189         (ipa_node_removal_hook): Likewise.
1190
1191         * doc/gimple.texi (gimple_copy_call_skip_args): Changed to
1192         gimple_call_copy_skip_args and moved to the gimple_call section.
1193         * gimple.c (gimple_copy_call_skip_args): Renamed to
1194         gimple_call_copy_skip_args.  Changed al users.
1195
1196 2008-09-22  Vladimir Makarov  <vmakarov@redhat.com>
1197
1198         * ira-color.c (start_allocno_priorities): Rename to
1199         setup_allocno_priorities.  Use costs and
1200         ALLOCNO_EXCESS_PRESSURE_POINTS_NUM instead of frequencies and
1201         range lengths.  Get rid off doubles.
1202         (ira_fast_allocations): Call start_allocno_priorities.
1203         
1204 2008-09-22  David Daney  <ddaney@avtrex.com>
1205
1206         PR target/37593
1207         * config/mips/mips.h (FUNCTION_PROFILER): Call _mcount via a
1208         register if TARGET_LONG_CALLS.
1209
1210 2008-09-22  Richard Guenther  <rguenther@suse.de>
1211
1212         PR tree-optimization/37145
1213         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Re-enable
1214         value-numbering union accesses with their offset and size only.
1215         (visit_reference_op_load): Fix simplification of inserted conversions.
1216         * tree-ssa-pre.c (find_or_generate_expression): Do not
1217         recursively generate expressions if running FRE.
1218
1219 2008-09-22  Adam Nemet  <anemet@caviumnetworks.com>
1220
1221         * config/mips/mips.h (ISA_HAS_BADDU): New macro.
1222         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el, *baddu_di<mode>):
1223         New patterns.
1224
1225 2008-09-22  Richard Guenther  <rguenther@suse.de>
1226
1227         PR tree-optimization/37145
1228         * tree-ssa-pre.c (fully_constant_expression): Simplify builtin calls.
1229         (phi_translate_1): Constant fold references.
1230
1231 2008-09-22  Ira Rosen  <irar@il.ibm.com>
1232
1233         PR tree-optimization/37482
1234         * tree-vectorizer.h (struct _slp_instance): Add new field.
1235         (SLP_INSTANCE_FIRST_LOAD_STMT): New.
1236         (get_earlier_stmt): New function.
1237         * tree-vect-analyze.c (vect_find_first_load_in_slp_instance): New
1238         function.
1239         (vect_analyze_slp_instance): Set SLP_INSTANCE_FIRST_LOAD_STMT.
1240         * tree-vect-transform.c (vect_finish_stmt_generation): Remove the
1241         asserts that GSI points to the scalar statement being vectorized.
1242         Set new statement location according to GSI.
1243         (vect_schedule_slp_instance): Use GSI of
1244         SLP_INSTANCE_FIRST_LOAD_STMT when vectorizing loads.
1245
1246 2008-09-21  Jan Hubicka  <jh@suse.cz>
1247
1248         * ipa-cp.c (ipcp_estimate_growth): Check recursive calls.
1249         (ipcp_insert_stage): Update dead_nodes bitmap.
1250
1251 2008-09-22  Danny Smith  <dannysmith@users.sourceforge.net>
1252
1253         PR target/37528 
1254         * config/i386/t-cygming (SHLIB_LC): Remove.
1255         (SHLIB_LINK): Don't add static objects to SHLIB_IMPLIB
1256         * config/i386/t-cygwin (SHLIB_LC): Specify all required libraries.
1257
1258 2008-09-22  Hans-Peter Nilsson  <hp@axis.com>
1259
1260         PR middle-end/37170
1261         PR middle-end/37280
1262         * final.c (mark_symbol_ref_as_used): New helper function.
1263         (output_operand): Instead of just looking inside MEMs for
1264         SYMBOL_REFs, use new helper function and for_each_rtx.
1265         * varasm.c (assemble_external): Move #ifndef ASM_OUTPUT_EXTERNAL
1266         to after weak-handling.  Don't mark decls with TREE_STATIC as weak.
1267         Make head comment more general.
1268         * config/darwin.c (machopic_output_indirection): Handle weak
1269         references here, like in assemble_external.
1270
1271 2008-09-21  Eric Botcazou  <ebotcazou@adacore.com>
1272
1273         * config/sparc/sparc-protos.h (gen_compare_operator): Declare.
1274         (sparc_emit_float_lib_cmp): Change return type.
1275         * config/sparc/sparc.c (gen_compare_reg): Add comment about TFmode.
1276         (gen_compare_operator): New function.
1277         (sparc_emit_float_lib_cmp): Return the new operator to be used in
1278         the comparison sequence.  Minor tweaks.
1279         * config/sparc/sparc.md (seq, sne, sgt, slt, sge, sle): Assert
1280         that the final operator and the result of sparc_emit_float_lib_cmp
1281         match for software TFmode; use emit_insn in lieu of emit_jump_insn.
1282         (beq, bne, bgt, blt, bge, ble, bunordered, bordered, bungt, bunlt,
1283         buneq, bunge, bunle, bltgt): Assert that the final operator and the
1284         result of sparc_emit_float_lib_cmp match for software TFmode.
1285         (movqicc, movhicc, movsicc, movdicc): Merge into...
1286         (mov<I:mode>cc): ...this.
1287         (movsfcc, movdfcc, movtfcc): Merge into...
1288         (mov<F:mode>cc): ...this.
1289         (movqi_cc_sp64, movhi_cc_sp64, movsi_cc_sp64, movdi_cc_sp64): Merge
1290         into...
1291         (mov<I:mode>_cc_v9): ...this.
1292         (movdi_cc_sp64_trunc): Delete.
1293         (movqi_cc_reg_sp64, movhi_cc_reg_sp64, movsi_cc_reg_sp64,
1294         movdi_cc_reg_sp64): Merge into...
1295         (mov<I:mode>_cc_reg_sp64): ...this.
1296         (movsf_cc_sp64): Rename into...
1297         (movsf_cc_v9): ...this.
1298         (movdf_cc_sp64): Rename into...
1299         (movdf_cc_v9): ...this.
1300         (movtf_cc_hq_sp64): Rename into...
1301         (movtf_cc_hq_v9): ...this.
1302         (movtf_cc_sp64): Rename into...
1303         (movtf_cc_v9): ...this.  Adjust for renaming of movdf_cc_sp64.
1304
1305 2008-09-21  Diego Novillo  <dnovillo@google.com>
1306
1307         * doc/gccint.texi: Include generic.texi and gimple.texi.
1308         Re-order index.
1309         * doc/tree-ssa.texi (GENERIC): Move to generic.texi.
1310         (GIMPLE): Move to gimple.texi.
1311         (Annotations): Remove references to to stmt_ann_t and
1312         ssa_name_ann_t.
1313         (SSA Operands): Rename from 'Statement Operands'.
1314         * doc/generic.texi: New.
1315         * doc/gimple.texi: New.
1316         * Makefile.in (TEXI_GCCINT_FILES): Add generic.texi and gimple.texi.
1317         * Makefile.in (TEXI_GCCINT_FILES):
1318         * gimple.c (gimple_copy_call_skip_args): Rename from
1319         giple_copy_call_skip_args.  Update all users.
1320         * doc/gimple.texi (gimple_copy_call_skip_args): Document.
1321
1322 2008-09-21  Ira Rosen  <irar@il.ibm.com>
1323
1324         PR tree-optimization/37539
1325         * tree-vect-transform.c (vect_transform_strided_load): Save vector
1326         statement in related statement field only for the first load of the
1327         group of loads with the same data reference.
1328
1329 2008-09-20  Adam Nemet  <anemet@caviumnetworks.com>
1330
1331         * config/mips/mips.h (TUNE_OCTEON): New macro.
1332         * config/mips/mips.c (mips_issue_rate): Return 2 for Octeon.
1333         (mips_multipass_dfa_lookahead): Return 2 for Octeon.
1334         * config/mips/octeon.md: New file.
1335         * config/mips/mips.md: Include octeon.md.  Restore
1336         semi-alphabetical order of include files.
1337
1338 2008-09-20  H.J. Lu  <hongjiu.lu@intel.com>
1339
1340         PR target/37571
1341         * config/i386/i386.md (*jcc_fused_1): Removed.
1342         (*jcc_fused_2): Likewise.
1343         (*jcc_fused_3): Likewise.
1344         (*jcc_fused_4): Likewise.
1345
1346 2008-09-20  Richard Sandiford  <rdsandiford@googlemail.com>
1347
1348         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Define.
1349         (IRA_COVER_CLASSES): Refer to TARGET_IRA_COVER_CLASSES.
1350         * target.h (gcc_target): Add ira_cover_classes.
1351         * ira.c: Remove IRA_COVER_CLASSES guards.
1352         (setup_cover_and_important_classes): Use targetm.ira_cover_classes
1353         instead of IRA_COVER_CLASSES.
1354         (setup_cover_and_important_classes): Remove IRA_COVER_CLASSES guard.
1355         (setup_class_translate): Likewise.
1356         (setup_reg_class_intersect_union): Likewise.
1357         (find_reg_class_closure): Replace IRA_COVER_CLASSES guard with a
1358         test of targetm.ira_cover_classes.
1359         * opts.c (decode_options): Use targetm.ira_cover_classes instead
1360         of IRA_COVER_CLASSES.
1361         * target-def.h (TARGET_IRA_COVER_CLASSES): Define.
1362         (TARGET_INITIALIZER): Include it.
1363         * targhooks.h (default_ira_cover_classes): Declare.
1364         * targhooks.c (default_ira_cover_classes): New function.
1365
1366 2008-09-19  Bob Wilson  <bob.wilson@acm.org>
1367         
1368         * config/xtensa/xtensa.md (reload<mode>_literal): Handle MEM operands.
1369         
1370 2008-09-19  Ian Lance Taylor  <iant@google.com>
1371
1372         * varasm.c (narrowing_initializer_constant_valid_p): Return
1373         NULL_TREE if ENDTYPE is not an integer.
1374
1375 2008-09-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1376
1377         PR tree-opt/30930
1378         * tree-ssa.c (execute_update_addresses_taken): Also update
1379         DECL_GIMPLE_REG_P for vector and complex types.
1380
1381 2008-09-19  Andrew MacLeod  <amacleod@redhat.com>
1382             Jan Hubicka  <jh@suse.cz>
1383
1384         PR middle-end/37567
1385         * tree-ssa-ter.c (free_temp_expr_table): Make sure fields are actually
1386         empty before freeing them.
1387         (find_replaceable_exprs): Move asserts to free_temp_expr_table.
1388
1389 2008-09-18  Bob Wilson  <bob.wilson@acm.org>
1390
1391         * configure.ac: Add HAVE_AS_TLS check for Xtensa.
1392         * config/xtensa/predicates.md (tls_symbol_operand): New.
1393         * config/xtensa/xtensa.c (TARGET_HAVE_TLS): Define.
1394         (TARGET_CANNOT_FORCE_MEM): Define.
1395         (xtensa_tls_symbol_p): New.
1396         (xtensa_emit_move_sequence): Check for and legitimize TLS addresses.
1397         (xtensa_legitimate_address_p): Disallow constant pool TLS references.
1398         (xtensa_tls_module_base): New.
1399         (xtensa_call_tls_desc): New.
1400         (xtensa_legitimize_tls_address): New.
1401         (xtensa_legitimize_address): Handle TLS symbols.
1402         (xtensa_tls_referenced_p_1): New.
1403         (xtensa_tls_referenced_p): New.
1404         (xtensa_output_addr_const_extra): Handle UNSPEC_TPOFF and
1405         UNSPEC_DTPOFF.
1406         (XTENSA_BUILTIN_THREAD_POINTER): New.
1407         (XTENSA_BUILTIN_SET_THREAD_POINTER): New.
1408         (xtensa_init_builtins): Set NOTHROW and READONLY for umulsidi3
1409         builtin.  Add declarations for __builtin_thread_pointer and
1410         __builtin_set_thread_pointer.
1411         (xtensa_fold_builtin): Recognize new builtins.
1412         (xtensa_expand_builtin): Expand new builtins.
1413         * config/xtensa/xtensa.h (XCHAL_HAVE_THREADPTR): Define default value.
1414         (TARGET_THREADPTR): Define.
1415         (HAVE_AS_TLS): Define default value.
1416         (LEGITIMATE_CONSTANT_P): Disallow TLS references.
1417         * config/xtensa/xtensa.md (UNSPEC_TPOFF, UNSPEC_DTPOFF): New.
1418         (UNSPEC_TLS_FUNC, UNSPEC_TLS_ARG, UNSPEC_TLS_CALL, UNSPEC_TP): New.
1419         (UNSPECV_SET_TP): New.
1420         (sym_TPOFF, sym_DTPOFF): New.
1421         (load_tp, set_tp, tls_func, tls_arg, tls_call): New.
1422         * config/xtensa/xtensa-protos.h (xtensa_tls_referenced_p): Declare.
1423         * configure: Regenerated.
1424         
1425 2008-09-18  H.J. Lu  <hongjiu.lu@intel.com>
1426
1427         PR target/37394
1428         * config/ia64/ia64.c (ia64_optimization_options): Move
1429         checking and setting flag_schedule_insns_after_reload and
1430         ia64_flag_schedule_insns2 back to ...
1431         (ia64_override_options): Here.
1432
1433 2008-09-18  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1434
1435         PR rtl-opt/37451
1436         * loop-doloop.c (doloop_modify): New argument zero_extend_p and
1437         zero extend count after the correction to it is done.
1438         (doloop_optimize): Update call to doloop_modify, don't zero extend
1439         count before call.
1440
1441 2008-09-18  Martin Jambor  <mjambor@suse.cz>
1442
1443         * ipa-cp.c (ipcp_estimate_growth): Return 0 instead of false.
1444
1445         * ipa-prop.c: Correct comments.
1446         * ipa-prop.h: Likewise.
1447
1448 2008-09-18  Jan Hubicka  <jh@suse.cz>
1449
1450         PR middle-end/37448
1451         * ipa-reference.c (ipa_reference_local_vars_info_d,
1452         ipa_reference_global_vars_info_d,
1453         ipa_reference_local_vars_info_t, ipa_reference_global_vars_info_t,
1454         ipa_reference_vars_info_t): Move here from ipa-reference.h
1455         (node_duplication_hook_holder, node_removal_hook_holder): New.
1456         (get_reference_vars_info_from_cgraph): Rename to ...
1457         (get_reference_vars_info): ... this one, use cgraph uids.
1458         (get_local_reference_vars_info, get_global_reference_vars_info):
1459         Use cgraph instead of decl.
1460         (ipa_reference_get_read_local, ipa_reference_get_written_local):
1461         Remove.
1462         (ipa_reference_get_read_global, ipa_reference_get_not_read_global
1463         ipa_reference_get_written_global,
1464         ipa_reference_get_not_written_global): Use cgraph argument.
1465         (check_call): Simplify avail check.
1466         (scan_stmt_for_static_refs): Update.
1467         (propagate_bits): Update.
1468         (merge_callee_local_info): Remove.
1469         (init_function_info): Use cgraph nodes.
1470         (clean_function_local_data): Break out from ...
1471         (clean_function): ... here.
1472         (copy_local_bitmap, copy_global_bitmap): New functions.
1473         (duplicate_node_data, remove_node_data): New functions.
1474         (generate_summary): Register hooks; use visibility instead of
1475         master clones.
1476         (propafate): Use cgraph nodes; copy bitmap to each node in cycle.
1477         * ipa-reference.h (ipa_reference_local_vars_info_d,
1478         ipa_reference_global_vars_info_d,
1479         ipa_reference_local_vars_info_t, ipa_reference_global_vars_info_t,
1480         ipa_reference_vars_info_t): Move to ipa-reference.c
1481         (ipa_reference_get_read_local, ipa_reference_get_written_local):
1482         Remove.
1483         (ipa_reference_get_read_global, ipa_reference_get_written_global,
1484         ipa_reference_get_not_read_global,
1485         ipa_reference_get_not_written_global): Update prototype.
1486         * ipa-pure-const.c (funct_state_vec): Turn into VECtor.
1487         (init_state): Remove.
1488         (node_duplication_hook_holder, node_removal_hook_holder): New.
1489         (get_function_state, set_function_state): Use VECtor.
1490         (analyze_function): Check body availability.
1491         (add_new_function): Likewise.
1492         (duplicate_node_data, remove_node_data): New.
1493         (generate_summary): Register hooks; do not care about clones.
1494         (propafate): Do not care about clones; recursive functions are
1495         not looping.
1496         * ipa-utils.c (searchc, ipa_utils_reduced_inorder): Do not skip clones.
1497         * ipa-prop.c (edge_removal_hook_holder, node_removal_hook_holder,
1498         * edge_duplication_hook_holder, node_duplication_hook_holder): Make
1499         static.
1500         * tree-flow.h (function_ann_d): Remove reference_vars_info.
1501         * tree-ssa-opreands.c (add_call_clobber_ops, add_call_read_ops):
1502         Update call of ipa-reference accesors.
1503
1504 2008-09-18  Simon Baldwin  <simonb@google.com>
1505
1506         * c-opts.c (c_common_handle_option): Add handling for
1507         -Wbuiltin-macro-redefined command line option.
1508         * c.opt: Added builtin-macro-redefined option.
1509         * doc/invoke.texi (Warning Options): Add -Wbuiltin-macro-redefined
1510         documentation.
1511
1512 2008-09-18  Richard Guenther  <rguenther@suse.de>
1513
1514         PR tree-optimization/37258
1515         * tree-ssa-sccvn.c (vn_phi_compute_hash): Include the precision
1516         and signedness for integral types.
1517         (vn_phi_eq): Require compatible types.
1518
1519 2008-09-18  Jakub Jelinek  <jakub@redhat.com>
1520
1521         PR debug/34037
1522         * gimplify.c (gimplify_type_sizes): When not optimizing, ensure
1523         TYPE_MIN_VALUE and TYPE_MAX_VALUE is not is not DECL_IGNORED_P
1524         VAR_DECL.
1525         * cfgexpand.c (expand_used_vars): Keep DECL_ARTIFICIAL
1526         !DECL_IGNORED_P vars in local_decls list for instantiate_decls,
1527         ggc_free other TREE_LIST nodes from that chain.
1528         * function.c (instantiate_decls): Instantiate also DECL_RTL
1529         of vars in cfun->local_decls, free that list afterwards.
1530
1531 2008-09-18  Eric Botcazou  <ebotcazou@adacore.com>
1532
1533         * config/sparc/sol2.h (WIDEST_HARDWARE_FP_SIZE): Move to...
1534         * config/sparc/sparc.h (WIDEST_HARDWARE_FP_SIZE): ...here.
1535
1536 2008-09-18  Andrew MacLeod  <amacleod@redhat.com>
1537
1538         * tree-outof-ssa.c (eliminate_useless_phis): Fix formatting.
1539         * tree-flow-.h (struct immediate_use_iterator_d): Fix comment.
1540
1541 2008-09-18  Andrew MacLeod  <amacleod@redhat.com>
1542
1543         PR tree-optimization/37102
1544         * tree-outof-ssa.c (remove_gimple_phi_args): Remove all the PHI args
1545         from a node. Check to see if another PHI is dead.
1546         (eliminate_useless_phis): Rename from eliminate_virtual_phis and 
1547         remove real PHIs which have no uses.
1548         (rewrite_out_of_ssa): Call eliminate_useless_phis.
1549
1550 2008-09-18  Richard Guenther  <rguenther@suse.de>
1551
1552         PR middle-end/37284
1553         * tree-cfg.c (remove_useless_stmts_1): Remove
1554         GIMPLE_CHANGE_DYNAMIC_TYPE if not optimizing.
1555
1556 2008-09-18  Nick Clifton  <nickc@redhat.com>
1557
1558         * config/frv/frv.h (IRA_COVER_CLASSES): Define.
1559         (SECONDARY_INPUT_RELOAD_CLASS): Omit unused argument in call
1560         to frv_secondary_reload_class.
1561         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
1562         * config/frv/frv.c (TARGET_SECONDARY_RELOAD): Define.
1563         (frv_secondary_reload_class): Omit unused parameter.
1564         (frv_secondary_reload): New function.  Handle the case when
1565         secondary_reload_class() is called before the reload_(in|out)
1566         _optabs have been initialised.
1567         * config/frv/frv-protos.h (frv_secondary_reload_class): Omit
1568         unused parameter.
1569         * config/frv/frv.md: Define an exclusion set between fr550_m0
1570         and fr550_f0.
1571
1572 2008-09-18  Richard Guenther  <rguenther@suse.de>
1573
1574         PR tree-optimization/37456
1575         * tree-ssa-reassoc.c (build_and_add_sum): If the stmt we
1576         want to insert after ends a BB insert on the single fallthru
1577         outgoing edge.
1578
1579 2008-09-18  Andreas Krebbel  <krebbel1@de.ibm.com>
1580
1581         * doc/invoke.texi: Document -mhard-dfp, -mno-hard-dfp.
1582         Mention -march=z9-109, z9-ec and z10.
1583
1584 2008-09-18  Uros Bizjak  <ubizjak@gmail.com>
1585
1586         PR rtl-optimization/37544
1587         * regrename.c (maybe_mode_change): Exit early when copy_mode
1588         is narrower than orig_mode and narrower than new_mode.
1589
1590 2008-09-18  Alexander Monakov  <amonakov@ispras.ru>
1591
1592         PR middle-end/37499
1593         * sched-int.h (struct _haifa_insn_data): Remove unused field ref_count.
1594
1595         * sched-rgn.c (ref_counts): Remove.
1596         (insn_referenced): New static variable.
1597         (INSN_REF_COUNT): Remove.
1598         (sched_run_compute_dependencies): Use insn_referenced instead of
1599         INSN_REF_COUNT.
1600         (add_branch_dependences): Likewise.  Delete dead assignment.
1601
1602 2008-09-17  Adam Nemet  <anemet@caviumnetworks.com>
1603
1604         * haifa-sched.c (dep_cost_1): Recognize the producer even if the
1605         consumer is an asm.  Add comment why this is important.
1606         (choose_ready): Add comment to the "INSN_CODE (insn) >= 0 ||
1607         recog_memoized (insn) < 0" assert.  Put ENABLE_CHECKING around it.
1608
1609 2008-09-17  Joseph Myers  <joseph@codesourcery.com>
1610
1611         * expr.c (emit_group_store): Do not shift before moving via a
1612         stack slot.
1613
1614 2008-09-17  Eric Botcazou  <ebotcazou@adacore.com>
1615
1616         * varasm.c (initializer_constant_valid_p): Forbid view-conversions
1617         from aggregate to non-aggregate type if the bit pattern is not fully
1618         preserved afterwards.
1619
1620 2008-09-17  Richard Guenther  <rguenther@suse.de>
1621
1622         * tree-cfg.c (verify_types_in_gimple_assign): Rename to ...
1623         (verify_gimple_assign): ... this.  Split into ...
1624         (verify_gimple_assign_unary): ... this,
1625         (verify_gimple_assign_binary): ... that,
1626         (verify_gimple_assign_single): ... and this.
1627         (verify_types_in_gimple_stmt): Call verify_gimple_assign.
1628         Fix GIMPLE_CHANGE_DYNAMIC_TYPE handling.
1629         (verify_types_in_gimple_min_lval): Handle TARGET_MEM_REF.
1630         (verify_types_in_gimple_reference): Be forgiving with
1631         VIEW_CONVERT_EXPRs.
1632         (verify_gimple_phi): Deal with virtual operands.
1633
1634         * tree.def (PREDICT_EXPR): Change to tcc_expression.
1635
1636 2008-09-17  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1637
1638         * tree.c (get_callee_fndecl): Don't call the language hook.
1639         * langhooks.h (lang_hooks): Remove lang_get_callee_fndecl.
1640         * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): Kill.
1641         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_GET_CALLEE_FNDECL.
1642
1643 2008-09-17  Jakub Jelinek  <jakub@redhat.com>
1644
1645         * tree.c (protected_set_expr_location): Don't unnecessarily
1646         check for error_mark_node.
1647
1648 2008-09-17  Art Haas  <ahaas@impactweather.com>
1649
1650         * ipa-reference.c (analyze_function): Declare step only if
1651         ENABLE_CHECKING is defined.
1652
1653 2008-09-17  Jan Hubicka  <jh@suse.cz>
1654
1655         PR c++/18071
1656         * tree.h (DECL_INLINE): remove.
1657         (DECL_DECLARED_INLINE_P): Update docs.
1658         (DECL_NO_INLINE_WARNING_P): new.
1659         (tree_function_decl): Replace inline_flag by no_inline_warning_flag.
1660         * tree-inline.c (inlinable_function_p): Set DECL_NO_INLINE_WARNING_P.
1661
1662 2008-09-17  Jakub Jelinek  <jakub@redhat.com>
1663             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1664
1665         PR bootstrap/37441
1666         * dwarf2out.c (dwarf2out_do_cfi_asm) [MIPS_DEBUGGING_INFO]: Return
1667         false.
1668
1669 2008-09-17  Jan Hubicka  <jh@suse.cz>
1670
1671         * ipa-reference.c (ipa_obstack): Remove.
1672         (local_info_obstack, global_info_obstack): New.
1673         (add_static_var): We now handle variables only.
1674         (mark_address_taken, mark_load, mark_store): New functions based on ...
1675         (check_operand): ... remove.
1676         (get_asm_stmt_operands): Rename to ...
1677         (check_asm_memory_clobber): ... this. Look only for memory clobber.
1678         (scan_stmt_for_static_refs): Rewrite.
1679         (scan_op_for_static_refs): Rename to ...
1680         (scan_initializer_for_static_refs): do not look for VAR_DECL
1681         initializers; stop recursion on types and decls.
1682         (ipa_init): Use proper obstacks.
1683         (analyze_variable): Use scan_initializer_for_static_refs.
1684         (init_function_info): Use local obstack.
1685         (analyze_function): Simplify.
1686         (add_new_function): We don't need visited_nodes obstack.
1687         (generate_summary): Use proper obstacks; cleanup after propagation.
1688
1689 2008-09-17  Richard Guenther  <rguenther@suse.de>
1690
1691         PR middle-end/37385
1692         PR tree-optimization/37491
1693         * alias.c (get_alias_set): Use the canonical type.
1694         * tree-vect-transform.c (vectorizable_store): Use the type of
1695         the lhs for the vector type.  Adjust checking.
1696         (vectorizable_load): Adjust checking.
1697
1698 2008-09-16  Jakub Jelinek  <jakub@redhat.com>
1699             Adam Nemet  <anemet@caviumnetworks.com>
1700
1701         PR rtl-optimization/37483
1702         * ifcvt.c (noce_try_sign_mask): Use if_info->test_bb instead of
1703         if_info->insn_b's bb as argument to optimize_bb_for_speed_p.
1704         Rearrange code to better match the original comment.  Check
1705         t_unconditional first.  Improve comment.
1706
1707 2008-09-16  Jakub Jelinek  <jakub@redhat.com>
1708
1709         PR c/37529
1710         * gimplify.c (gimplify_expr) <case GOTO_EXPR>: If gimplification of
1711         GOTO_DESTINATION failed, don't create GIMPLE_GOTO.
1712
1713         PR c++/37530
1714         * gimplify.c (gimplify_expr) <case TRY_CATCH_EXPR>: Don't create
1715         GIMPLE_TRY if cleanup sequence is empty.
1716
1717 2008-09-16  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1718
1719         PR middle-end/37263
1720         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Prefer the
1721         eliminate IV if the cost are the same.
1722
1723 2008-09-16  Richard Guenther  <rguenther@suse.de>
1724
1725         PR middle-end/37380
1726         * tree-sra.c (sra_build_assignment): Do not call the gimplifier
1727         if not necessary.
1728
1729 2008-09-16  Richard Guenther  <rguenther@suse.de>
1730
1731         PR tree-optimization/37508
1732         * tree-vrp.c (simplify_truth_ops_using_ranges): Also allow -1.
1733
1734 2008-09-15  Kaz Kojima  <kkojima@gcc.gnu.org>
1735
1736         * config/sh/sh.md (movsf_ie): Fix length for TARGET_SH2A.
1737
1738 2008-09-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1739
1740         * config/rs6000/rs6000.md (floatsidf2): Rewrite PowerPC64 case to
1741         use gen_floatdidf2 directly.
1742         (floatunssidf2): Likewise.
1743         (floatsidf_ppc64_mfpgpr): Remove.
1744         (floatsidf_ppc64): Remove.
1745         (floatunssidf_ppc64): Remove.
1746
1747 2008-09-15  Jakub Jelinek  <jakub@redhat.com>
1748
1749         * ira-color.c (finish_cost_update): Free update_cost_queue_elems
1750         rather than update_cost_queue.
1751
1752         * tree-ssa-alias.c (init_alias_info): Call bitmap_obstack_release
1753         in every call starting with the second one, instead of only when
1754         alias_bitmap_obstack.elements != NULL.
1755
1756         * tree-predcom.c (filter_suitable_components): Free all refs in
1757         act->refs vector before calling release_component.
1758         (add_ref_to_chain): Free ref if not adding it to chain->refs.
1759
1760         * tree-data-ref.c (free_subscripts): Free all subscript objects.
1761
1762         * tree-loop-linear.c (linear_transform_loops): Initialize
1763         lambda_obstack only after calling perfect_loop_nest_depth.
1764         Goto free_and_continue instead of just continue for later failures.
1765
1766         PR middle-end/37479
1767         * doc/invoke.texi: Document -fno-dwarf2-cfi-asm.
1768
1769         PR libmudflap/36397
1770         * tree-mudflap.c (mf_xform_derefs_1): Handle VIEW_CONVERT_EXPR.
1771
1772 2008-09-14  Andreas Schwab  <schwab@suse.de>
1773
1774         * tree-call-cdce.c (check_target_format): Accept Motorola formats.
1775
1776 2008-09-14  Jan Hubicka  <jh@suse.cz>
1777
1778         * invoke.texi (-fconserve-stack): Document.
1779         * opts.c (decode_options): Handle conserve_stack.
1780         * common.opt (fconvserve_stack): New.
1781
1782 2008-09-14  David Edelsohn  <edelsohn@gnu.org>
1783
1784         * config.host: Add x-aix to host_xmake_file.
1785         * config/rs6000/t-aix52: Do not override LDFLAGS.
1786         * config/rs6000/x-aix: New file.
1787
1788 2008-09-14  Andy Hutchinson  <hutchinsonandy@aim.com>
1789
1790         PR target/19636
1791         PR target/24894
1792         PR target/31644
1793         PR target/31786
1794         * config/avr/avr.c (legitimate_address_p): Fix problem where subreg
1795         is not recognized as a valid register usage. Allow REG_X to be used
1796         as a base pointer.
1797         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Remove code that
1798         forces a reload when using a base register.
1799
1800 2008-09-14  Danny Smith  <dannysmith@users.sourceforge.net>
1801
1802         * config/i386/cygming-crtend.c (register_frame_ctor): If
1803         DEFAULT_USE_CXA_ATEXIT, register __gcc_deregister_frame
1804         directly with atexit.
1805         (deregister_frame_ctor): Rename to ...
1806         (deregister_frame_dtor): Use to call __gcc_deregister_frame
1807         if !DEFAULT_USE_CXA_ATEXIT.
1808
1809 2008-09-13  Jan Hubicka  <jh@suse.cz>
1810
1811         * cgraph.c: Include value-prof.h
1812         * Makefile.in (cgraph.o): Add value-prof.h dependency.
1813
1814 2008-09-13  Jan Hubicka  <jh@suse.cz>
1815
1816         PR middle-end/32581
1817         * tree-profile.c (add_abnormal_goto_call_edges): New function.
1818         (tree_gen_interval_profiler, tree_gen_pow2_profiler,
1819         tree_gen_one_value_profiler, tree_gen_average_profiler,
1820         tree_gen_ic_func_profiler, tree_gen_ior_profiler): Use it.
1821
1822 2008-09-13  Jan Hubicka  <jh@suse.cz>
1823
1824         * i386.c (ix86_expand_movmem, ix86_expand_movstr): Avoid processing
1825         too many bytes on misalligned blocks.
1826
1827 2008-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1828
1829         * doc/cfg.texi: Fix some typos.
1830         * doc/extend.texi: Likewise.
1831         * doc/install.texi: Likewise.
1832         * doc/invoke.texi: Likewise.
1833         * doc/rtl.texi: Likewise.
1834         * doc/tree-ssa.texi: Likewise.
1835
1836 2008-09-13  Richard Guenther  <rguenther@suse.de>
1837
1838         PR middle-end/30141
1839         * tree-nested.c (finalize_nesting_tree_1): Generate valid
1840         gimple stores for memory rhs.
1841
1842 2008-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1843
1844         PR rtl-optimization/37489
1845         * cse.c (fold_rtx): Don't return const_true_rtx for float
1846         compare if FLOAT_STORE_FLAG_VALUE is undefined.
1847
1848 2008-09-13  Jan Hubicka  <jh@suse.cz>
1849
1850         PR tree-optimization/37392
1851         * tree-inline.c (remap_gimple_stmt): Do not remap return value.
1852
1853 2008-09-13  Martin Jambor  <mjambor@suse.cz>
1854             Jan Hubicka  <jh@suse.cz>
1855
1856         * cgraph.c (free_edges): New variable.
1857         (NEXT_FREE_EDGE): New macro.
1858         (cgraph_free_edge): New function.
1859         (cgraph_remove_edge): Call cgraph_remove_edge_1.
1860         (cgraph_node_remove_callees): Likewise.
1861         (cgraph_node_remove_callers): Likewise.
1862         (cgraph_create_edge): Reuse edges from the free list.  Do not
1863         update uid if doing so.
1864         (cgraph_remove_*_hook): Add free call.
1865
1866 2008-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
1867
1868         * ira-color.c (conflict_allocno_vec): Delete.
1869         (update_cost_queue_elem): New structure.
1870         (update_cost_queue): New variable.
1871         (update_cost_queue_tail): Likewise.
1872         (update_cost_queue_elems): Likewise.
1873         (allocno_update_cost_check): Delete.
1874         (initiate_cost_update): Allocate update_cost_queue_elems
1875         instead of allocno_update_cost_check.
1876         (finish_cost_update): Update the free()s accordingly.
1877         (start_update_cost): New function.
1878         (queue_update_cost): Likewise.
1879         (get_next_update_cost): Likewise.
1880         (update_copy_costs_1): Inline into...
1881         (update_copy_costs): ...here.  Use a queue instead of recursive calls.
1882         Use cover_class instead of ALLOCNO_COVER_CLASS (another_allocno),
1883         once we've established they are equal.  Don't allocate update
1884         costs if there is nothing to add to them.
1885         (update_conflict_hard_regno_costs): Remove ALLOCNO and
1886         DIVISOR arguments.  Use a queue instead of recursive calls;
1887         process all the allocnos in the initial queue, rather than
1888         a single allocno.
1889         (assign_hard_reg): Use queue_update_cost instead of
1890         conflict_allocno_vec.  Queue coalesced allocnos instead
1891         of calling update_conflict_hard_regno_costs for each one.
1892         Just call update_conflict_hard_regno_costs once for the
1893         entire queue.
1894         (ira_color): Remove conflict_allocno_vec handling.
1895
1896 2008-09-12  Sebastian Pop  <sebastian.pop@amd.com>
1897
1898         PR tree-optimization/37484
1899         * graphite.c (scop_record_loop): Use snprintf instead of sprintf.
1900         (save_var_name): Same.
1901         (initialize_cloog_names): Same.
1902         (initialize_cloog_names): Same.
1903
1904 2008-09-12  Sebastian Pop  <sebastian.pop@amd.com>
1905
1906         * tree-scalar-evolution.c (set_instantiated_value): Set
1907         instantiated_below.
1908
1909 2008-09-12  Vladimir Makarov  <vmakarov@redhat.com>
1910
1911         PR rtl-opt/37377
1912
1913         * ira-build.c (common_loop_tree_node_dominator): Remove.
1914         (copy_live_ranges_to_removed_store_destinations): New function.
1915         (regno_top_level_allocno_map): Move to top level from ...
1916         (ira_flattening): ... here.  Use
1917         copy_live_ranges_to_removed_store_destinations.
1918
1919         * ira-emit.c (generate_edge_moves): Fix a comment.
1920
1921 2008-09-12  Anatoly Sokolov  <aesok@post.ru>
1922
1923         PR target/37466
1924         * config/avr/avr.md (movsi_lreg_const peephole2): Add match_dup for
1925         scratch register after 'set' pattern.
1926
1927 2008-09-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1928
1929         * emit-rtl.c (set_reg_attrs_from_value): Fix invalid alignment
1930         information passed to mark_reg_pointer.
1931         * explow.c (force_reg): Likewise.
1932
1933 2008-09-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1934
1935         * config/spu/spu.c (spu_override_options): Default to -mno-safe-hints
1936         when building for the celledp architecture.
1937
1938 2008-09-12  Richard Guenther  <rguenther@suse.de>
1939
1940         * tree-vrp.c (simplify_truth_ops_using_ranges): Fix types.
1941
1942 2008-09-12  Eric Botcazou  <ebotcazou@adacore.com>
1943
1944         PR rtl-optimization/37424
1945         * ira-color.c (coalesced_pseudo_reg_slot_compare): Untie by comparing
1946         the regnos instead of the addresses.
1947
1948 2008-09-11  Janis Johnson  <janis187@us.ibm.com>
1949
1950         * ginclude/float.h (DEC_EVAL_METHOD): Correct the macro name.
1951
1952 2008-09-11  Richard Guenther  <rguenther@suse.de>
1953
1954         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Avoid
1955         entering the weaker equivalence recording.
1956
1957         * tree-ssa-phiprop.c (propagate_with_phi): Fix tuplification.
1958
1959 2008-09-11  Jeff Law <law@redhat.com>
1960
1961         * reload1.c (alter_reg): Undo the BYTE_BIG_ENDIAN correction performed
1962         by assign_stack_local on the IRA path for stack slot sharing
1963         as well as the non-IRA path.
1964
1965 2008-09-11  Uros Bizjak  <ubizjak@gmail.com>
1966
1967         * config/i386/i386.h: Fix whitespace issues.
1968
1969 2008-09-11  Martin Jambor  <mjambor@suse.cz>
1970
1971         * ipa-prop.h (struct ipa_param_flags): Removed.
1972         (struct ipa_param_descriptor): New structure.
1973         (struct ipa_node_params): ipcp_lattices, param_decls and
1974         param_flags moved to ipa_param_description.
1975         (ipa_get_ith_param): Renamed to ipa_get_param, changed to access
1976         descriptors.  Renamed all users.
1977         (ipa_is_ith_param_modified): Renamed to ipa_is_param_modified,
1978         changed to access descriptors.  Renamed all users.
1979         (ipa_is_ith_param_called): Renamed to ipa_is_param_called, changed
1980         to access descriptors. Renamed all users.
1981         * ipa-cp.c (ipcp_init_cloned_node): Call
1982         ipa_initialize_node_params instead of ipa_count_formal_params and
1983         ipa_create_param_decls_array.
1984         (ipcp_analyze_node): Likewise.
1985         (ipcp_get_ith_lattice): Renamed to ipcp_get_lattice, changed to access
1986         descriptors.  Renamed all users.
1987         (ipcp_initialize_node_lattices): Remove allocation.
1988         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
1989         ipa_initialize_node_params instead of ipa_count_formal_params and
1990         ipa_create_param_decls_array.
1991         * ipa-prop.c (ipa_create_param_decls_array): Renamed to
1992         ipa_populate_param_decls, made static, added parameter info,
1993         renamed mt to node, removed allocation, changed to use
1994         descriptors.
1995         (ipa_count_formal_params): Made static, added parameter info,
1996         renamed mt to node.
1997         (ipa_initialize_node_params): New function.
1998         (ipa_check_stmt_modifications): Changed to use descriptors.
1999         (ipa_detect_param_modifications): Removed allocation, changed to
2000         use descriptors.
2001         (ipa_note_param_call): Changed to use descriptors.
2002         (ipa_analyze_params_uses): Removed allocation.
2003         (ipa_free_node_params_substructures): Changed to use descriptors.
2004         (ipa_edge_duplication_hook): Use the unused attribute.
2005         (ipa_node_duplication_hook): Use the unused attribute, changed to
2006         use descriptors, changed to duplicate descriptors.
2007
2008         * ipa-inline.c (cgraph_mark_inline_edge): New parameter new_edges,
2009         changed all callers.  Call ipa_propagate_indirect_call_infos if doing
2010         indirect inlining.  Made static.
2011         (cgraph_decide_inlining): Freeing ipa-prop structures after inlining
2012         functions called only once.
2013         (cgraph_decide_recursive_inlining): Don't call
2014         ipa_propagate_indirect_call_infos, pass new_edges to
2015         cgraph_mark_inline_edge instead.
2016         (cgraph_decide_inlining_of_small_functions): Don't call
2017         ipa_propagate_indirect_call_infos, pass new_edges to
2018         cgraph_mark_inline_edge instead.
2019         (cgraph_decide_inlining): Don't call
2020         ipa_propagate_indirect_call_infos.
2021         * ipa-prop.c: Check that vectors are allocated.
2022
2023         * ipa-inline.c (cgraph_mark_inline_edge): Returns boolean, true
2024         iff a new cgraph edges have been created.
2025         (cgraph_decide_inlining): New variable redo_always_inline.
2026         Flattening and always_inlining loop until callgraph stabilizes.
2027         * ipa-prop.c (update_call_notes_after_inlining): Returns boolean,
2028         true iff new cgraph edges have been created.
2029         (propagate_info_to_inlined_callees): Likewise.
2030         (ipa_propagate_indirect_call_infos): Likewise.
2031
2032 2008-09-11  Richard Guenther  <rguenther@suse.de>
2033
2034         * tree-vectorizer.c (slpeel_add_loop_guard): Fix types.
2035         (set_prologue_iterations): Likewise.
2036         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref):
2037         Likewise.
2038         (vect_update_init_of_dr): Likewise.
2039         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Fix
2040         type verification.
2041         * fold-const.c (fold_unary): Do not generate calculations
2042         in sub-types.
2043
2044 2008-09-11  Paolo Bonzini  <bonzini@gnu.org>
2045
2046         * dojump.c (do_jump) [BIT_AND_EXPR]: Move below.  Fall through to
2047         TRUTH_AND_EXPR for boolean (1-bit precision) expressions.
2048         (do_jump) [BIT_IOR_EXPR]: Compile as TRUTH_OR_EXPR.
2049
2050         * tree-flow.h (simplify_stmt_using_ranges): Accept a GSI, return
2051         a bool.
2052         * tree-ssa-propagate.c (substitute_and_fold): Pass a GSI to
2053         VRP's simplify_stmt_using_ranges.  Do simplify_stmt_using_ranges
2054         before finalizing the changes.
2055         * tree-vrp.c (extract_range_from_binary_expr): Add limited support
2056         for BIT_IOR_EXPR.
2057         (simplify_truth_ops_using_ranges): New.
2058         (simplify_div_or_mod_using_ranges, simplify_abs_using_ranges,
2059         simplify_cond_using_ranges, simplify_switch_using_ranges): Return
2060         whether a simplification was made.
2061         (simplify_stmt_using_ranges): Ditto, and accept a GSI.  For GS_ASSIGN,
2062         use a switch statement and also call simplify_truth_ops_using_ranges.
2063
2064 2008-09-11  Jan Hubicka  <jh@suse.cz>
2065
2066         * ggc-common.c (loc_array): Make static.
2067         * dce.c (rest_of_handle_ud_dce): Free worklist.
2068
2069 2008-09-11  Jan Hubicka  <jh@suse.cz>
2070
2071         * cgraph.c (cgraph_release_function_body): Plug memory leak on
2072         ipa_transforms_to_apply and CFG; ggc_free gimple df and struct
2073         function so we are sure we do not dangle it forever.
2074         * function.c (outer_function_chain, find_function_data): Remove.
2075         (function_context_stack): New.
2076         (push_function_context, pop_function_context): Update.
2077         * function.h (struct function): Remove pointer outer.
2078         (outer_function_chain, find_function_data): Remove.
2079         * stmt.c (force_label_rtx): Remove dead call of find_function_data.
2080
2081 2008-09-11  Jan Hubicka  <jh@suse.cz>
2082
2083         PR middle-end/37448
2084         * cgraph.c (cgraph_create_edge): Use !cgraph_edge for sanity check.
2085
2086 2008-09-11  Jan Hubicka  <jh@suse.cz>
2087
2088         * tree-ssa-pre.c (phi_translate_1): Fix memory leak
2089
2090 2008-09-11  Jan Hubicka  <jh@suse.cz>
2091
2092         * tree-ssa.c (redirect_edge_var_map_clear): Fix formatting.
2093         (free_var_map_entry): New function.
2094         (redirect_edge_var_map_destroy): Use it.
2095
2096 2008-09-11  Jan Hubicka  <jh@suse.cz>
2097
2098         PR middle-end/37448
2099         * tree-inline.c (add_lexical_block): Replace with ...
2100         (prepend_lexical_block): ... prepend at begginig.
2101         (remap_blocks): Use it and reverse later.
2102         (expand_call_inline): Use prepend_lexical_block.
2103
2104 2008-09-11  Jan Hubicka  <jh@suse.cz>
2105
2106         * gimplify.c (pop_gimplify_context): Free bind_expr_stack.
2107
2108 2008-09-11  Jan Hubicka  <jh@suse.cz>
2109
2110         * function.c (free_after_compilation): Call insn_locators_free.
2111         * cfglayout.c (insn_locators_free): New function.
2112         * rtl.h (insn_locators_free): Declare.
2113
2114 2008-09-11  Jan Hubicka  <jh@suse.cz>
2115
2116         * ifcvt.c (check_cond_move_block): Make regs argument pointer to
2117         vector pointer.
2118         (cond_move_process_if_block): Update call.
2119
2120 2008-09-11  Jan Hubicka  <jh@suse.cz>
2121
2122         * toplev.c (dump_memory_report): Call dump_vec_loc_statistics.
2123         * vec.c: Include hashtab.h
2124         (vec_descriptor, ptr_hash_entry): New structures.
2125         (vec_desc_hash, vec_ptr_map): New static variables.
2126         (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr, vec_descriptor,
2127         register_overhead, free_overhead, vec_heap_free): New functions.
2128         (vec_gc_o_reserve_1): ggc_free when resizing to 0.
2129         (vec_heap_o_reserve_1): free when resizing to 0; add statistics.
2130         (cmp_statistic, add_statistics, dump_vec_loc_statistics):
2131         New functions.
2132
2133 2008-09-11  Ira Rosen  <irar@il.ibm.com>
2134
2135         PR tree-optimization/37474
2136         * tree-vect-analyze.c (vect_supported_load_permutation_p): Check the
2137         length of load permutation.
2138
2139 2008-09-11  Andreas Schwab  <schwab@suse.de>
2140
2141         * config/m68k/m68k.h (IRA_COVER_CLASSES): Define.
2142
2143 2008-09-11  Jakub Jelinek  <jakub@redhat.com>
2144
2145         PR target/37382
2146         * expmed.c (extract_low_bits): Avoid creating invalid subregs.
2147         * dse.c (find_shift_sequence): Use extract_low_bits instead of
2148         simplify_gen_subreg.
2149
2150 2008-09-11  Ira Rosen  <irar@il.ibm.com>
2151
2152         * tree-vect-transform.c (vectorizable_store): Use the rhs vector type
2153         for alias check.
2154
2155 2008-09-10  Jakub Jelinek  <jakub@redhat.com>
2156
2157         PR middle-end/37338
2158         * gimplify.c (gimplify_body): Call default_rtl_profile.
2159
2160         PR target/36904
2161         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Return NULL
2162         instead of tok->val.node if not expanding to something else.  Handle
2163         intervening CPP_PADDING tokens.
2164         (altivec_categorize_keyword): Remove unneeded comparisons.
2165
2166 2008-09-10  Richard Guenther  <rguenther@suse.de>
2167
2168         * tree-ssa-pre.c (phi_translate_1): Fix memory leak.
2169
2170 2008-09-10  Richard Guenther  <rguenther@suse.de>
2171
2172         PR middle-end/37432
2173         * tree-inline.c (insert_init_stmt): Make sure to not
2174         insert invalid gimple stores.
2175
2176 2008-09-10  Sebastian Pop  <sebastian.pop@amd.com>
2177
2178         PR tree-optimization/37388
2179         * toplev.c (process_options): Fail and warn when graphite
2180         flags are used, but the compiler has not been configured
2181         with graphite libraries.
2182         * graphite.c (graphite_transform_loops): Remove printfs
2183         to dump_file for the case when graphite is not available.
2184
2185 2008-09-10  H.J. Lu  <hongjiu.lu@intel.com>
2186
2187         PR target/37434:
2188         * config/i386/i386.c (ix86_expand_vector_init_interleave): Force
2189         the even element into register.
2190         (ix86_expand_vector_init_general): Don't use
2191         ix86_expand_vector_init_interleave on V16QImode and V8HImode
2192         if we can't move from GPR to SSE register directly.
2193
2194 2008-09-10  Bernd Schmidt  <bernd.schmidt@analog.com>
2195
2196         * config/bfin/bfin.c (workaround_speculation): Correct algorithm to
2197         not lose track of the number of NOPs needed.  Number of NOPs needed
2198         for sync vs. loads workaround was switched; corrected.  Run second
2199         pass for all workarounds.  No NOPs needed after call insns.  Change
2200         second pass to use find_next_insn_start and find_load helpers in order
2201         to properly detect parallel insns.
2202         * config/bfin/bfin.md (cbranch_with_nops): Increase length.
2203
2204 2008-09-10  Jan Hubicka  <jh@suse.cz>
2205
2206         * value-prof.c (gimple_ic): Fix tuplification bug.
2207         * sched-deps.c (sched_insns_conditions_mutex_p): Silence unitialized
2208         var warning.
2209
2210 2008-09-10  Jakub Jelinek  <jakub@redhat.com>
2211
2212         PR tree-optimization/37353
2213         * tree-call-cdce.c (cond_dead_built_in_calls): Remove.
2214         (shrink_wrap_conditional_dead_built_in_calls): Add calls argument, use
2215         calls instead of cond_dead_built_in_calls.
2216         (tree_call_cdce): Add cond_dead_built_in_calls automatic variable,
2217         initalize the vector only before adding first entry.  Use VEC_safe_push
2218         instead of VEC_quick_push.  Pass cond_dead_built_in_calls to
2219         shrink_wrap_conditional_dead_built_in_calls call.
2220
2221 2008-09-10  Ira Rosen  <irar@il.ibm.com>
2222
2223         PR tree-optimization/37385
2224         * tree-vect-transform.c (vect_create_data_ref_ptr): Add a new
2225         argument, and use it as a vector type if not NULL.
2226         (vectorizable_store): Call vect_create_data_ref_ptr with the type of
2227         vectorized rhs.
2228         (vect_setup_realignment): Call vect_create_data_ref_ptr with
2229         additional argument.
2230         (vectorizable_load): Likewise.
2231
2232 2008-09-10  Jakub Jelinek  <jakub@redhat.com>
2233
2234         * config/i386/i386.md (SWI32): New mode iterator.
2235         (jcc_fused_1, jcc_fused_2, jcc_fused_3, jcc_fused_4): Use it instead
2236         of SWI.
2237
2238 2008-09-09  Vladimir Makarov  <vmakarov@redhat.com>
2239
2240         PR rtl-optimization/37435
2241         * caller-save.c (insert_restore, insert_save): Check the mode by
2242         reg_save_code.
2243
2244 2008-09-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2245
2246         PR other/37265
2247         * dwarf2asm.c (dw2_force_const_mem): Use unstripped symbol name for
2248         splay tree lookup.
2249         (dw2_output_indirect_constant_1): Use unstripped name in symbol
2250         reference.
2251
2252 2008-09-09  Sandra Loosemore  <sandra@codesourcery.com>
2253
2254         * doc/invoke.texi (ARM Options): Correct errors in discussion
2255         of -mfloat-abi, -mhard-float, and -msoft-float.
2256
2257 2008-09-09  Jakub Jelinek  <jakub@redhat.com>
2258             Jan Hubicka  <jh@suse.cz>
2259
2260         PR middle-end/37356
2261         * tree-inline.c (copy_bb): Insert stmt into copy_basic_block before
2262         calling gimple_regimplify_operands on it.  Iterate over all newly
2263         added statements, not just the last one.
2264         (insert_init_stmt): Insert stmt into seq first, then call
2265         gimple_regimplify_operands on it.  Don't create new gimplification
2266         context, nor find referenced vars.
2267
2268 2008-09-09  Jakub Jelinek  <jakub@redhat.com>
2269
2270         PR other/37419
2271         * ipa-prop.h (ipa_propagate_indirect_call_infos): Change last argument
2272         to pointer to vector pointer.
2273         * ipa-prop.c (ipa_propagate_indirect_call_infos,
2274         propagate_info_to_inlined_callees): Likewise.
2275         (update_call_notes_after_inlining): Likewise.  Push new indirect edge
2276         to *new_edges instead of new_edges.  Reread IPA_EDGE_REF after
2277         ipa_check_create_edge_args.
2278         * ipa-inline.c (cgraph_decide_recursive_inlining): Change last
2279         argument to pointer to vector pointer.
2280         (cgraph_decide_inlining_of_small_function): Adjust
2281         cgraph_decide_recursive_inlining and ipa_propagate_indirect_call_infos
2282         calls.
2283
2284         PR target/37438
2285         * config/i386/i386.md (zero_extendqihi2_movzbl): Enable when
2286         optimizing for size, not speed.
2287
2288         PR rtl-optimization/37408
2289         * function.c (assign_parm_find_stack_rtl): Set correct MEM_SIZE
2290         if parm is promoted.
2291
2292 2008-09-09  Sebastian Pop  <sebastian.pop@amd.com>
2293
2294         PR tree-optimization/37375
2295         * tree-scalar-evolution.c (scev_info_str): Add field
2296         instantiated_below.
2297         (new_scev_info_str, eq_scev_info, find_var_scev_info,
2298         set_scalar_evolution, get_scalar_evolution, get_instantiated_value,
2299         set_instantiated_value): Pass instantiated_below.
2300         (analyze_scalar_evolution_1, analyze_scalar_evolution): Update calls
2301         to above functions.
2302         (instantiate_scev_1, instantiate_scev): Pass a basic block above which
2303         the definitions are not instantiated.
2304
2305         * tree-scalar-evolution.h (instantiate_scev): Update declaration.
2306         (block_before_loop): New.
2307         * tree-data-ref.c (dr_analyze_indices): Update uses of
2308         instantiate_scev.
2309         * graphite.c (block_before_scop): New.
2310         (loop_affine_expr, stmt_simple_for_scop_p, harmful_stmt_in_bb): Pass a
2311         basic block, not a loop for determining the parameters.
2312         (scopdet_edge_info, build_scops_1): Do not pass outermost loop in the
2313         scop.
2314         (idx_record_params, find_params_in_bb, find_scop_parameters,
2315         build_loop_iteration_domains, add_conditions_to_domain): Update calls
2316         to instantiate_scev.
2317
2318         * Makefile.in (cfgloopmanip.o): Add missing dependency on TREE_FLOW_H.
2319
2320 2008-09-09  Vladimir Makarov  <vmakarov@redhat.com>
2321
2322         PR rtl-opt/37333
2323
2324         * ira-build.c (ira_create_allocno): Setup frequency to 0.
2325
2326         * ira-color.c (update_conflict_hard_regno_costs): Remove assert.
2327         Check zero freq and increase if necessary.
2328
2329 2008-09-09  Vladimir Makarov  <vmakarov@redhat.com>
2330
2331         * ira-conflicts.c (process_regs_for_copy): Check that the hard
2332         regno is in the right range.  Add comments.
2333
2334 2008-09-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2335
2336         * Makefile.in (mips-tfile.o-warn): Don't error out on mips-tfile.c
2337         warnings.
2338         * mips-tfile.c (copy_object): Cast alloca result to int *.
2339         * mips-tdump.c (print_symbol): Cast xmalloc return values to
2340         proper types.
2341         Rename class to sclass.
2342         (read_tfile): Cast read_seek return values to proper types.
2343         Cast xcalloc return value to proper type.
2344
2345 2008-09-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2346
2347         * config/sol2.h (REGISTER_TARGET_PRAGMAS): Move ...
2348         * config/i386/sol2.h (REGISTER_SUBTARGET_PRAGMAS): ... here.
2349         * config/sparc/sol2.h (REGISTER_TARGET_PRAGMAS): ... and here.
2350
2351 2008-09-09  Jan Hubicka  <jh@suse.cz>
2352
2353         * profile.c (is_edge_inconsistent): Add debug output; ignore
2354         negative count on fake edges.
2355         (is_inconsistent): Add debug output.
2356
2357 2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
2358
2359         * haifa-sched.c (advance_one_cycle): Do not print '\n' before printing
2360         dump message.
2361         (choose_ready): When first insn is chosen from the ready list, also
2362         dump it.
2363
2364 2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
2365
2366         PR rtl-optimization/37360
2367         * haifa-sched.c (max_issue): Do not assert that we never issue more
2368         insns than issue_rate.  Add comment.
2369
2370 2008-09-09  Richard Guenther  <rguenther@suse.de>
2371
2372         * tree-cfg.c (verify_types_in_gimple_op): Remove.
2373         (verify_types_in_gimple_call): Rename to ...
2374         (verify_gimple_call): ... this.  Enhance.
2375         (verify_types_in_gimple_cond): Remove.
2376         (verify_gimple_comparison): New function ...
2377         (verify_types_in_gimple_assign): ... split out from here.
2378         (verify_types_in_gimple_return): Rename to ...
2379         (verify_gimple_return): ... this.  Enhance.
2380         (verify_types_in_gimple_switch): Rename to ...
2381         (verify_gimple_switch): ... this.  Enhance.
2382         (verify_gimple_goto): New function.
2383         (verify_types_in_gimple_phi): Rename to ...
2384         (verify_gimple_phi): ... this.  Enhance.
2385         (verify_types_in_gimple_stmt): Adjust calls to helper functions.
2386         Fold in single-statement cases from verify_types_in_gimple_seq_2.
2387         (verify_types_in_gimple_seq_2): Remove cases handled in
2388         verify_types_in_gimple_stmt.
2389
2390 2008-09-09  Bernd Schmidt  <bernd.schmidt@analog.com>
2391
2392         * config/bfin/bfin.c (n_regs_to_save): New static variable.
2393         (push_multiple_operation, pop_multiple_operation): Set it.
2394         (workaround_rts_anomaly): New function.
2395         (workaround_speculation): New function, broken out of bfin_reorg.
2396         (bfin_reorg): Call the new functions.
2397
2398 2008-09-09  Richard Guenther  <rguenther@suse.de>
2399
2400         PR middle-end/37354
2401         PR middle-end/30165
2402         * gimplify.c (gimplify_conversion): Change conversions of
2403         non-register type to VIEW_CONVERT_EXPRs.
2404         (gimplify_addr_expr): If we need to make the operand
2405         addressable make sure to use a properly initialized
2406         temporary for that so it gets a valid gimple store.
2407
2408 2008-09-09  Aldy Hernandez  <aldyh@redhat.com>
2409
2410         * function.h (struct function): Add function_start_locus.
2411         * cfgexpand.c (gimple_expand_cfg): Use it.
2412         * c-parser.c (c_parser_declaration_or_fndef): Set it.
2413
2414 2008-09-09  Richard Guenther  <rguenther@suse.de>
2415
2416         PR tree-optimization/37433
2417         * tree-ssa-ccp.c (ccp_fold): Properly guard folding of
2418         function calls.
2419
2420 2008-09-09  Richard Guenther  <rguenther@suse.de>
2421
2422         PR tree-optimization/37387
2423         * tree-ssa-ifcombine.c (ifcombine_iforif): Convert the name
2424         and bits to a common type.
2425
2426 2008-09-09  Nick Clifton  <nickc@redhat.com>
2427
2428         * config/v850/v850.md (return): Restore frame size restriction.
2429
2430 2008-09-09  Paolo Bonzini  <bonzini@gnu.org>
2431
2432         * c-common.c (c_expand_decl): Remove.
2433         * c-common.h (anon_aggr_type_p): Remove prototype.
2434         (DECL_ANON_UNION_ELEMS): Remove.
2435         * c-objc-common.h (LANG_HOOKS_EXPAND_DECL): Remove.
2436         * c-decl.c (anon_aggr_type_p): Remove.
2437         * langhooks-def.h (LANG_HOOKS_EXPAND_DECL): Remove.
2438         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_EXPAND_DECL.
2439         * langhooks.h (struct lang_hooks): Remove expand_decl.
2440         * langhooks.c (lhd_expand_decl): Remove.
2441         * stmt.c (expand_anon_union_decl): Remove.
2442         * tree.h (expand_anon_union_decl): Remove prototype.
2443
2444 2008-08-09  Andy Hutchinson  <hutchinsonandy@aim.com>
2445
2446         PR target/36609
2447         * config/avr/avr.c (avr_reorg): Create RTL for reversed compare with
2448         zero.
2449         * config/avr/avr.md  (QISI) : Define mode iterator.
2450         (negated_tst<mode>) : Redefine as split using mode macro.
2451         (reversed_tstqi): Define insn as reversed compare with zero.
2452         (reversed_tsthi): Ditto.
2453         (reversed_tstsi): Ditto.
2454
2455 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
2456
2457         PR middle-end/37393
2458         * tree-inline.c (copy_bb): When replacing a gimple_call_va_arg_pack_p
2459         call stmt by new_call, clear gimple_bb on stmt after gsi_replace.
2460
2461         PR middle-end/37414
2462         * predict.c (optimize_function_for_size_p): Don't segfault if
2463         FUN is NULL.
2464         * fold-const.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop,
2465         tree_swap_operands_p): Don't test cfun != NULL before calling
2466         optimize_function_for_s*_p.
2467
2468 2008-09-08  Eric Botcazou  <ebotcazou@adacore.com>
2469
2470         * ira-color.c (ira_reuse_stack_slot): Set slot_num on success at the
2471         end of the search.
2472
2473 2008-09-08  M R Swami Reddy <MR.Swami.Reddy@nsc.com>
2474
2475         * crx/crx.h (IRA_COVER_CLASSES): Define.
2476
2477 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
2478
2479         PR middle-end/37337
2480         * tree-ssa-dom.c (optimize_stmt): Call maybe_clean_or_replace_eh_stmt
2481         even when a stmt has been gimple_modified_p, but after fold_stmt is
2482         not any longer.  Remove unneeded may_have_exposed_new_symbols
2483         initializations.
2484
2485 2008-09-08  Richard Guenther  <rguenther@suse.de>
2486
2487         PR tree-optimization/37421
2488         * tree-ssa-sccvn.c (visit_copy): Make sure to fully
2489         valueize the RHS.
2490
2491 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
2492
2493         PR middle-end/37415
2494         * opts.c (common_handle_option): Handle OPT_ftree_store_ccp.
2495
2496 2008-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2497
2498         PR driver/37409
2499         * pa-hpux.h (LINK_SPEC): Strip -fwhole-program.
2500         * pa-hpux10.h (LINK_SPEC): Likewise.
2501         * pa-hpux11.h (LINK_SPEC): Likewise.
2502
2503 2008-09-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2504
2505         * pa32-regs.h (IRA_COVER_CLASSES): Define.
2506         * pa64-regs.h (IRA_COVER_CLASSES): Define.
2507
2508 2008-09-07  Helge Deller  <deller@gmx.de>
2509
2510         * pa/linux-atomic.c: New file.
2511         * pa/t-linux (LIB2FUNCS_STATIC_EXTRA): Define.
2512         * pa/t-linux64 (LIB2FUNCS_STATIC_EXTRA): Define.
2513
2514 2008-09-07  Richard Guenther  <rguenther@suse.de>
2515             Ira Rosen  <irar@il.ibm.com>
2516
2517         PR tree-optimization/36630
2518         * tree-vect-transform.c (vect_update_ivs_after_vectorizer):
2519         Call STRIP_NOPS before calling evolution_part_in_loop_num.
2520
2521 2008-09-07  Dorit Nuzman  <dorit@il.ibm.com>
2522             Ira Rosen  <irar@il.ibm.com>
2523
2524         PR tree-optimization/35642
2525         * config/rs6000/altivec.md (mulv8hi3): Implement.
2526
2527 2008-09-06  Jeff Law <law@redhat.com>
2528
2529         * h8300/h8300.h (IRA_COVER_CLASSES): Define.
2530
2531 2008-09-06  Jan Hubicka  <jh@suse.cz>
2532
2533         PR tree-optimization/14703
2534         * tree-ssa-live.c (remove_unused_scope_block_p): Remove ignored
2535         declarations.
2536         * passes.c (init_optimization_passes): Recompute inline parameters.
2537
2538 2008-09-06  Richard Sandiford  <rdsandiford@googlemail.com>
2539
2540         * config/mips/mips.c (mips_function_ok_for_sibcall): Check for
2541         DECL being null.
2542
2543 2008-09-06  Richard Sandiford  <rdsandiford@goolemail.com>
2544             Peter Fuerst  <post@pfrst.de>
2545
2546         * doc/invoke.texi: Document -mr10k-cache-barrier=.
2547         * doc/extend.texi: Document __builtin_mips_cache.
2548         * config/mips/mips-ftypes.def: Add a (VOID, SI, CVPOINTER) entry.
2549         * config/mips/mips.opt (mr10k-cache-barrier=): New option.
2550         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
2551         __GCC_HAVE_BUILTIN_MIPS_CACHE.
2552         (TARGET_CACHE_BUILTIN, ISA_HAS_CACHE): New macros.
2553         * config/mips/mips.c (mips_r10k_cache_barrier_setting): New enum.
2554         (set_push_mips_isas): New variable.
2555         (mips_r10k_cache_barrier): New variable.
2556         (cache): New availability predicate.
2557         (mips_builtins): Add an entry for __builtin_mips_cache.
2558         (mips_build_cvpointer_type): New function.
2559         (MIPS_ATYPE_CVPOINTER): New macro.
2560         (mips_prepare_builtin_arg): Only use the insn's mode if the rtx's
2561         mode is VOIDmode.
2562         (r10k_simplified_address_p, r10k_simplify_address)
2563         (r10k_uncached_address_p, r10k_safe_address_p)
2564         (r10k_needs_protection_p_1, r10k_needs_protection_p_store)
2565         (r10k_needs_protection_p_call, r10k_needs_protection_p)
2566         (r10k_insert_cache_barriers): New functions.
2567         (mips_reorg_process_insns): Delete cache barriers after a
2568         branch-likely instruction.
2569         (mips_reorg): Call r10k_insert_cache_barriers.
2570         (mips_handle_option): Handle OPT_mr10k_cache_barrier_.
2571         * config/mips/mips.md (UNSPEC_MIPS_CACHE): New constant.
2572         (UNSPEC_R10K_CACHE_BARRIER): Likewise.
2573         (mips_cache, r10k_cache_barrier): New define_insns.
2574
2575 2008-09-06  Richard Sandiford  <rdsandiford@googlemail.com>
2576
2577         * ira-int.h (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
2578         * ira-color.c (setup_allocno_left_conflicts_num): Use
2579         hard_reg_set_equal_p instead of a comparison with
2580         ira_zero_hard_reg_set.
2581         * ira.c (setup_reg_subclasses): Likewise.
2582         (setup_cover_and_important_classes): Likewise.
2583         (setup_class_translate): Likewise.
2584         (setup_reg_class_intersect_union): Likewise.
2585         (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
2586         (ira_init_once): Don't initialize them.
2587
2588 2008-09-05  Vladimir Makarov  <vmakarov@redhat.com>
2589
2590         * doc/tm.texi (IRA_COVER_CLASSES): Fix a typo.
2591
2592 2008-09-05  Vladimir Makarov  <vmakarov@redhat.com>
2593
2594         * ira-color.c (ira_fast_allocation): Permit global allocno allocation.
2595
2596 2008-09-05  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
2597
2598         Improved branch hints, safe hints, and scheduling.
2599
2600         * haifa-sched.c (sched_emit_insn) : Define.
2601         * sched-int.h (sched_emit_insn) : Add prototype.
2602         * doc/invoke.texi (-mdual-nops, -mhint-max-nops,
2603         -mhint-max-distance -msafe-hints) : Document.
2604         * config/spu/spu.c (spu_flag_var_tracking): New.
2605         (TARGET_SCHED_INIT_GLOBAL, TARGET_SCHED_INIT,
2606         TARGET_SCHED_REORDER, TARGET_SCHED_REORDER2,
2607         TARGET_ASM_FILE_START): Define.
2608         (TARGET_SCHED_ADJUST_PRIORITY): Remove.
2609         (STOP_HINT_P, HINTED_P, SCHED_ON_EVEN_P): Define.
2610         (spu_emit_branch_hint): Add blocks argument.
2611         (insert_branch_hints, insert_nops): Remove.
2612         (pad_bb, insert_hbrp_for_ilb_runout, insert_hbrp, in_spu_reorg,
2613         uses_ls_unit, spu_sched_init_global, spu_sched_init,
2614         spu_sched_reorder, asm_file_start): New functions.
2615         (clock_var, spu_sched_length, pipe0_clock,
2616         pipe1_clock, prev_clock_var, prev_priority,
2617         spu_ls_first, prev_ls_clock): New static variables.
2618         * config/spu/spu.h (TARGET_DEFAULT): Add MASK_SAFE_HINTS.
2619         * config/spu.md (iprefetch): Add operand, make it clobber MEM.
2620         (nopn_nv): Add a non-volatile version of nop.
2621         * config/spu/spu.opt (-mdual-nops, -mhint-max-nops,
2622         -mhint-max-distance, -msafe-hints): New options.
2623
2624 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
2625             Samuel Tardieu  <sam@rfc1149.net>
2626
2627         * opts.c (decode_options): Combine nested if statements.
2628
2629         PR target/37283
2630         * opts.c (decode_options): Handle more relationships among
2631         unit-at-a-time, toplevel-reorder, and section-anchors.
2632
2633 2008-09-05  David Daney  <ddaney@avtrex.com>
2634
2635         * doc/install.texi (--enable-reduced-reflection): Document new option.
2636
2637 2008-09-05  Bob Wilson  <bob.wilson@acm.org>
2638
2639         * config/xtensa/predicates.md (nonimmed_operand, mem_operand): Use
2640         constantpool_mem_p.
2641         (constantpool_operand): New.
2642         (move_operand): Disallow sub-word modes for the constant pool.
2643         * config/xtensa/xtensa.c (TARGET_SECONDARY_RELOAD): Define.
2644         (xtensa_secondary_reload_class): Replace with....
2645         (xtensa_secondary_reload): this function.  Remove SIGN_EXTEND check.
2646         Set icode for sub-word reloads from the constant pool.
2647         * config/xtensa/xtensa.h (SECONDARY_INPUT_RELOAD_CLASS): Delete.
2648         (SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
2649         * config/xtensa/xtensa.md (reload<mode>_literal): New.
2650         * config/xtensa/xtensa-protos.h: Update prototypes.
2651
2652 2008-09-05  Joseph Myers  <joseph@codesourcery.com>
2653
2654         * config/mips/mips.h (enum reg_class): Add FRAME_REGS.
2655         (REG_CLASS_NAMES): Update.
2656         (REG_CLASS_CONTENTS): Update.
2657         * config/mips/mips.c (mips_regno_to_class): Use FRAME_REGS instead
2658         of ALL_REGS for regs 77 and 78.
2659         * function.c (instantiate_virtual_regs_in_insn): Assert that
2660         return value of simplify_gen_subreg is not NULL.
2661
2662 2008-09-05  Paolo Bonzini  <bonzini@gnu.org>
2663
2664         * emit-rtl.c (gen_rtvec): Rewrite not using gen_rtvec_v.
2665         (gen_rtvec_v): Fix coding standards.
2666
2667 2008-09-04  Jan Hubicka  <jh@suse.cz>
2668
2669         * i386.c (decide_alg): Be more conservative about optimizing for size.
2670
2671 2008-09-04  Ian Lance Taylor  <iant@google.com>
2672
2673         * varasm.c (narrowing_initializer_constant_valid_p): New
2674         static function.
2675         (initializer_constant_valid_p): Call it.
2676
2677 2008-09-04  Jeff Law  <law@redhat.com>
2678
2679         * fold-const.c (native_encode_real): Fix computation of WORDS.
2680         (native_interpret_real): Likewise.
2681
2682 2008-09-04  Janis Johnson  <janis187@us.ibm.com>
2683
2684         * config/rs6000/t-rs6000: Remove target gt-rs6000.h.
2685
2686 2008-09-04  Vladimir Makarov  <vmakarov@redhat.com>
2687
2688         * ira-conflicts.c (process_regs_for_copy): Check insn to check
2689         that the cost is already taken into account in ira-costs.c
2690
2691         * ira-int.h (ira_debug_copy, ira_debug_copies): New.
2692
2693         * ira-build.c (print_copy, print_copies, ira_debug_copy,
2694         ira_debug_copies): New.
2695         (ira_bulid): Call print_copies.
2696
2697         * doc/tm.texi (IRA_COVER_CLASSES): Fix the description.
2698
2699 2008-09-04  Samuel Tardieu  <sam@rfc1149.net>
2700
2701         PR target/32783
2702         * config/rs6000/rs6000.c (optimization_options): Remove check of
2703         flag_toplevel_order.
2704
2705 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
2706
2707         * config/mips/mips.h (ISA_HAS_SEQ_SNE): New macro.
2708         * config/mips/mips.c (mips_expand_scc): Also expand seq and sne if
2709         second operand is a reg_imm10_operand.
2710         * config/mips/mips.md (*seq_<GPR:mode><GPR2:mode>_seq,
2711         *sne_<GPR:mode><GPR2:mode>_sne): New patterns.
2712         (*seq_<GPR:mode><GPR2:mode>): Rename to
2713         *seq_zero_<GPR:mode><GPR2:mode>.  Don't match if
2714         ISA_HAS_SEQ_SNE.
2715         (*seq_<GPR:mode><GPR2:mode>_mips16): Rename to
2716         *seq_zero_<GPR:mode><GPR2:mode>_mip16.  Don't match if
2717         ISA_HAS_SEQ_SNE.
2718         (*sne_<GPR:mode><GPR2:mode>): Rename to
2719         *sne_zero_<GPR:mode><GPR2:mode>.  Don't match if
2720         ISA_HAS_SEQ_SNE.
2721
2722 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
2723
2724         * config/mips/mips.h (ISA_HAS_EXTS): New macro.
2725         * config/mips/mips.md (*ashr_trunc<mode>): Name the pattern
2726         combining an arithmetic right shift by more than 31 and a
2727         trunction.  Don't match for out-of-range shift amounts.  Set
2728         attribute mode to <MODE>.
2729         (*lshr32_trunc<mode>): Name the pattern combining a logical right
2730         shift by 32 and and a truncation.  Set attribute mode to <MODE>.
2731         (*<optab>_trunc<mode>_exts): New pattern for truncated right
2732         shifts by less than 32.
2733         (extv): Change predicate on first operand to accept registers.
2734         Change predicate of the other operands from immediate_operand to
2735         const_int_operand.  Expand exts when source is a register.
2736         (extzv): Change predicate of the constant operands from
2737         immediate_operand to const_int_operand.
2738         (extzv<mode>): Change predicate of the constant operands from
2739         immediate_operand to const_int_operand and no constraint. Also
2740         remove mode.
2741         (*extzv_trunc<mode>_exts): New pattern.
2742
2743 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
2744
2745         * config/mips/mips.h (ISA_HAS_CINS): New macro.
2746         * config/mips/mips-protos.h (mask_low_and_shift_p,
2747         mask_low_and_shift_len): Declare.
2748         * config/mips/mips.c (mask_low_and_shift_p,
2749         mask_low_and_shift_len): New functions.
2750         (mips_print_operand): Handle new operand prefix "m".
2751         * config/mips/mips.md (*cins<mode>): New pattern.
2752
2753 2008-09-04  Bernd Schmidt  <bernd.schmidt@analog.com>
2754
2755         * config/bfin/bfin.c (gen_one_bundle): Don't create new nops when
2756         optimizing for size.
2757
2758 2008-09-04  Richard Sandiford  <rdsandiford@googlemail.com>
2759
2760         * df-scan.c (df_get_entry_block_def_set): Add STACK_POINTER_REGNUM
2761         regardless of epilogue_completed.
2762
2763 2008-09-04  Vladimir Makarov  <vmakarov@redhat.com>
2764
2765         PR middle-end/37359
2766         * ira-lives.c (process_bb_node_lives): Check setjmp.
2767
2768 2008-09-04  Richard Sandiford  <rdsandiford@googlemail.com>
2769
2770         PR middle-end/37243
2771         * ira-build.c (form_loop_tree): Reverse BB walk.
2772         (create_bb_allocnos): Likewise.
2773         * ira-lives.c (make_regno_born_and_dead, regs_set): Delete.
2774         (mark_reg_store): Rename to...
2775         (mark_ref_live): ...this and take a df_ref argument instead of
2776         note_stores arguments.  Assert that we have a register.
2777         (mark_reg_clobber): Delete.
2778         (def_conflicts_with_inputs_p): New function.
2779         (mark_reg_conflicts): Delete.
2780         (mark_reg_death): Rename to...
2781         (mark_ref_dead): ...this and take a df_ref argument instead of
2782         a register.  Assert that we have a register.
2783         (process_bb_node_lives): Hoist frequency calculation out of
2784         instruction walk.  Convert from a forwards scan to a backwards scan.
2785         Use DF_REF_USES and DF_REF_DEFS instead of register notes and
2786         note_stores.  Remove EH_RETURN_DATA_REGNO and regs_set handling.
2787         (create_allocno_live_ranges): Don't create regs_set.
2788
2789 2008-09-04  Ian Lance Taylor  <iant@google.com>
2790
2791         * rtl.h (LABEL_REF_NONLOCAL_P): Don't check for REG_LABEL_OPERAND
2792         or REG_LABEL_TARGET.
2793         * calls.c (emit_library_call_value_1): Use MEM_P rather than
2794         comparing MODE with MEM.
2795         * gimple.c (gimple_build_predict): Cast END_PREDICTORS before
2796         comparing with GF_PREDICT_TAKEN.
2797         (gimple_get_lhs): Change code to enum gimple_code.
2798         (gimple_set_lhs): Likewise.
2799         * ifcvt.c (noce_process_if_block): Correct GET_MODE to GET_CODE.
2800         * omp-low.c (find_omp_clause): Change kind parameter to enum
2801         omp_clause_code.
2802         * tree-flow.h (find_omp_clause): Update declaration.
2803         * regrename.c (clear_dead_regs): Change kind parameter to enum
2804         reg_note.
2805         * reload1.c (eliminate_regs_1): Use REG_NOTE_KIND rather than
2806         GET_MODE.
2807         * see.c (see_get_extension_data): Change return type to enum
2808         entry_type.  Change UNKNOWN to NOT_RELEVANT, SIGN_EXTEND to
2809         SIGNED_EXTENDED_DEF, ZERO_EXTEND to ZERO_EXTENDED_DEF.
2810         (see_gen_normalized_extension): Change extension_code parameter to
2811         enum entry_type.
2812         (see_seek_pre_extension_expr): Change extension_code to enum
2813         entry_type.
2814         (see_merge_one_def_extension): Likewise.
2815         (see_handle_relevant_defs): Likewise.
2816         (see_handle_relevant_uses): Likewise.
2817         (see_analyze_one_def): Likewise.
2818         * tree-cfg.c (need_fake_edge_p): Compare gimple code with
2819         GIMPLE_ASM rather than ASM_EXPR.
2820         * tree-ssa-alias.c (is_escape_site): Compare gimple code with
2821         GIMPLE_RETURN rather than RETURN_EXPR.
2822         * tree-ssa-ccp.c (likely_value): Change code to enum gimple_code.
2823         (evaluate_stmt): Likewise.
2824         * tree-vect-analyze.c (vect_analyze_operations): Change relevance
2825         to enum vect_relevant.
2826         (vect_mark_stmts_to_be_vectorized): Change assertion to not
2827         compare gimple codes with tree codes.
2828
2829 2008-09-04  Paul Brook  <paul@codesourcery.com>
2830
2831         * config/arm/arm.c (arm_size_rtx_costs): Call cost function.
2832
2833 2008-09-04  Bernd Schmidt  <bernd.schmidt@analog.com>
2834
2835         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Restore a null
2836         pointer check lost in the recent no-unit-at-a-time patch.
2837
2838 2008-09-04  Jan Hubicka  <jh@suse.cz>
2839
2840         PR middle-end/37343
2841         * tree-switch-conversion.c (check_final_bb): Accept only IP
2842         invariants.
2843
2844 2008-09-04  Jan Hubicka  <jh@suse.cz>
2845
2846         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
2847         Break out from ...
2848         (vrp_evaluate_conditional_warnv_with_ops): ... this one.  Add
2849         using_ranges argument.
2850         (vrp_evaluate_conditional): Avoid bogus warning for type range.
2851         (vrp_visit_cond_stmt): Update call of
2852         vrp_evaluate_conditional_warnv_with_ops
2853
2854 2008-09-04  Jan Hubicka  <jh@suse.cz>
2855
2856         PR tree-optimization/37345
2857         PR tree-optimization/37358
2858         PR tree-optimization/37357
2859         * tree.c (build_function_type_skip_args): Build distinct type copy;
2860         set TYPE_CONTEXT.
2861         (build_function_decl_skip_args): Set type of new decl not orig decl;
2862         clear DECL_VINDEX for methods turned into functions.
2863
2864 2008-09-04  Nick Clifton  <nickc@redhat.com>
2865
2866         * configure.ac (HAVE_GAS_LCOMM_WITH_ALIGNMENT): New assembler check.
2867         * configure: Regenerate.
2868         * config.in: Regenerate.
2869         * config/i386/bsd.h (ASM_OUTPUT_ALIGNED_LOCAL): Use .lcomm with an
2870         alignment field, if it is supported.
2871
2872 2008-09-04  Kai Tietz  <kai.tietz@onevision.com>
2873
2874         * config/i386/t-mingw32 (SHLIB_LC): Change order of import
2875         libraries.
2876
2877 2008-09-03  David Edelsohn  <edelsohn@gnu.org>
2878
2879         * config/rs6000/rs6000.c (processor_target_table): Do not
2880         enable VMX for POWER6.
2881
2882 2008-09-03  Anton Blanchard  <anton@samba.org>
2883
2884         * config/rs6000/rs6000.c (rs6000_split_lock_test_and_set): Do not
2885         emit memory barrier before operation.
2886
2887 2008-09-03  John David Anglin  <dave.anglin@nrc.cnrc.gc.ca>
2888
2889         PR testsuite/37325
2890         * config/pa/pa64-hpux.h (ASM_OUTPUT_EXTERNAL_REAL): Call
2891         default_elf_asm_output_external.
2892
2893 2008-09-03  Jeff Law  <law@redhat.com>
2894
2895         * h8300.c (expand_a_shift): Avoid invalid RTL sharing.
2896
2897 2008-09-03  Richard Henderson  <rth@redhat.com>
2898
2899         * config/alpha/alpha.c (alpha_split_lock_test_and_set): Move
2900         memory barrier to below the test-and-set.
2901         (alpha_split_lock_test_and_set_12): Likewise.
2902
2903 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
2904
2905         PR rtl-opt/37243
2906
2907         * ira-int.h (ira_loop_tree_node): Rename mentioned_allocnos to
2908         all_allocnos.
2909
2910         * ira-color.c (print_loop_title): Use all_allocnos.
2911         (color_pass): Ditto.  Don't add border_allocnos.  Check that
2912         subloop allocno in the correspdoning bitmap all_allocnos.
2913
2914         * ira-emit.c (change_loop): Use all_allocnos.
2915
2916         * ira-build.c (create_loop_tree_nodes, finish_loop_tree_node): Ditto.
2917         (ira_create_allocno): Set up all_allocnos bit for the created allocno.
2918         (create_cap_allocno): Remove setting mentioned_allocnos.
2919         (create_insn_allocnos): Ditto.
2920         (remove_unnecessary_allocnos): Use all_allocnos.
2921         (check_allocno_creation): Check that allocnos are in the
2922         corresponding bitmap all_allocnos.
2923
2924 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
2925
2926         PR rtl-opt/37243
2927
2928         * ira-conflicts.c (REG_SUBREG_P, go_through_subreg): New.
2929         (process_regs_for_copy): Process subregs.  Refine check when cost
2930         is taken into account in ira-costs.c.
2931         (process_reg_shuffles): Use REG_SUBREG_P.
2932         (add_insn_allocno_copies): Ditto.  Ignore modes.
2933
2934         * ira-color.c (conflict_allocno_vec): New.
2935         (COST_HOP_DIVISOR): New macro.
2936         (update_copy_costs_1): Use it.
2937         (update_conflict_hard_regno_costs): New function.
2938         (assign_hard_reg): Use it.
2939         (ira_color): Allocate and free conflict_allocno_vec.
2940
2941 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
2942
2943         PR rtl-opt/37296
2944
2945         * ira-int.h (ira_sort_insn_chain): Remove.
2946
2947         * ira.c (basic_block_order_nums, chain_insn_order,
2948         chain_freq_compare, chain_bb_compare, ira_sort_insn_chain): Remove.
2949         (ira): Don't call ira_sort_insn_chain.
2950
2951         * reload1.c (reload): Don't call ira_sort_insn_chain.
2952
2953 2008-09-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2954
2955         PR middle-end/37293
2956         * cgraphunit.c (update_call_expr): Remove eh regions from statements
2957         which become non throw.
2958         (cgraph_function_versioning): Also clear DECL_WEAK.  Call
2959         update_call_expr after updating the flags on the decl.
2960
2961 2008-09-03  Jan Hubicka  <jh@suse.cz>
2962
2963         PR tree-optimization/37315
2964         * cgraph.c (cgraph_create_edge): Use gimple_has_body_p.
2965         * cgraphunit.c (verify_cgraph_node): drop gimple_body check.
2966         (cgraph_analyze_functions): Use node->analyzed
2967         (cgraph_mark_functions_to_output): Likewise.
2968         (cgraph_expand_function): All functions can be released after
2969         expanding.
2970         (cgraph_optimize): Use gimple_has_body_p.
2971         * ipa-inline.c (cgraph_clone_inlined_nodes): Use analyzed flag.
2972         (cgraph_decide_inlining_incrementally): Likewise.
2973         (inline_transform): Inline transform.
2974         * tree-inline.c (initialize_cfun): Do now shallow copy structure;
2975         copy fields needed.
2976         (inlinable_function_p): Drop gimple_body check.
2977         (expand_call_inline): Use gimple_has_body_p.
2978         * gimple.c (gimple_has_body_p): New.
2979         * gimple.h (gimple_has_body_p): Add prototype.
2980         * tree-cfg.c (execute_build_cfg): Remove gimple_body.
2981         (dump_function_to_file): Use gimple_has_body_p check.
2982
2983 2008-09-03  Jakub Jelinek  <jakub@redhat.com>
2984
2985         PR c++/37346
2986         * gimple.h (gimple_has_substatements): GIMPLE_OMP_CRITICAL has
2987         substatements.
2988         * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_CRITICAL.
2989
2990 2008-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
2991
2992         From Michael Frysinger  <michael.frysinger@analog.com>
2993         * config/bfin/bfin.c (bfin_cpus[]): Add 0.1 for bf522, bf523, bf524,
2994         bf525, bf526, bf527, bf542, bf544, bf547, bf548, and bf549.  Add 0.2
2995         for bf538.
2996
2997 2008-09-03  Hari Sandanagobalane  <hariharan@picochip.com>
2998
2999         Add picoChip port.
3000         * doc/extend.texi: Document picoChip builtin functions.
3001         * doc/invoke.texi: Document picoChip options.
3002         * doc/contrib.texi: Add picoChip contribution.
3003         * doc/md.texi: Document picoChip constraints.
3004         * config.gcc: Add picochip-*-*.
3005         * config/picochip/: Add new port.
3006
3007 2008-09-03  Richard Guenther  <rguenther@suse.de>
3008
3009         PR tree-optimization/37328
3010         * tree-sra.c (sra_build_assignment): Gimplify properly.
3011         (generate_copy_inout): Take the correct stmt as definition,
3012         remove bogus assert.
3013
3014 2008-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
3015
3016         * config/bfin/bfin.c (bfin_expand_prologue): Honour no_stack_limit
3017         attributes.
3018
3019         From Michael Frysinger  <michael.frysinger@analog.com>
3020         * config/bfin/bfin.c (bfin_handle_option): Remove BF561 warning.
3021
3022 2008-09-03 Danny Smith  <dannysmith@usrs.sourceforge.net>
3023
3024         * gthr-win32.h (CONST_CAST2): Really make sure CONST_CAST2 is defined.
3025         (__gthread_setspecific): Revert 2008-08-31 change to
3026         __GTHREAD_HIDE_W32API case.  Apply it to !__GTHREAD_HIDE_W32API case.
3027
3028 2008-09-02  Aldy Hernandez  <aldyh@redhat.com>
3029
3030         * diagnostic.c (error_at): New.
3031         * toplev.h (error_at): New prototype.
3032         * c-typeck.c (build_array_ref): Call error_at instead of error.
3033         Pass location to pedwarn.
3034
3035 2008-09-02  Adam Nemet  <anemet@caviumnetworks.com>
3036
3037         * sel-sched.c (sel_hard_regno_rename_ok): Mark arguments unused.
3038
3039 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
3040
3041         * dwarf2out.c (tree_add_const_value_attribute): Only handle
3042         VAR_DECL and CONST_DECL.
3043
3044 2008-09-02  H.J. Lu  <hongjiu.lu@intel.com>
3045             Jakub Jelinek  <jakub@redhat.com>
3046
3047         * config/i386/i386.c (X86_64_VARARGS_SIZE): Removed.
3048         (setup_incoming_varargs_64): Assume cum != NULL. Set/check
3049         ix86_varargs_gpr_size and ix86_varargs_fpr_size.  Use
3050         ix86_varargs_gpr_size instead of X86_64_REGPARM_MAX.
3051         Don't set ix86_save_varrargs_registers.
3052         (ix86_setup_incoming_varargs): Assume cum != NULL.
3053         (ix86_va_start): Check ix86_varargs_gpr_size and
3054         ix86_varargs_fpr_size instead of cfun->va_list_gpr_size and
3055         cfun->va_list_fpr_size, respectively.  Subtract 8*X86_64_REGPARM_MAX
3056         from frame pointer if ix86_varargs_gpr_size == 0.
3057         (ix86_compute_frame_layout): Updated.
3058         * config/i386/i386.h (ix86_save_varrargs_registers): Removed.
3059         (ix86_varargs_gpr_size): Define.
3060         (ix86_varargs_fpr_size): Likewise.
3061         (machine_function): Remove save_varrargs_registers.
3062         Add varargs_gpr_size and varargs_fpr_size.
3063
3064 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
3065
3066         * config/alpha/alpha.c (va_list_skip_additions,
3067         alpha_stdarg_optimize_hook, alpha_gimplify_va_arg_1): Tuplify.
3068         (alpha_gimplify_va_arg): Call unshare_expr on second use of
3069         offset_field.
3070
3071         PR tree-optimization/36766
3072         * tree-cfg.c (gimple_purge_all_dead_eh_edges): Do nothing
3073         for already removed basic blocks.
3074
3075         PR target/36332
3076         * real.c (real_maxval): Clear a lower bit to make real_maxval
3077         match get_max_float for IBM long double format.
3078
3079 2008-09-02  Andreas Schwab  <schwab@suse.de>
3080
3081         * configure.ac: Use m4_quote to quote the expansion of m4_do.
3082         * configure: Regenerate.
3083
3084 2008-09-02  Richard Sandiford  <rdsandiford@googlemail.com>
3085
3086         * simplify-rtx.c (simplify_binary_operation_1): Check for CONST,
3087         SYMBOL_REF and LABEL_REF when applying plus_constant, instead of
3088         checking for a non-VOID CONSTANT_P.
3089
3090 2008-09-02  Jan Hubicka  <jh@suse.cz>
3091
3092         * predict.c (pass_strip_predict_hints): Avoid bugs dump file.
3093         * expmed.c (expand_divmod): Fix test of smod_pow2_cheap and
3094         sdiv_pow2_cheap
3095
3096 2008-09-02  H.J. Lu  <hongjiu.lu@intel.com>
3097
3098         * expr.c (emit_group_store): Don't assert stack temp mode size.
3099
3100 2008-09-02  Sebastian Pop  <sebastian.pop@amd.com>
3101             Tobias Grosser  <grosser@fim.uni-passau.de>
3102             Jan Sjodin  <jan.sjodin@amd.com>
3103             Harsha Jagasia  <harsha.jagasia@amd.com>
3104             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
3105             Konrad Trifunovic  <konrad.trifunovic@inria.fr>
3106             Adrien Eliche  <aeliche@isty.uvsq.fr>
3107
3108         Merge from graphite branch.
3109         * graphite.c: New.
3110         * graphite.h: New.
3111         * tree-loop-linear.c (perfect_loop_nest_depth): Export.
3112         * doc/invoke.texi (-floop-block, -floop-interchange,
3113         -floop-strip-mine): Document new flags.
3114         * tree-into-ssa.c (gimple_vec): Moved...
3115         * tree-loop-distribution.c (rdg_component): Moved...
3116         * cfgloopmanip.c: Include tree-flow.h.
3117         (update_dominators_in_loop): New.
3118         (create_empty_if_region_on_edge): New.
3119         (create_empty_loop_on_edge): New.
3120         (loopify): Use update_dominators_in_loop.
3121         * tree-pass.h (pass_graphite_transforms): Declared.
3122         * configure: Regenerate.
3123         * tree-phinodes.c (make_phi_node): Export.
3124         (add_phi_node_to_bb): New, split from create_phi_node.
3125         * tree-chrec.c (for_each_scev_op): New.
3126         * tree-chrec.h (for_each_scev_op): Declared.
3127         * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
3128         (remove_statement): Call get_phi_with_result.
3129         * config.in (HAVE_cloog): Undef.
3130         * gdbinit.in (pgg): New.
3131         * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
3132         * tree-ssa-loop.c (graphite_transforms): New.
3133         (gate_graphite_transforms): New.
3134         (pass_graphite_transforms): New.
3135         * configure.ac (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC,
3136         HAVE_cloog): Defined.
3137         * tree-vectorizer.c (rename_variables_in_bb): Export.
3138         * tree-data-ref.c (dr_may_alias_p): Export.
3139         (stmt_simple_memref_p): New.
3140         (find_data_references_in_stmt): Export.
3141         (find_data_references_in_loop): Export.
3142         (create_rdg_edge_for_ddr): Initialize RDGE_RELATION.
3143         (create_rdg_edges_for_scalar): Initialize RDGE_RELATION.
3144         (create_rdg_vertices): Export.
3145         (build_empty_rdg): New.
3146         (build_rdg): Call build_empty_rdg.  Free dependence_relations.
3147         * tree-data-ref.h (rdg_component): ... here.
3148         (scop_p): New.
3149         (struct data_reference): Add a field scop.
3150         (DR_SCOP): New.
3151         (find_data_references_in_loop): Declared.
3152         (find_data_references_in_stmt): Declared.
3153         (create_rdg_vertices): Declared.
3154         (dr_may_alias_p): Declared.
3155         (stmt_simple_memref_p): Declared.
3156         (struct rdg_edge): Add a field ddr_p relation.
3157         (build_empty_rdg): Declared.
3158         * lambda.h (lambda_matrix): Declare a VEC of.
3159         (find_induction_var_from_exit_cond): Declared.
3160         (lambda_vector_compare): New.
3161         * common.opt (fgraphite, floop-strip-mine,
3162         floop-interchange, floop-block): New flags.
3163         * lambda-code.c (find_induction_var_from_exit_cond): Export.
3164         * cfgloop.c (is_loop_exit): New.
3165         * cfgloop.h (is_loop_exit): Declared.
3166         (create_empty_if_region_on_edge): Declared.
3167         (create_empty_loop_on_edge): Declared.
3168         * tree-flow.h (add_phi_node_to_bb): Declared.
3169         (make_phi_node): Declared.
3170         (rename_variables_in_bb): Declared.
3171         (perfect_loop_nest_depth): Declared.
3172         (graphite_transform_loops): Declared.
3173         * Makefile.in (cfgloopmanip.o): Depend on TREE_FLOW_H.
3174         (graphite.o-warn): Add -Wno-error.
3175         (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC): Declared.
3176         (LIBS): Add GMPLIBS, CLOOGLIBS, PPLLIBS.
3177         (INCLUDES): Add PPLINC, CLOOGINC.
3178         (OBJS-common): Add graphite.o.
3179         (graphite.o): Add rule.
3180         * gimple.h (gimple_vec): ... here.
3181         * tree-cfg.c (print_loops): Start printing at ENTRY_BLOCK_PTR.
3182         * passes.c (init_optimization_passes): Schedule
3183         pass_graphite_transforms.
3184
3185 2008-09-02  Samuel Tardieu  <sam@rfc1149.net>
3186
3187         PR target/37283
3188         * opts.c (decode_options): Move processing of -fno-unit-at-a-time
3189         and -fno-toplevel-reorder after handle_options.
3190
3191 2008-09-02  Paul Brook  <paul@codesourcery.com>
3192
3193         * config/arm/arm.c (arm_tune_cortex_a9): Define.
3194         (arm_override_options): Set arm_tune_cortex_a9.
3195         (arm_rtx_costs_1): Make register shifts more expensive on Cortex-A9.
3196         (arm_issue_rate): Handle cortexa9.
3197         * config/arm/arm.h (arm_tune_cortex_a9): Declare.
3198         * config/arm/arm-cores.def: Add cortex-a9.
3199         * config/arm/arm-tune.md: Regenerate.
3200         * config/arm/arm.md: Include cortex-a9.md.
3201         (generic_sched, generic_vfp): Add cortexa9.
3202         * config/arm/cortex-a9.md: New file.
3203
3204 2008-09-02  Richard Guenther  <rguenther@suse.de>
3205
3206         PR tree-optimization/37327
3207         * tree-vrp.c (register_new_assert_for): Make sure to not have
3208         TREE_OVERFLOW set on the bound.
3209
3210 2008-09-02  Alexander Monakov  <amonakov@ispras.ru>
3211
3212         Fixed typo in date of the 2008-09-01 MOVE_RATIO commit.
3213
3214         * config/ia64/ia64.opt (msched-ar-data-spec): Default to 1.
3215         * config/ia64/ia64.c (ia64_set_sched_flags): Always initialize
3216         spec_info->mask.
3217
3218 2008-09-02  Victor Kaplansky  <victork@il.ibm.com>
3219
3220         * gcc/config/spu/spu.md (divdf3): Removed.
3221
3222 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
3223
3224         PR tree-optimization/37095
3225         * cgraph.c (cgraph_node): When creating new cgraph node after
3226         assembler_name_hash has been populated, record it in the hash
3227         table.
3228
3229 2008-09-01  Paul Brook  <paul@codesourcery.com>
3230
3231         * doc/invoke.texi: Document -mword-relocations.
3232         * config/arm/uclinux-elf.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
3233         * config/arm/symbian.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
3234         * config/arm/vxworks.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
3235         * config/arm/arm.c (arm_split_constant): Use arm_emit_movpair.
3236         (arm_rtx_costs_1, arm_size_rtx_costs): Handle HIGH and LO_SUM.
3237         (arm_emit_movpair): New function.
3238         (arm_print_operand <c>): Handle sybolic addresses.
3239         * config/arm/arm.h (TARGET_USE_MOVT): Define.
3240         (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
3241         * config/arm/arm-protos.h (arm_emit_movpair): Add prototype.
3242         * config/arm/arm.opt: Add -mword-relocations.
3243         * config/arm/arm.md (movsi): Use arm_emit_movpair.
3244         (arm_movt, arm_movw): New.
3245
3246 2008-09-01  Paul Brook  <paul@codesourcery.com>
3247
3248         * config/arm/arm.c (arm_override_options): Set arm_abi earlier.
3249         Allow Interworking on ARMv4 EABI based targets.
3250         * config/arm/bpabi.h (TARGET_FIX_V4BX_SPEC): Define.
3251         (SUBTARGET_EXTRA_ASM_SPEC, LINK_SPEC): Add TARGET_FIX_V4BX_SPEC.
3252
3253 2008-09-01  Paul Brook  <paul@codesourcery.com>
3254
3255         * config/arm/thumb2.md (thumb2_negscc): Match the correct operand for
3256         optimized LT0 test.  Remove optimization for GT.
3257
3258 2008-09-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3259
3260         * pa64-hpux.h (LIB_SPEC): Link against librt when building static
3261         openmp applications.
3262         * pa-hpux11.h (LIB_SPEC): Likewise.
3263
3264         * ira.c (setup_eliminable_regset): Only declare i if ELIMINABLE_REGS
3265         is defined.
3266
3267 2008-09-01  Jan Hubicka  <jh@suse.cz>
3268
3269         * predict.c (maybe_hot_count_p, maybe_hot_edge_p): When profile is
3270         present, use only counts; when guessed use only frequencies.
3271         (estimate_bb_frequencies): Use function_frequency.
3272         * profile.c (compute_branch_probabilities): Exit early when
3273         profile reading failed. Set profile_status.
3274         (branch_prob): Do not set profile_status.
3275
3276 2008-09-01  Aldy Hernandez  <aldyh@redhat.com>
3277
3278         * tree.c (protected_set_expr_location): New.
3279         * tree.h (protected_set_expr_location): New prototype.
3280         * c-tree.h (build_array_ref): Add argument.
3281         (parser_build_unary_op): Same.
3282         * c-typeck.c (build_indirect_ref): Handle new location argument.
3283         (build_array_ref): Same.
3284         (parser_build_unary_op): Same.
3285         * gimplify.c (gimplify_asm_expr): Set input_location before calling
3286         error.
3287         * c-omp.c (c_finish_omp_atomic): Pass location when calling
3288         build_indirect_ref.
3289         * c-common.c (finish_label_address_expr): Handle new location argument.
3290         * c-common.h (build_indirect_ref): Add argument.
3291         (finish_label_address_expr): Same.
3292         * c-parser.c (c_parser_unary_expression): Pass location to build
3293         functions.
3294         (c_parser_postfix_expression): Same.
3295
3296 2008-09-01  Paul Brook  <paul@codesourcery.com>
3297
3298         * config/arm/arm.md: Include cortex-r4f.md.
3299         (attr fpu): Update type list.
3300         (attr type): Add fcpys, ffariths, ffarithd, fadds, faddd, fconsts,
3301         fconstd, fcmps and fcmpd.
3302         (attr tune_cortexr4): Define.
3303         (attr generic_sched, attr generic_vfp): Use tune_cortexr4.
3304         * config/arm/vfp.md: Document fcpys, ffariths, ffarithd, fadds, faddd,
3305         fconsts, fconstd, fcmps and fcmpd.  Use them in insn patterns.
3306         * config/arm/arm.c (arm_issue_rate): Add cortexr4f.
3307         * config/arm/arm1020e.md (v10_ffarith, v10_farith): Use new insn types.
3308         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_add_sub,
3309         cortex_a8_vfp_farith: Ditto.
3310         * config/arm/vfp11.md (vfp_ffarith, vfp_farith): Ditto.
3311         * config/arm/cortex-r4.md: Use tune_cortexr4.
3312         * config/arm/cortex-r4f.md: New file.
3313
3314 2008-09-01  Richard Guenther  <rguenther@suse.de>
3315
3316         PR tree-optimization/37305
3317         * tree-ssa-ccp.c (ccp_fold): Do not set TREE_OVERFLOW on
3318         the result of constant conversions.
3319         (fold_gimple_assign): Likewise.
3320
3321 2008-09-01  Andrey Belevantsev  <abel@ispras.ru>
3322
3323         * sel-sched-ir.c (cmp_v_in_regset_pool): Surround with
3324         #ifdef ENABLE_CHECKING.
3325
3326 2008-09-01  Andrey Belevantsev  <abel@ispras.ru>
3327
3328         * sel-sched-dump.c: Surround with #ifdef INSN_SCHEDULING.
3329         * sched-int.h (print_insn, print_pattern, print_value): Declare also
3330         when !INSN_SCHEDULING.
3331
3332 2008-09-01  Andreas Schwab  <schwab@suse.de>
3333
3334         * config/ia64/ia64.c (TARGET_ADDRESS_COST): Update.
3335
3336 2008-09-01  Paul Brook  <paul@codesourcery.com>
3337
3338         * config/arm/arm.c (arm_no_early_mul_dep): Handle multiply-subtract.
3339
3340 2008-09-01  Jan Hubicka  <jh@suse.cz>
3341
3342         * config/spu/spu.c (spu_expand_block_move) Update call of MOVE_RATIO.
3343
3344         * expr.c (MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P, SET_BY_PIECES_P):
3345         Pass speed operand.
3346         * expr.h (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Update.
3347         * gimplify.c (gimplify_init_constructor): Add speed operand.
3348         * tree-sra.c (decide_block_copy): Likewise.
3349         * tree-inline.c (estimate_move_cost): Likewise.
3350         * config/alpha/alpha.h (MOVE_RATIO): Update.
3351         * config/frv/frv.c (MOVE_RATIO): Update.
3352         * config/spu/spu.h (MOVE_RATIO): Update.
3353         * config/sparc/sparc.h (MOVE_RATIO): Update.
3354         * config/i386/i386.h (MOVE_RATIO, CLEAR_RATIO): Update.
3355         * config/m68hc11/m68hc11.h (MOVE_RATIO): Update.
3356         * config/cris/cris.h (MOVE_RATIO): Update.
3357         * config/mn10300/mn10300.h (MOVE_RATIO): Update.
3358         * config/arm/arm.h (MOVE_RATIO): Update.
3359         * config/pa/pa.md: Update uses of MOVE_RATIO
3360         * config/pa/pa.h (MOVE_RATIO): Update.
3361         * config/mips/mips.h (MOVE_RATIO, MOVE_BY_PIECES,
3362         CLEAR_RATIO, SET_RATIO): Update.
3363         * config/h8300/h8300.h (MOVE_RATIO): Update.
3364         * config/v850/v850.h (MOVE_RATIO): Update.
3365         * config/bfin/bfin.h (MOVE_RATIO): Update.
3366
3367 2008-08-31  Andrey Belevantsev  <abel@ispras.ru>
3368             Dmitry Melnik  <dm@ispras.ru>
3369             Dmitry Zhurikhin  <zhur@ispras.ru>
3370             Alexander Monakov  <amonakov@ispras.ru>
3371             Maxim Kuvyrkov  <maxim@codesourcery.com>
3372
3373         * sel-sched.h, sel-sched-dump.h, sel-sched-ir.h, sel-sched.c,
3374         sel-sched-dump.c, sel-sched-ir.c: New files.
3375         * Makefile.in (OBJS-common): Add selective scheduling object files.
3376         (sel-sched.o, sel-sched-dump.o, sel-sched-ir.o): New entries.
3377         (SEL_SCHED_IR_H, SEL_SCHED_DUMP_H): New entries.
3378         (sched-vis.o): Add dependency on $(INSN_ATTR_H).
3379         * cfghooks.h (get_cfg_hooks, set_cfg_hooks): New prototypes.
3380         * cfghooks.c (get_cfg_hooks, set_cfg_hooks): New functions.
3381         (make_forwarder_block): Update loop latch if we have redirected
3382         the loop latch edge.
3383         * cfgloop.c (get_loop_body_in_custom_order): New function.
3384         * cfgloop.h (LOOPS_HAVE_FALLTHRU_PREHEADERS): New enum field.
3385         (CP_FALLTHRU_PREHEADERS): Likewise.
3386         (get_loop_body_in_custom_order): Declare.
3387         * cfgloopmanip.c (has_preds_from_loop): New.
3388         (create_preheader): Honor CP_FALLTHRU_PREHEADERS.
3389         Assert that the preheader edge will be fall thru when it is set.
3390         * common.opt (fsel-sched-bookkeeping, fsel-sched-pipelining,
3391         fsel-sched-pipelining-outer-loops, fsel-sched-renaming,
3392         fsel-sched-substitution, fselective-scheduling): New flags.
3393         * cse.c (hash_rtx_cb): New.
3394         (hash_rtx): Use it.
3395         * dbgcnt.def (sel_sched_cnt, sel_sched_region_cnt,
3396         sel_sched_insn_cnt): New counters.
3397         * final.c (compute_alignments): Export.  Free dominance
3398         info after loop_optimizer_finalize.
3399         * genattr.c (main): Output maximal_insn_latency prototype.
3400         * genautomata.c (output_default_latencies): New.
3401         Factor its code from ...
3402         (output_internal_insn_latency_func): ... here.
3403         (output_internal_maximal_insn_latency_func): New.
3404         (output_maximal_insn_latency_func): New.
3405         * hard-reg-set.h (UHOST_BITS_PER_WIDE_INT): Define unconditionally.
3406         (struct hard_reg_set_iterator): New.
3407         (hard_reg_set_iter_init, hard_reg_set_iter_set,
3408         hard_reg_set_iter_next): New functions.
3409         (EXECUTE_IF_SET_IN_HARD_REG_SET): New macro.
3410         * lists.c (remove_free_INSN_LIST_node,
3411         remove_free_EXPR_LIST_node): New functions.
3412         * loop-init.c (loop_optimizer_init): When
3413         LOOPS_HAVE_FALLTHRU_PREHEADERS, set CP_FALLTHRU_PREHEADERS when
3414         calling create_preheaders.
3415         (loop_optimizer_finalize): Do not verify flow info after reload.
3416         * recog.c (validate_replace_rtx_1): New parameter simplify.
3417         Default it to true.  Update all uses.  Factor out simplifying
3418         code to ...
3419         (simplify_while_replacing): ... this new function.
3420         (validate_replace_rtx_part,
3421         validate_replace_rtx_part_nosimplify): New.
3422         * recog.h (validate_replace_rtx_part,
3423         validate_replace_rtx_part_nosimplify): Declare.
3424         * rtl.c (rtx_equal_p_cb): New.
3425         (rtx_equal_p): Use it.
3426         * rtl.h (rtx_equal_p_cb, hash_rtx_cb): Declare.
3427         (remove_free_INSN_LIST_NODE, remove_free_EXPR_LIST_node,
3428         debug_bb_n_slim, debug_bb_slim,    print_rtl_slim): Likewise.
3429         * vecprim.h: Add a vector type for unsigned int.
3430         * haifa-sched.c: Include vecprim.h and cfgloop.h.
3431         (issue_rate, sched_verbose_param, note_list, dfa_state_size,
3432         ready_try, cycle_issued_insns, spec_info): Make global.
3433         (readyp): Initialize.
3434         (dfa_lookahead): New global variable.
3435         (old_max_uid, old_last_basic_block): Remove.
3436         (h_i_d): Make it a vector.
3437         (INSN_TICK, INTER_TICK, QUEUE_INDEX, INSN_COST): Make them work
3438         through HID macro.
3439         (after_recovery, adding_bb_to_current_region_p):
3440         New variables to handle correct insertion of the recovery code.
3441         (struct ready_list): Move declaration to sched-int.h.
3442         (rgn_n_insns): Removed.
3443         (rtx_vec_t): Move to sched-int.h.
3444         (find_insn_reg_weight): Remove.
3445         (find_insn_reg_weight1): Rename to find_insn_reg_weight.
3446         (haifa_init_h_i_d, haifa_finish_h_i_d):
3447         New functions to initialize / finalize haifa instruction data.
3448         (extend_h_i_d, init_h_i_d): Rewrite.
3449         (unlink_other_notes): Move logic to add_to_note_list.  Handle
3450         selective scheduler.
3451         (ready_lastpos, ready_element, ready_sort, reemit_notes,
3452         find_fallthru_edge): Make global, remove static prototypes.
3453         (max_issue): Make global.  Add privileged_n and state parameters.  Use
3454         them.
3455         (extend_global, extend_all): Removed.
3456         (init_before_recovery): Add new param.  Fix the handling of the case
3457         when we insert a recovery code before the EXIT which has a predecessor
3458         with a fallthrough edge to it.
3459         (create_recovery_block): Make global.  Rename to
3460         sched_create_recovery_block.  Update.
3461         (change_pattern): Rename to sched_change_pattern.  Make global.
3462         (speculate_insn): Rename to sched_speculate_insn.  Make global.
3463         Split haifa-specific functionality into ...
3464         (haifa_change_pattern): New static function.
3465         (sched_extend_bb): New static function.
3466         (sched_init_bbs): New function.
3467         (current_sched_info): Change type to struct haifa_sched_info.
3468         (insn_cost): Adjust for selective scheduling.
3469         (dep_cost_1): New function.  Move logic from ...
3470         (dep_cost): ... here.
3471         (dep_cost): Use dep_cost_1.
3472         (contributes_to_priority_p): Use sched_deps_info instead of
3473         current_sched_info.
3474         (priority): Adjust to work with selective scheduling.  Process the
3475         corner case when all dependencies don't contribute to priority.
3476         (rank_for_schedule): Use ds_weak instead of dep_weak.
3477         (advance_state): New function.  Move logic from ...
3478         (advance_one_cycle): ... here.
3479         (add_to_note_list, concat_note_lists): New functions.
3480         (rm_other_notes): Make static.  Adjust for selective scheduling.
3481         (remove_notes, restore_other_notes): New functions.
3482         (move_insn): Add two arguments.  Update assert.  Don't call
3483         reemit_notes.
3484         (choose_ready): Remove lookahead variable, use dfa_lookahead.
3485         Remove more_issue, max_points.  Move the code to initialize
3486         max_lookahead_tries to max_issue.
3487         (schedule_block): Remove rgn_n_insns1 parameter.  Don't allocate
3488         ready.  Adjust use of move_insn.  Call restore_other_notes.
3489         (luid): Remove.
3490         (sched_init, sched_finish): Move Haifa-specific initialization/
3491         finalization to ...
3492         (haifa_sched_init, haifa_sched_finish): ... respectively.
3493         New functions.
3494         (setup_sched_dump): New function.
3495         (haifa_init_only_bb): New static function.
3496         (haifa_speculate_insn): New static function.
3497         (try_ready): Use haifa_* instead of speculate_insn and change_pattern.
3498         (extend_ready, extend_all): Remove.
3499         (sched_extend_ready_list, sched_finish_ready_list): New functions.
3500         (create_check_block_twin, add_to_speculative_block): Use
3501         haifa_insns_init instead of extend_global.  Update to use new
3502         initialization functions.  Change parameter.  Factor out code from
3503         create_check_block_twin to ...
3504         (sched_create_recovery_edges) ... this new function.
3505         (add_block): Remove.
3506         (sched_scan_info): New.
3507         (extend_bb): Use sched_scan_info.
3508         (init_bb, extend_insn, init_insn, init_insns_in_bb, sched_scan): New
3509         static functions for walking through scheduling region.
3510         (sched_luids): New vector variable to replace uid_to_luid.
3511         (luids_extend_insn): New function.
3512         (sched_max_luid): New variable.
3513         (luids_init_insn): New function.
3514         (sched_init_luids, sched_finish_luids): New functions.
3515         (insn_luid): New debug function.
3516         (sched_extend_target): New function.
3517         (haifa_init_insn): New static function.
3518         (sched_init_only_bb): New hook.
3519         (sched_split_block): New hook.
3520         (sched_split_block_1): New function.
3521         (sched_create_empty_bb): New hook.
3522         (sched_create_empty_bb_1): New function.
3523         (common_sched_info, ready): New global variables.
3524         (current_sched_info_var): Remove.
3525         (move_block_after_check): Use common_sched_info.
3526         (haifa_luid_for_non_insn): New static function.
3527         (init_before_recovery): Use haifa_init_only_bb instead of add_block.
3528         (increase_insn_priority): New.
3529         * modulo-sched.c: (issue_rate): Remove static declaration.
3530         (sms_sched_info): Change type to haifa_sched_info.
3531         (sms_sched_deps_info, sms_common_sched_info): New variables.
3532         (setup_sched_infos): New.
3533         (sms_schedule): Initialize them.  Call haifa_sched_init/finish.
3534         Do not call regstat_free_calls_crossed.
3535         (sms_print_insn): Use const_rtx.
3536         * params.def (PARAM_MAX_PIPELINE_REGION_BLOCKS,
3537         PARAM_MAX_PIPELINE_REGION_INSNS, PARAM_SELSCHED_MAX_LOOKAHEAD,
3538         PARAM_SELSCHED_MAX_SCHED_TIMES, PARAM_SELSCHED_INSNS_TO_RENAME,
3539         PARAM_SCHED_MEM_TRUE_DEP_COST): New.
3540         * sched-deps.c (sched_deps_info): New.  Update all relevant uses of
3541         current_sched_info to use it.
3542         (enum reg_pending_barrier_mode): Move to sched-int.h.
3543         (h_d_i_d): New variable. Initialize to NULL.
3544         ({true, output, anti, spec, forward}_dependency_cache): Initialize
3545         to NULL.
3546         (estimate_dep_weak): Remove static declaration.
3547         (sched_has_condition_p): New function.  Adjust users of
3548         sched_get_condition to use it instead.
3549         (conditions_mutex_p): Add arguments indicating which conditions are
3550         reversed.  Use them.
3551         (sched_get_condition_with_rev): Rename from sched_get_condition.  Add
3552         argument to indicate whether returned condition is reversed.  Do not
3553         generate new rtx when condition should be reversed; indicate it by
3554         setting new argument instead.
3555         (add_dependence_list_and_free): Add deps parameter.
3556         Update all users.  Do not free dependence list when
3557         deps context is readonly.
3558         (add_insn_mem_dependence, flush_pending_lists): Adjust for readonly
3559         contexts.
3560         (remove_from_dependence_list, remove_from_both_dependence_lists): New.
3561         (remove_from_deps): New. Use the above functions.
3562         (cur_insn, can_start_lhs_rhs_p): New static variables.
3563         (add_or_update_back_dep_1): Initialize present_dep_type.
3564         (haifa_start_insn, haifa_finish_insn, haifa_note_reg_set,
3565         haifa_note_reg_clobber, haifa_note_reg_use, haifa_note_mem_dep,
3566         haifa_note_dep): New functions implementing dependence hooks for
3567         the Haifa scheduler.
3568         (note_reg_use, note_reg_set, note_reg_clobber, note_mem_dep,
3569         note_dep): New functions.
3570         (ds_to_dt, extend_deps_reg_info, maybe_extend_reg_info_p): New
3571         functions.
3572         (init_deps): Initialize last_reg_pending_barrier and deps->readonly.
3573         (free_deps): Initialize deps->reg_last.
3574         (sched_analyze_reg, sched_analyze_1, sched_analyze_2,
3575         sched_analyze_insn): Update to use dependency hooks infrastructure
3576         and readonly contexts.
3577         (deps_analyze_insn): New function.  Move part of logic from ...
3578         (sched_analyze): ... here.  Also move some logic to ...
3579         (deps_start_bb): ... here.  New function.
3580         (add_forw_dep, delete_forw_dep): Guard use of INSN_DEP_COUNT with
3581         sel_sched_p.
3582         (sched_deps_init): New function.  Move code from ...
3583         (init_dependency_caches): ... here.  Remove.
3584         (init_deps_data_vector): New.
3585         (sched_deps_finish): New function.  Move code from ...
3586         (free_dependency_caches): ... here.  Remove.
3587         (init_deps_global, finish_deps_global): Adjust for use with
3588         selective scheduling.
3589         (get_dep_weak): Move logic to ...
3590         (get_dep_weak_1): New function.
3591         (ds_merge): Move logic to ...
3592         (ds_merge_1): New static function.
3593         (ds_full_merge, ds_max_merge, ds_get_speculation_types): New functions.
3594         (ds_get_max_dep_weak): New function.
3595         * sched-ebb.c (sched_n_insns): Rename to sched_rgn_n_insns.
3596         (n_insns): Rename to rgn_n_insns.
3597         (debug_ebb_dependencies): New function.
3598         (init_ready_list): Use it.
3599         (begin_schedule_ready): Use sched_init_only_bb.
3600         (ebb_print_insn): Indicate when an insn starts a new cycle.
3601         (contributes_to_priority, compute_jump_reg_dependencies,
3602         add_remove_insn, fix_recovery_cfg): Add ebb_ prefix to function names.
3603         (add_block1): Remove to ebb_add_block.
3604         (ebb_sched_deps_info, ebb_common_sched_info): New variables.
3605         (schedule_ebb): Initialize them.  Use remove_notes instead of
3606         rm_other_notes.  Use haifa_local_init/finish.
3607         (schedule_ebbs): Use haifa_sched_init/finish.
3608         * sched-int.h: Include vecprim.h, remove rtl.h.
3609         (struct ready_list): Delete declaration.
3610         (sched_verbose_param, enum sched_pass_id_t,
3611         bb_vec_t, insn_vec_t, rtx_vec_t): New.
3612         (struct sched_scan_info_def): New structure.
3613         (sched_scan_info, sched_scan, sched_init_bbs,
3614         sched_init_luids, sched_finish_luids, sched_extend_target,
3615         haifa_init_h_i_d, haifa_finish_h_i_d): Declare.
3616         (struct common_sched_info_def): New.
3617         (common_sched_info, haifa_common_sched_info,
3618         sched_emulate_haifa_p): Declare.
3619         (sel_sched_p): New.
3620         (sched_luids): Declare.
3621         (INSN_LUID, LUID_BY_UID, SET_INSN_LUID): Declare.
3622         (sched_max_luid, insn_luid): Declare.
3623         (note_list, remove_notes, restore_other_notes, bb_note): Declare.
3624         (sched_insns_init, sched_insns_finish, xrecalloc, reemit_notes,
3625         print_insn, print_pattern, print_value, haifa_classify_insn,
3626         sel_find_rgns, sel_mark_hard_insn, dfa_state_size, advance_state,
3627         setup_sched_dump, sched_init, sched_finish,
3628         sel_insn_is_speculation_check): Export.
3629         (struct ready_list): Move from haifa-sched.c.
3630         (ready_try, ready, max_issue): Export.
3631         (ebb_compute_jump_reg_dependencies, find_fallthru_edge,
3632         sched_init_only_bb, sched_split_block, sched_split_block_1,
3633         sched_create_empty_bb, sched_create_empty_bb_1,
3634         sched_create_recovery_block, sched_create_recovery_edges): Export.
3635         (enum reg_pending_barrier_mode): Export.
3636         (struct deps): New fields `last_reg_pending_barrier' and `readonly'.
3637         (deps_t): New.
3638         (struct sched_info): Rename to haifa_sched_info.  Use const_rtx for
3639         print_insn field.  Move add_block and fix_recovery_cfg to
3640         common_sched_info_def.  Move compute_jump_reg_dependencies,
3641         use_cselib  ...
3642         (struct sched_deps_info_def): ... this new structure.
3643         (sched_deps_info): Declare.
3644         (struct spec_info_def): Remove weakness_cutoff, add
3645         data_weakness_cutoff and control_weakness_cutoff.
3646         (spec_info): Declare.
3647         (struct _haifa_deps_insn_data): Split from haifa_insn_data.  Add
3648         dep_count field.
3649         (struct haifa_insn_data): Rename to struct _haifa_insn_data.
3650         (haifa_insn_data_def, haifa_insn_data_t): New typedefs.
3651         (current_sched_info): Change type to struct haifa_sched_info.
3652         (haifa_deps_insn_data_def, haifa_deps_insn_data_t): New typedefs.
3653         (h_d_i_d): New variable.
3654         (HDID): New accessor macro.
3655         (h_i_d): Change type to VEC (haifa_insn_data_def, heap) *.
3656         (HID): New accessor macro.  Rewrite h_i_d accessor macros through HID
3657         and HDID.
3658         (IS_SPECULATION_CHECK_P): Update for selective scheduler.
3659         (enum SCHED_FLAGS): Update for selective scheduler.
3660         (enum SPEC_SCHED_FLAGS): New flag SEL_SCHED_SPEC_DONT_CHECK_CONTROL.
3661         (init_dependency_caches, free_dependency_caches): Delete declarations.
3662         (deps_analyze_insn, remove_from_deps, get_dep_weak_1,
3663         estimate_dep_weak, ds_full_merge, ds_max_merge, ds_weak,
3664         ds_get_speculation_types, ds_get_max_dep_weak, sched_deps_init,
3665         sched_deps_finish, haifa_note_reg_set, haifa_note_reg_use,
3666         haifa_note_reg_clobber, maybe_extend_reg_info_p, deps_start_bb,
3667         ds_to_dt): Export.
3668         (rm_other_notes): Delete declaration.
3669         (schedule_block): Remove one argument.
3670         (cycle_issued_insns, issue_rate, dfa_lookahead, ready_sort,
3671         ready_element, ready_lastpos, sched_extend_ready_list,
3672         sched_finish_ready_list, sched_change_pattern, sched_speculate_insn,
3673         concat_note_lists): Export.
3674         (struct region): Move from sched-rgn.h.
3675         (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
3676         RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
3677         BLOCK_TO_BB, CONTAINING_RGN): Export.
3678         (ebb_head, BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB, INSN_BB): Likewise.
3679         (current_nr_blocks, current_blocks, target_bb): Likewise.
3680         (dep_cost_1, sched_is_disabled_for_current_region_p, sched_rgn_init,
3681         sched_rgn_finish, rgn_setup_region, sched_rgn_compute_dependencies,
3682         sched_rgn_local_init, extend_regions,
3683         rgn_make_new_region_out_of_new_block, compute_priorities,
3684         debug_rgn_dependencies, free_rgn_deps, contributes_to_priority,
3685         extend_rgns, deps_join rgn_setup_common_sched_info,
3686         rgn_setup_sched_infos, debug_regions, debug_region, dump_region_dot,
3687         dump_region_dot_file, haifa_sched_init, haifa_sched_finish): Export.
3688         (get_rgn_sched_max_insns_priority, sel_add_to_insn_priority,
3689         increase_insn_priority): Likewise.
3690         * sched-rgn.c: Include sel-sched.h.
3691         (ref_counts): New static variable.  Use it ...
3692         (INSN_REF_COUNT): ... here.  Rewrite and move closer to uses.
3693         (FED_BY_SPEC_LOAD, IS_LOAD_INSN): Rewrite to use HID accessor macro.
3694         (sched_is_disabled_for_current_region_p): Delete static declaration.
3695         (struct region): Move to sched-int.h.
3696         (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
3697         ebb_head): Define and initialize.
3698         (RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
3699         BLOCK_TO_BB, CONTAINING_RGN, debug_regions, extend_regions,
3700         BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB): Move to
3701         sched-int.h.
3702         (find_single_block_region): Add new argument to indicate that EBB
3703         regions should be constructed.
3704         (debug_live): Delete declaration.
3705         (current_nr_blocks, current_blocks, target_bb):
3706         Remove static qualifiers.
3707         (compute_dom_prob_ps, check_live, update_live, set_spec_fed): Delete
3708         declaration.
3709         (init_regions): Delete declaration.
3710         (debug_region, bb_in_region_p, dump_region_dot_file, dump_region_dot,
3711         rgn_estimate_number_of_insns): New.
3712         (too_large): Use estimate_number_of_insns.
3713         (haifa_find_rgns): New. Move the code from ...
3714         (find_rgns): ... here.  Call either sel_find_rgns or haifa_find_rgns.
3715         (free_trg_info): New.
3716         (compute_trg_info): Allocate candidate tables here instead of ...
3717         (init_ready_list): ... here.
3718         (rgn_print_insn): Use const_rtx.
3719         (contributes_to_priority, extend_regions): Delete static declaration.
3720         (add_remove_insn, fix_recovery_cfg): Add rgn_ to function names.
3721         (add_block1): Rename to rgn_add_block.
3722         (debug_rgn_dependencies): Delete static qualifier.
3723         (new_ready): Use sched_deps_info.  Simplify.
3724         (rgn_common_sched_info, rgn_const_sched_deps_info,
3725         rgn_const_sel_sched_deps_info, rgn_sched_deps_info, rgn_sched_info):
3726         New.
3727         (region_sched_info): Rename to rgn_const_sched_info.
3728         (deps_join): New, extracted from ...
3729         (propagate_deps): ... here.
3730         (compute_block_dependences, debug_dependencies): Update for selective
3731         scheduling.
3732         (free_rgn_deps, compute_priorities): New functions.
3733         (sched_rgn_init, sched_rgn_finish, rgn_setup_region,
3734         sched_rgn_compute_dependencies): New functions.
3735         (schedule_region): Use them.
3736         (sched_rgn_local_init, sched_rgn_local_free, sched_rgn_local_finish,
3737         rgn_setup_common_sched_info, rgn_setup_sched_infos):
3738         New functions.
3739         (schedule_insns): Call new functions that were split out.
3740         (rgn_make_new_region_out_of_new_block): New.
3741         (get_rgn_sched_max_insns_priority): New.
3742         (rest_of_handle_sched, rest_of_handle_sched2): Call selective
3743         scheduling when appropriate.
3744         * sched-vis.c: Include insn-attr.h.
3745         (print_value, print_pattern): Make global.
3746         (print_rtl_slim, debug_bb_slim, debug_bb_n_slim): New functions.
3747         * target-def.h (TARGET_SCHED_ADJUST_COST_2,
3748         TARGET_SCHED_ALLOC_SCHED_CONTEXT, TARGET_SCHED_INIT_SCHED_CONTEXT,
3749         TARGET_SCHED_SET_SCHED_CONTEXT, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
3750         TARGET_SCHED_FREE_SCHED_CONTEXT, TARGET_SCHED_GET_INSN_CHECKED_DS,
3751         TARGET_SCHED_GET_INSN_SPEC_DS, TARGET_SCHED_SKIP_RTX_P): New target
3752         hooks.  Initialize them to 0.
3753         (TARGET_SCHED_GEN_CHECK): Rename to TARGET_SCHED_GEN_SPEC_CHECK.
3754         * target.h (struct gcc_target): Add them.  Rename gen_check field to
3755         gen_spec_check.
3756         * flags.h (sel_sched_switch_set): Declare.
3757         * opts.c (sel_sched_switch_set): New variable.
3758         (decode_options): Unset flag_sel_sched_pipelining_outer_loops if
3759         pipelining is disabled from command line.
3760         (common_handle_option): Record whether selective scheduling is
3761         requested from command line.
3762         * doc/invoke.texi: Document new flags and parameters.
3763         * doc/tm.texi: Document new target hooks.
3764         * config/ia64/ia64.c (TARGET_SCHED_GEN_SPEC_CHECK): Define to
3765         ia64_gen_check.
3766         (dfa_state_size): Do not declare locally.
3767         * config/ia64/ia64.opt (msched-ar-data-spec): Default to 0.
3768         * config/rs6000/rs6000.c (rs6000_init_sched_context,
3769         rs6000_alloc_sched_context, rs6000_set_sched_context,
3770         rs6000_free_sched_context): New functions.
3771         (struct _rs6000_sched_context): New.
3772         (rs6000_sched_reorder2): Do not modify INSN_PRIORITY for selective
3773         scheduling.
3774         (rs6000_sched_finish): Do not run for selective scheduling.
3775
3776 2008-08-31  Jan Hubicka  <jh@suse.cz>
3777
3778         * frv.c (frv_rtx_costs): Update forward declaration.
3779         * spu.c (spu_rtx_costs): Likewise.
3780         * pdp11.c: Include df.h
3781         (pdp11_output_function_epilogue): Use df_set_regs_ever_live.
3782         * m68hc11.c (m68hc11_gen_highpart): Fix call of gen_rtx_SUBREG.
3783         (m68hc11_rtx_costs_1): Fix call of rtx_cost.
3784         * iq2000.c (iq2000_address_cost): Add speed argument.
3785         (iq2000_rtx_costs): Likewise.
3786         * mn10300.c (mn10300_address_cost_1): Remove speed argument;
3787         update call of mn10300_address_cost.
3788         * mcore.c: Include df.h
3789         (mcore_rtx_costs): Update prototype.
3790         * score3.c: Include df.h
3791         (score3_rtx_costs): Remove speed argument.
3792         * score7.c: Include df.h
3793         (score7_address_cost): Remove speed argument.
3794         * score-protos.h (score_address_cost): Update prototype.
3795         * score.c: Include df.h
3796         (score_rtx_costs): Update call of costs functions.
3797         * v850.c (v850_rtx_costs): Add bool argument.
3798
3799 2008-08-31  Hans-Peter Nilsson  <hp@axis.com>
3800
3801         * config/cris/cris.c (cris_rtx_costs): Correct call to rtx_costs.
3802
3803 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
3804
3805         * gthr-win32.h (__gthread_setspecific): Use CONST_CAST2.
3806         * config/i386/gthr-win32.c (__gthread_setspecific): Same.
3807
3808 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
3809
3810         * mkmap-flat.awk: Add option pe_dll.
3811         * config/i386/t-cygming (SHLIB_LINK): Support building libgcc_s.
3812         * config/i386/t-cygwin (SHLIB_LC): Add.
3813         * config/i386/t-mingw32 (SHLIB_LC): Add.
3814         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): New.
3815         (SUBTARGET_EXTRA_SPECS): Use SHARED_LIBGCC_UNDEFS_SPEC.
3816         (LINK_SPEC): Support libgcc_s.
3817         (LIBGCC_SPEC): Support libgcc_s.
3818         (LIBGCC_SONAME): New.
3819
3820 2008-08-31  Jan Hubicka  <jh@suse.cz>
3821
3822         * predict.c (maybe_hot_bb_p, maybe_hot_edge_p): Previous commit
3823         mistakely had old version of patch.
3824
3825         * ipa-cp.c (ipcp_need_original_clone_p): Remove.
3826         (ipcp_estimate_growth): New.
3827         (ipcp_insert_stage): Use ipcp_estimate_growth.
3828         * profile.c (branch_prob): When reading failed, do not consider
3829         profile as read.
3830
3831 2008-08-31  Jan Hubicka  <jh@suse.cz>
3832
3833         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Check that
3834         loop is optimized for speed.
3835
3836 2008-08-31  Richard Guenther  <rguenther@suse.de>
3837
3838         PR middle-end/37289
3839         * fold-const.c (fold_binary): Retain conversions in folding
3840         ~A + 1 to -A.
3841
3842 2008-08-31  Jan Hubicka  <jh@suse.cz>
3843
3844         * postreload-gcse.c (eliminate_partially_redundant_loads):
3845         Use optimize_bb_for_size_p.
3846         * predict.c (maybe_hot_frequency_p): Make inline.
3847         (maybe_hot_count_p): Break out from ...
3848         (maybe_hot_bb_p): ... this one.
3849         (maybe_hot_edge_p): Simplify.
3850         * basic-block.h (probably_cold_bb_p): Remove.
3851
3852 2008-08-31  Jakub Jelinek  <jakub@redhat.com>
3853
3854         PR target/37168
3855         * config/rs6000/rs6000-protos.h (const_vector_elt_as_int): Add
3856         prototype.
3857         * config/rs6000/rs6000.c (const_vector_elt_as_int): No longer static.
3858         * config/rs6000/altivec.md (easy_vector_constant_add_self splitter):
3859         Also split V4SFmode.
3860         * config/rs6000/predicates.md (easy_vector_constant_add_self): Handle
3861         vector float modes.
3862
3863 2008-08-31  Jan Hubicka  <jh@suse.cz>
3864
3865         * predict.c (PROB_VERY_LIKELY): Make small enough so things
3866         become cold.
3867         * predict.def (PRED_NORETURN_CALL, PRED_COLD_CALL): Use it.
3868
3869 2008-08-31  Jakub Jelinek  <jakub@redhat.com>
3870
3871         PR debug/37287
3872         * dwarf2out.c (gen_namespace_die): For DECL_EXTERNAL modules don't
3873         add source coords.
3874
3875         * dwarf2out.c (native_encode_initializer): Subtract min_index for
3876         non-range array index.  Handle VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
3877
3878 2008-08-31  Jan Hubicka  <jh@suse.cz>
3879
3880         * sparc.h (BRANCH_COST): Fix macro definition.
3881         * avr.c (avr_operand_rtx_cost): Add speed argument.
3882         (avr_rtx_costs): Update calls of avr_operand_rtx_cost.
3883
3884 2008-08-31  Richard Guenther  <rguenther@suse.de>
3885
3886         * tree-cfg.c (verify_types_in_gimple_assign): Dump mismatched
3887         types instead of operands.  Re-instantiate verifying of
3888         binary expression operands.
3889
3890 2008-08-30  Jan Hubicka  <jh@suse.cz>
3891
3892         * fwprop.c (should_replace_address): Add speed attribute.
3893         (PR_OPTIMIZE_FOR_SPEED): New flag.
3894         (propagate_rtx_1): Use it.
3895         (propagate_rtx): Set it.
3896         (try_fwprop_subst): Update call of rtx_costs.
3897         (forward_propagate_and_simplify): LIkewise.
3898         * hooks.c (hook_int_rtx_bool_0): New
3899         (hook_bool_rtx_int_int_intp_false): Replace by ...
3900         (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
3901         * hooks.h (hook_int_rtx_bool_0): New
3902         (hook_bool_rtx_int_int_intp_false): Replace by ...
3903         (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
3904         * optabs.c (avoid_expensive_constant): UPdate call of rtx_cost.
3905         (prepare_cmp_insn): UPdate call of rtx_cost.
3906         * postreload.c (reload_cse_simplify_set): Update call of rtx_cost.
3907         (reload_cse_simplify_operands): Update call of rtx_cost.
3908         (reload_cse_move2add): call of rtx_cost.
3909         * target.h (struct gcc_target): Update rtx_costs and address_costs.
3910         * rtlanal.c (rtx_cost): Add speed argument.
3911         (address_cost): Add speed argument
3912         (default_address_cost): Likewise.
3913         (insn_rtx_cost): Likewise.
3914         * cfgloopanal.c (seq_cost): Add speed argument.
3915         (target_reg_cost, target_spill_cost): Turn to array.
3916         (init_set_costs): Update for speed.
3917         (estimate_reg_pressure_cost): Add speed argument.
3918         * auto-inc-dec.c (attempt_change): Update call of rtx_cost.
3919         * dojump.c (prefer_and_bit_test): UPdate call of rtx_cost.
3920         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field speed.
3921         (seq_cost): Add speed argument.
3922         (computation_cost): Add speed arugment.
3923         (add_cost, multiply_by_const, get_address_cost): add speed argument.
3924         (force_expr_to_var_cost): Update for profile info.
3925         (force_var_cost): Likewise.
3926         (split_address_cost): Likewise.
3927         (ptr_difference_cost): Likewise.
3928         (difference_cost): Likewise.
3929         (get_computation_cost_at): Likewise.
3930         (determine_iv_cost): Likewise.
3931         (ivopts_global_cost_for_size): Likewise.
3932         (rewrite_use_address): Likewise.
3933         (tree_ssa_iv_optimize_loop): Initialize speed field.
3934         * cse.c (optimize_this_for_speed_p): New static var.
3935         (notreg_cost): Update call of rtx_cost.
3936         (cse_extended_basic_block): set optimize_this_for_speed_p.
3937         * ifcvt.c (cheap_bb_rtx_cost_p): Update call of rtx_cost.
3938         (noce_try_cmove_arith): Likewise.
3939         (noce_try_sign_mask): LIkewise.
3940         * expr.c (compress_float_constant): Update rtx_cost calls.
3941         * tree-ssa-address.c (most_expensive_mult_to_index): Add speed
3942         argument.
3943         (addr_to_parts): Likewise.
3944         (create_mem_ref): Likewise.
3945         * dse.c (find_shift_sequence): Add speed argument.
3946         (replace_read): Update call.
3947         * calls.c (precompute_register_parameters): Update call of rtx_cost.
3948         * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost,
3949         * neg_cost, shift_cost, shiftadd_cost,
3950         shiftsub_cost, mul_cost, sdiv_cost, udiv_cost ,mul_widen_cost,
3951         mul_highpart_cost): Increase dimension.
3952         (init_expmed): Initialize for both size and speed.
3953         (expand_shift): Use profile.
3954         (synth_mult): Use profile.
3955         (choose_mult_variant): Use profile.
3956         (expand_mult): Use profile.
3957         (expand_mult_highpart_optab): Use profile.
3958         (expand_mult_highpart): Use profile.
3959         (expand_smod_pow2): Use profile.
3960         (expand_divmod): Use profile.
3961         * simplify-rtx.c (simplify_binary_operation_1): Update call of
3962         rtx_cost.
3963         * loop-invariant.c (create_new_invariant): Use profile.
3964         (gain_for_invariant): Add speed parameter.
3965         (best_gain_for_invariant): Likewise.
3966         (find_invariants_to_move): Likewise.
3967         (move_single_loop_invariants): Set it.
3968         * target-def.h (TARGET_RTX_COSTS): Use hook.
3969         * rtl.h (rtx_cost, address_cost, insn_rtx_cost): Update prototpe.
3970         (optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
3971         * output.h (default_address_cost): Update prototype.
3972         * combine.c (optimize_this_for_speed_p): New static var.
3973         (combine_validate_cost): Update call of rtx_cost.
3974         (combine_instructions): Set optimize_this_for_speed_p.
3975         (expand_compound_operation): Update call of rtx_cost.
3976         (make_extraction):Update call of rtx_cost.
3977         (force_to_mode):Update call of rtx_cost.
3978         (distribute_and_simplify_rtx):Update call of rtx_cost.
3979         * cfgloop.h (target_reg_cost, target_spill_cost): Turn to array.
3980         (estimate_reg_pressure_cost): Update prototype.
3981         * tree-flow.h (multiply_by_cost, create_mem_ref): Update prototype.
3982         * basic-block.h (optimize_insn_for_size_p, optimize_insn_for_speed_p):
3983         Remove.
3984         * config/alpha/alpha.c (alpha_rtx_costs): Update.
3985         (alpha_rtx_costs): Update.
3986         * config/frv/frv.c (frv_rtx_costs): Update.
3987         * config/s390/s390.c (s390_rtx_costs): Update.
3988         * config/m32c/m32c.c (m32c_memory_move_cost): Update.
3989         (m32c_rtx_costs): Update.
3990         * config/spu/spu.c (TARGET_ADDRESS_COST): Upate.
3991         (spu_rtx_costs): Update.
3992         * config/sparc/sparc.c (sparc_rtx_costs): Update.
3993         * config/m32r/m32r.c (m32r_rtx_costs): Update.
3994         * config/i386/i386.c (:ix86_address_cost): Update.
3995         (ix86_rtx_costs): Update.
3996         * config/sh/sh.c (sh_rtx_costs, sh_address_cost): Update.
3997         * config/pdp11/pdp11.c (pdp11_rtx_costs): Update.
3998         * config/avr/avr.c (avr_rtx_costs, avr_address_cost): Update.
3999         * config/crx/crx.c (crx_address_cost): Update.
4000         * config/xtensa/xtensa.c (xtensa_rtx_costs): Update.
4001         * config/stormy16/stormy16.c
4002         (xstormy16_address_cost, xstormy16_rtx_costs): Update.
4003         * config/m68hc11/m68hc11.c
4004         (m68hc11_address_cost, m68hc11_rtx_costs): Update.
4005         * config/cris/cris.c (cris_rtx_costs, cris_address_cost): Update.
4006         * config/iq2000/iq2000.c (iq2000_rtx_costs, iq2000_address_cost):
4007         Update.
4008         * config/mn10300/mn10300.c (mn10300_address_cost, mn10300_rtx_costs):
4009         Update
4010         * config/ia64/ia64.c (ia64_rtx_costs): Update.
4011         * config/m68k/m68k.c (m68k_rtx_costs): Update.
4012         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update.
4013         * config/arc/arc.c (arc_rtx_costs, arc_address_cost): Update.
4014         * config/mcore/mcore.c (TARGET_ADDRESS_COST): Update.
4015         (mcore_rtx_costs): update.
4016         * config/score/score3.c (score3_rtx_costs): Update.
4017         * config/score/score7.c (score7_rtx_costs): Update.
4018         * config/score/score3.h (score3_rtx_costs):Update.
4019         * config/score/score7.h (score7_rtx_costs): Update.
4020         * config/score/score.c (score_rtx_costs): Update.
4021         * config/arm/arm.c (arm_address_cost): Update.
4022         (arm_rtx_costs_1): Update.
4023         (arm_rtx_costs_1): Update.
4024         (arm_size_rtx_costs): Update.
4025         (arm_size_rtx_costs): Update.
4026         (arm_size_rtx_costs): Update.
4027         (arm_xscale_rtx_costs): Update.
4028         (arm_thumb_address_cost): Update.
4029         * config/pa/pa.c (hppa_address_cost): Update.
4030         * config/mips/mips.c (mips_rtx_costs): Update.
4031         * config/vax/vax.c (vax_address_cost): Update.
4032         * config/h8300/h8300.c (h8300_shift_costs): Update.
4033         (h8300_rtx_costs): Update.
4034         * config/v850/v850.c (TARGET_ADDRESS_COST): Update.
4035         (v850_rtx_costs): Update.
4036         * config/mmix/mmix.c (mmix_rtx_costs, mmix_rtx_costs): Update.
4037         * config/bfin/bfin.c
4038         (bfin_address_cost): Update.
4039         (bfin_rtx_costs): Update.
4040         * stmt.c (lshift_cheap_p): Update.
4041
4042 2008-08-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4043
4044         PR middle-end/36444
4045         * expmed.c (extract_bit_field_1): Check the mode size to make
4046         sure the vector modes have the same size.
4047
4048 2008-08-29  Michael Meissner  <gnu@the-meissners.org>
4049
4050         * dojump.c (top level): Include basic-block.h to declare
4051         optimize_insn_for_speed_p
4052
4053         * Makefile.in (dodump.h): Add $(BASIC_BLOCK_H) dependency.
4054
4055         * opts.h (CL_SAVE): New option class for marking options that are
4056         target specific options usable in the target attribute.
4057         (CL_MIN_OPTION_CLASS): CL_SAVE is now the minimum option.
4058
4059         * opt-functions.awk (switch_flags): Add CL_SAVE flag so backends
4060         can easily find the target specific options that are safe to use
4061         in the attribute or pragma.
4062
4063         * attribs.c (decl_attributes): Change #pragma GCC option to
4064         #pragma GCC target, and attribute((option(...))) to
4065         attribute((target(...))).
4066
4067         * doc/extend.texi (target attribute): Change from option
4068         attribute.  Delete push/pop/reset.
4069         (#pragma GCC target): Change from #pragma GCC option.  Delete
4070         push/pop/reset.
4071         (#pragma GCC push_options): Document new pragma.
4072         (#pragma GCC pop_options): Document new pragma.
4073         (#pragma GCC reset_options): Document new pragma.
4074
4075         * targhooks.c (default_target_option_valid_attribute_p): Add
4076         warning about port not supporting target attributes.
4077         (default_target_option_pragma_parse): New function, warn about
4078         #pragma GCC target not being supported.
4079
4080         * targhooks.h (default_target_option_pragma_parse): Add
4081         declaration.
4082
4083         * tree.h (TI_CURRENT_TARGET_PRAGMA): Rename from
4084         TI_CURRENT_OPTION_PRAGMA.
4085         (current_target_pragma): Rename from current_option_pragma.
4086
4087         * target.h: (struct target_option): Delete booleans for changing
4088         the optimization level on hot/cold functions.  Change signature of
4089         pragma_parse hook to take a second tree.
4090
4091         * c-tree.h (c_builtin_function_ext_scope): Add declaration.
4092
4093         * c-decl.c (c_builtin_function_ext_scope): New function, guarantee
4094         that the declaration is done at global scope.
4095
4096         * langhooks.c (add_builtin_function_common): Move most of the code
4097         from add_builtin_function here, calling the hook passed in.
4098         (add_builtin_function): Call add_builtin_function_common with
4099         standard builtin hook.
4100         (add_builtin_function_ext_scope): New function to add builtins to
4101         global scope.
4102
4103         * langhooks.h (struct lang_hooks): Add builtin_function_ext_scope
4104         hook.
4105         (add_builtin_function_ext_scope): Add declaration.
4106
4107         * c-pragma.c (handle_pragma_target): Rename from
4108         handle_pragma_option, #pragma GCC option is now #pragma GCC
4109         target.  Move warning about port not supporting target options to
4110         default pragma parse hook.  Remove push/pop/reset from this
4111         pragma.
4112         (handle_pragma_optimize): Remove push/pop/reset from this pragma.
4113         (option_stack): Delete static variable.
4114         (optimize_stack): Ditto.
4115         (optons_stack): New stack of saved target and optimization
4116         options.
4117         (handle_pragma_push_options): New function to handle pushing both
4118         target and optimization options.
4119         (handle_pragma_pop_options): New function to handle popping both
4120         target and optimization options.
4121         (handle_pragma_reset_options): New function to handle resetting
4122         both target and optimization options to their initial state.
4123         (init_pragma): Rename handle_pragma_option to
4124         handle_pragma_target.  Add support for push_options, pop_options,
4125         and reset_options pragmas.
4126
4127         * target-def.h (TARGET_OPTION_PRAGMA_PARSE): Change default to
4128         default_target_option_pragma_parse.
4129         (TARGET_OPTION_VALID_ATTRIBUTE_P): Change default to
4130         default_target_option_valid_attribute_p.
4131         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
4132         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
4133         (TARGET_OPTION_HOOKS): Delete the fields for whether to change
4134         optimization level on hot/cold functions.
4135
4136         * tree-inline.c (tree_can_inline_p): Disable suppressing inlining
4137         if the caller and callee have different optimization levels.
4138
4139         * c-common.c (handle_target_attribute): Rename from
4140         handle_option_attribute, attribute((option(...))) is now
4141         attribute((target(...))).  Move warning if the port does not
4142         support target attributes to the default hook.
4143         (handle_hot_attribute): Delete code to change the optimization
4144         level of hot functions.
4145         (handle_cold_attribute): Ditto.
4146
4147         * config/i386/i386-c.c (ix86_pragma_target_parse): Take a second
4148         argument that is the binary tree options to use if there are no
4149         arguments.  Call ix86_valid_target_attribute_tree instead of
4150         ix86_valid_option_attribute_tree.
4151         (ix86_pragma_target_parse): Rename from ix86_pragma_option_parse.
4152         (ix86_register_pragmas): Use ix86_pragma_target_parse instead of
4153         ix86_pragma_option_parse.
4154
4155         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
4156         Rename from ix86_valid_option_attribute_tree.
4157
4158         * config/i386/i386.c (ix86_add_new_builtins): New function to add
4159         new builtins when the ISA changes.
4160         (ix86_valid_target_attribute_tree): Rename from
4161         ix86_valid_option_attribute_tree.  Change callers.  If the
4162         function specified optimization options, use those as the starting
4163         point before setting up the target attributes.  If the
4164         optimization options were changed in the course of setting the
4165         target attributes, record the new optimization options.
4166         (ix86_valid_target_attribute_tree_inner_p): Rename from
4167         ix86_valid_option_attribute_tree_inner_p.  Change callers.  Call
4168         ix86_add_new_builtins if the ISA changed.
4169         (ix86_valid_target_attribute_p): Rename from
4170         ix86_valid_option_attribute_p.  Change callers.
4171         (enum ix86_builtins): Add IX86_BUILTIN_PCMOV to allow both
4172         __builtin_ia32_pcmov and __builtin_ia32_pcmov_v2di to be declared
4173         as delayed builtin functions.
4174         (struct builtin_isa): New structure to record builtin functions
4175         that should be delayed until the ISA for that function is used.
4176         (ix86_builtins_isa): Change from int to struct to track builtin
4177         functions we want to declare at some point.
4178         (def_builtin): If the front end can delay defining the builtin
4179         functions, don't create builtins for ISAs not part of the default
4180         options.
4181         (def_builtin_const): Ditto.
4182         (bdesc_multi_arg): Declare __builtin_ia32_pcmov and
4183         __builtin_ia32_pcmov_v2di to be different builtin functions.
4184         (ix86_expand_builtin): Changes due to ix86_builtins_isa now being
4185         a structure instead of an int.
4186         (TARGET_OPTION_VALID_ATTRIBUTE_P): Use
4187         ix86_valid_target_attribute_p, not ix86_valid_option_attribute_p.
4188         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
4189         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
4190
4191         * config/ia64/ia64.h
4192         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
4193         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
4194
4195         * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE): New
4196         hook, default to being the same as LANG_HOOKS_BUILTIN_FUNCTION.
4197         (LANG_HOOKS_INITIALIZER): Add
4198         LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE hook.
4199
4200 2008-08-30  Kaz Kojima  <kkojima@gcc.gnu.org>
4201
4202         PR target/37270
4203         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Generate
4204         the reload address with the index register for SFmode
4205         access with a displacement.
4206
4207 2008-08-30  Jan Hubicka  <jh@suse.cz>
4208
4209         * optabs.c (expand_abs_nojump): Update BRANCH_COST call.
4210         * fold-cost.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop): Likewise.
4211         * dojump.c (do_jump): Likewise.
4212         * ifcvt.c (MAX_CONDITIONAL_EXECUTE): Likewise.
4213         (note-if_info): Add BRANCH_COST.
4214         (noce_try_store_flag_constants, noce_try_addcc,
4215         noce_try_store_flag_mask, noce_try_cmove_arith, noce_try_cmove_arith,
4216         noce_try_cmove_arith, noce_find_if_block, find_if_case_1,
4217         find_if_case_2): Use computed branch cost.
4218         * expr.h (BRANCH_COST): Update default.
4219         * predict.c (predictable_edge_p): New function.
4220         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, emit_store_flag):
4221         Update BRANCH_COST call.
4222         * basic-block.h (predictable_edge_p): Declare.
4223         * config/alpha/alpha.h (BRANCH_COST): Update.
4224         * config/frv/frv.h (BRANCH_COST): Update.
4225         * config/s390/s390.h (BRANCH_COST): Update.
4226         * config/spu/spu.h (BRANCH_COST): Update.
4227         * config/sparc/sparc.h (BRANCH_COST): Update.
4228         * config/m32r/m32r.h (BRANCH_COST): Update.
4229         * config/i386/i386.h (BRANCH_COST): Update.
4230         * config/i386/i386.c (ix86_expand_int_movcc): Update use of
4231         BRANCH_COST.
4232         * config/sh/sh.h (BRANCH_COST): Update.
4233         * config/pdp11/pdp11.h (BRANCH_COST): Update.
4234         * config/avr/avr.h (BRANCH_COST): Update.
4235         * config/crx/crx.h (BRANCH_COST): Update.
4236         * config/xtensa/xtensa.h (BRANCH_COST): Update.
4237         * config/stormy16/stormy16.h (BRANCH_COST): Update.
4238         * config/m68hc11/m68hc11.h (BRANCH_COST): Update.
4239         * config/iq2000/iq2000.h (BRANCH_COST): Update.
4240         * config/ia64/ia64.h (BRANCH_COST): Update.
4241         * config/rs6000/rs6000.h (BRANCH_COST): Update.
4242         * config/arc/arc.h (BRANCH_COST): Update.
4243         * config/score/score.h (BRANCH_COST): Update.
4244         * config/arm/arm.h (BRANCH_COST): Update.
4245         * config/pa/pa.h (BRANCH_COST): Update.
4246         * config/mips/mips.h (BRANCH_COST): Update.
4247         * config/vax/vax.h (BRANCH_COST): Update.
4248         * config/h8300/h8300.h (BRANCH_COST): Update.
4249         * params.def (PARAM_PREDICTABLE_BRANCH_OUTCOME): New.
4250         * doc/invoke.texi (predictable-branch-cost-outcome): Document.
4251         * doc/tm.texi (BRANCH_COST): Update.
4252
4253 2008-08-30  Samuel Tardieu  <sam@rfc1149.net>
4254
4255         PR target/37283
4256         * config/arm/arm.c (arm_optimization_options): Set
4257         flag_section_anchors to 2 instead of 1 to distinguish it from
4258         -fsection-anchors given explicitely on the command line.
4259
4260 2008-08-30  Richard Sandiford  <rdsandiford@googlemail.com>
4261
4262         * recog.c (split_insn): Consider attaching a REG_EQUAL note to the
4263         final insn of a split.
4264
4265 2008-08-30  Jan Hubicka  <jh@suse.cz>
4266
4267         * postreload-gcse.c (gate_handle_gcse2): Disable for functions
4268         optimized for speed.
4269         * final.c (compute_alignments): Use optimize_bb_for_size_p.
4270         * tree-call-cdce.c (gate_call_cdce): Use optimize_function_for_speed_p.
4271         * opts.c (flag_predictive_commoning_set, flag_unswitch_loops_set,
4272         flag_gcse_after_reload_set): New static vars.
4273         (common_handle_option): Enable those flags for profile-use.
4274         (decode_options): Remove optimize_size flags that are handled
4275         on higher granuality.
4276         * tree-vectorizer.c (vectorize_loops): Use
4277         optimize_loop_nest_for_speed_p.
4278         * tree-ssa-pre.c (do_pre): Use optimize_function_for_speed_p.
4279         * tree-predcom.c (tree_predictive_commoning): Use
4280         optimize_loop_for_speed_p.
4281         * varasm.c (assemble_start_function): Use
4282         optimize_function_for_speed_p.
4283         * bb-reorder.c (rest_of_handle_reorder_blocks): Likewise.
4284         * predict.c (optimize_loop_for_speed_p): Fix walk.
4285
4286 2008-08-30  Jan Hubicka  <jh@suse.cz>
4287
4288         * ipa-inline.c (cgraph_estimate_growth): Discover self recursive
4289         functions.
4290         (cgraph_decide_inlining_of_small_function): Use edge->count to detect
4291         profile presence locally.
4292
4293 2008-08-29  Joseph Myers  <joseph@codesourcery.com>
4294
4295         PR bootstrap/37086
4296         * tree-vrp.c (find_switch_asserts): Make idx volatile for GCC
4297         versions before 4.0.
4298
4299 2008-08-29  Jan Hubicka  <jh@suse.cz>
4300
4301         * tree-inline.c (insert_init_stmt): Insert sequence even when
4302         not in SSA form.
4303
4304 2008-08-29  Jeff Law  <law@redhat.com>
4305
4306         * mn10300.c (mn10300_secondary_reload_class): We need secondary
4307         reloads for AM33-2 if IN is a pseudo with an equivalent memory
4308         location and class is an FP register.
4309
4310 2008-08-29  Jan Hubicka  <jh@suse.cz>
4311
4312         * see.c (see_merge_one_def_extension): Silence used uninitialized
4313         warning.
4314         * matrix-reorg.c (check_allocation_function): Likewise.
4315         * config/i386/driver-i386.c (detect_caches_amd): Likewise.
4316
4317 2008-08-29  Jakub Jelinek  <jakub@redhat.com>
4318
4319         PR c/37261
4320         * fold-const.c (fold_binary): In (X | C1) & C2 canonicalization
4321         compute new & and | in type rather than TREE_TYPE (arg0).
4322
4323         * dwarf2out.c (fortran_common): Update comment.
4324         (gen_variable_die): Swap com_die and var_die variables in Fortran
4325         COMMON block handling code.
4326
4327         * dwarf2out.c (descr_info_loc): Handle VAR_DECL.
4328
4329         * dwarf2out.c (gen_const_die): New function.
4330         (size_of_die, value_format, output_die): Output larger
4331         dw_val_class_vec using DW_FORM_block2 or DW_FORM_block4.
4332         (native_encode_initializer): New function.
4333         (tree_add_const_value_attribute): Call it.
4334         (gen_decl_die, dwarf2out_decl): Handle CONST_DECLs if is_fortran ().
4335
4336         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): For
4337         DECL_BY_REFERENCE decls don't pass TREE_READONLY and
4338         TREE_THIS_VOLATILE to add_type_attribute.
4339
4340         * dwarf2out.c (add_subscript_info): Stop on Fortran TYPE_STRING_FLAG
4341         types.
4342         (gen_array_type_die): Emit DW_TAG_string_type for Fortran character
4343         types.
4344
4345         * dwarf2out.c (loc_by_reference): New function.
4346         (add_location_or_const_value_attribute): Use it.
4347
4348         PR fortran/23057
4349         * dwarf2out.c (gen_variable_die): Represent Fortran COMMON vars
4350         as DW_TAG_variable children of DW_TAG_common_block rather than
4351         DW_TAG_member children.  Put DW_AT_external to individual
4352         DW_TAG_variable DIEs, not to DW_TAG_common_block.
4353
4354         * dwarf2out.c (add_bound_info): If lookup_decl_die failed, try
4355         loc_descriptor_from_tree_1.
4356
4357         PR fortran/29635
4358         PR fortran/23057
4359         * debug.h (struct gcc_debug_hooks): Add NAME and CHILD
4360         arguments to imported_module_or_decl.
4361         (debug_nothing_tree_tree): Removed.
4362         (debug_nothing_tree_tree_tree_bool): New prototype.
4363         * debug.c (do_nothing_debug_hooks): Adjust.
4364         (debug_nothing_tree_tree): Removed.
4365         (debug_nothing_tree_tree_tree_bool): New function.
4366         * dwarf2out.c (is_symbol_die): Handle DW_TAG_module.
4367         (gen_variable_die): Put all common vars for the
4368         same COMMON block under one DW_TAG_common_block.
4369         (declare_in_namespace): Return new context_die, for Fortran
4370         return the module DIE instead of adding extra declarations into
4371         the namespace.
4372         (gen_type_die_with_usage): Adjust declare_in_namespace caller.
4373         (gen_namespace_die): If is_fortran (), generate DW_TAG_module
4374         instead of DW_TAG_namespace.  If DECL_EXTERNAL is set, add
4375         DW_AT_declaration.
4376         (dwarf2out_global_decl): Don't skip Fortran global vars.
4377         (gen_decl_die): Likewise.  Adjust declare_in_namespace callers.
4378         (dwarf2out_imported_module_or_decl): Add NAME and CHILD arguments.
4379         If NAME is non-NULL, add DW_AT_name.  If CHILD is non-NULL, put
4380         DW_TAG_imported_declaration as child of previous
4381         DW_TAG_imported_module.
4382         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Adjust.
4383         * sdbout.c (sdb_debug_hooks): Likewise.
4384         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
4385
4386 2008-08-29  Jan Hubicka  <jh@suse.cz>
4387
4388         * cgraph.c (cgraph_remove_node): Do not remove nested nodes.
4389
4390         * cgraph.h (cgraph_maybe_hot_edge_p): Declare.
4391         * ipa-cp.c (n_cloning_candidates): New static variable.
4392         (ipcp_print_profile_data, ipcp_function_scale_print): Forward declare.
4393         (ipcp_print_all_lattices): Improve debug output.
4394         (ipcp_cloning_candidate_p): New function.
4395         (ipcp_initialize_node_lattices): Use it.
4396         (ipcp_init_stage): Do only analyzis here; prettier debug output.
4397         (ipcp_propagate_stage): Prettier debug output.
4398         (ipcp_iterate_stage): Initialize latices here; prettier debug output.
4399         (ipcp_print_all_structures): Remove.
4400         (ipcp_need_redirect_p): Test !n_cloning_candidates.
4401         (ipcp_insert_stage): Prettier debug output; call
4402         cgraph_remove_unreachable_nodes before propagating.
4403         (pass_ipa_cp): Schedule function removal pass.
4404         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Better
4405         debug output.
4406         (cgraph_maybe_hot_edge_p): Move to ...
4407         * predict.c (cgraph_maybe_hot_edge_p) ... here.
4408         * opts.c (flag_ipa_cp_set, flag_ipa_cp_clone_set): New.
4409         (common_handle_option): Set them; enable ipa-cp when profiling.
4410         * ipa-prop.c (ipa_print_node_jump_functions): Prettier output.
4411         (ipa_print_all_jump_functions): Likewise.
4412         (ipa_print_all_tree_maps, ipa_print_node_param_flags): Remove.
4413         (ipa_print_node_params, ipa_print_all_params): New.
4414         * ipa-prop.h (ipa_print_all_tree_maps, ipa_print_node_param_flags,
4415         ipa_print_all_param_flags): Remove.
4416         (ipa_print_node_params, ipa_print_all_params): New.
4417
4418 2008-08-29  Bob Wilson  <bob.wilson@acm.org>
4419
4420         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Revert
4421         change from 2008-04-03.
4422         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Define.
4423
4424 2008-08-29  Vladimir Makarov  <vmakarov@redhat.com>
4425
4426         PR rtl-opt/37251
4427         * ira-color.c (push_allocnos_to_stack): Truncate
4428         removed_splay_allocno_vec.
4429
4430 2008-08-29  Vladimir Makarov  <vmakarov@redhat.com>
4431
4432         PR rtl-opt/37243
4433         * ira-color (ira_fast_allocation): Don't assign hard registers to
4434         global allocnos.
4435
4436 2008-08-29  Jan Hubicka  <jh@suse.cz>
4437
4438         PR middle-end/37278
4439         * predict.c (optimize_loop_nest_for_speed_p): Do not ICE
4440         for cold internal loops.
4441
4442 2008-08-29  Richard Guenther  <rguenther@suse.de>
4443
4444         * tree-ssa-structalias.c (create_variable_info_for): Do not
4445         create fields for heap vars or vars with a noalias state.
4446         For NO_ALIAS_ANYTHING variables add a self-constraint, not one
4447         from ESCAPED.
4448
4449 2008-08-29  Richard Guenther  <rguenther@suse.de>
4450
4451         * common.opt (ftree-store-ccp): Mark as preserved for
4452         backward compatibility.
4453         * doc/invoke.texi (-ftree-store-ccp): Remove documentation.
4454         * tree-pass.h (pass_store_ccp): Remove.
4455         * tree-ssa-propagate.h (struct prop_value_d): Remove mem_ref field.
4456         (first_vdef): Remove declaration.
4457         (get_value_loaded_by): Likewise.
4458         * tree-ssa-ccp.c (do_store_ccp): Remove.
4459         (get_default_value): Simplify as do_store_ccp is always false
4460         now.  Do not initialize mem_ref.
4461         (set_value_varying): Likewise.
4462         (canonicalize_float_value): Likewise.
4463         (set_lattice_value): Likewise.
4464         (likely_value): Likewise.
4465         (surely_varying_stmt_p): Likewise.
4466         (ccp_initialize): Likewise.
4467         (ccp_lattice_meet): Likewise.
4468         (ccp_visit_phi_node): Likewise.
4469         (ccp_fold): Likewise.
4470         (evaluate_stmt): Likewise.
4471         (visit_assignment): Likewise.
4472         (ccp_visit_stmt): Likewise.
4473         (execute_ssa_ccp): Fold into ...
4474         (do_ssa_ccp): ... this.
4475         (do_ssa_store_ccp): Remove.
4476         (gate_store_ccp): Likewise.
4477         (pass_store_ccp): Likewise.
4478         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not
4479         initialize mem_ref.
4480         * tree-ssa-propagate.c (first_vdef): Remove.
4481         (get_value_loaded_by): Likewise.
4482         (replace_vuses_in): Likewise.
4483         (substitute_and_fold): Do not call replace_vuses_in.
4484         * opts.c (decode_options): Do not set flag_tree_store_ccp.
4485
4486 2008-08-29  Richard Guenther  <rguenther@suse.de>
4487
4488         PR middle-end/37236
4489         * tree-ssa-structalias.c (intra_create_variable_infos): Mark
4490         PARAM_NOALIAS tags with is_heapvar.
4491         * tree-ssa-operands.c (access_can_touch_variable): Offset
4492         based tests do not apply for heapvars.  Fix offset test.
4493
4494 2008-08-29  Jan Hubicka  <jh@suse.cz>
4495
4496         * doc/invoke.texi (-fipa-cp): Enabled by default at -O2/-Os/-O3
4497         (-fipa-cp-clone): Enabled by default at -O3.
4498         * opts.c (decode_options): Enable ipa-cp at -O2, ipa-cp-clone at -O3;
4499         make ipa-cp-clone to imply ipa-cp; disable cloning at -Os.
4500
4501 2008-08-29  Jan Hubicka  <jh@suse.cz>
4502
4503         * tree.c (build_function_type_skip_args,
4504         build_function_decl_skip_args): New functions.
4505         * tree.h (build_function_type_skip_args,
4506         build_function_decl_skip_args): Declare.
4507         * gimple.c (giple_copy_call_skip_args): New function.
4508         (giple_copy_call_skip_args): Declare.
4509
4510         * cgraph.h (cgraph_function_versioning): Add skip_args arugmnet
4511         * ipa-cp.c (ipcp_node_not_modifiable_p): Rename to ...
4512         (ipcp_node_modifiable_p): ... this one; use
4513         tree_versionable_function_p.
4514         (ipcp_create_replace_map): Improve debug output.
4515         (ipcp_need_redirect_p): Return false when not clonning.
4516         (ipcp_update_callgraph): Skip args.
4517         (ipcp_insert_stage): UPdate call of !ipcp_node_modifiable_p;
4518         skip args.
4519         * cgraphunit.c (cgraph_function_versioning): Add skip_args argument.
4520         (save_inline_function_body): Update call of tree_function_versioning.
4521         * ipa-prop.c (ipa_edge_removal_hook): Do not ICE on unanalyzed nodes.
4522         * tree-inline.c (copy_arguments_for_versioning): Add skip_args
4523         argument.
4524         (tree_function_versioning): Likewise.
4525         * tree-inline.h (tree_function_versioning): Update prototype.
4526
4527 2008-08-29  Jan Hubicka  <jh@suse.cz>
4528
4529         * loop-unswitch.c (unswitch_single_loop): Use
4530         optimize_loop_for_speed_p.
4531         * tree-ssa-threadupdate.c (mark_threaded_blocks):
4532         Use optimize_function_for_size_p.
4533         * tracer.c (ignore_bb_p): Use optimize_bb_for_size_p.
4534         * postreload-gcse.c (eliminate_partially_redundant_load):
4535         Use optimize_bb_for_size_p.
4536         * value-prof.c (gimple_divmod_fixed_value_transform,
4537         gimple_mod_pow2_value_transform, gimple_mod_subtract_transform,
4538         gimple_stringops_transform): Use optimize_bb_for_size_p.
4539         * ipa-cp.c (ipcp_insert_stage): Use optimize_function_for_size_p.
4540         * final.c (compute_alignments): Use optimize_function_for_size_p.
4541         * builtins.c (fold_builtin_cabs): Use optimize_function_for_speed_p.
4542         (fold_builtin_strcpy, fold_builtin_fputs): Use
4543         optimize_function_for_size_p.
4544         * fold-const.c (tree_swap_operands_p): Use
4545         optimize_function_for_size_p.
4546         * recog.c (relax_delay_slots): Likewise.
4547         * tree-ssa-math-opts.c (replace_reciprocal):
4548         Use optimize_bb_for_speed_p.
4549         (execute_cse_reciprocals): Use optimize_bb_for_size_p.
4550         * ipa-inline.c (cgraph_decide_recursive_inlining): Use
4551         optimize_function_for_size_p.
4552         (cgraph_decide_inlining_of_small_function): Use
4553         optimize_function_for_size_p.
4554         * global.c (find_reg): Use optimize_function_for_size_p.
4555         * opts.c (decode_options): Do not clear flag_tree_ch,
4556         flag_inline_functions, flag_unswitch_loops, flag_unroll_loops,
4557         flag_unroll_all_loops and flag_prefetch_loop_arrays. Those can
4558         work it out from profile.
4559         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Use
4560         optimize_loop_for_speed_p.
4561         * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
4562         Constify argument.
4563         (optimize_loop_nest_for_size_p, optimize_loop_nest_for_speed_p): New.
4564         * tree-parloops.c (parallelize_loops): Use optimize_loop_for_size_p.
4565         * tree-eh.c (decide_copy_try_finally): Use
4566         optimize_function_for_size_p.
4567         * local-alloc.c (block_alloc): Pass BB pointer.
4568         (find_free_reg): Add BB pointer, use optimize_bb_for_size_p.
4569         * gcse.c (gcse_main): Use optimize_function_for_size_p.
4570         * loop-unroll.c (decide_unrolling_and_peeling):
4571         Use optimize_loop_for_size_p.
4572         (decide_peel_completely): Likewise.
4573         * tree-vect-analyze.c (vect_mark_for_runtime_alias_test): Use
4574         optimize_loop_for_size_p.
4575         (vect_enhance_data_refs_alignment): Likewise.
4576         * tree-ssa-coalesce.c (coalesce_cost): Add optimize_for_size argument.
4577         (coalesce_cost_bb, coalesce_cost_edge, create_outofssa_var_map):
4578         Update call.
4579         * cfgcleanup.c (outgoing_edges_match): Use optimize_bb_for_speed_p.
4580         (try_crossjump_bb): Use optimize_bb_for_size_p.
4581         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
4582         optimize_loop_for_speed_p.
4583         * bb-reorder.c (find_traces_1_round): Likewise.
4584         (copy_bb): Use optimize_bb_for_speed_p.
4585         (duplicate_computed_gotos): Likewise.
4586         * basic-block.h (optimize_loop_nest_for_size_p,
4587         optimize_loop_nest_for_speed_p): New.
4588         * stmt.c (expand_case): Use optimize_insn_for_size_p.
4589
4590 2008-08-29  Tristan Gingold  <gingold@adacore.com>
4591
4592         * gcov.c (main): Call expandargv.
4593
4594 2008-08-29  Jan Hubicka  <jh@suse.cz>
4595
4596         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Check that loop
4597         is not cold.
4598         * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
4599         Constify arguments.
4600         (optimize_loop_for_size_p, optimize_loop_for_speed_p): New functions.
4601         * basic-block.h (optimize_bb_for_size_p, optimize_bb_for_speed_p):
4602         Constify.
4603         (optimize_loop_for_size_p, optimize_loop_for_speed_p): Declare.
4604
4605 2008-08-29  Jan Hubicka  <jh@suse.cz>
4606
4607         * tree-pass.h (pass_strip_predict_hints): Declare.
4608         * predict.c (strip_builtin_expect): Rename to ...
4609         (strip_predict_hints): ... this one; strip also GIMPLE_PREDICT.
4610         (tree_bb_level_predictions): Do not remove GIMPLE_PREDICT.
4611         (tree_estimate_probability): Do not strip builtin_expect.
4612         (pass_strip_predict_hints): New pass.
4613         * tree-inline.c (expand_call_inline): When inlining cold function,
4614         predict it as unlikely.
4615         * passes.c (init_optimization_passes): Add pass_strip_predict_hints.
4616
4617 2008-08-29  Richard Guenther  <rguenther@suse.de>
4618
4619         PR tree-optimization/37207
4620         * tree-vrp.c (extract_range_from_binary_expr): Also try
4621         to constant fold if only one of the operands is a constant.
4622
4623 2008-08-29  Nick Clifton  <nickc@redhat.com>
4624
4625         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Treat LABEL_REFs in
4626         the same way as SYMBOL_REFs.
4627
4628 2008-08-28  Bob Wilson  <bob.wilson@acm.org>
4629
4630         * config/xtensa/xtensa.md (<u>mulsidi3): Use a temporary register.
4631
4632 2008-08-28  Adam Nemet  <anemet@caviumnetworks.com>
4633
4634         * config/mips/mips.h (ISA_HAS_BBIT): New macro.
4635         * config/mips/mips.md (branch_likely): Remove const.  Fix
4636         comment formatting.
4637         (define_delay for type "branch"): Change to only apply for branch
4638         with likely variant.
4639         (define_delay for type "branch" and "branch_likely" no).  New delay
4640         definition.
4641         (equality_op): New code iterator.
4642         (bbv, bbinv): New code attributes.
4643         (*branch_bit<bbv><mode>, *branch_bit<bbv><mode>_inverted): New
4644         patterns.
4645
4646 2008-08-28  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4647             Andrew Pinski  <pinskia@gcc.gnu.org>
4648
4649         PR 18050
4650         * c-common.c (verify_tree): Fix handling of ADDR_EXPR.
4651
4652 2008-08-28  Paolo Carlini  <paolo.carlini@oracle.com>
4653
4654         * gtrh-posix.h: Fix uses of _POSIX_TIMEOUTS per the normal Posix
4655         rule that a symbolic constant must be defined and >= 0 for the
4656         corresponding facility to be present at compile-time.
4657         * gthr-posix.c: Likewise.
4658
4659 2008-08-28  Adam Nemet  <anemet@caviumnetworks.com>
4660
4661         * config/mips/mips.h (ISA_HAS_DMUL3): New macro.
4662         * config/mips/mips.md (D): New mode attribute.
4663         (mulsi3, muldi3): Merge it into ...
4664         (mul<mode>3): ... new template.  Use _mul3 ending for 3-op patterns.
4665         (muldi3_mul3): New pattern.
4666         (mulsi3_mult3): Rename to mulsi3_mul3.
4667
4668 2008-08-28  Jan Hubicka  <jh@suse.cz>
4669
4670         * expmed.c (store_bit_field_1): Be prepared for movstrict expander
4671         to fail.
4672         * predict.c (always_optimize_for_size_p): Rename to ...
4673         (optimize_function_for_size): ... this one; make extern.
4674         (optimize_function_for_speed_p): New.
4675         (optimize_bb_for_size_p, optimize_bb_for_size_p,
4676         optimize_edge_for_size_p,optimize_edge_for_size_p,
4677         optimize_insn_for_size_p, optimize_insn_for_size_p): Update.
4678         * basic-block.h (optimize_function_for_size_p,
4679         optimize_function_for_speed_p): Declare.
4680         * i386.md (optimize_size checks): Replace them by appropriate
4681         predicate.
4682         (standard_80387_constant_p, ix86_compute_frame_layout,
4683         ix86_expand_epilogue, ix86_decompose_address,
4684         print_operand, emit_i387_cw_initialization,
4685         inline_memory_move_cost, ix86_pad_returns,
4686         ix86_reorg): Replace optimize_size checks.
4687
4688 2008-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4689
4690         * rtl.h (simplify_subreg_regno): Declare.
4691         * rtlanal.c (simplify_subreg_regno): New function, split out from...
4692         * simplify-rtx.c (simplify_subreg): ...here.
4693         * reload.c (find_reloads): Use simplify_subreg_regno instead of
4694         subreg_offset_representable_p.
4695
4696 2008-08-28  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4697
4698         PR c/30949
4699         * c-typeck.c (convert_for_assignment): Give a note describing what
4700         was passed and what was expected.
4701
4702 2008-08-28  Joey Ye  <joey.ye@intel.com>
4703
4704         * doc/extend.texi: Document AVX built-in functions.
4705         * doc/invoke.texi: Document -mavx.
4706
4707 2008-08-28  H.J. Lu  <hongjiu.lu@intel.com>
4708             Joey Ye  <joey.ye@intel.com>
4709             Xuepeng Guo  <xuepeng.guo@intel.com>
4710
4711         * config.gcc (extra_headers): Add gmmintrin.h for x86 and x86-64.
4712
4713         * config/i386/cpuid.h (bit_FMA): New.
4714         (bit_XSAVE): Likewise.
4715         (bit_OSXSAVE): Likewise.
4716         (bit_AVX): Likewise.
4717
4718         * config/i386/gas.h (ASM_OUTPUT_OPCODE): Undefine before
4719         define.  Use ASM_OUTPUT_AVX_PREFIX.
4720
4721         * config/i386/gmmintrin.h: New.
4722
4723         * config/i386/i386.c (x86_64_reg_class): Add X86_64_AVX_CLASS.
4724         (OPTION_MASK_ISA_AVX_SET): New.
4725         (OPTION_MASK_ISA_FMA_SET): Likewise.
4726         (OPTION_MASK_ISA_AVX_UNSET): Likewise.
4727         (OPTION_MASK_ISA_FMA_SET): Likewise.
4728         (OPTION_MASK_ISA_SSE4_2_UNSET): Updated.
4729         (ix86_handle_option): Handle OPT_mavx and OPT_mfma.
4730         (pta_flags): Add PTA_AVX and PTA_FMA.
4731         (override_options): Handle PTA_AVX and PTA_FMA.
4732         (init_cumulative_args): Handle warn_avx.
4733         (classify_argument): Return 0 for COImode and OImode.  Return
4734         1 and X86_64_AVX_CLASS for 256bit vector types.
4735         (examine_argument): Handle X86_64_AVX_CLASS.
4736         (construct_container): Likewise.
4737         (function_arg_advance_32): Pass OImode and 256bit vector types
4738         in AVX register.
4739         (function_arg_advance_64): Take a new argument to indicate if a
4740         parameter is named.  Handle 256bit vector types.  Return
4741         immediately for unnamed 256bit vector mode parameters.
4742         (function_arg_advance): Updated.
4743         (function_arg_32): Add comments for TImode.  Handle OImode
4744         and 256bit vector types.
4745         (function_arg_64): Take a new argument to indicate if a
4746         parameter is named.  Handle 256bit vector types.  Return NULL
4747         for unnamed 256bit vector mode parameters.
4748         (function_arg): Updated.
4749         (setup_incoming_varargs_64): Support
4750         AVX encoding for *sse_prologue_save_insn.
4751         (ix86_gimplify_va_arg): Handle 256bit vector mode parameters.
4752         (standard_sse_constant_p): Return -2 for all 1s if SSE2 isn't
4753         enabled.  For all 1s in 256bit vector modes, return 3 if AVX is
4754         enabled, otherwise return -3.
4755         (standard_sse_constant_opcode): Handle AVX and 256bit vector
4756         modes.
4757         (print_reg): Support AVX registers.  Handle 'x' and 't'.
4758         Handle 'd' to duplicate the operand.
4759         (print_operand): Likewise.  Also support AVX vector compare
4760         instructions.
4761         (output_387_binary_op): Support AVX.
4762         (output_fp_compare): Likewise.
4763         (ix86_expand_vector_move_misalign): Likewise.
4764         (ix86_attr_length_vex_default): New.
4765         (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
4766         IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
4767         IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
4768         IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
4769         IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_BLENDPD256,
4770         IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
4771         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DIVPD256,
4772         IX86_BUILTIN_DIVPS256, IX86_BUILTIN_DPPS256,
4773         IX86_BUILTIN_HADDPD256, IX86_BUILTIN_HADDPS256,
4774         IX86_BUILTIN_HSUBPD256, IX86_BUILTIN_HSUBPS256,
4775         IX86_BUILTIN_MAXPD256, IX86_BUILTIN_MAXPS256,
4776         IX86_BUILTIN_MINPD256, IX86_BUILTIN_MINPS256,
4777         IX86_BUILTIN_MULPD256, IX86_BUILTIN_MULPS256,
4778         IX86_BUILTIN_ORPD256, IX86_BUILTIN_ORPS256,
4779         IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
4780         IX86_BUILTIN_SUBPD256, IX86_BUILTIN_SUBPS256,
4781         IX86_BUILTIN_XORPD256, IX86_BUILTIN_XORPS256,
4782         IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
4783         IX86_BUILTIN_CMPPS, IX86_BUILTIN_CMPPD256,
4784         IX86_BUILTIN_CMPPS256, IX86_BUILTIN_CVTDQ2PD256,
4785         IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
4786         IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
4787         IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
4788         IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_EXTRACTF128PD256,
4789         IX86_BUILTIN_EXTRACTF128PS256, IX86_BUILTIN_EXTRACTF128SI256,
4790         IX86_BUILTIN_VZEROALL, IX86_BUILTIN_VZEROUPPER,
4791         IX86_BUILTIN_VZEROUPPER_REX64, IX86_BUILTIN_VPERMILVARPD,
4792         IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
4793         IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_VPERMILPD,
4794         IX86_BUILTIN_VPERMILPS, IX86_BUILTIN_VPERMILPD256,
4795         IX86_BUILTIN_VPERMILPS256, IX86_BUILTIN_VPERMIL2PD,
4796         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256,
4797         IX86_BUILTIN_VPERMIL2PS256, IX86_BUILTIN_VPERM2F128PD256,
4798         IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
4799         IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
4800         IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
4801         IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_VINSERTF128PD256,
4802         IX86_BUILTIN_VINSERTF128PS256, IX86_BUILTIN_VINSERTF128SI256,
4803         IX86_BUILTIN_LOADUPD256, IX86_BUILTIN_LOADUPS256,
4804         IX86_BUILTIN_STOREUPD256, IX86_BUILTIN_STOREUPS256,
4805         IX86_BUILTIN_LDDQU256, IX86_BUILTIN_LOADDQU256,
4806         IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_MASKLOADPD,
4807         IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKSTOREPD,
4808         IX86_BUILTIN_MASKSTOREPS, IX86_BUILTIN_MASKLOADPD256,
4809         IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKSTOREPD256,
4810         IX86_BUILTIN_MASKSTOREPS256, IX86_BUILTIN_MOVSHDUP256,
4811         IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
4812         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
4813         IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
4814         IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
4815         IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
4816         IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
4817         IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
4818         IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
4819         IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
4820         IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
4821         IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
4822         IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
4823         IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
4824         IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
4825         IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
4826         IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
4827         IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
4828         IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256
4829         and IX86_BUILTIN_MOVMSKPS256,
4830         (ix86_special_builtin_type): Add V32QI_FTYPE_PCCHAR,
4831         V8SF_FTYPE_PCV4SF, V8SF_FTYPE_PCFLOAT, V4DF_FTYPE_PCV2DF,
4832         V4DF_FTYPE_PCDOUBLE, V8SF_FTYPE_PCV8SF_V8SF,
4833         V4DF_FTYPE_PCV4DF_V4DF, V4SF_FTYPE_PCV4SF_V4SF,
4834         V2DF_FTYPE_PCV2DF_V2DF, VOID_FTYPE_PCHAR_V32QI,
4835         VOID_FTYPE_PFLOAT_V8SF, VOID_FTYPE_PDOUBLE_V4DF,
4836         VOID_FTYPE_PV8SF_V8SF_V8SF, VOID_FTYPE_PV4DF_V4DF_V4DF,
4837         VOID_FTYPE_PV4SF_V4SF_V4SF and VOID_FTYPE_PV2DF_V2DF_V2DF,
4838         (ix86_builtin_type): Add INT_FTYPE_V8SF_V8SF_PTEST,
4839         INT_FTYPE_V4DI_V4DI_PTEST, INT_FTYPE_V4DF_V4DF_PTEST,
4840         INT_FTYPE_V4SF_V4SF_PTEST, INT_FTYPE_V2DF_V2DF_PTEST,
4841         INT_FTYPE_V8SF, INT_FTYPE_V4DF, V8SI_FTYPE_V8SF, V8SI_FTYPE_V4SI,
4842         V8SF_FTYPE_V8SF, V8SF_FTYPE_V8SI, V8SF_FTYPE_V4SF,
4843         V4SI_FTYPE_V8SI, V4SI_FTYPE_V4DF, V4DF_FTYPE_V4DF,
4844         V4DF_FTYPE_V4SI, V4DF_FTYPE_V4SF, V4DF_FTYPE_V2DF,
4845         V4SF_FTYPE_V4DF, V4SF_FTYPE_V8SF, V2DF_FTYPE_V4DF,
4846         V8SF_FTYPE_V8SF_V8SF, V8SF_FTYPE_V8SF_V8SI,
4847         V4DF_FTYPE_V4DF_V4DF, V4DF_FTYPE_V4DF_V4DI,
4848         V4SF_FTYPE_V4SF_V4SI, V2DF_FTYPE_V2DF_V2DI,
4849         V8SF_FTYPE_V8SF_INT, V4SI_FTYPE_V8SI_INT, V4SF_FTYPE_V8SF_INT,
4850         V2DF_FTYPE_V4DF_INT, V4DF_FTYPE_V4DF_INT,
4851         V8SF_FTYPE_V8SF_V8SF_V8SF, V4DF_FTYPE_V4DF_V4DF_V4DF,
4852         V8SI_FTYPE_V8SI_V8SI_INT, V8SF_FTYPE_V8SF_V8SF_INT,
4853         V4DF_FTYPE_V4DF_V4DF_INT, V4DF_FTYPE_V4DF_V2DF_INT,
4854         V8SF_FTYPE_V8SF_V8SF_V8SI_INT, V4DF_FTYPE_V4DF_V4DF_V4DI_INT,
4855         V4SF_FTYPE_V4SF_V4SF_V4SI_INT and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
4856         (bdesc_special_args): Add IX86_BUILTIN_VZEROALL,
4857         IX86_BUILTIN_VZEROUPPER. IX86_BUILTIN_VZEROUPPER_REX64,
4858         IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
4859         IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
4860         IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_LOADUPD256,
4861         IX86_BUILTIN_LOADUPS256, IX86_BUILTIN_STOREUPD256,
4862         IX86_BUILTIN_STOREUPS256, IX86_BUILTIN_LOADDQU256,
4863         IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_LDDQU256,
4864         IX86_BUILTIN_MASKLOADPD, IX86_BUILTIN_MASKLOADPS,
4865         IX86_BUILTIN_MASKLOADPD256, IX86_BUILTIN_MASKLOADPS256,
4866         IX86_BUILTIN_MASKSTOREPD, IX86_BUILTIN_MASKSTOREPS,
4867         IX86_BUILTIN_MASKSTOREPD256 and IX86_BUILTIN_MASKSTOREPS256.
4868         (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
4869         IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
4870         IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
4871         IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
4872         IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_DIVPD256,
4873         IX86_BUILTIN_DIVPS256, IX86_BUILTIN_HADDPD256,
4874         IX86_BUILTIN_HSUBPS256, IX86_BUILTIN_HSUBPD256,
4875         IX86_BUILTIN_HADDPS256, IX86_BUILTIN_MAXPD256,
4876         IX86_BUILTIN_MAXPS256, IX86_BUILTIN_MINPD256,
4877         IX86_BUILTIN_MINPS256, IX86_BUILTIN_MULPD256,
4878         IX86_BUILTIN_MULPS256, IX86_BUILTIN_ORPD256,
4879         IX86_BUILTIN_ORPS256, IX86_BUILTIN_SUBPD256,
4880         IX86_BUILTIN_SUBPS256, IX86_BUILTIN_XORPD256,
4881         IX86_BUILTIN_XORPS256, IX86_BUILTIN_VPERMILVARPD,
4882         IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
4883         IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_BLENDPD256,
4884         IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
4885         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DPPS256,
4886         IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
4887         IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
4888         IX86_BUILTIN_CMPPS,
4889         IX86_BUILTIN_CMPPD256,IX86_BUILTIN_CMPPS256,
4890         IX86_BUILTIN_EXTRACTF128PD256, IX86_BUILTIN_EXTRACTF128PS256,
4891         IX86_BUILTIN_EXTRACTF128SI256, IX86_BUILTIN_CVTDQ2PD256,
4892         IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
4893         IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
4894         IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
4895         IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_VPERM2F128PD256,
4896         IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
4897         IX86_BUILTIN_VPERMILPD, IX86_BUILTIN_VPERMILPS,
4898         IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
4899         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMILPS,
4900         IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
4901         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
4902         IX86_BUILTIN_VPERMIL2PD256, IX86_BUILTIN_VPERMIL2PS256,
4903         IX86_BUILTIN_VINSERTF128PD256, IX86_BUILTIN_VINSERTF128PS256,
4904         IX86_BUILTIN_VINSERTF128SI256, IX86_BUILTIN_MOVSHDUP256,
4905         IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
4906         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
4907         IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
4908         IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
4909         IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
4910         IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
4911         IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
4912         IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
4913         IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
4914         IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
4915         IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
4916         IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
4917         IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
4918         IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
4919         IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
4920         IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
4921         IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
4922         IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256 and
4923         IX86_BUILTIN_MOVMSKPS256.
4924         (ix86_init_mmx_sse_builtins): Support AVX builtins.
4925         (ix86_expand_args_builtin): Likewise.
4926         (ix86_expand_special_args_builtin): Likewise.
4927         (ix86_hard_regno_mode_ok): Handle AVX modes.
4928         (ix86_expand_vector_init_duplicate): Likewise.
4929         (ix86_expand_vector_init_one_nonzero): Likewise.
4930         (ix86_expand_vector_init_one_var): Likewise.
4931         (ix86_expand_vector_init_concat): Likewise.
4932         (ix86_expand_vector_init_general): Likewise.
4933         (ix86_expand_vector_set): Likewise.
4934         (ix86_vector_mode_supported_p): Likewise.
4935         (x86_extended_reg_mentioned_p): Check INSN_P before using
4936         PATTERN.
4937
4938         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
4939         OPTION_MASK_ISA_AVX and OPTION_MASK_ISA_FMA.
4940
4941         * config/i386/i386.h (TARGET_AVX): New.
4942         (TARGET_FMA): Likewise.
4943         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AVX and TARGET_FMA.
4944         (BIGGEST_ALIGNMENT): Set to 256 for TARGET_AVX.
4945         (VALID_AVX256_REG_MODE): New.
4946         (AVX256_VEC_FLOAT_MODE_P): Likewise.
4947         (AVX_FLOAT_MODE_P): Likewise.
4948         (AVX128_VEC_FLOAT_MODE_P): Likewise.
4949         (AVX256_VEC_FLOAT_MODE_P): Likewise.
4950         (AVX_VEC_FLOAT_MODE_P): Likewise.
4951         (ASM_OUTPUT_AVX_PREFIX): Likewise.
4952         (ASM_OUTPUT_OPCODE): Likewise.
4953         (UNITS_PER_SIMD_WORD): Add a FIXME for 32byte vectorizer
4954         support.
4955         (SSE_REG_MODE_P): Allow 256bit vector modes.
4956         (ix86_args): Add a warn_avx field.
4957
4958         * config/i386/i386.md (UNSPEC_PCMP): New.
4959         (UNSPEC_VPERMIL): Likewise.
4960         (UNSPEC_VPERMIL2): Likewise.
4961         (UNSPEC_VPERMIL2F128): Likewise.
4962         (UNSPEC_MASKLOAD): Likewise.
4963         (UNSPEC_MASKSTORE): Likewise.
4964         (UNSPEC_CAST): Likewise.
4965         (UNSPEC_VTESTP): Likewise.
4966         (UNSPECV_VZEROALL): Likewise.
4967         (UNSPECV_VZEROUPPER): Likewise.
4968         (XMM0_REG): Likewise.
4969         (XMM1_REG): Likewise.
4970         (XMM2_REG): Likewise.
4971         (XMM3_REG): Likewise.
4972         (XMM4_REG): Likewise.
4973         (XMM5_REG): Likewise.
4974         (XMM6_REG): Likewise.
4975         (XMM8_REG): Likewise.
4976         (XMM9_REG): Likewise.
4977         (XMM10_REG): Likewise.
4978         (XMM11_REG): Likewise.
4979         (XMM12_REG): Likewise.
4980         (XMM13_REG): Likewise.
4981         (XMM14_REG): Likewise.
4982         (XMM15_REG): Likewise.
4983         (prefix): Likewise.
4984         (prefix_vex_imm8): Likewise.
4985         (prefix_vex_w): Likewise.
4986         (length_vex): Likewise.
4987         (maxmin): Likewise.
4988         (movoi): Likewise.
4989         (*avx_ashlti3): Likewise.
4990         (*avx_lshrti3): Likewise.
4991         (*avx_setcc<mode>): Likewise.
4992         (*fop_<mode>_comm_mixed_avx): Likewise.
4993         (*fop_<mode>_comm_avx): Likewise.
4994         (*fop_<mode>_1_mixed_avx): Likewise.
4995         (*fop_<mode>_1_avx): Likewise.
4996         (*avx_<code><mode>3): Likewise.
4997         (*avx_ieee_smin<mode>3): Likewise.
4998         (*avx_ieee_smax<mode>3): Likewise.
4999         (mode): Add OI, V8SF and V4DF.
5000         (length): Support VEX prefix.
5001         (*cmpfp_i_mixed): Set prefix attribute.
5002         (*cmpfp_i_sse): Likewise.
5003         (*cmpfp_iu_mixed): Likewise.
5004         (*cmpfp_iu_sse): Likewise.
5005         (*movsi_1): Support AVX.
5006         (*movdi_2): Likewise.
5007         (*movdi_1_rex64): Likewise.
5008         (*movti_internal): Likewise.
5009         (*movti_rex64): Likewise.
5010         (*movsf_1): Likewise.
5011         (*movdf_nointeger): Likewise.
5012         (*movdf_integer_rex64): Likewise.
5013         (*movtf_internal): Likewise.
5014         (zero_extendsidi2_32): Likewise.
5015         (zero_extendsidi2_rex64): Likewise.
5016         (*extendsfdf2_mixed): Likewise.
5017         (*extendsfdf2_sse): Likewise.
5018         (*truncdfsf_fast_mixed): Likewise.
5019         (*truncdfsf_fast_sse): Likewise.
5020         (*truncdfsf_mixed): Likewise.
5021         (fix_trunc<mode>di_sse): Likewise.
5022         (fix_trunc<mode>si_sse): Likewise.
5023         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
5024         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
5025         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
5026         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
5027         (*rcpsf2_sse): Likewise.
5028         (*rsqrtsf2_sse): Likewise.
5029         (*sqrt<mode>2_sse): Likewise.
5030         (sse4_1_round<mode>2): Likewise.
5031         (*sse_prologue_save_insn): Disallow REX prefix for AVX.
5032         Support AVX.  Set length attribute properly for AVX.
5033
5034         * config/i386/i386-modes.def (VECTOR_MODES (INT, 32)): New.
5035         (VECTOR_MODES (FLOAT, 32)): Likewise.
5036         (VECTOR_MODE (INT, DI, 8)): Likewise.
5037         (VECTOR_MODE (INT, HI, 32)): Likewise.
5038         (VECTOR_MODE (INT, QI, 64)): Likewise.
5039         (VECTOR_MODE (FLOAT, DF, 8)): Likewise.
5040         (VECTOR_MODE (FLOAT, SF, 16)): Likewise.
5041         (VECTOR_MODE (INT, DI, 4)): Removed.
5042         (VECTOR_MODE (INT, SI, 8)): Likewise.
5043         (VECTOR_MODE (INT, HI, 16)): Likewise.
5044         (VECTOR_MODE (INT, QI, 32)): Likewise.
5045         (VECTOR_MODE (FLOAT, SF, 8)): Likewise.
5046         (INT_MODE (OI, 32)): Likewise.
5047
5048         * config/i386/i386.opt (mavx): New.
5049         (mfma): Likewise.
5050
5051         * config/i386/i386-protos.h (ix86_attr_length_vex_default): New.
5052
5053         * config/i386/mmx.md (*mov<mode>_internal_rex64): Support AVX.
5054         (*mov<mode>_internal_avx): New.
5055         (*movv2sf_internal_rex64_avx): Likewise.
5056         (*movv2sf_internal_avx): Likewise.
5057
5058         * config/i386/predicates.md (const_4_to_5_operand): New.
5059         (const_6_to_7_operand): Likewise.
5060         (const_8_to_11_operand): Likewise.
5061         (const_12_to_15_operand): Likewise.
5062         (avx_comparison_float_operator): Likewise.
5063
5064         * config/i386/sse.md (AVX256MODEI): New.
5065         (AVX256MODE): Likewise.
5066         (AVXMODEQI): Likewise.
5067         (AVXMODE): Likewise.
5068         (AVX256MODEF2P): Likewise.
5069         (AVX256MODE2P): Likewise.
5070         (AVX256MODE4P): Likewise.
5071         (AVX256MODE8P): Likewise.
5072         (AVXMODEF2P): Likewise.
5073         (AVXMODEF4P): Likewise.
5074         (AVXMODEDCVTDQ2PS): Likewise.
5075         (AVXMODEDCVTPS2DQ): Likewise.
5076         (avxvecmode): Likewise.
5077         (avxvecpsmode): Likewise.
5078         (avxhalfvecmode): Likewise.
5079         (avxscalarmode): Likewise.
5080         (avxcvtvecmode): Likewise.
5081         (avxpermvecmode): Likewise.
5082         (avxmodesuffixf2c): Likewise.
5083         (avxmodesuffixp): Likewise.
5084         (avxmodesuffixs): Likewise.
5085         (avxmodesuffix): Likewise.
5086         (vpermilbits): Likewise.
5087         (pinsrbits): Likewise.
5088         (mov<mode>): Likewise.
5089         (*mov<mode>_internal): Likewise.
5090         (push<mode>1): Likewise.
5091         (movmisalign<mode>): Likewise.
5092         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Likewise.
5093         (avx_movdqu<avxmodesuffix>): Likewise.
5094         (avx_lddqu<avxmodesuffix>): Likewise.
5095         (<plusminus_insn><mode>3): Likewise.
5096         (*avx_<plusminus_insn><mode>3): Likewise.
5097         (*avx_vm<plusminus_insn><mode>3): Likewise.
5098         (mul<mode>3): Likewise.
5099         (*avx_mul<mode>3): Likewise.
5100         (*avx_vmmul<mode>3): Likewise.
5101         (divv8sf3): Likewise.
5102         (divv4df3): Likewise.
5103         (avx_div<mode>3): Likewise.
5104         (*avx_div<mode>3): Likewise.
5105         (*avx_vmdiv<mode>3): Likewise.
5106         (avx_rcpv8sf2): Likewise.
5107         (*avx_vmrcpv4sf2): Likewise.
5108         (sqrtv8sf2): Likewise.
5109         (avx_sqrtv8sf2): Likewise.
5110         (*avx_vmsqrt<mode>2): Likewise.
5111         (rsqrtv8sf2): Likewise.
5112         (avx_rsqrtv8sf2): Likewise.
5113         (*avx_vmrsqrtv4sf2): Likewise.
5114         (<code><mode>3): Likewise.
5115         (*avx_<code><mode>3_finite): Likewise.
5116         (*avx_<code><mode>3): Likewise.
5117         (*avx_vm<code><mode>3): Likewise.
5118         (*avx_ieee_smin<mode>3): Likewise.
5119         (*avx_ieee_smax<mode>3): Likewise.
5120         (avx_addsubv8sf3): Likewise.
5121         (avx_addsubv4df3): Likewise.
5122         (*avx_addsubv4sf3): Likewise.
5123         (*avx_addsubv2df3): Likewise.
5124         (avx_h<plusminus_insn>v4df3): Likewise.
5125         (avx_h<plusminus_insn>v8sf3): Likewise.
5126         (*avx_h<plusminus_insn>v4sf3): Likewise.
5127         (*avx_h<plusminus_insn>v2df3): Likewise.
5128         (avx_cmpp<avxmodesuffixf2c><mode>3): Likewise.
5129         (avx_cmps<ssemodesuffixf2c><mode>3): Likewise.
5130         (*avx_maskcmp<mode>3): Likewise.
5131         (avx_nand<mode>3): Likewise.
5132         (*avx_<code><mode>3): Likewise.
5133         (*avx_nand<mode>3): Likewise.
5134         (*avx_<code><mode>3): Likewise.
5135         (*avx_cvtsi2ss): Likewise.
5136         (*avx_cvtsi2ssq): Likewise.
5137         (*avx_cvtsi2sd): Likewise.
5138         (*avx_cvtsi2sdq): Likewise.
5139         (*avx_cvtsd2ss): Likewise.
5140         (avx_cvtss2sd): Likewise.
5141         (avx_cvtdq2ps<avxmodesuffix>): Likewise.
5142         (avx_cvtps2dq<avxmodesuffix>): Likewise.
5143         (avx_cvttps2dq<avxmodesuffix>): Likewise.
5144         (*avx_cvtsi2sd): Likewise.
5145         (*avx_cvtsi2sdq): Likewise.
5146         (avx_cvtdq2pd256): Likewise.
5147         (avx_cvtpd2dq256): Likewise.
5148         (avx_cvttpd2dq256): Likewise.
5149         (*avx_cvtsd2ss): Likewise.
5150         (*avx_cvtss2sd): Likewise.
5151         (avx_cvtpd2ps256): Likewise.
5152         (avx_cvtps2pd256): Likewise.
5153         (*avx_movhlps): Likewise.
5154         (*avx_movlhps): Likewise.
5155         (avx_unpckhps256): Likewise.
5156         (*avx_unpckhps): Likewise.
5157         (avx_unpcklps256): Likewise.
5158         (*avx_unpcklps): Likewise.
5159         (avx_movshdup256): Likewise.
5160         (avx_movsldup256): Likewise.
5161         (avx_shufps256): Likewise.
5162         (avx_shufps256_1): Likewise.
5163         (*avx_shufps_<mode>): Likewise.
5164         (*avx_loadhps): Likewise.
5165         (*avx_storelps): Likewise.
5166         (*avx_loadlps): Likewise.
5167         (*avx_movss): Likewise.
5168         (*vec_dupv4sf_avx): Likewise.
5169         (*vec_concatv2sf_avx): Likewise.
5170         (*vec_concatv4sf_avx): Likewise.
5171         (*vec_setv4sf_0_avx): Likewise.
5172         (*vec_setv4sf_avx): Likewise.
5173         (*avx_insertps): Likewise.
5174         (avx_vextractf128<mode>): Likewise.
5175         (vec_extract_lo_<mode>): Likewise.
5176         (vec_extract_hi_<mode>): Likewise.
5177         (vec_extract_lo_<mode>): Likewise.
5178         (vec_extract_hi_<mode>): Likewise.
5179         (vec_extract_lo_v16hi): Likewise.
5180         (vec_extract_hi_v16hi): Likewise.
5181         (vec_extract_lo_v32qi): Likewise.
5182         (vec_extract_hi_v32qi): Likewise.
5183         (avx_unpckhpd256): Likewise.
5184         (*avx_unpckhpd): Likewise.
5185         (avx_movddup256): Likewise.
5186         (*avx_movddup): Likewise.
5187         (avx_unpcklpd256): Likewise.
5188         (*avx_unpcklpd): Likewise.
5189         (avx_shufpd256): Likewise.
5190         (avx_shufpd256_1): Likewise.
5191         (*avx_punpckhqdq): Likewise.
5192         (*avx_punpcklqdq): Likewise.
5193         (*avx_shufpd_<mode>): Likewise.
5194         (*avx_storehpd): Likewise.
5195         (*avx_loadhpd): Likewise.
5196         (*avx_loadlpd): Likewise.
5197         (*avx_movsd): Likewise.
5198         (*vec_concatv2df_avx): Likewise.
5199         (*avx_<plusminus_insn><mode>3): Likewise.
5200         (*avx_<plusminus_insn><mode>3): Likewise.
5201         (*avx_mulv8hi3): Likewise.
5202         (*avxv8hi3_highpart): Likewise.
5203         (*avx_umulv8hi3_highpart): Likewise.
5204         (*avx_umulv2siv2di3): Likewise.
5205         (*avx_mulv2siv2di3): Likewise.
5206         (*avx_pmaddwd): Likewise.
5207         (*avx_mulv4si3): Likewise.
5208         (*avx_ashr<mode>3): Likewise.
5209         (*avx_lshr<mode>3): Likewise.
5210         (*avx_ashl<mode>3): Likewise.
5211         (*avx_<code><mode>3): Likewise.
5212         (*avx_eq<mode>3): Likewise.
5213         (*avx_gt<mode>3): Likewise.
5214         (*avx_nand<mode>3): Likewise.
5215         (*avx_nand<mode>3): Likewise.
5216         (*avx_<code><mode>3): Likewise.
5217         (*avx_<code><mode>3): Likewise.
5218         (*avx_packsswb): Likewise.
5219         (*avx_packssdw): Likewise.
5220         (*avx_packuswb): Likewise.
5221         (*avx_punpckhbw): Likewise.
5222         (*avx_punpcklbw): Likewise.
5223         (*avx_punpckhwd): Likewise.
5224         (*avx_punpcklwd): Likewise.
5225         (*avx_punpckhdq): Likewise.
5226         (*avx_punpckldq): Likewise.
5227         (*avx_pinsr<avxmodesuffixs>): Likewise.
5228         (*avx_pinsrq): Likewise.
5229         (*avx_loadld): Likewise.
5230         (*vec_extractv2di_1_rex64_avx): Likewise.
5231         (*vec_extractv2di_1_avx): Likewise.
5232         (*vec_dupv2di_avx): Likewise.
5233         (*vec_concatv2si_avx): Likewise.
5234         (*vec_concatv4si_1_avx): Likewise.
5235         (*vec_concatv2di_avx): Likewise.
5236         (*vec_concatv2di_rex64_avx): Likewise.
5237         (*avx_uavgv16qi3): Likewise.
5238         (*avx_uavgv8hi3): Likewise.
5239         (*avx_psadbw): Likewise.
5240         (avx_movmskp<avxmodesuffixf2c>256): Likewise.
5241         (*avx_phaddwv8hi3): Likewise.
5242         (*avx_phadddv4si3): Likewise.
5243         (*avx_phaddswv8hi3): Likewise.
5244         (*avx_phsubwv8hi3): Likewise.
5245         (*avx_phsubdv4si3): Likewise.
5246         (*avx_phsubswv8hi3): Likewise.
5247         (*avx_pmaddubsw128): Likewise.
5248         (*avx_pmulhrswv8hi3): Likewise.
5249         (*avx_pshufbv16qi3): Likewise.
5250         (*avx_psign<mode>3): Likewise.
5251         (*avx_palignrti): Likewise.
5252         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
5253         (avx_blendvp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
5254         (avx_dpp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
5255         (*avx_mpsadbw): Likewise.
5256         (*avx_packusdw): Likewise.
5257         (*avx_pblendvb): Likewise.
5258         (*avx_pblendw): Likewise.
5259         (avx_vtestp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
5260         (avx_ptest256): Likewise.
5261         (avx_roundp<avxmodesuffixf2c>256): Likewise.
5262         (*avx_rounds<ssemodesuffixf2c>): Likewise.
5263         (*avx_aesenc): Likewise.
5264         (*avx_aesenclast): Likewise.
5265         (*avx_aesdec): Likewise.
5266         (*avx_aesdeclast): Likewise.
5267         (avx_vzeroupper): Likewise.
5268         (avx_vzeroupper_rex64): Likewise.
5269         (avx_vpermil<mode>): Likewise.
5270         (avx_vpermilvar<mode>3): Likewise.
5271         (avx_vpermil2<mode>3): Likewise.
5272         (avx_vperm2f128<mode>3): Likewise.
5273         (avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>): Likewise.
5274         (avx_vbroadcastss256): Likewise.
5275         (avx_vbroadcastf128_p<avxmodesuffixf2c>256): Likewise.
5276         (avx_vinsertf128<mode>): Likewise.
5277         (vec_set_lo_<mode>): Likewise.
5278         (vec_set_hi_<mode>): Likewise.
5279         (vec_set_lo_<mode>): Likewise.
5280         (vec_set_hi_<mode>): Likewise.
5281         (vec_set_lo_v16hi): Likewise.
5282         (vec_set_hi_v16hi): Likewise.
5283         (vec_set_lo_v32qi): Likewise.
5284         (vec_set_hi_v32qi): Likewise.
5285         (avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
5286         (avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>): Likewise.
5287         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
5288         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Likewise.
5289         (vec_init<mode>): Likewise.
5290         (*vec_concat<mode>_avx): Likewise.
5291         (blendbits): Support V8SF and V4DF.
5292         (sse2_movq128): Support AVX.
5293         (<sse>_movnt<mode>): Likewise.
5294         (sse2_movntv2di): Likewise.
5295         (sse_rcpv4sf2): Likewise.
5296         (sse_sqrtv4sf2): Likewise.
5297         (sse_rsqrtv4sf2): Likewise.
5298         (<sse>_comi): Likewise.
5299         (<sse>_ucomi): Likewise.
5300         (sse_cvtss2si): Likewise.
5301         (sse_cvtss2si_2): Likewise.
5302         (sse_cvtss2siq): Likewise.
5303         (sse_cvtss2siq_2): Likewise.
5304         (sse_cvttss2si): Likewise.
5305         (sse_cvttss2siq): Likewise.
5306         (sse2_cvtsd2si): Likewise.
5307         (sse2_cvtsd2si_2): Likewise.
5308         (sse2_cvtsd2siq): Likewise.
5309         (sse2_cvtsd2siq_2): Likewise.
5310         (sse2_cvttsd2si): Likewise.
5311         (sse2_cvttsd2siq): Likewise.
5312         (sse2_cvtdq2pd): Likewise.
5313         (*sse2_cvtpd2dq): Likewise.
5314         (*sse2_cvttpd2dq): Likewise.
5315         (*sse2_cvtpd2ps): Likewise.
5316         (sse2_cvtps2pd): Likewise.
5317         (sse3_movshdup): Likewise.
5318         (sse3_movsldup): Likewise.
5319         (sse_storehps): Likewise.
5320         (*sse4_1_extractps): Likewise.
5321         (sse2_storelpd): Likewise.
5322         (vec_dupv2df_sse3): Likewise.
5323         (*vec_concatv2df_sse3): Likewise.
5324         (*sse4_1_pextrb): Likewise.
5325         (*sse4_1_pextrb_memory): Likewise.
5326         (*sse2_pextrw): Likewise.
5327         (*sse4_1_pextrw_memory): Likewise.
5328         (*sse4_1_pextrd): Likewise.
5329         (*sse4_1_pextrq): Likewise.
5330         (sse2_pshufd_1): Likewise.
5331         (sse2_pshuflw_1): Likewise.
5332         (sse2_pshufhw_1): Likewise.
5333         (*sse2_storeq_rex64): Likewise.
5334         (*vec_dupv4si): Likewise.
5335         (<sse>_movmskp<ssemodesuffixf2c>): Likewise.
5336         (sse2_pmovmskb): Likewise.
5337         (*sse2_maskmovdqu): Likewise.
5338         (*sse2_maskmovdqu_rex64): Likewise.
5339         (sse_ldmxcsr): Likewise.
5340         (sse_stmxcsr): Likewise.
5341         (abs<mode>2): Likewise.
5342         (sse4_1_movntdqa): Likewise.
5343         (sse4_1_phminposuw): Likewise.
5344         (sse4_1_extendv8qiv8hi2): Likewise.
5345         (*sse4_1_extendv8qiv8hi2): Likewise.
5346         (sse4_1_extendv4qiv4si2): Likewise.
5347         (*sse4_1_extendv4qiv4si2): Likewise.
5348         (sse4_1_extendv2qiv2di2): Likewise.
5349         (*sse4_1_extendv2qiv2di2): Likewise.
5350         (sse4_1_extendv4hiv4si2): Likewise.
5351         (*sse4_1_extendv4hiv4si2): Likewise.
5352         (sse4_1_extendv2hiv2di2): Likewise.
5353         (*sse4_1_extendv2hiv2di2): Likewise.
5354         (sse4_1_extendv2siv2di2): Likewise.
5355         (*sse4_1_extendv2siv2di2): Likewise.
5356         (sse4_1_zero_extendv8qiv8hi2): Likewise.
5357         (*sse4_1_zero_extendv8qiv8hi2): Likewise.
5358         (sse4_1_zero_extendv4qiv4si2): Likewise.
5359         (*sse4_1_zero_extendv4qiv4si2): Likewise.
5360         (sse4_1_zero_extendv2qiv2di2): Likewise.
5361         (*sse4_1_zero_extendv2qiv2di2): Likewise.
5362         (sse4_1_zero_extendv4hiv4si2): Likewise.
5363         (*sse4_1_zero_extendv4hiv4si2): Likewise.
5364         (sse4_1_zero_extendv2hiv2di2): Likewise.
5365         (*sse4_1_zero_extendv2hiv2di2): Likewise.
5366         (sse4_1_zero_extendv2siv2di2): Likewise.
5367         (*sse4_1_zero_extendv2siv2di2): Likewise.
5368         (sse4_1_ptest): Likewise.
5369         (sse4_1_roundp<ssemodesuffixf2c>): Likewise.
5370         (sse4_2_pcmpestri): Likewise.
5371         (sse4_2_pcmpestrm): Likewise.
5372         (sse4_2_pcmpistri): Likewise.
5373         (sse4_2_pcmpistrm): Likewise.
5374         (aesimc): Likewise.
5375         (aeskeygenassist): Likewise.
5376
5377 2008-08-28  Uros Bizjak  <ubizjak@gmail.com>
5378
5379         * config/i386/predicates.md (vzeroall_operation): New.
5380
5381         * config/i386/sse.md (avx_vzeroall): New.
5382         (*avx_vzeroall): Likewise.
5383
5384 2008-08-28  Paul Brook  <paul@codesourcery.com>
5385             Mark Shinwell  <shinwell@codesourcery.com>
5386             Richard Earnshaw  <richard.earnshaw@arm.com>
5387
5388         * config/arm/arm.c (TARGET_MAX_ANCHOR_OFFSET): New.
5389         (TARGET_MIN_ANCHOR_OFFSET): New.
5390         (arm_override_options): Set correct anchor ranges for Thumb-1
5391         and Thumb-2 if required.
5392         (legitimize_pic_address): Handle case involving a TLS symbol
5393         reference with an addend.
5394         (arm_optimization_options): Enable section anchors at -O1 and
5395         above.
5396         * config/arm/arm.h (OPTIMIZATION_OPTIONS): New.
5397         * config/arm/arm-protos.h (arm_optimization_options): New.
5398
5399 2008-08-28  Nick Clifton  <nickc@redhat.com>
5400
5401         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Define.
5402         * config/stormy16/stormy16.md (zero_extendqihi2): Fix length
5403         attribute.
5404
5405         * config/v850/v850.h (IRA_COVER_CLASSES): Define.
5406         * config/v850/v850.md (return): Remove frame size restriction.
5407
5408         * config/mcore/mcore.h (IRA_COVER_CLASSES): Define.
5409
5410         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Define.
5411
5412         * config/fr30/fr30.h (IRA_COVER_CLASSES): Define.
5413
5414         * config/m32r/m32r.h (IRA_COVER_CLASSES): Define.
5415
5416 2008-08-28  Paul Brook  <paul@codesourcery.com>
5417
5418         * config/arm/vfp11.md: Update license notice.
5419         * config/arm/cortex-r4.md: Ditto.
5420
5421 2008-08-28  Richard Guenther  <rguenther@suse.de>
5422
5423         PR tree-optimization/37207
5424         * tree-ssa-ifcombine.c (recognize_single_bit_test): Fix
5425         tuplification bug.
5426
5427 2008-08-28  Dodji Seketeli  <dodji@redhat.com>
5428
5429         PR c++/36741
5430         * tree.c (int_fits_type_p): Don't forget unsigned integers
5431           of type sizetype which higher end word equals -1.
5432
5433 2008-08-28  Ira Rosen  <irar@il.ibm.com>
5434
5435         * target.h (struct vectorize): Add new target builtin.
5436         * tree-vectorizer.c (destroy_loop_vec_info): Call
5437         vect_free_slp_instance instead of vect_free_slp_node.
5438         * tree-vectorizer.h (enum slp_load_perm_type): New.
5439         (struct _slp_instance): Add new fields.
5440         (SLP_INSTANCE_LOAD_PERMUTATION): New.
5441         (SLP_INSTANCE_LOADS): New.
5442         (vect_free_slp_tree): Remove.
5443         (vect_free_slp_instance): Declare.
5444         (SLP_TREE_LOADS_PERM_TYPE, TARG_VEC_PERMUTE_COST): New.
5445         (vectorizable_load): Add argument.
5446         (vect_transform_slp_perm_load): New.
5447         * tree-vect-analyze.c (vect_analyze_operations): Add an argument to
5448         vectorizable_load.
5449         (vect_get_place_in_interleaving_chain): New function.
5450         (vect_free_slp_tree): Make static.
5451         (vect_free_slp_instance): New function.
5452         (vect_build_slp_tree): Add new arguments. Allow load permutations and
5453         collect the load location in the interleaving chain.
5454         (vect_supported_slp_permutation_p): New function.
5455         (vect_supported_load_permutation_p): Likewise.
5456         (vect_analyze_slp_instance): In case of loads permutation, call
5457         vect_supported_load_permutation_p to check that the permutation is
5458         supported.
5459         * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM): New.
5460         * tree-vect-transform.c (vect_transform_stmt): Add new argument.
5461         (vect_create_mask_and_perm): New function.
5462         (vect_get_mask_element, vect_transform_slp_perm_load): Likewise.
5463         (vectorizable_load): Add an argument. Don't keep the created vectors
5464         statements in the node if permutation is required. Call
5465         vect_transform_slp_perm_load to generate the permutation.
5466         (vect_transform_stmt): Add new argument. Call vectorizable_load with
5467         additional argument.
5468         (vect_schedule_slp_instance): In case of loads permutation, allocate
5469         vectorized statements structure for all the related SLP nodes. Call
5470         vect_transform_stmt with addditional argument.
5471         (vect_transform_loop): Call vect_transform_stmt with correct arguments.
5472         * config/spu/spu.c (spu_builtin_vec_perm): New.
5473         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
5474         * config/spu/spu.h (TARG_VEC_PERMUTE_COS): Define.
5475         * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): New.
5476         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
5477
5478 2008-08-28  Chris Fairles  <chris.fairles@gmail.com>
5479
5480         * gthr-posix.h (__gthread_create,  __gthread_join, __gthread_detach,
5481         __gthread_mutex_timed_lock, __gthread_recursive_mutex_timed_lock,
5482         __gthread_cond_signal, __gthread_cond_timedwait,
5483         __gthread_cond_timedwait_recursive): New functions.
5484         * gthr-posix.c (pthread_mutex_timedlock, pthread_cond_timedwait):
5485         Likewise.
5486         * gthr.h: Comment on defining __GTHREADS_CXX0X macro in conforming
5487         thread interfaces.
5488
5489 2008-08-28  Richard Guenther  <rguenther@suse.de>
5490
5491         PR middle-end/37005
5492         * fold-const.c (maybe_canonicalize_comparison_1): Require
5493         undefined overflow only for canonicalizing A +- CST cmp CST.
5494         Make sure to not generate new constants that are not inside
5495         their TYPE_MIN/MAX_VALUE range.
5496         (maybe_canonicalize_comparison): Remove undefined overflow
5497         checking from here.
5498         (fold_binary): Remove now duplicate folding.
5499
5500 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
5501
5502         * c-typeck.c (convert_for_assignment): Adjust WARN_FOR_ASSIGNMENT
5503         use not updated in the last change.
5504
5505 2008-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
5506
5507         * config/sh/sh.h (REG_CLASS_CONTENTS): Drop fr32 from FPUL_REGS.
5508         (IRA_COVER_CLASSES): Add FPUL_REGS.
5509
5510 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5511
5512         PR 37217
5513         * c-common.c (conversion_warning): Check for null operands.
5514
5515 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5516
5517         PR c/31673
5518         * c-decl.c (check_for_loop_decls): Improve error message. Give
5519         hint.
5520
5521 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5522
5523         PR c/37186
5524         * c-typeck.c (WARN_FOR_ASSIGNMENT): Add OPT parameter.
5525         (convert_for_assignment): Pass corrent OPT_W* parameter to
5526         WARN_FOR_ASSIGNMENT.
5527
5528 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
5529
5530         PR c++/35321
5531         * c-common.c (fold_offsetof_1): Handle TARGET_EXPR like CALL_EXPR.
5532
5533 2008-08-27  Paul Brook  <paul@codesourcery.com>
5534
5535         * config.gcc: Loosen checks for arm uclinux eabi targets.
5536
5537 2008-08-27  Paul Brook  <paul@codesourcery.com>
5538
5539         * config/arm/t-arm-coff (LIB1ASMFUNCS): Add missing undescrore on
5540         _clzsi2.
5541         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
5542
5543 2008-08-26  Douglas Gregor  <doug.gregor@gmail.com>
5544
5545         * c-common.c (do_switch_warnings): Look through the CONST_DECLs in
5546         the enumerators of an ENUMERAL_TYPE.
5547         * dbxout.c (dbxout_type): Ditto.
5548
5549 2008-08-26  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5550
5551         PR rtl-opt/37219
5552         * fwprop.c (fwprop): Check that the loop_father is the outer loop.
5553         (fwprop_addr): Check that the loop_father is not the outer loop.
5554
5555 2008-08-26  Paul Brook  <paul@codesourcery.com>
5556
5557         * config/arm/vfp.md: Document fmul{s,d} and fmac{s,d} types.
5558         Remove documentation entry for fmul type.
5559         Use fmuls to annotate single-precision multiplication patterns,
5560         fmuld to annotate double-precision multiplication patterns,
5561         fmacs to annotate single-precision multiply-accumulate patterns
5562         and fmacd to annotate double-precision multiply-accumulate patterns.
5563         * config/arm/vfp11.md: Update reservations accordingly.
5564         * config/arm/arm.md: Note that certain values of the "type"
5565         attribute are documented in vfp.md.
5566         * config/arm/arm1020e.md: Remove out of date duplicate comment.
5567         (v10_cvt): Use new fmul types.
5568
5569 2008-08-26  Paul Brook  <paul@codesourcery.com>
5570
5571         * config/arm/vfp.md: Move pipeline description for VFP11 to...
5572         * config/arm/vfp11.md: ...here.  New.
5573         * config/arm/arm.md: Include vfp11.md.
5574
5575 2008-08-26  Hans-Peter Nilsson  <hp@axis.com>
5576
5577         * opts.c (decode_options) [!IRA_COVER_CLASSES]: Add missing
5578         parameter to inform call.
5579
5580 2008-08-26  Jeff Law  <law@redhat.com>
5581
5582         * mn10300.md (movqi, movhi): Split i->d*a case into two cases to
5583         avoid the possibility of getting DATA_OR_ADDRESS_REGS as the
5584         preferred class when copying a constant into a partial word register.
5585
5586 2008-08-26  Ben Elliston  <bje@au.ibm.com>
5587
5588         * rtlanal.c: Fix uses of "it's" with "its" where appropriate.
5589         * cp/typeck.c: Likewise.
5590         * cp/tree.c: Likewise.
5591         * gimple-low.c: Likewise.
5592         * jump.c: Likewise.
5593
5594 2008-08-26  Vladimir Makarov  <vmakarov@redhat.com>
5595
5596         * ira-build.c, ira-color.c, ira-costs.c, ira.h, ira-lives.c,
5597         ira.c, ira-conflicts.c, ira-emit.c, ira-int.h: New files.
5598
5599         * doc/passes.texi: Describe IRA.
5600
5601         * doc/tm.texi (IRA_COVER_CLASSES,
5602         IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Describe the new macros.
5603
5604         * doc/invoke.texi (ira-max-loops-num): Describe the new parameter.
5605         (-fira, -fira-algorithm, -fira-coalesce, -fno-ira-move-spills,
5606         -fira-propagate-cost, -fno-ira-share-save-slots,
5607         -fno-ira-share-spill-slots, -fira-verbose): Describe new options.
5608
5609         * flags.h (ira_algorithm): New enumeration.
5610         (flag_ira_algorithm, flag_ira_verbose): New external variable
5611         declarations.
5612
5613         * postreload.c (gate_handle_postreload): Don't do post reload
5614         optimizations unless the reload is completed.
5615
5616         * reload.c (push_reload, find_dummy_reload): Use DF_LR_OUT for
5617         IRA.
5618
5619         * tree-pass.h (pass_ira): New external variable declaration.
5620
5621         * reload.h: Add 2008 to the Copyright.
5622
5623         * cfgloopanal.c: Include params.h.
5624         (estimate_reg_pressure_cost): Decrease cost for IRA optimization
5625         mode.
5626
5627         * params.h (IRA_MAX_LOOPS_NUM): New macro.
5628
5629         * toplev.c (ira.h): New include.
5630         (flag_ira_algorithm, flag_ira_verbose): New external variables.
5631         (backend_init_target): Call ira_init.
5632         (backend_init): Call ira_init_once.
5633         (finalize): Call finish_ira_once.
5634
5635         * toplev.h (flag_ira, flag_ira_coalesce, flag_ira_move_spills,
5636         flag_ira_share_save_slots, flag_ira_share_spill_slots): New
5637         external variables.
5638
5639         * regs.h (contains_reg_of_mode, move_cost, may_move_in_cost,
5640         may_move_out_cost): New external variable declarations.
5641         (move_table): New typedef.
5642
5643         * caller-save.c: Include headers output.h and ira.h.
5644         (no_caller_save_reg_set): New global variable.
5645         (save_slots_num, save_slots): New variables.
5646         (reg_save_code, reg_restore_code, add_stored_regs): Add
5647         prototypes.
5648         (init_caller_save): Set up no_caller_save_reg_set.
5649         (init_save_areas): Reset save_slots_num.
5650         (saved_hard_reg): New structure.
5651         (hard_reg_map, saved_regs_num, all_saved_regs): New variables.
5652         (initiate_saved_hard_regs, new_saved_hard_reg,
5653         finish_saved_hard_regs, saved_hard_reg_compare_func): New
5654         functions.
5655         (setup_save_areas): Add code for sharing stack slots.
5656         (all_blocks): New variable.
5657         (save_call_clobbered_regs): Process pseudo-register too.
5658         (mark_set_regs): Process pseudo-register too.
5659         (insert_one_insn): Put the insn after bb note in a empty basic
5660         block.  Add insn check.
5661
5662         * global.c (eliminable_regset): Make it external.
5663         (mark_elimination): Use DF_LR_IN for IRA.
5664         (pseudo_for_reload_consideration_p): New.
5665         (build_insn_chain): Make it external.  Don't ignore spilled
5666         pseudos for IRA.  Use pseudo_for_reload_consideration_p.
5667         (gate_handle_global_alloc): New function.
5668         (pass_global_alloc): Add the gate function.
5669
5670         * opts.c (decode_options): Set up flag_ira.  Print the warning for
5671         -fira.
5672         (common_handle_option): Process -fira-algorithm and -fira-verbose.
5673
5674         * timevar.def (TV_IRA, TV_RELOAD): New passes.
5675
5676         * regmove.c (regmove_optimize): Don't do replacement of output for
5677         IRA.
5678
5679         * hard-reg-set.h (no_caller_save_reg_set, reg_class_subclasses):
5680         New external variable declarations.
5681
5682         * local-alloc.c (update_equiv_regs): Make it external.  Return
5683         true if jump label rebuilding should be done.  Rescan new_insn for
5684         notes.
5685         (gate_handle_local_alloc): New function.
5686         (pass_local_alloc): Add the gate function.
5687
5688         * alias.c (value_addr_p, stack_addr_p): New functions.
5689         (nonoverlapping_memrefs_p): Use them for IRA.
5690
5691         * common.opt (fira, fira-algorithm, fira-coalesce,
5692         fira-move-spills, fira-share-save-slots, fira-share-spill-slots,
5693         fira-verbose): New options.
5694
5695         * regclass.c (reg_class_subclasses, contains_reg_of_mode,
5696         move_cost, may_move_in_cost, may_move_out_cost): Make the
5697         variables external.
5698         (move_table): Remove typedef.
5699         (init_move_cost): Make it external.
5700         (allocate_reg_info, resize_reg_info, setup_reg_classes): New
5701         functions.
5702
5703         * rtl.h (init_move_cost, allocate_reg_info, resize_reg_info,
5704         setup_reg_classes): New function prototypes.
5705         (eliminable_regset): New external variable declaration.
5706         (build_insn_chain, update_equiv_regs): New function prototypes.
5707
5708         * Makefile.in (IRA_INT_H): New definition.
5709         (OBJS-common): Add ira.o, ira-build.o, ira-costs.o,
5710         ira-conflicts.o, ira-color.o, ira-emit.o, and ira-lives.o.
5711         (reload1.o, toplev.o): Add dependence on ira.h.
5712         (cfgloopanal.o): Add PARAMS_H.
5713         (caller-save.o): Add dependence on output.h and ira.h.
5714         (ira.o, ira-build.o, ira-costs.o, ira-conflicts.o, ira-color.o,
5715         ira-emit.o, ira-lives.o): New entries.
5716
5717         * passes.c (pass_ira): New pass.
5718
5719         * params.def (PARAM_IRA_MAX_LOOPS_NUM): New parameter.
5720
5721         * reload1.c (ira.h): Include the header.
5722         (changed_allocation_pseudos): New bitmap.
5723         (init_reload): Initiate the bitmap.
5724         (compute_use_by_pseudos): Permits spilled registers in FROM.
5725         (temp_pseudo_reg_arr): New variable.
5726         (reload): Allocate and free temp_pseudo_reg_arr.  Sort pseudos for
5727         IRA.  Call alter_reg with the additional parameter.  Don't clear
5728         spilled_pseudos for IRA.  Restore original insn chain for IRA.
5729         Clear changed_allocation_pseudos at the end of reload.
5730         (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
5731         (hard_regno_to_pseudo_regno): New variable.
5732         (count_pseudo): Check spilled pseudos.  Set up
5733         hard_regno_to_pseudo_regno.
5734         (count_spilled_pseudo): Check spilled pseudos. Update
5735         hard_regno_to_pseudo_regno.
5736         (find_reg): Use better_spill_reload_regno_p.  Check
5737         hard_regno_to_pseudo_regno.
5738         (alter_reg): Set up spilled_pseudos.  Add a new parameter.  Add
5739         code for IRA.
5740         (eliminate_regs_1): Use additional parameter for alter_reg.
5741         (finish_spills): Set up pseudo_previous_regs only for spilled
5742         pseudos.  Call reassign_pseudos once for all spilled pseudos, pass
5743         more arguments.  Don't clear live_throughout and dead_or_set for
5744         spilled pseudos.  Use additional parameter for alter_reg.  Call
5745         mark_allocation_change.  Set up changed_allocation_pseudos.
5746         Remove sanity check.
5747         (emit_input_reload_insns, delete_output_reload): Use additional
5748         parameter for alter_reg.  Call mark_allocation_change.
5749         (substitute, gen_reload_chain_without_interm_reg_p): New
5750         functions.
5751         (reloads_conflict): Use gen_reload_chain_without_interm_reg_p.
5752
5753         * testsuite/gcc.dg/20080410-1.c: New file.
5754
5755         * config/s390/s390.h (IRA_COVER_CLASSES,
5756         IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Define.
5757
5758         * config/sparc/sparc.h (IRA_COVER_CLASSES): New macro.
5759
5760         * config/i386/i386.h (IRA_COVER_CLASSES): Ditto.
5761
5762         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
5763
5764         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Ditto.
5765
5766         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
5767
5768         * config/alpha/alpha.h (IRA_COVER_CLASSES): Ditto.
5769
5770         2008-08-24  Jeff Law  <law@redhat.com>
5771         * ira.c (setup_reg_class_intersect_union): Prefer smallest class
5772         when ignoring unavailable registers.
5773
5774         2008-08-24  Jeff Law  <law@redhat.com>
5775         * ira-color.c (coalesced_pseudo_reg_slot_compare): Check
5776         FRAME_GROWS_DOWNWARD and STACK_GROWS_DOWNWARD.
5777         * ira.c (setup_eliminable_regset): Check stack_realign_needed.
5778         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): New macro.
5779
5780         2008-06-03 Steve Chamberlain <steve.chamberlain@gmail.com>
5781         * ira-build.c (allocno_range_compare_func): Stabilize sort.
5782
5783         2008-05-29 Andy Hutchinson <hutchinsonandy@aim.com>
5784         * config/avr/avr.h (IRA_COVER_CLASSES): New macro.
5785         * reload1.c (find_reg): Process registers in register allocation order.
5786
5787         2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
5788         * toplev.c (backend_init_target): Move ira_init call from
5789         here...
5790         (lang_dependent_init_target): ...to here.
5791
5792         2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
5793         * ira.c (setup_class_subset_and_memory_move_costs): Don't
5794         calculate memory move costs for NO_REGS.
5795
5796         2008-05-05 Kaz Kojima <kkojima@gcc.gnu.org>
5797         * ira-color.c (ira_fast_allocation): Use no_stack_reg_p only if
5798         STACK_REGS is defined.
5799
5800         2008-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
5801         * config/spu/spu.h (IRA_COVER_CLASSES): New macro.
5802
5803         2008-04-04 Bernd Schmidt <bernd.schmidt@analog.com>
5804         * config/bfin/bfin.h (IRA_COVER_CLASSES): New macro.
5805
5806         2008-04-04 Kaz Kojima <kkojima@gcc.gnu.org>
5807         * config/sh/sh.h (IRA_COVER_CLASSES): Define.
5808         * config/sh/sh.md (movsicc_true+3): Check if emit returns a
5809         barrier.
5810
5811 2008-08-26  Victor Kaplansky  <victork@il.ibm.com>
5812             Dorit Nuzman  <dorit@il.ibm.com>
5813
5814         * gcc/config/spu/spu.md (vec_extract_evenv4si,
5815         vec_extract_evenv4sf, vec_extract_evenv8hi,
5816         vec_extract_evenv16qi, vec_extract_oddv4si,
5817         vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
5818         vec_interleave_highv4sf, vec_interleave_lowv4sf,
5819         vec_interleave_highv4si, vec_interleave_lowv4si,
5820         vec_interleave_highv8hi, vec_interleave_lowv8hi,
5821         vec_interleave_highv16qi, vec_interleave_lowv16qi,
5822         vec_pack_trunc_v8hi, vec_pack_trunc_v4si): Implement.S
5823
5824 2008-08-25  Janis Johnson  <janis187@us.ibm.com>
5825
5826         PR target/36756
5827         * config/rs6000/rs6000.c (optimization_options): Don't default to
5828         section anchors without toplevel reorder.
5829
5830 2008-08-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5831
5832         * config/spu/spu_mfcio.h (mfc_begin_critical_section): New function.
5833         (mfc_end_critical_section): Likewise.
5834
5835 2008-08-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5836
5837         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Propagate
5838         all type qualifiers from element type to vector type.
5839
5840 2008-08-25  David Daney  <ddaney@avtrex.com>
5841
5842         * config/mips/mips.md (immediate_insn): Move up in file, fix
5843         comment typo, reformat.
5844         (fetchop_bit, atomic_hiqi_op memory_barrier,
5845         sync_compare_and_swap<mode>, compare_and_swap_12, sync_add<mode>,
5846         sync_<optab><mode>, sync_<optab>_12, sync_old_<optab><mode>,
5847         sync_old_<optab>_12, sync_new_<optab><mode>, sync_new_<optab>_12,
5848         sync_nand<mode>, sync_nand_12, sync_old_nand<mode>,
5849         sync_old_nand_12, sync_new_nand<mode>, sync_new_nand_12,
5850         sync_sub<mode>, sync_old_add<mode>, sync_old_sub<mode>,
5851         sync_new_add<mode>, sync_new_sub<mode>, sync_<optab><mode>,
5852         sync_old_<optab><mode>, sync_new_<optab><mode>, sync_nand<mode>,
5853         sync_old_nand<mode>, sync_new_nand<mode>,
5854         sync_lock_test_and_set<mode>, sync_lock_test_and_set<mode>,
5855         test_and_set_12): Moved to sync.md.
5856         (sync.md): Include.
5857         * config/mips/sync.md: New file.
5858
5859 2008-08-25  Richard Henderson  <rth@redhat.com>
5860
5861         * dwarf2out.c (def_cfa_1): Don't scale by DWARF_CIE_DATA_ALIGNMENT.
5862         (regsave): Likewise.
5863         (lookup_cfa_1): Don't rescale by DWARF_CIE_DATA_ALIGNMENT.
5864         (output_cfi_directive): Likewise.
5865         (div_data_align): New.
5866         (output_cfi): Use it.
5867
5868 2008-08-24  Adam Nemet  <anemet@caviumnetworks.com>
5869
5870         * config.gcc (mips64*-*-linux*): Handle mips64octeon*-*-linux*.
5871         * config/mips/mips.h (enum processor_type): Add PROCESSOR_OCTEON.
5872         (TARGET_OCTEON): New macro.
5873         (TARGET_CPU_CPP_BUILTINS): Define __OCTEON__ for Octeon.
5874         (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC): Handle -march=octeon.
5875         (ISA_HAS_POP): New macro.
5876         * config/mips/driver-native.c (host_detect_local_cpu): Handle
5877         Octeon.
5878         * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
5879         Handle Octeon.
5880         * config/mips/mips.md (cpu): Add octeon.
5881         (type): Add pop attribute value.
5882         (popcount<mode>2): New pattern.
5883         * doc/invoke.texi (-march=@var{arch}): Add octeon.
5884
5885 2008-08-24  Jan Hubicka  <jh@suse.cz>
5886
5887         * doc/invoke.texi (-fipa-cp-clone): New option.
5888         (-fipa-cp): Update docs.
5889         (--param ipcp-unit-growth):New.
5890         * ipa-cp.c: Include fibheap.h, params.h
5891         (ipcp_initialize_node_lattices): When not cloning, all externally
5892         visible functions are bottom.
5893         (ipcp_need_redirect_p): Accept clones.
5894         (ipcp_insert_stage): Use cost driven heuristics.
5895         (max_count, dead_nodes): New static vars.
5896         (ipcp_need_original_clone_p, ipcp_estimate_cloning_cost,
5897         ipcp_const_param_count): New functions.
5898         * common.opt (ipa-cp-clone): New command line option.
5899         * params.def (ipcp-unit-growth): New.
5900
5901 2008-08-24  Jan Hubicka  <jh@suse.cz>
5902
5903         * tree-inline.c (tree_function_versioning): Look harder
5904         for referenced vars.
5905
5906 2008-08-24  Razya Ladelsky  <razya@il.ibm.com>
5907
5908         PR tree-optimization/37185
5909         * matrix-reorg.c (transform_access_sites): Update changed stmt.
5910
5911 2008-08-23  Jan Hubicka  <jh@suse.cz>
5912
5913         * ipa-cp.c (ipcp_analyze_node): New function.
5914         (ipcp_update_cloned_node): Use it.
5915         (ipcp_init_stage): Likewise.
5916         * ipa-inline.c (function_insertion_hook_holder): New static var.
5917         (analyze_function): Break out from ....
5918         (inline_generate_summary): Here; register insertion hook.
5919         (cgraph_decide_inlining): Remove hook.
5920         (add_new_function): New function.
5921
5922 2008-08-23  Jan Hubicka  <jh@suse.cz>
5923
5924         * opts.c (decode_options): Revert accidental change enabling ipa-cp.
5925
5926 2008-08-23  Jan Hubicka  <jh@suse.cz>
5927
5928         * ipa-cp.c (constant_val_insert): Remove.
5929         (ipcp_propagate_one_const): Remove.
5930         (ipcp_create_replace_map): Always insert replacements to the map.
5931         (ipcp_insert_stage): Do not try to insert statements by hand.
5932         * tree-inline.c (insert_init_stmt): Break out from ...
5933         (setup_one_parameter): ... here; allow NULL BB pointer.
5934         (tree_function_versioning): Use setup_one_parameter to process
5935         replacement map.
5936
5937 2008-08-23  Jan Hubicka  <jh@suse.cz>
5938
5939         * tree.c (decl_address_ip_invariant_p): New function.
5940         * tree.h (decl_address_ip_invariant_p): Declare.
5941         * gimple.c (strip_invariant_refs): Break out from ...
5942         (is_gimple_invariant_address): ... here
5943         (is_gimple_ip_invariant_address): New function.
5944         (is_gimple_ip_invariant): New function.
5945         * gimple.h (is_gimple_ip_invariant_address, is_gimple_ip_invariant):
5946         Declare.
5947
5948         * ipa-cp.c (ipcp_lat_is_const): Remove handling of IPA_CONST_VALUE_REF.
5949         (ipcp_lat_is_insertable): All constants are insertable.
5950         (ipcp_lattice_from_jfunc, ipcp_print_all_lattices): Remove handling of
5951         IPA_CONST_VALUE_REF.
5952         (ipcp_initialize_node_lattices): Propagate all types of operands.
5953         (build_const_val): Do not handle IPA_CONST_VALUE_REF.
5954         (ipcp_create_replace_map): Reformat.
5955         (ipcp_need_redirect_p): Simplify.
5956         (ipcp_insert_stage): Check that argument is used before clonning.
5957         * ipa-prop.c (ipa_print_node_jump_functions): Do not handle
5958         IPA_CONST_REF.
5959         (compute_scalar_jump_functions): Simplify using is_gimple_ip_invariat.
5960         (determine_cst_member_ptr): Keep wrapping ADDR_EXPR of members.
5961         (update_call_notes_after_inlining): Expect ADDR_EXPR in operand.
5962         * ipa-prop.h (jump_func_type): Remove IPA_CONST_REF.
5963         (jump_func_type): Remove IPA_CONST_VALUE_REF.
5964         * tree-inline.c (tree_function_versioning): Add variables referenced
5965         by replacing trees.
5966
5967 2008-08-23  Jan Hubicka  <jh@suse.cz>
5968
5969         PR target/37094
5970         * i386.c (standard_80387_constant_p): Use optimize_size.
5971
5972 2008-08-23  Ira Rosen  <irar@il.ibm.com>
5973
5974         PR tree-optimization/37161
5975         * tree-vectorizer.h (vect_get_smallest_scalar_type): Declare.
5976         * tree-vect-analyze.c (vect_get_smallest_scalar_type): New function.
5977         (vect_determine_vectorization_factor): Move the scalar type
5978         retrieval to vect_get_smallest_scalar_type.
5979         (vect_build_slp_tree): Call vect_get_smallest_scalar_type to get
5980         scalar type. Remove redundant computation.
5981         * tree-vect-transform.c (vect_get_constant_vectors): Add argument.
5982         (vect_get_slp_defs): Take the type of RHS into account if
5983         necessary by calling vect_get_smallest_scalar_type. Call
5984         vect_get_constant_vectors with additional argument.
5985
5986 2008-08-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5987
5988         PR 35648
5989         * doc/invoke.texi (Wwrite-strings): Clarify description.
5990
5991 2008-08-23  Ira Rosen  <irar@il.ibm.com>
5992
5993         PR tree-optimization/37174
5994         * tree-vect-analyze.c (vect_get_and_check_slp_defs): Check that the
5995         def stmt is a part of the loop before accessing its stmt_vec_info.
5996
5997 2008-08-22  Anatoly Sokolov  <aesok@post.ru>
5998
5999         PR target/11259
6000         * config/avr/avr.md (UNSPEC_SWAP): New constants.
6001         (*swap): New insn pattern.
6002         (*ashlqi3): Rename from ashlqi3 insn pattern.
6003         (ashlqi3): New expanders.
6004         (*lshrqi3): Rename from lshrqi3 insn pattern.
6005         (lshrqi3): New expanders.
6006         (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, lshrqi3_const4,
6007         lshrqi3_const5, lshrqi3_const6): New splitters.
6008         (andi, ashlqi3_l_const4, ashlqi3_l_const5, ashlqi3_l_const6,
6009         lshrqi3_l_const4, lshrqi3_l_const5, lshrqi3_l_const6): Define
6010         peephole2 patterns.
6011
6012 2008-08-22  Richard Guenther  <rguenther@suse.de>
6013
6014         PR tree-optimization/37078
6015         * tree-vrp.c (extract_range_from_unary_expr): Avoid generating
6016         [+INF, +INF] ranges.
6017
6018 2008-08-22  Richard Guenther  <rguenther@suse.de>
6019
6020         PR tree-optimization/37143
6021         * tree-vect-transform.c (vect_create_cond_for_align_checks): Build
6022         a conversion statement instead of a copy.
6023
6024 2008-08-22  Uros Bizjak  <ubizjak@gmail.com>
6025
6026         PR target/37184
6027         * config/i386/i386.c (ix86_match_ccmode): Handle CCAmode,
6028         CCCmode, CCOmode and CCSmode destination modes.
6029
6030         PR target/37191
6031         * config/i386/mmx.md (*vec_extractv2sf_0): Avoid combining registers
6032         from different units in a single alternative.
6033         (*vec_extractv2sf_1): Ditto.
6034         (*vec_extractv2si_0): Ditto.
6035         (*vec_extractv2si_1): Ditto.
6036         * config/i386/sse.md (sse2_storehpd): Ditto.
6037         (sse2_storelpd): Ditto.
6038         (sse2_loadhpd): Ditto.
6039         (sse2_loadlpd): Ditto.
6040
6041         PR target/37197
6042         * config/i386/i386.md (clzsi2_abm): Fix operand 1 constraints.
6043         (popcountsi2): Ditto.
6044         (clzdi2_abm): Ditto.
6045         (popcountdi2): Ditto.
6046         (clzhi2_abm): Ditto.
6047         (popcounthi2): Ditto.
6048
6049 2008-08-22  Richard Guenther  <rguenther@suse.de>
6050
6051         PR middle-end/36548
6052         PR middle-end/37125
6053         * fold-const.c (extract_muldiv_1): Optimize (X * C1) % C2 only
6054         if the multiplication does not overflow.
6055
6056 2008-08-21  Nathan Sidwell  <nathan@codesourcery.com>
6057
6058         * c-ppoutput.c (init_pp_output): Initialize src_line to 1.
6059
6060 2008-08-21  Richard Henderson  <rth@redhat.com>
6061
6062         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove
6063         spurrious comma from test.
6064         * configure: Rebuild.
6065
6066 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6067
6068         PR 30457
6069         * builtins.c (fold_builtin_next_arg): Add warning about undefined
6070         behaviour.
6071
6072 2008-08-21  Aldy Hernandez  <aldyh@redhat.com>
6073
6074         * c-tree.h (grokfield): New argument.
6075         * c-decl.c (grokfield): Handle new location argument.
6076         * c-parser.c (c_parser_struct_declaration): Pass location to grokfield.
6077
6078 2008-08-21  Richard Guenther  <rguenther@suse.de>
6079
6080         * tree-ssa-ccp.c (ccp_fold): Fold VIEW_CONVERT_EXPRs of constants.
6081
6082 2008-08-21  Jan Hubicka  <jh@suse.cz>
6083
6084         * cgraph.c (first_cgraph_function_insertion_hook): New variable.
6085         (cgraph_add_function_insertion_hook,
6086         cgraph_remove_function_insertion_hook,
6087         cgraph_call_function_insertion_hooks): New functions.
6088         * cgraph.h (cgraph_add_function_insertion_hook,
6089         cgraph_remove_function_insertion_hook,
6090         cgraph_call_function_insertion_hooks): Declare.
6091         * ipa-reference.c (function_insertion_hook_holder): New variable.
6092         (check_operand, look_for_address_of): When checking late, do not care
6093         about module bitmaps.
6094         (add_new_function): New function.
6095         (generate_summary): Register hooks; zero module bitmaps.
6096         (propagate): Unregister hooks.
6097         * ipa-pure-const.c (function_insertion_hook_holder): New variable.
6098         (add_new_function): New function.
6099         (generate_summary): Register hook.
6100         (propagate): Remove hook.
6101
6102         * ipa-cp.c (ipcp_need_redirect_p): Fix to not be constant 0.
6103
6104         * tree-pass.h (pass_ipa_cp): Make ipa_opt_pass.
6105         * ipa-cp.c (ipcp_update_cloned_node): New function.
6106         (build_const_val): Handle functions correctly; bring type logic
6107         into sync with tree-inline.c
6108         (ipcp_init_stage):  Take care of computing stuff needed by
6109         indirect inlining; update clones.
6110         (ipcp_generate_summary): Break out of ipcp_driver.
6111         (ipcp_driver): Do only execution and transformation.
6112         (pass_ipa_cp): Make IPA_PASS.
6113         * tree-ssa-ccp.c (fold_stmt_r): Check type before trying to fold
6114         offset to address.
6115         * ipa-inline.c (inline_indirect_intraprocedural_analysis): When doing
6116         ipcp, some info is already available.
6117         * ipa-prop.c (ipa_count_arguments): Grow edge lists as needed.
6118         * tree-inline.c (remap_ssa_name): Unshare expression.
6119
6120 2008-08-21  Richard Guenther  <rguenther@suse.de>
6121
6122         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
6123         a PHI ask VN if it is already available.
6124         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
6125         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
6126
6127 2008-08-21  Richard Guenther  <rguenther@suse.de>
6128
6129         PR middle-end/36817
6130         * tree-chrec.c (chrec_apply): Always call chrec_fold_plus which
6131         makes sure to produce a result of the correct type.
6132
6133 2008-08-21  Jan Hubicka  <jh@suse.cz>
6134         Backport from LTO branch:
6135
6136         2008-05-05  Kenneth Zadeck <zadeck@naturalbridge.com>
6137                     Jan Hubicka  <jh@suse.cz>
6138
6139         * ipa-pure-const.c
6140         (init_state, finish_state, set_function_state, generate_summary):
6141         New functions.
6142         (scan_stmt): Renamed from scan_function.  Changed to keep state in
6143         local static vars rather than cgraph aux field.
6144         (propagate): Renamed from static_execute. Changed to keep state in
6145         local static vars rather than cgraph aux field.
6146         (pass_ipa_pure_const): Changed from SIMPLE_IPA_PASS to IPA_PASS.
6147         * tree-pass.h (pass_ipa_pure_const): Turn into IPA_PASS.
6148
6149         2008-07-15  Kenneth Zadeck <zadeck@naturalbridge.com>
6150
6151         * tree-pass.h (pass_ipa_reference): Make into ipa_opt_pass.
6152         * ipa-reference.c (init_function_info, generate_summary,
6153         propagate): New functions.
6154         (analyze_function):  Call init_function_info.
6155         (static_execute): Stripped into generate_summary and propagate.
6156         (pass_ipa_reference): Made into ipa_opt_pass.
6157
6158 2008-08-21  Richard Guenther  <rguenther@suse.de>
6159
6160         PR tree-optimization/37181
6161         * tree-vrp.c (extract_range_from_binary_expr): Check for NULL
6162         folding result.
6163         (extract_range_from_unary_expr): Likewise.
6164
6165 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6166
6167         * diagnostic.c (pedwarn_at): Rename as pedwarn.
6168         (pedwarn): Delete.
6169         * toplev.h (pedwarn_at): Likewise.
6170         * builtins.c: Update all calls to pedwarn.
6171         * c-lex.c: Likewise.
6172         * toplev.c: Likewise.
6173         * c-tree.h: Likewise.
6174         * c-decl.c: Likewise.
6175         * c-errors.c: Likewise.
6176         * c-typeck.c: Likewise.
6177         * c-common.c: Likewise.
6178         * c-parser.c: Likewise.
6179
6180 2008-08-20  Joseph Myers  <joseph@codesourcery.com>
6181
6182         PR target/31070
6183         * config/sparc/sparc.c (function_arg_slotno): Handle structure
6184         with MODE_VECTOR_INT mode.
6185
6186 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6187
6188         PR middle-end/179
6189         * tree-ssa.c (warn_uninit): Do not warn for variables that can be
6190         initialized outside the current module.
6191         (warn_uninitialized_var): Ignore left-hand side when walking the
6192         trees. Ignore address expressions. Examine VUSE operands in gimple
6193         statements with a variable declaration on the right-hand side.
6194
6195 2008-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
6196
6197         PR bootstrap/37155
6198         * rtlanal.c (subreg_offset_representable_p): Revert last change.
6199
6200 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6201
6202         PR 35701
6203         * c-common.c (conversion_warning): Do not warn if applying bit-and
6204         operator to unsigned constant that fits in the target type.
6205
6206 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6207
6208         PR c++/35602
6209         * c-common.c (conversion_warning): Do not warn for artificial
6210         expressions.
6211
6212 2008-08-20  Richard Guenther  <rguenther@suse.de>
6213
6214         * tree-vrp.c (op_with_constant_singleton_value_range): New function.
6215         (extract_range_from_binary_expr): Fall back to constant propagation.
6216         (extract_range_from_unary_expr): Likewise.
6217
6218 2008-08-20  Richard Guenther  <rguenther@suse.de>
6219
6220         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Do not mess
6221         with TREE_THIS_VOLATILE on shared nodes.
6222         (fold_stmt_r): Likewise.
6223
6224 2008-08-20  Jakub Jelinek  <jakub@redhat.com>
6225
6226         PR c/37171
6227         * c-parser.c (c_parser_attributes): For keywords use canonical
6228         spelling for attr_name.
6229
6230 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6231
6232         * value-prof.c (check_counter): Revert wrong call to error.
6233
6234 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6235
6236         * profile.c: Update calls to inform.
6237         * value-prof.c: Update calls to inform.
6238
6239 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6240
6241         * diagnostic.c (inform): Add an explicit location_t parameter.
6242         * toplev.h (inform): Update declaration.
6243         * builtins.c: Update all calls to inform.
6244         * c-common.c: Likewise.
6245         * c-decl.c: Likewise.
6246         * c-opts.c: Likewise.
6247         * c-pch.c: Likewise.
6248         * c-pragma.c: Likewise.
6249         * c-typeck.c: Likewise.
6250         * coverage.c: Likewise.
6251         * opts.c: Likewise.
6252         * toplev.c: Likewise.
6253         * tree-cfg.c: Likewise.
6254         * tree-ssa.c: Likewise.
6255
6256 2008-08-20  H.J. Lu  <hongjiu.lu@intel.com>
6257
6258         PR target/37169
6259         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): In
6260         V2DI mode, for SSE4.1, use movq instead of vector set if the
6261         second element is zero and inter-unit moves are OK.
6262
6263 2008-08-20  Richard Guenther  <rguenther@suse.de>
6264
6265         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): More
6266         properly handle conversion/copy chains after tuplification.
6267
6268 2008-08-20  Richard Guenther  <rguenther@suse.de>
6269
6270         * passes.c (init_optimization_passes): Move the second
6271         forwprop pass before alias computation.  Remove the second
6272         DCE pass.  Remove the first dominator and phi copy/const
6273         prop passes.
6274
6275 2008-08-20  Nick Clifton  <nickc@redhat.com>
6276
6277         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Always test for assembler
6278         support of this feature.  Do not assume that a sufficiently new
6279         assembler will support the feature regardless of the target type.
6280         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
6281         * configure: Regenerate.
6282
6283 2008-08-20  Richard Guenther  <rguenther@suse.de>
6284
6285         * tree-vrp.c (found_in_subgraph): Remove.
6286         (live): New global static.
6287         (live_on_edge): New function.
6288         (blocks_visited): Remove.
6289         (register_edge_assert_for_2): Use live_on_edge.
6290         (find_conditional_asserts): Remove code dealing with
6291         found_in_subgraph.  Do not walk the CFG.
6292         (find_switch_asserts): Likewise.
6293         (find_assert_locations_1): Renamed from find_assert_locations.
6294         Move finding assert locations for conditional and switch
6295         statements first.  Update live bitmap.  Do not walk the CFG.
6296         (find_assert_locations): New function.
6297         (insert_range_assertions): Remove entry of CFG walk.
6298         Adjust call to find_assert_locations.
6299         * tree-ssa-pre.c (do_regular_insertion): Ignore critical edges
6300         that only can appear because of fake exit edges but assert we
6301         never try to insert on those.
6302         (fini_pre): Do not remove fake exit edges here...
6303         (execute_pre): ...but here, before committing edge inserts.
6304
6305 2008-08-19  Richard Guenther  <rguenther@suse.de>
6306
6307         * passes.c (init_optimization_passes): Exchange store-ccp
6308         with a ccp pass.
6309
6310 2008-08-19  Rafael Espíndola  <espindola@google.com>
6311
6312         * varasm.c (weak_decls): Move earlier in the file.
6313         (assemble_external): Add weak decls to the weak_decls list.
6314         (declare_weak): Don't add decls to the weak_decls list.
6315
6316 2008-08-19  H.J. Lu  <hongjiu.lu@intel.com>
6317
6318         PR target/37157
6319         * config/i386/sse.md (sse2_punpckhqdq, sse2_punpcklqdq): Moved
6320         before (sse2_shufpd_<mode>).
6321
6322 2008-08-19  Jakub Jelinek  <jakub@redhat.com>
6323
6324         PR debug/37156
6325         * pretty-print.c (pp_base_format): Deal with recursive BLOCK trees.
6326         * tree.c (block_nonartificial_location): Likewise.
6327
6328 2008-08-19  Richard Guenther  <rguenther@suse.de>
6329
6330         PR tree-optimization/35972
6331         PR tree-optimization/23094
6332         * tree-ssa-sccvn.h (vn_reference_lookup_pieces): Add maywalk
6333         parameter.
6334         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
6335         handle MISALIGNED_INDIRECT_REF.
6336         (get_ref_from_reference_ops): New helper.
6337         (vn_reference_lookup_pieces): Walk the use-def chain using the
6338         alias-oracle if requested.
6339         * tree-ssa-pre.c (phi_translate_1): Do reference lookup with
6340         walking the use-def chain.
6341         (compute_avail): But not here.
6342         (create_component_ref_by_pieces_1): Properly handle
6343         MISALIGNED_INDIRECT_REF.
6344         (do_regular_insertion): Handle fully redundant
6345         expressions after PHI-translation also for SSA_NAME values, not
6346         only constants.  Correctly use edoubleprime for that.
6347
6348 2008-08-19  Ira Rosen  <irar@il.ibm.com>
6349
6350         * tree-vectorizer.c (supportable_widening_operation): Support
6351         multi-step conversion, return the number of steps in such conversion
6352         and the required intermediate types.
6353         (supportable_narrowing_operation): Likewise.
6354         * tree-vectorizer.h (vect_pow2): New function.
6355         (supportable_widening_operation): Change argument types.
6356         (supportable_narrowing_operation): Likewise.
6357         (vectorizable_type_promotion): Add an argument.
6358         (vectorizable_type_demotion): Likewise.
6359         * tree-vect-analyze.c (vect_analyze_operations): Call
6360         vectorizable_type_promotion and vectorizable_type_demotion with
6361         additional argument.
6362         (vect_get_and_check_slp_defs): Detect patterns.
6363         (vect_build_slp_tree): Add an argument, don't fail in case of multiple
6364         types.
6365         (vect_analyze_slp_instance): Don't fail in case of multiple types.
6366         Call vect_build_slp_tree with correct arguments. Calculate unrolling
6367         factor according to the smallest type in the loop.
6368         (vect_detect_hybrid_slp_stmts): Include statements from patterns.
6369         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Call
6370         supportable_widening_operation with correct arguments.
6371         * tree-vect-transform.c (vect_get_slp_defs): Allocate output vector
6372         operands lists according to the number of vector statements in left
6373         or right node, if exists.
6374         (vect_gen_widened_results_half): Remove unused argument.
6375         (vectorizable_conversion): Call supportable_widening_operation,
6376         supportable_narrowing_operation, and vect_gen_widened_results_half
6377         with correct arguments.
6378         (vectorizable_assignment): Change documentation, support multiple
6379         types in SLP.
6380         (vectorizable_operation): Likewise.
6381         (vect_get_loop_based_defs): New function.
6382         (vect_create_vectorized_demotion_stmts): Likewise.
6383         (vectorizable_type_demotion): Support loop-aware SLP and general
6384         multi-step conversion. Call vect_get_loop_based_defs and
6385         vect_create_vectorized_demotion_stmts for transformation.
6386         (vect_create_vectorized_promotion_stmts): New function.
6387         (vectorizable_type_promotion): Support loop-aware SLP and general
6388         multi-step conversion. Call vect_create_vectorized_promotion_stmts
6389         for transformation.
6390         (vectorizable_store): Change documentation, support multiple
6391         types in SLP.
6392         (vectorizable_load): Likewise.
6393         (vect_transform_stmt): Pass SLP_NODE to
6394         vectorizable_type_promotion and vectorizable_type_demotion.
6395         (vect_schedule_slp_instance): Move here the calculation of number
6396         of vectorized statements for each node from...
6397         (vect_schedule_slp): ... here.
6398         (vect_transform_loop): Call vect_schedule_slp without the last
6399         argument.
6400
6401 2008-08-19  Dorit Nuzman  <dorit@il.ibm.com>
6402
6403         PR bootstrap/37152
6404         * tree-vect-transform.c (vect_create_epilog_for_reduction): Change =
6405         to == in assert statement.
6406         (vectorizable_reduction): Fix typo.
6407
6408 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
6409
6410         PR bootstrap/37153
6411         * value-prof.c (check_counter): Dereference pointer to overall
6412         count when printing it.
6413
6414 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
6415
6416         * profile.h: Really add it.
6417
6418 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
6419
6420         * mcf.c: Really add it.
6421
6422 2008-08-18  Paul Yuan  <yingbo.com@gmail.com>
6423             Vinodha Ramasamy  <vinodha@google.com>
6424
6425         * cgraph.c (cgraph_edge): Handle inconsistent counts when setting
6426         count_scale.
6427         * value-prof.c (check_counter): Fix the counter if
6428         flag_profile_correction is true.
6429         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
6430         tree_mod_subtract_transform):
6431         Follow check_counter parameter change.
6432         * common.opt (fprofile-correction): New option.
6433         * mcf.c: New file.
6434         * profile.h: Likewise.
6435         * profile.c (edge_info, EDGE_INFO): Moved to new file profile.h.
6436         (sum_edge_counts, is_edge_inconsistent, correct_negative_edge_counts,
6437         is_inconsistent, set_bb_counts, read_profile_edge_counts): New
6438         functions.
6439         (compute_branch_probabilities): Refactored. Invokes mcf_smooth_cfg if
6440         flag_profile_correction is set.
6441
6442 2008-08-18  Richard Sandiford  <rdsandiford@googlemail.com>
6443
6444         * rtlanal.c (subreg_offset_representable_p): Check HARD_REGNO_MODE_OK.
6445
6446 2008-08-18  Tomas Bily  <tbily@suse.cz>
6447
6448         * tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to CONVERT_EXPR_CODE_P.
6449         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Use
6450         CONVERT_EXPR_P.
6451         * tree-data-ref.c (split_constant_offset_1): Likewise.
6452         * tree-inline.c (estimate_operator_cost): Use CASE_CONVERT.
6453         * tree-sra.c (sra_walk_expr): Likewise.
6454         * matrix-reorg.c (ssa_accessed_in_assign_rhs): Likewise.
6455         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
6456         * gimple.h (gimple_assign_cast_p): Use CONVERT_EXPR_CODE_P.
6457         * tree-ssa-structalias.c (find_func_aliases, find_func_aliases):
6458         Likewise.
6459         * gimple.c (gimple_assign_unary_nop_p): Likewise.
6460         * tree-vect-transform.c (vectorizable_type_demotion)
6461         (vectorizable_type_promotion): Likewise.
6462         * tree-inline.c (expand_call_inline):
6463         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
6464         (forward_propagate_addr_expr_1, forward_propagate_comparison)
6465         (tree_ssa_forward_propagate_single_use_vars): Likewise.
6466         * expr.c (expand_expr_real_1): Likewise.
6467         * tree-ssa-dom.c (hashable_expr_equal_p, iterative_hash_hashable_expr)
6468         (gimple_assign_unary_useless_conversion_p): Likewise.
6469         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
6470         * tree-ssa-ccp.c (ccp_fold, fold_gimple_assign): Likewise.
6471         * fold-const.c (fold_unary): Likewise.
6472         * tree.h (CONVERT_EXPR_P): Likewise.
6473         * tree.c (simple_cst_equal, iterative_hash_expr): Likewise.
6474         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
6475         * tree-vrp.c:
6476         (register_edge_assert_for_2, extract_range_from_unary_expr)
6477         (register_edge_assert_for_1): Likewise.
6478
6479 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6480
6481         * real.h (dconst_e, dconst_third, dconst_sqrt2, dconst_e_ptr,
6482         dconst_third_ptr, dconst_sqrt2_ptr): Declare.
6483         (enum real_value_const): Delete.
6484         (get_real_const): Delete.
6485         * real.c (get_real_const): Delete.
6486         (dconst_e_ptr): Define.
6487         (dconst_third_ptr): Define.
6488         (dconst_sqrt2_ptr): Define.
6489         * builtins.c: Update all callers.
6490
6491 2008-08-18  Richard Guenther  <rguenther@suse.de>
6492
6493         * tree-ssa-reassoc.c (reassociate_bb): Properly reset the
6494         statement iterator after statement removal.
6495
6496 2008-08-18  Andreas Tobler  <a.tobler@schweiz.org>
6497
6498         * config/rs6000/driver-rs6000.c (detect_caches_freebsd): New function.
6499         (detect_processor_freebsd): Likewise.
6500         (host_detect_local_cpu): Call newly added functions for FreeBSD.
6501
6502 2008-08-18  Richard Guenther  <rguenther@suse.de>
6503
6504         * tree-cfg.c (verify_types_in_gimple_assign): Verify copies
6505         and loads have the correct types.
6506
6507 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6508
6509         PR cpp/7263
6510         * c-opts.c (cpp_opts): Remove static.
6511         * c-parser.c (cpp_opts): Declare it extern.
6512         (disable_extension_diagnostics): Handle cpp options.
6513         (enable_extension_diagnostics): Likewise.
6514
6515 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6516
6517         * diagnostics.c (permerror_at): Rename as permerror.
6518         (permerror): Delete.
6519         * toplev.h: Likewise.
6520
6521 2008-08-18  Richard Guenther  <rguenther@suse.de>
6522
6523         * passes.c (init_optimization_passes): Remove cleanup_cfg1,
6524         sdse1 and addressables2 passes.  Replace dce1 with cddce1.
6525         Move call_cdce before build_alias.  Move copyrename2,
6526         cunrolli and ccp2 beafore build_alias.  Re-add addressable2
6527         right after final inlining.
6528         * tree-cfg.c (build_gimple_cfg): Do not dump function here.
6529         (pass_build_cfg): But instead via TODO_dump_func.
6530
6531 2008-08-18  Richard Guenther  <rguenther@suse.de>
6532
6533         * tree-sra.c (generate_element_init_1): Deal with NULL constructor
6534         element index.
6535         (scalarize_init): If we failed to generate some initializers
6536         do not generate zeros for not instantiated members.  Instead
6537         rely on the copy out.
6538         * tree-ssa-operands.c (get_addr_dereference_operands): Warn
6539         about missing flow-sensitive alias info only if we have
6540         aliases computed.
6541
6542 2008-08-17  Nick Clifton  <nickc@redhat.com>
6543
6544         * doc/extend.texi (Function Attributes): Fix typo in description
6545         if hot function attribute.
6546
6547 2008-08-17  Daniel Jacobowitz  <dan@codesourcery.com>
6548             Richard Sandiford  <rdsandiford@googlemail.com>
6549
6550         * doc/install.texi (--with-mips-plt): Document.
6551         * doc/invoke.texi (-mplt, -mno-plt): Document.
6552         * config.gcc (mips*-*-*): Add mips-plt to supported_defaults
6553         and handle ${with_mips_plt}.
6554         * config/mips/mips.opt (mplt): New option.
6555         * config/mips/mips.h (TARGET_ABICALLS_PIC0): New macro.
6556         (TARGET_ABICALLS_PIC2): Likewise.
6557         (TARGET_GPWORD): Return false for TARGET_ABSOLUTE_ABICALLS.
6558         (OPTION_DEFAULT_SPECS): Add a mips-plt entry.
6559         (ASM_SPEC): Use !mabi=* instead of !mabi*.
6560         (MIPS_CALL): Use TARGET_ABICALLS_PIC2 instead of TARGET_ABICALLS
6561         to decide whether to output ".option picX" directives.
6562         * config/mips/linux.h (SUBTARGET_ASM_SPEC): Remove -mabi=64 handling.
6563         Pass -call_nonpic rather than -KPIC for -mplt.
6564         (BASE_DRIVER_SELF_SPECS): Remove -mplt if -mno-shared is not present
6565         on the command line.  Also remove it when -mabi=64 is used without
6566         -msym32.
6567         * config/mips/linux64.h (SUBTARGET_ASM_SPEC): Delete.
6568         * config/mips/mips.c (mips_use_pic_fn_addr_reg_p): Handle
6569         TARGET_ABICALLS_PIC0.
6570         (mips_classify_symbol): Use TARGET_ABICALLS_PIC2 instead of
6571         TARGET_ABICALLS.
6572         (mips16_build_function_stub): Only output ".option pic" directives
6573         and PIC stubs if TARGET_ABICALLS_PIC2.  Call through $25 instead of $1.
6574         (mips16_build_call_stub): Fix comment and remove redundant
6575         ".set at"/"set .noat" directives.
6576         (mips_function_rodata_section): Use the default behaviour for
6577         TARGET_ABSOLUTE_ABICALLS.
6578         (mips_file_start): Emit ".option pic0" for TARGET_ABICALLS_PIC0.
6579         (mips_global_pointer): Handle TARGET_ABICALLS_PIC0.
6580         (mips_restore_gp): Do nothing if the current function doesn't use
6581         a global pointer.
6582         (mips_expand_prologue): Only save $gp if the current function uses it.
6583         Use a normal move for TARGET_ABICALLS_PIC0.
6584         (mips_override_options): Only set flag_pic if TARGET_ABICALLS_PIC2.
6585
6586 2008-08-17  Richard Sandiford  <rdsandiford@googlemail.com>
6587
6588         * config/mips/mips.c (mips_save_reg_p): Don't short-circuit rest
6589         of function when handling GLOBAL_POINTER_REGNUM.
6590
6591 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
6592
6593         PR ada/20548
6594         * common.opt (-fstack-check): Do not declare the variable here.
6595         (-fstack-check=): New option variant.
6596         * doc/invoke.texi (Code Gen Options): Document it.
6597         * expr.h (STACK_OLD_CHECK_PROTECT): New macro.
6598         (STACK_CHECK_PROTECT): Bump to 3 pages if DWARF-2 EH is used.
6599         (STACK_CHECK_STATIC_BUILTIN): New macro.
6600         * doc/tm.texi (Stack Checking): Document STACK_CHECK_STATIC_BUILTIN.
6601         * opts.c: Include expr.h.
6602         (common_handle_option) <OPT_fold_stack_check_>: New case.
6603         <OPT_fstack_check>: Likewise.
6604         * calls.c (initialize_argument_information): Use TYPE_SIZE_UNIT
6605         consistently in the test for variable-sized types.  Adjust for
6606         new behaviour of flag_stack_check.
6607         * explow.c: Include except.h.
6608         (allocate_dynamic_stack_space): Do not take into account
6609         STACK_CHECK_MAX_FRAME_SIZE for static builtin stack checking.
6610         * function.c (gimplify_parameters): Use DECL_SIZE_UNIT in the test
6611         for variable-sized parameters.  Treat all parameters whose size is
6612         greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized if generic
6613         stack checking is enabled.
6614         * gimplify.c (gimplify_decl_expr): Treat non-static objects whose
6615         size is greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized
6616         if generic stack checking is enabled.
6617         (expand_function_end): Adjust for new behaviour of flag_stack_check.
6618         * reload1.c (reload): Likewise.
6619         * stmt.c (expand_decl): Assert that all automatic variables have
6620         fixed size at this point and remove dead code.
6621         * flags.h (stack_check_type): New enumeration type.
6622         (flag_stack_check): Declare.
6623         * toplev.c (flag_stack_check): New global variable.
6624         * Makefile.in (opts.o): Add dependency on EXPR_H.
6625         (explow.o): Add dependency on except.h.
6626
6627 2008-08-16  Andy Hutchinson  <hutchinsonandy@aim.com>
6628
6629         * config/avr/avr.c (avr_override_options): Reduce value of
6630         PARAM_INLINE_CALL_COST.
6631
6632 2008-08-15  Eric Botcazou  <ebotcazou@adacore.com>
6633
6634         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: When converting
6635         to BLKmode, try to fetch an inner memory reference.  Use 'mode' in
6636         lieu of TYPE_MODE (type) throughout.
6637
6638 2008-08-15  Joseph Myers  <joseph@codesourcery.com>
6639
6640         * config/arm/arm.c (add_minipool_backward_ref): Check for
6641         8-byte-aligned entries in second case of forcing insertion after a
6642         particular entry.  Change third case to avoid inserting
6643         non-8-byte-aligned entries before 8-byte-aligned ones.
6644
6645 2008-08-15  Richard Guenther  <rguenther@suse.de>
6646
6647         * tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not
6648         strip components for unknown size accesses.
6649
6650 2008-08-15  Wolfgang Gellerich  <gellerich@de.ibm.com>
6651
6652         * config/s390/2097.md New file.
6653         * config/s390/s390.md ("z10prop" attribute): Define none,
6654         z10_super, z10_super_E1, z10_super_A1, z10_super_c,
6655         z10_super_c_E1, z10_fwd, z10_fwd_A1, z10_fwd_A3, z10_fwd_E1,
6656         z10_rec, z10_fr, z10_fr_A3, z10_fr_E1, z10_c, and z10_cobra as
6657         possible values and apply them to insns as appropriate.
6658         ("type" attribute): Removed itof and added ftrunctf,ftruncdf,
6659         ftruncsd, ftruncdd, itoftf, itofdf, itofsf, itofdd, itoftd,
6660         fdivdd, fdivtd, floaddd, floadsd, fmuldd, fmultd, fsimpdd,
6661         fsimpsd, fsimptd, fstoredd, fstoresd, ftoidfp as possible values.
6662         ("bfp" mode attribute): Removed.  Every occurence replaced
6663         with <mode>.
6664         * config/s390/s390.c (struct "z10_cost"): Updated entries.
6665         * config/s390/2084.md (insn_reservation "x_itof"): Updated
6666         type attribute.
6667
6668 2008-08-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6669
6670         PR c/28152
6671         * c-parser.c (c_lex_one_token): Do not store the canonical spelling
6672         for keywords.
6673
6674 2008-08-14  Dorit Nuzman  <dorit@il.ibm.com>
6675
6676         * tree-vect-transform.c (vect_create_epilog_for_reduction): Takes an
6677         additional argument. Support reduction when duplication is needed due
6678         to data-types of different sizes in the loop.
6679         (get_initial_def_for_induction): Fix printout.
6680         (vect_get_vec_def_for_stmt_copy): Support case where the
6681         vec_stmt_for_operand is a phi node.
6682         (vectorizable_reduction): Support reduction when duplication is needed
6683         due to data-types of different sizes in the loop.
6684         (vectorizable_call): Remove restriction to not vectorize in case we
6685         have data-types of different sizes in the loop.
6686         (vectorizable_conversion): Likewise.
6687         (vectorizable_operation): Likewise.
6688         (vectorizable_type_demotion): Likewise.
6689         (vectorizable_type_promotion): Likewise.
6690         (vectorizable_induction): Add restriction to not vectorize in case
6691         we have data-types of different sizes in the loop.
6692
6693 2008-08-14  Christophe Saout  <christophe@saout.de>
6694             Uros Bizjak  <ubizjak@gmail.com>
6695
6696         PR target/37101
6697         * config/i386/sse.md (vec_concatv2di): Remove movlps alternative.
6698         (*vec_concatv2di_rex64_sse4_1): Ditto.
6699         (*vec_concatv2di_rex64_sse): Ditto.
6700
6701 2008-08-14  Jakub Jelinek  <jakub@redhat.com>
6702
6703         PR middle-end/37103
6704         * fold-const.c (fold_widened_comparison): Do not allow
6705         sign changes that change the result even if shorter type
6706         is wider than arg1_unw's type.
6707
6708 2008-08-13  Kazu Hirata  <kazu@codesourcery.com>
6709
6710         * gcc.dg/arm-g2.c, gcc.dg/arm-mmx-1.c, gcc.dg/arm-scd42-2.c:
6711         Skip if the multilib testing specifies -march that does not
6712         agree with the one specified in the testcase.
6713
6714 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
6715
6716         * config/sparc/sparc.c (emit_soft_tfmode_cvt): Explicitly sign or
6717         zero extend SImode values being converted to TFmode before passing
6718         to libcalls.
6719
6720 2008-08-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6721
6722         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
6723         __PPU__ when targeting the Cell/B.E. PPU processor.
6724
6725 2008-08-13  Eric Botcazou  <ebotcazou@adacore.com>
6726
6727         * gimple.h (gimple_call_set_chain): Accept SSA variables.
6728         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <CALL_EXPR>:
6729         Rematerialize the static chain, if any.
6730         * tree-ssa-sccvn.c (copy_reference_ops_from_call): Also copy the
6731         static chain.
6732
6733 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
6734
6735         * dwarf2out.c (dwarf_stack_op_name): Remove prototype.
6736         (new_loc_descr): Likewise.
6737         (add_loc_descr): Likewise.
6738         (size_of_loc_descr): Likewise.
6739         (size_of_locs): Likewise.
6740         (output_loc_operands): Likewise.
6741         (output_loc_sequence): Likewise.
6742         (new_reg_loc_descr): New.
6743         (build_cfa_loc): Use it.
6744         (build_cfa_aligned_loc): Likewise.
6745         (one_reg_loc_descriptor): Likewise.
6746         (based_loc_descr): Likewise.
6747
6748 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6749
6750         PR 30551
6751         * doc/invoke.texi (Wmain): Update.
6752         * c-decl.c (start_decl): warn_main is only 0 or 1.
6753         (start_function): Likewise. Fix formatting.
6754         (finish_function): Delete redundant warning.
6755         * c.opt (Wmain): Add Var(warn_main) and Init(-1).
6756         * c-opts (c_common_handle_option): -Wall only has effect if
6757         warn_main is uninitialized. OPT_Wmain is automatically
6758         handled. -pedantic also enables Wmain.
6759         (c_common_post_options): Handle all logic for Wmain here.
6760         * c-common.c (warn_main): Delete.
6761         (check_main_parameter_types): Make pedwarns conditional on OPT_Wmain.
6762         * c-common.h (warn_main): Delete.
6763
6764 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
6765
6766         PR middle-end/36701
6767         * expr.c (emit_group_store): Allocate stack temp with the
6768         largest alignment when copying from register to stack.
6769
6770 2008-08-13  Richard Guenther  <rguenther@suse.de>
6771
6772         * tree.h (maybe_fold_offset_to_address): Declare.
6773         * tree-ssa-ccp.c (surely_varying_stmt_p): Fix typo in last commit.
6774         (ccp_fold): Handle pointer conversions the same as fold_stmt.
6775         Likewise for POINTER_PLUS_EXPR.
6776         (maybe_fold_offset_to_reference): Enable disabled code.
6777         (maybe_fold_offset_to_address): New function.
6778         (fold_stmt_r): Use it.
6779         (fold_gimple_assign): Likewise.
6780         * gimplify.c (gimplify_conversion): Use maybe_fold_offset_to_address.
6781         (gimplify_expr): Likewise.
6782
6783 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6784
6785         * toplev.h (pedwarn_at): Fix declaration.
6786
6787 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
6788
6789         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
6790         LINK_SPEC): Use %R in -Y P argument.
6791
6792 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6793
6794         PR c/15236
6795         * diagnostic.c (pedwarn_at): New.
6796         * toplev.h (pedwarn_at): Declare.
6797         * c-tree.h (build_enumerator): Update declaration.
6798         * c-decl.c (finish_enum): Update comment.
6799         (build_enumerator): Take a location parameter. Give a pedwarn but do
6800         not perform any conversion.
6801         * c-parser.c (c_parser_enum_specifier): Set correct location for
6802         enumerator.
6803
6804 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6805
6806         PR 35635
6807         * c-common.c (conversion_warning): Use a switch. Ignore boolean
6808         expressions except for conversions to signed:1 bitfields. Handle
6809         COND_EXPR with constant operands.
6810
6811 2008-08-13  Richard Guenther  <rguenther@suse.de>
6812
6813         PR tree-optimization/15255
6814         * tree-ssa-reassoc.c (linearize_expr_tree): Declare.
6815         (struct oecount_s): New struct and VEC types.
6816         (cvec): New global.
6817         (oecount_hash): New function.
6818         (oecount_eq): Likewise.
6819         (oecount_cmp): Likewise.
6820         (zero_one_operation): New function.
6821         (build_and_add_sum): Likewise.
6822         (undistribute_ops_list): Perform un-distribution of multiplication
6823         and division on the chain of summands.
6824         (should_break_up_subtract): Also break up subtracts for factors.
6825         (reassociate_bb): Delete dead visited statements.
6826         Call undistribute_ops_list.  Re-sort and optimize if it did something.
6827         * passes.c (init_optimization_passes): Move DSE before
6828         reassociation.
6829         * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Correctly handle
6830         PHI nodes.
6831
6832 2008-08-12  Janis Johnson  <janis187@us.ibm.com>
6833
6834         * doc/invoke.texi (-fipa-pta): Say the option is experimental.
6835
6836         * doc/invoke.texi: Revert unintended checkin.
6837
6838 2008-08-12  Nathan Froyd  <froydnj@codesourcery.com>
6839
6840         PR libgomp/26165
6841         * gcc.c (include_spec_function): Tweak call to find_a_file.
6842
6843 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
6844
6845         PR middle-end/37014
6846         * expr.c (expand_expr_real_1): Handle TRUTH_ANDIF_EXPR
6847         and TRUTH_ORIF_EXPR.
6848         * dojump.c (do_jump): Likewise.
6849
6850         PR tree-optimization/37084
6851         * tree-inline.c (copy_bb): Call gimple_regimplify_operands
6852         if id->regimplify, don't assume stmt is a cast assignment.
6853
6854 2008-08-12  Anatoly Sokolov  <aesok@post.ru>
6855
6856         * final.c (final_scan_insn): Use app_enable/app_disable functions.
6857
6858 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6859
6860         PR bootstrap/37097
6861         * builtins.c (do_mpfr_bessel_n): Fix copy-and-paste bug introduced
6862         by last change.
6863
6864 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6865
6866         * defaults.h (TARGET_FLOAT_FORMAT): Remove.
6867         (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT): Remove.
6868
6869         * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Remove.
6870         * config/iq2000/iq2000.h (TARGET_FLOAT_FORMAT): Remove.
6871         * config/pdp11/pdp11.h (TARGET_FLOAT_FORMAT): Remove.
6872         * config/score/score.h (TARGET_FLOAT_FORMAT): Remove.
6873         * config/vax/vax.h (TARGET_FLOAT_FORMAT): Remove.
6874
6875         * doc/tm.texi (Storage Layout): Remove documentation for
6876         TARGET_FLOAT_FORMAT.
6877
6878         * simplify-rtx.c (simplify_binary_operation_1): Replace
6879         TARGET_FLOAT_FORMAT check by appropriate HONOR_... checks.
6880
6881 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6882
6883         * real.h (struct real_format): New member has_sign_dependent_rounding.
6884         * real.c (ieee_single_format, mips_single_format, motorola_single_format,
6885         spu_single_format, ieee_double_format, mips_double_format,
6886         motorola_double_format, ieee_extended_motorola_format,
6887         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
6888         ieee_extended_intel_96_round_53_format, ibm_extended_format,
6889         mips_extended_format, ieee_quad_format, mips_quad_format,
6890         vax_f_format, vax_d_format, vax_g_format): Initialize it.
6891         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
6892
6893         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
6894         MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
6895         * config/spu/spu.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
6896         MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
6897         (ROUND_TOWARDS_ZERO): Likewise.
6898
6899         * real.h (REAL_MODE_FORMAT): Protect MODE against macro expansion.
6900         (FLOAT_MODE_FORMAT): New macro.
6901         (REAL_MODE_FORMAT_COMPOSITE_P): Remove, replace by ...
6902         (MODE_COMPOSITE_P): ... this new macro.
6903         (MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
6904         MODE_HAS_SIGN_DEPENDENT_ROUNDING): New macros.
6905         * machmode.h (GET_MODE_INNER): Cast result to enum machine_mode.
6906
6907         * flags.h: Include "real.h".
6908
6909         * fold-const.c (const_binop): Use MODE_COMPOSITE_P instead of
6910         REAL_MODE_FORMAT_COMPOSITE_P.
6911         * simplify-rtx.c (simplify_const_binary_operation): Likewise.
6912
6913         * doc/tm.texi (Storage Layout): Remove documentation of
6914         MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
6915         MODE_HAS_SIGN_DEPENDENT_ROUNDING.  Update documentation of
6916         ROUND_TOWARDS_ZERO and LARGEST_EXPONENT_IS_NORMAL to clarify
6917         they only apply to libgcc2.a.
6918
6919 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6920
6921         * config/spu/float_disf.c: New file.
6922         * config/spu/float_unsdisf.c: New file.
6923         * config/spu/t-elf (LIB2FUNCS_STATIC_EXTRA): Add them.
6924         (LIB2FUNCS_EXCLUDE): Define.
6925
6926 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6927             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
6928
6929         * real.h (struct real_format): New member round_towards_zero.
6930         * real.c (round_for_format): Respect fmt->round_towards_zero.
6931         (ieee_single_format, mips_single_format, motorola_single_format,
6932         spu_single_format, ieee_double_format, mips_double_format,
6933         motorola_double_format, ieee_extended_motorola_format,
6934         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
6935         ieee_extended_intel_96_round_53_format, ibm_extended_format,
6936         mips_extended_format, ieee_quad_format, mips_quad_format,
6937         vax_f_format, vax_d_format, vax_g_format): Initialize it.
6938         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
6939
6940         * builtins.s (do_mpfr_arg1): Consider round_towards_zero member of
6941         real_format to choose rounding mode when calling MPFR functions.
6942         (do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Likewise.
6943         (do_mpfr_bessel_n, do_mpfr_remquo, do_mpfr_lgamma_r): Likewise.
6944
6945         * real.h (real_to_decimal_for_mode): Add prototype.
6946         * real.c (real_to_decimal_for_mode): Renames old real_to_decimal.
6947         Respect target rounding mode when generating decimal representation.
6948         (real_to_decimal): New stub for backwards compatibility.
6949         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Use
6950         real_to_decimal_for_mode instead of real_to_decimal.
6951
6952         * config/spu/spu.md ("floatdisf2", "floatunsdisf2"): New.
6953
6954 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6955             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
6956
6957         * real.c (spu_single_format): New variable.
6958         * real.h (spu_single_format): Declare.
6959
6960         * config/spu/spu.c (spu_override_options): Install SFmode format.
6961         (spu_split_immediate): Use integer mode to operate on pieces of
6962         floating-point values in all cases.
6963
6964         * config/spu/spu.md (UNSPEC_FLOAT_EXTEND, UNSPEC_FLOAT_TRUNCATE): New.
6965         ("extendsfdf2"): Use UNSPEC_FLOAT_EXTEND instead of FLOAT_EXTEND.
6966         ("truncdfsf2"): Use UNSPEC_FLOAT_TRUNCATE instead of FLOAT_TRUNCATE.
6967
6968 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6969
6970         * config/spu/spu.c (spu_safe_dma): Respect TARGET_SAFE_DMA.
6971
6972 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6973
6974         * config/spu/spu.h (DWARF_FRAME_RETURN_COLUMN): Define.
6975
6976 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
6977
6978         PR c++/36688
6979         * gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
6980         on the VAR_DECL instead of TYPE_READONLY on its type.
6981
6982 2008-08-12  Ira Rosen  <irar@il.ibm.com>
6983
6984         * tree-vectorizer.c: Depend on langhooks.h.
6985         (supportable_widening_operation): Add two arguments. Support double
6986         type conversions.
6987         (supportable_narrowing_operation): Likewise.
6988         * tree-vectorizer.h (supportable_widening_operation): Add two
6989         arguments.
6990         (supportable_narrowing_operation): Likewise.
6991         * tree-vect-patterns.c (vect_recog_widen_mult_pattern) : Call
6992         supportable_widening_operation with correct arguments.
6993         * tree-vect-transform.c (vectorizable_conversion): Likewise.
6994         (vectorizable_type_demotion): Support double type conversions.
6995         (vectorizable_type_promotion): Likewise.
6996         * Makefile.in (tree-vectorizer.o): Depend on langhooks.h.
6997
6998 2008-08-11  Michael Matz  <matz@suse.de>
6999
7000         * i386/i386.c (override_options): Move initialisation from
7001         flag_schedule_insns_after_reload to here from ...
7002         (optimization_options): ... here.
7003
7004 2008-08-11  Jakub Jelinek  <jakub@redhat.com>
7005
7006         PR rtl-optimization/36998
7007         * dwarf2out.c (compute_barrier_args_size_1,
7008         compute_barrier_args_size): Temporarily remove assertions.
7009
7010 2008-08-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7011
7012         PR middle-end/20644
7013         * tree-ssa.c (struct walk_data): Add new flag
7014         warn_possibly_uninitialized.
7015         (warn_uninitialized_var): Use it.
7016         (warn_uninitialized_vars): New.
7017         (execute_early_warn_uninitialized): Call it.
7018         (execute_late_warn_uninitialized): Likewise.
7019
7020 2008-08-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7021
7022         PR middle-end/36238
7023         * reload1.c (gen_reload): Guard calls to get_secondary_mem
7024         for memory subregs.
7025
7026 2008-08-09  Jan Hubicka  <jh@suse.cz>
7027
7028         PR target/37055
7029         * optabs.c (maybe_emit_unop_insn): Remove produced code if
7030         expansion failed.
7031         (expand_fix): Be prepared for expansion to fail.
7032         (expand_sfix_optab): Remove instructions if expansion failed.
7033
7034 2008-08-09  Anatoly Sokolov  <aesok@post.ru>
7035
7036         * config/avr/avr.c (avr_mcu_types): Move the AT43USB320 device to
7037         avr31 architecture.
7038         * config/avr/avr.h (CRT_BINUTILS_SPECS): (Ditto.).
7039         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
7040
7041 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
7042
7043         * config.gcc (mips*-*-linux*, mips64*-*-linux*): Add
7044         mips/t-libgcc-mips16 to tmake_file.
7045         * config/mips/mips-protos.h (mips_call_type): New enum.
7046         (mips_pic_base_register, mips_got_load): Declare.
7047         (mips_restore_gp): Take an rtx argument.
7048         (mips_use_pic_fn_addr_reg_p): Declare.
7049         (mips_expand_call): Replace the sibcall_p argument with
7050         a mips_call_type argument.  Add a lazy_p parameter.
7051         (mips_split_call): Declare.
7052         * config/mips/mips.h (MIPS16_PIC_TEMP_REGNUM): New macro.
7053         (MIPS16_PIC_TEMP): Likewise.
7054         (reg_class): Delete M16_NA_REGS.
7055         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
7056         (SYMBOL_FLAG_BIND_NOW, SYMBOL_REF_BIND_NOW_P): New macros.
7057         (mips_split_hi_p): Declare.
7058         * config/mips/mips.c (mips_split_hi_p): New array.
7059         (mips_regno_to_class): Change M16_NA_REGS entries to M16_REGS.
7060         (mips_got_symbol_type_p): New function.
7061         (mips_global_symbol_p): Check SYMBOL_REF_EXTERNAL_P.
7062         (mips16_stub_function_p): New function.
7063         (mips16_local_function_p): Likewise.
7064         (mips_use_pic_fn_addr_reg_p): Likewise.
7065         (mips_cannot_force_const_mem): Return false for HIGHs.
7066         Extend CONST_INT and symbolic handling to MIPS16, using
7067         mips_symbol_insns to check that the base symbol type is a
7068         legitimate constant.  Reject GOT-based constants if
7069         TARGET_MIPS16_PCREL_LOADS.
7070         (mips_const_insns): Check targetm.cannot_force_const_mem when
7071         decomposing a symbolic base and a large offset.
7072         (mips_emit_call_insn): Add ORIG_ADDR and ADDR parameters.
7073         When calling a function that needs $25 from MIPS16 code,
7074         move the target address into $25 separately and add a USE
7075         to the call insn.
7076         (mips16_gp_pseudo_reg): Insert the initializer immediately
7077         before the first real insn.
7078         (mips_pic_base_register, mips_got_load): New functions.
7079         (mips_split_symbol): Generalize the name of the LO_SUM_OUT
7080         parameter to LOW_OUT.  Say that it can be any valid SET_SRC
7081         when splitting a load-address operation.  Split SYMBOL_GOT_DISP
7082         constants and highs of SYMBOL_GOT_PAGE_OFST constants.
7083         (mips_call_tls_get_addr): Update the call to mips_expand_call,
7084         also passing NULL_RTX rather than const0_rtx as the aux argument.
7085         (mips_rewrite_small_data_p): Check mips_lo_relocs and mips_split_p
7086         instead of TARGET_EXPLICIT_RELOCS.
7087         (mips_ok_for_lazy_binding_p): Check SYMBOL_REF_BIND_NOW_P.
7088         (mips_load_call_address): Replace the sibcall_p argument with
7089         a mips_call_type argument.  Use mips_got_load.
7090         (mips16_local_alias): New structure.
7091         (mips16_local_aliases): New variable.
7092         (mips16_local_aliases_hash): New function.
7093         (mips16_local_aliases_eq): Likewise.
7094         (mips16_local_alias): Likewise.
7095         (mips16_stub_function): Likewise.
7096         (mips16_build_function_stub): Create a local alias for the target
7097         function.  Handle TARGET_ABICALLS.  For PIC abicalls, emit a
7098         .cpload directive and an R_MIPS_NONE relocation for the target
7099         function, then load the alias rather than the function itself.
7100         Wrap the non-PIC abicalls version in ".option pic0/.option pic2".
7101         (mips16_copy_fpr_return_value): Use mips16_stub_function and
7102         mips_expand_call.  Set SYMBOL_REF_BIND_NOW on the symbol.
7103         (mips16_build_call_stub): Replace the FN parameter with an
7104         FN_PTR parameter.  Force the address into a register if it
7105         isn't a call_insn_operand; don't rely on the caller to do this.
7106         If a call to a locally-defined and locally-binding MIPS16
7107         function must be made indirectly, redirect the call to the
7108         function's local alias.  Use mips16_stub_function_p,
7109         mips16_stub_function, mips_expand_call and use_reg.
7110         Set SYMBOL_FLAG_BIND_NOW on __mips_call_* symbols.
7111         Use explicit %hi and %lo accesses where possible.
7112         Use MIPS_CALL to generate the correct code form of a
7113         jal instruction.  Add clobbers of $18 instead of uses.
7114         Update the call to mips_emit_call_insn.
7115         (mips_expand_call): Replace the SIBCALL_P argument with a
7116         mips_call_type argument and handle the new MIPS_CALL_EPILOGUE value.
7117         Take a LAZY_P parameter.  Call mips16_build_call_stub first,
7118         allowing it to modify the call address.  Update the calls to
7119         mips_load_call_address and mips_emit_call_insn.
7120         (mips_split_call): New function.
7121         (mips_init_relocs): Clear mips_split_hi_p.  Only use %gp_rel if
7122         !TARGET_MIPS16.  Split SYMBOL_GOT_DISP, and the high parts of
7123         SYMBOL_GOT_PAGE_OFST, for MIPS16 code.
7124         (mips_global_pointer): Check mips16_cfun_returns_in_fpr_p.
7125         (mips_extra_live_on_entry): Include MIPS16_PIC_TEMP_REGNUM
7126         if TARGET_MIPS16.
7127         (mips_cprestore_slot): New function.
7128         (mips_restore_gp): Take a TEMP parameter.  Handle TARGET_MIPS16
7129         and use mips_cprestore_slot.
7130         (mips_output_function_prologue): Handle TARGET_MIPS16 for
7131         LOADGP_OLDABI.
7132         (mips_emit_loadgp): Move into MIPS16_PIC_TEMP for MIPS16,
7133         then use a copygp_mips16 instruction to set up $28.
7134         (mips_expand_prologue): Initialize the cprestore slot for MIPS16 too.
7135         (mips16_lay_out_constants): Call split_all_insns_noflow.
7136         (mips_reorg_process_insns): Explicitly set all_noreorder_p to
7137         false if TARGET_MIPS16.
7138         (mips_reorg): Don't call vr4130_align_insns if TARGET_MIPS16.
7139         (mips_output_mi_thunk): Use mips_got_symbol_type_p.  Use the
7140         mips_dangerous_for_la25_p approach for MIPS16 PIC calls too.
7141         (mips_set_mips16_mode): Always set MASK_EXPLICIT_RELOCS for
7142         MIPS16 code.  Allow MIPS16 o32 PIC.
7143         (mips_override_options): Allow MIPS16 o32 PIC.
7144         * config/mips/mips.md: Lower CONST_GP_P moves into register moves
7145         after reload if TARGET_USE_GOT.
7146         (UNSPEC_COPYGP): New constant.
7147         (length): Use a default length of 8 for MIPS16 GOT loads.
7148         (*got_disp<mode>): Check mips_split_p instead of TARGET_XGOT.
7149         (*got_page<mode>): Check mips_split_hi_p.
7150         (*got_disp<mode>, *got_page<mode>): Use mips_got_load.
7151         (unspec_got<mode>, unspec_call<mode>): New expanders.
7152         (load_got<mode>, load_call<mode>): Remove the length attributes.
7153         Use a got attribute instead of a type attribute.
7154         (copygp_mips16): New insn.
7155         (restore_gp): Add a scratch clobber and pass it to mips_restore_gp.
7156         (load_call<mode>): Use a "d" constraint instead of an "r" constraint.
7157         (sibcall, sibcall_value, call, call_value): Update the calls
7158         to mips_expand_call.
7159         (call_internal, call_value_internal): Use mips_split_call.
7160         (call_value_multiple_internal): Likewise.
7161         (call_split): Move after call_internal (the insn it is split from).
7162         (call_internal_direct, call_value_internal_direct): Turn into
7163         define_insn_and_splits.  Split if TARGET_SPLIT_CALLS.
7164         (call_direct_split, call_value_direct_split): New patterns.
7165         * config/mips/constraints.md (c): Handle TARGET_MIPS16 first
7166         and use M16_REGS instead of M16_NA_REGS.
7167         * config/mips/predicates.md (const_call_insn_operand): Replace
7168         the TARGET_ABSOLUTE_ABICALLS-based check with a more general
7169         mips_use_pic_fn_addr_reg_p check.
7170         (move_operand): Reject HIGHs if mips_split_hi_p.
7171         * config/mips/mips16.S: Assembly as empty if the ABI is not suitable.
7172         (__mips16_floatunsisf): Inline __mips16_floatsisf.
7173         (CALL_STUB_NO_RET, CALL_STUB_REG): Copy the target register to $25.
7174         * config/mips/libgcc-mips16.ver: New file.
7175         * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Add
7176         $(srcdir)/config/mips/libgcc-mips16.ver.
7177
7178 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
7179
7180         * config/mips/mips.c (mips_unspec_address_offset): Move earlier
7181         in file.
7182         (mips_unspec_address, mips_unspec_offset_high): Likewise.
7183         (mips_ok_for_lazy_binding_p, mips_load_call_address): Likewise.
7184         (mips16_cfun_returns_in_fpr_p): Likewise.
7185
7186 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
7187
7188         * config/mips/mips.h (MASK_RETURN_ADDR): Expand commentary.
7189         * config/mips/linux-unwind.h (mips_fallback_frame_state): Add 2
7190         rather than 4 to PC.
7191
7192 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
7193
7194         * config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
7195         (FUNCTION_PROFILER): Save the static chain pointer into $2
7196         beforehand and restore it aftewards.
7197         (TRAMPOLINE_TEMPLATE): Adjust accordingly.  Load the target
7198         address directly into $25 and call the function through $25;
7199         do not clobber $3.  Pad the DImode version to cover the space
7200         left by the deleted $25 <- $3 move.
7201         (TRAMPOLINE_SIZE): Adjust the size of the SImode version after
7202         the removal of the $25 <- $3 move.
7203         (INITIALIZE_TRAMPOLINE): Update offsets accordingly.
7204         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
7205
7206 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
7207             Daniel Jacobowitz  <dan@codesourcery.com>
7208
7209         * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
7210         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
7211         (ASM_DECLARE_FUNCTION_SIZE, FUNCTION_NAME_ALREADY_DECLARED): Delete.
7212         * config/mips/mips.c (mips_start_function_definition): New function.
7213         (mips_end_function_definition): Likewise.
7214         (mips_output_function_prologue): Use mips_start_function_definition.
7215         (mips_output_function_epilogue): Use mips_end_function_definition.
7216         (build_mips16_function_stub): Use mips_start_function_definition
7217         and mips_end_function_definition.
7218         (build_mips16_call_stub): Likewise.
7219
7220 2008-08-09  Richard Guenther  <rguenther@suse.de>
7221
7222         * gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
7223         * gimple.h (gimple_call_fn): Adjust comment.
7224         (gimple_call_set_fndecl): New function.
7225         (gimple_call_fndecl): Adjust for GIMPLE_CALL no
7226         longer having bare FUNCTION_DECL operand.
7227         (gimple_call_return_type): Likewise.
7228         * tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
7229
7230         * value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
7231         (gimple_mod_pow2): Likewise.
7232         (gimple_mod_subtract): Likewise.
7233         (gimple_ic): Likewise.
7234         (gimple_stringop_fixed_value): Likewise.
7235         (gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
7236         longer having bare FUNCTION_DECL operand.
7237         * ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
7238         * omp-low.c (optimize_omp_library_calls): Likewise.
7239         * cgraphunit.c (update_call_expr): Likewise.
7240         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
7241         (execute_convert_to_rsqrt): Likewise.
7242         * cfgexpand.c (gimple_to_tree): Simplify.
7243         (release_stmt_tree): Fix for GIMPLE_CALL no longer having
7244         bare FUNCTION_DECL operand.
7245         * tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
7246         (convert_gimple_call): Use gimple_call_fndecl.
7247         * c-common.c (c_warn_unused_result): Likewise.
7248
7249 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7250
7251         PR c/17880
7252         * c-typeck.c (digest_init): Call verify_sequence_points from here.
7253         (c_finish_return): Likewise.
7254         (c_start_case): Likewise.
7255         * c-common.c (warn_for_collisions_1): Use explicit location in warning.
7256         * c-parser.c (c_parser_condition): New. Call
7257         verify_sequence_points.
7258         (c_parser_paren_condition): Call c_parser_condition.
7259         (c_parser_for_statement): Call c_parser_condition.
7260
7261 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7262
7263         PR 36901
7264         * diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.
7265         * diagnostic.c (pedantic_warning_kind, permissive_error_kind):
7266         Moved from diagnostic.h
7267         (diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
7268         DK_PERMERROR.
7269         (emit_diagnostic): New.
7270         (warning0, pedwarn0): Delete.
7271         (warning, warning_at, pedwarn, permerror): Return bool.
7272         * diagnostic.h (pedantic_warning_kind, permissive_error_kind):
7273         Moved to diagnostic.c.
7274         (struct diagnostic_context): Use correct type for
7275         classify_diagnostic.
7276         (diagnostic_report_diagnostic): Update declaration.
7277         (emit_diagnostic): Declare.
7278         * errors.c (warning): Return bool.
7279         * errors.h (warning): Update declaration.
7280         * toplev.h (warning0, pedwarn0): Delete.
7281         (warning, warning_at, pedwarn, permerror): Return bool.
7282         * c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
7283         * c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
7284         inform. Update all calls.
7285         (diagnose_mismatched_decls): Check return value of warning/pedwarn
7286         before giving informative note.
7287         (implicit_decl_warning): Likewise.
7288         * c-typeck.c (build_function_call): Likewise.
7289         * tree-sssa.c (warn_uninit): Likewise.
7290         * builtins.c (gimplify_va_arg_expr): Likewise.
7291
7292 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7293
7294         PR 7651
7295         * doc/invoke.texi (-Wextra): Move warning from here...
7296         (-Wuninitialized): ... to here.
7297
7298 2008-08-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7299
7300         PR 28875
7301         * flags.h (set_Wunused): Delete
7302         * toplev.c (process_options): Handle Wunused flags here.
7303         * opts.c (maybe_warn_unused_parameter): Delete.
7304         (common_handle_option): Replace set_Wunused by warn_unused.
7305         (set_Wextra): Do not handle Wunused-parameter here.
7306         (set_Wunused): Delete.
7307         * c-opts.c (c_common_handle_option): Replace set_Wunused by
7308         warn_unused.
7309         * common.opt (Wunused): Add Var and Init.
7310         (Wunused-function): Likewise.
7311         (Wunused-label): Likewise.
7312         (Wunused-parameter): Likewise.
7313         (Wunused-value): Likewise.
7314         (Wunused-variable): Likewise.
7315
7316 2008-08-08  Peter Bergner  <bergner@vnet.ibm.com>
7317
7318         * doc/invoke.texi: Add cpu_type power7.
7319         * config.in (HAVE_AS_VSX): New.
7320         * config.gcc: Add cpu_type power7.
7321         * configure.ac (HAVE_AS_VSX): Check for assembler support of the
7322         VSX instructions.
7323         * configure: Regenerate.
7324         * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
7325         power5.
7326         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
7327         (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
7328         (EXTRA_SPECS): Add asm_cpu_power7 spec string.
7329
7330 2008-08-08  Dorit Nuzman  <dorit@il.ibm.com>
7331
7332         * tree-vect-transform.c (vectorizable_conversion): Pass the integral
7333         type to vectorize.builtin_conversion.
7334         (vectorizable_conversion): Likewise.
7335         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
7336         integral type as input.
7337         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
7338         FIX_TRUNC_EXPR.
7339         (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
7340         and ALTIVEC_BUILTIN_VCTSXS.
7341         (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
7342         formatting.
7343
7344 2008-08-08  Richard Guenther  <rguenther@suse.de>
7345
7346         * tree-ssa-ccp.c (likely_value): Calls are not all varying.
7347         (surely_varying_stmt_p): Calls are varying only if they are
7348         non-builtin and not indirect or have no result.
7349         (ccp_fold): Re-instantiate code before the tuples merge.
7350
7351 2008-08-08  Richard Guenther  <rguenther@suse.de>
7352
7353         PR tree-optimization/37056
7354         * gimple.h (gimple_assign_rhs_class): New helper function.
7355         * tree-ssa-loop-niter.c (get_val_for): Fix tuplification, handle
7356         unary operations properly.
7357
7358 2008-08-07  Jan Hubicka  <jh@suse.cz>
7359
7360         * i386.h (ix86_size_cost): Declare.
7361         (ix86_cur_cost): New function macro.
7362         * i386.md (peepholes expanding size and splitters): Predicate by
7363         optimize_insn_for_speed_p.
7364         (peepholes reduce size and splitters): Predicate by
7365         optimize_insn_for_size_p.
7366         * i386.c (ix86_size_cost): Rename from ...
7367         (size_cost): This one.
7368         (override_options): Update.
7369         (decide_alg): Likewise.
7370         (ix86_expand_clear): Use RTL profile.
7371         (ix86_pad_returns): Use RTL profile.
7372
7373 2008-08-07  Jan Hubicka  <jh@suse.cz>
7374
7375         * recog.c (split_all_insns): Set RTL profile
7376         (peephole2_optimize): Likewise.
7377         * function.c (thread_prologue_and_epilogue_insns): Likewise.
7378         * combine.c (combine_instructions): Likewise.
7379
7380 2008-08-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7381
7382         * c-common.c (c_common_reswords): Also warn about keyword "bool".
7383
7384 2008-08-07  Bob Wilson  <bob.wilson@acm.org>
7385
7386         * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming
7387         value in a6 after the set_frame_ptr insn.
7388
7389 2008-08-07  Richard Henderson  <rth@redhat.com>
7390
7391         PR debug/37033
7392         * gcc.c (cpp_options): Pass along -g*.
7393
7394 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
7395
7396         * config/arm/arm.c (output_move_neon): Update comment describing
7397         big-endian vector layout.
7398         (arm_assemble_integer): Do not handle big-endian NEON vectors
7399         specially.
7400         * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
7401         neon_vget_lane<mode>_sext_internal,
7402         neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
7403         element indices for big-endian.
7404
7405 2008-08-07  Richard Henderson  <rth@redhat.com>
7406
7407         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
7408         * configure, config.in: Rebuild.
7409         * debug.h (dwarf2out_do_cfi_asm): Declare.
7410         * c-cppbuiltin.c (c_cpp_builtins): Use it.
7411         * dwarf2out.c (dwarf2out_do_cfi_asm): New.
7412         (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
7413         dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
7414
7415 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
7416
7417         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
7418         movv2si_internal): Combine into mov<mode>_internal.
7419         (movv2si_internal_2): Remove.
7420
7421 2008-08-07  Jan Hubicka  <jh@suse.cz>
7422
7423         PR target/37048
7424         * i386.md (single stringop patterns): Enable unconditionally.
7425
7426 2008-08-07  H.J. Lu  <hongjiu.lu@intel.com>
7427
7428         PR target/36992
7429         * config/i386/emmintrin.h (_mm_move_epi64): Use __builtin_ia32_movq128.
7430
7431         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
7432         (bdesc_args): Add IX86_BUILTIN_MOVQ128.
7433
7434         * config/i386/sse.md (sse2_movq128): New.
7435
7436         * doc/extend.texi: Document __builtin_ia32_movq128.
7437
7438 2008-08-07  Richard Guenther  <rguenther@suse.de>
7439
7440         PR middle-end/37042
7441         * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
7442         pointers can access anything.
7443
7444 2008-08-06  Jan Hubicka  <jh@suse.cz>
7445
7446         * optabs.c (emit_unop_insn): Break out to ...
7447         (maybe_emit_unop_insn): ... this one.
7448         (expand_sfix_optab): Use maybe variant.
7449         * optabs.h (maybe_emit_unop_insn): Declare.
7450
7451         * i386.md (mov0 patterns): Enable by default.
7452         (FP conversion expanders): Disable expansion of code expanding
7453         sequences when instruction should be optimized for size.
7454         (single strinop patterns): Enable when optimizing for size.
7455         (string expanders): Disable expanding of code expanding sequences
7456         when optimizning instruction for size.
7457         * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
7458         per BB basis.
7459         (ix86_fp_comparison_sahf_cost): Likewise.
7460         (ix86_expand_branch): Likewise.
7461         (ix86_expand_ashl_const): Likewise.
7462         (ix86_split_ashl): Likewise.
7463         (ix86_expand_strlen): Likewise.
7464         (ix86_emit_fp_unordered_jump): Likewie.
7465
7466 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7467
7468         * c-common.c: Fix typo.
7469         (c_common_reswords): Activate more C++ keyword warnings.
7470
7471         * matrix-reorg.c (compute_offset): Avoid C++ keywords.
7472
7473 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7474
7475         PR 26785
7476         * diagnostic.c (permerror_at): New.
7477         * toplev.h (permerror_at): Declare.
7478
7479 2008-08-06  Victor Kaplansky  <victork@il.ibm.com>
7480             Ira Rosen  <irar@il.ibm.com>
7481
7482         * tree-vect-transform.c (vect_model_simple_cost): Return
7483         immediately if stmt is pure SLP.
7484         (vect_model_store_cost): Ditto.
7485         (vect_model_load_cost): Ditto.
7486         (vectorizable_store): Remove PURE_SLP check before call
7487         to vect_model_store_cost.
7488         (vect_model_store_cost): When checking whether stmt describe
7489         strided access, add a check that it is not slp_node.
7490
7491 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7492
7493         PR 8715
7494         * c-common.c (warn_for_sign_compare): New. Handle separately the
7495         case that 'constant' is zero.
7496         * c-typeck.c (build_binary_op): Move code to c-common.c
7497
7498 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7499
7500         * config/alpha/alpha.c (alpha_preferred_reload_class,
7501         alpha_secondary_reload, alpha_emit_set_const_1, function_value,
7502         alpha_output_mi_thunk_osf): Avoid C++ keywords.
7503         * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
7504         * config/arm/arm.md: Likewise.
7505         * config/avr/avr-protos.h (preferred_reload_class,
7506         test_hard_reg_class, avr_simplify_comparison_p,
7507         out_shift_with_cnt, class_max_nregs): Likewise.
7508         * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
7509         output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
7510         preferred_reload_class, test_hard_reg_class): Likewise.
7511         * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
7512         bfin_memory_move_cost, bfin_secondary_reload,
7513         bfin_output_mi_thunk): Likewise.
7514         * config/crx/crx.c (crx_secondary_reload_class,
7515         crx_memory_move_cost): Likewise.
7516         * config/frv/frv-protos.h (frv_secondary_reload_class,
7517         frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
7518         * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
7519         frv_secondary_reload_class, frv_class_likely_spilled_p,
7520         frv_class_max_nregs): Likewise.
7521         * config/h8300/h8300.c (h8300_classify_operand,
7522         h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
7523         Likewise.
7524         * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
7525         * config/ia64/ia64.c (ia64_preferred_reload_class,
7526         ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
7527         * config/iq2000/iq2000.c (gen_int_relational): Likewise.
7528         * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
7529         Likewise.
7530         * config/m68hc11/m68hc11.c (preferred_reload_class,
7531         m68hc11_memory_move_cost): Likewise.
7532         * config/mcore/mcore.c (mcore_secondary_reload_class,
7533         mcore_reload_class): Likewise.
7534         * config/mips/mips.c (mips_hard_regno_mode_ok_p,
7535         mips_class_max_nregs, mips_cannot_change_mode_class,
7536         mips_preferred_reload_class, mips_secondary_reload_class,
7537         mips_output_mi_thunk): Likewise.
7538         * config/mmix/mmix.c (mmix_preferred_reload_class,
7539         mmix_preferred_output_reload_class, mmix_secondary_reload_class):
7540         Likewise.
7541         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
7542         Likewise.
7543         * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
7544         pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
7545         * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
7546         * config/rs6000/rs6000.c (paired_expand_vector_init,
7547         rs6000_secondary_reload_class, rs6000_output_mi_thunk,
7548         compare_section_name, rs6000_memory_move_cost): Likewise.
7549         * config/s390/s390.c (s390_emit_compare_and_swap,
7550         s390_preferred_reload_class, s390_secondary_reload,
7551         legitimize_pic_address, legitimize_tls_address,
7552         legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
7553         s390_class_max_nregs): Likewise.
7554         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
7555         * config/s390/s390.md: Likewise.
7556         * config/score/score-protos.h (score_secondary_reload_class,
7557         score_preferred_reload_class): Likewise.
7558         * config/score/score.c (score_preferred_reload_class,
7559         score_secondary_reload_class): Likewise.
7560         * config/score/score3.c (score3_output_mi_thunk,
7561         score3_preferred_reload_class, score3_secondary_reload_class,
7562         score3_hard_regno_mode_ok): Likewise.
7563         * config/score/score3.h (score3_preferred_reload_class,
7564         score3_secondary_reload_class): Likewise.
7565         * config/score/score7.c (score7_output_mi_thunk,
7566         score7_preferred_reload_class, score7_secondary_reload_class,
7567         score7_hard_regno_mode_ok): Likewise.
7568         * config/score/score7.h (score7_preferred_reload_class,
7569         score7_secondary_reload_class): Likewise.
7570         * config/sh/sh.c (prepare_move_operands, output_far_jump,
7571         output_branchy_insn, add_constant, gen_block_redirect,
7572         sh_insn_length_adjustment, sh_cannot_change_mode_class,
7573         sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload): Likewise.
7574         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
7575         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
7576         xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
7577         xstormy16_preferred_reload_class): Likewise.
7578         * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
7579         xtensa_expand_atomic, override_options,
7580         xtensa_preferred_reload_class, xtensa_secondary_reload_class):
7581         Likewise.
7582         * reorg.c (try_merge_delay_insns): Likewise.
7583         * tree.c (merge_dllimport_decl_attributes): Likewise.
7584
7585         * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
7586
7587 2008-08-06  Michael Matz  <matz@suse.de>
7588
7589         * Makefile.in (write_entries_to_file): Quote words.
7590         * gengtype.c: (read_input_line): Skip over leading white-space.
7591
7592 2008-08-06  Marc Gauthier  <marc@tensilica.com>
7593
7594         * config.gcc: Match more processor names for Xtensa.
7595         * configure.ac: Likewise.
7596         * doc/install.texi (Specific): Likewise.
7597         * configure: Regenerate.
7598
7599 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7600
7601         * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
7602         * calls.c (avoid_likely_spilled_reg): Likewise.
7603         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
7604         * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
7605         * config/i386/i386.c (ix86_expand_special_args_builtin,
7606         ix86_secondary_reload): Likewise.
7607         * except.c (struct eh_region, gen_eh_region_catch,
7608         remove_unreachable_regions, duplicate_eh_regions,
7609         assign_filter_values, build_post_landing_pads,
7610         sjlj_find_directly_reachable_regions, remove_eh_handler,
7611         reachable_next_level, foreach_reachable_handler,
7612         can_throw_internal_1, can_throw_external_1,
7613         collect_one_action_chain): Likewise.
7614         * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
7615         * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
7616         * function.c (update_temp_slot_address, instantiate_new_reg,
7617         instantiate_virtual_regs_in_rtx,
7618         instantiate_virtual_regs_in_insn): Likewise.
7619         * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
7620         * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
7621         gimplify_cleanup_point_expr): Likewise.
7622         * ipa-cp.c (ipcp_lattice_changed): Likewise.
7623         * passes.c (next_pass_1): Likewise.
7624         * print-tree.c (print_node_brief, print_node): Likewise.
7625         * profile.c (branch_prob): Likewise.
7626         * tree-dump.c (dump_register): Likewise.
7627         * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
7628         Likewise.
7629         * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
7630         copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
7631         copy_edges_for_bb, copy_cfg_body, copy_tree_r,
7632         copy_arguments_for_versioning, copy_static_chain): Likewise.
7633         * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
7634         add_new_name_mapping, register_new_name_mapping): Likewise.
7635         * tree-mudflap.c (mf_xform_derefs): Likewise.
7636         * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
7637         get_init_expr, combine_chains): Likewise.
7638         * tree-pretty-print.c (dump_generic_node): Likewise.
7639         * tree-ssa-structalias.c (create_variable_info_for): Likewise.
7640         * tree-vrp.c (simplify_cond_using_ranges): Likewise.
7641         * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
7642         * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
7643
7644 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
7645
7646         PR middle-end/37010
7647         * calls.c (expand_call): Use the biggest preferred stack
7648         boundary.
7649
7650 2008-08-06  Michael Matz  <matz@suse.de>
7651
7652         PR target/36613
7653         * reload.c (push_reload): Merge in,out,in_reg,out_reg members
7654         for reused reload, instead of overwriting them.
7655
7656 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
7657
7658         PR middle-end/37009
7659         * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
7660         for incoming stack boundary.
7661
7662         * function.c (assign_parm_find_entry_rtl): Update
7663         parm_stack_boundary.
7664
7665         * function.h (rtl_data): Add parm_stack_boundary.
7666
7667         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
7668         parm_stack_boundary for incoming stack boundary.
7669
7670 2008-08-06  Joseph Myers  <joseph@codesourcery.com>
7671
7672         * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
7673         for unrepresentable subregs or treat them as equal to other regs
7674         or subregs with the same register number.
7675
7676 2008-08-06  Aldy Hernandez  <aldyh@redhat.com>
7677
7678         PR middle-end/35432
7679         * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
7680         if want_value.
7681
7682 2008-08-06  Jan Hubicka  <jh@suse.cz>
7683
7684         * predict.c (maybe_hot_frequency_p): When profile is absent, all
7685         frequencies might be hot.
7686
7687 2008-08-06  Andreas Krebbel  <krebbel1@de.ibm.com>
7688
7689         * reload.c (find_reloads): Force constants into literal pool
7690         also if they are wrapped in a SUBREG.
7691
7692 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
7693
7694         PR target/35659
7695         * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
7696         * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
7697         Don't allow predicated instructions for data speculation.
7698         * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
7699         declaration.
7700
7701 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
7702
7703         * haifa-sched.c (extend_global): Split to extend_global_data and
7704         extend_region_data.  Update all uses.
7705         (extend_all): Rename to extend_block_data.
7706
7707 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
7708
7709         * sched-rgn.c (new_ready): Check if instruction can be
7710         speculatively scheduled before attempting speculation.
7711         (debug_rgn_dependencies): Remove wrongful assert.
7712
7713 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
7714
7715         * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
7716
7717 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
7718
7719         * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
7720         (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
7721         va_size, and type_size.
7722
7723 2008-08-04  Jason Merrill  <jason@redhat.com>
7724
7725         PR c++/37016
7726         * tree-ssa.c (useless_type_conversion_p_1): Call langhook
7727         if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
7728
7729 2008-08-05  Richard Henderson  <rth@redhat.com>
7730
7731         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
7732         * configure: Rebuild.
7733
7734 2008-08-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7735
7736         PR tree-opt/37024
7737         * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
7738         instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
7739         is a conversion.
7740
7741 2008-08-05  Richard Henderson  <rth@redhat.com>
7742
7743         * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
7744         * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
7745         * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
7746         * common.opt (fdwarf2-cfi-asm): New.
7747         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
7748         * config.in, configure: Rebuild.
7749         * dwarf2asm.c (dw2_asm_output_data_raw): New.
7750         (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw):
7751         New.
7752         (dw2_force_const_mem): Externalize.
7753         * dwarf2asm.h: Update.
7754         * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
7755         generate a real label.
7756         (output_cfi_directive): New.
7757         (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
7758         (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
7759         (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
7760         and .cfi_lsda.
7761         (dwarf2out_end_epilogue): Emit .cfi_endproc.
7762         (output_loc_operands_raw, output_loc_sequence_raw): New.
7763         (output_cfa_loc_raw): New.
7764
7765 2008-08-05  Paul Brook  <paul@codesourcery.com>
7766
7767         * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
7768         * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
7769         (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
7770         (arm_file_start): Add FPUTYPE_VFP3D16.  Rename vfp3 to vfpv3.
7771         * config/arm/arm.h (TARGET_VFPD32): Define.
7772         (TARGET_VFP3): Use TARGET_VFPD32.
7773         (fputype): Add FPUTYPE_VFP3D16.
7774         (LAST_VFP_REGNUM): Use TARGET_VFPD32.
7775         * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
7776         * config/arm/arm-cores.def: Add cortex-r4f.
7777         * config/arm/arm-tune.md: Regenerate.
7778
7779 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7780
7781         * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
7782         Reword some comments throughout the file.
7783
7784         (MFC_MIN_DMA_LIST_ELEMENTS): New define.
7785         (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
7786         (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of
7787         MFC_MIN_DMA_LIST_ELEMENTS.
7788         (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of
7789         MFC_MAX_DMA_LIST_ELEMENTS.
7790
7791         (MFC_START_ENABLE): Remove PPU-only define.
7792         (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
7793         (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
7794
7795         (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
7796         (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
7797         (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
7798         (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
7799         (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
7800         (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
7801         (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
7802
7803         (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
7804         (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
7805         (mfc_sdcrt, mfc_sdcrtst): Likewise.
7806         (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
7807
7808         (spu_read_machine_status): Fix typo.
7809
7810 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7811
7812         * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
7813         SUBREG of multi-word hard register.
7814         * config/spu/spu.c (valid_subreg): Likewise.
7815         (adjust_operand): Handle SUBREGs of multi-word hard registers.
7816
7817 2008-08-04  Richard Guenther  <rguenther@suse.de>
7818
7819         * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
7820         the candidate with the stripped base if that base is different
7821         from the original base even for offset zero.
7822
7823 2008-08-04  Richard Guenther  <rguenther@suse.de>
7824
7825         PR middle-end/36691
7826         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
7827         check for no_overflow.
7828
7829 2008-08-04  Richard Guenther  <rguenther@suse.de>
7830
7831         * tree-vect-transform.c (vectorizable_call): Fix tuplification.
7832
7833 2008-08-04  Paul Brook  <paul@codesourcery.com>
7834
7835         * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
7836         (arm_order_regs_for_local_alloc): New function.
7837         * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
7838         prototype.
7839         * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
7840
7841 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
7842
7843         PR target/37012
7844         * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
7845         instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
7846         (ix86_expand_epilogue): Likewise.
7847
7848 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
7849
7850         * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
7851         in comments.
7852
7853 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
7854
7855         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
7856         to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
7857         (*movv2sf_internal_rex64): Ditto.
7858
7859 2008-08-03  Jan Hubicka  <jh@suse.cz>
7860
7861         * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
7862         expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
7863         * expmed.c (expand_smod_pow2): Likewise.
7864
7865 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
7866
7867         PR target/36992
7868         * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
7869         alternative 0 of operand 1.
7870         (*vec_concatv2di_rex64_sse): Ditto.
7871         (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
7872         of operand 1.
7873         (*sse2_storeq_rex64): Penalize allocation of "r" registers.
7874         * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
7875         of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
7876         (*movv2sf_internal_rex64): Ditto.
7877
7878 2008-08-02  Richard Guenther  <rguenther@suse.de>
7879
7880         PR target/35252
7881         * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
7882         (ssedoublesizemode): New mode attribute.
7883         (sse_shufps): Call gen_sse_shufps_v4sf.
7884         (sse_shufps_1): Macroize.
7885         (sse2_shufpd): Call gen_Sse_shufpd_v2df.
7886         (sse2_shufpd_1): Macroize.
7887         (vec_extract_odd, vec_extract_even): New expanders.
7888         (vec_interleave_highv4sf, vec_interleave_lowv4sf,
7889         vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
7890         * i386.c (ix86_expand_vector_init_one_nonzero): Call
7891         gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
7892         (ix86_expand_vector_set): Likewise.
7893         (ix86_expand_reduc_v4sf): Likewise.
7894
7895 2008-08-01  Doug Kwan  <dougkwan@google.com>
7896
7897         * matrix-reorg.c: Re-enable all code.
7898         (struct malloc_call_data): Change CALL_STMT to gimple type.
7899         (collect_data_for_malloc_call): Tuplify.
7900         (struct access_site_info): Change STMT to gimple type.
7901         (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
7902         and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
7903         (struct free_info): Change STMT to gimple type.
7904         (struct matrix_access_phi_node):  Change PHI to gimple type.
7905         (get_inner_of_cast_expr): Remove.
7906         (may_flatten_matrices_1): Tuplify.
7907         (may_flatten_matrices): Ditto.
7908         (mark_min_matrix_escape_level): Ditto.
7909         (ssa_accessed_in_tree): Refactor statement RHS related code into ...
7910         (ssa_accessed_in_call_rhs): New
7911         (ssa_accessed_in_assign_rhs): New
7912         (record_access_alloc_site_info): Tuplify.
7913         (add_allocation_site): Ditto.
7914         (analyze_matrix_allocation_site): Ditto.
7915         (analyze_transpose): Ditto.
7916         (get_index_from_offset): Ditto.
7917         (update_type_size): Ditto.
7918         (analyze_accesses_for_call_expr): Tuplify and renamed into ...
7919         (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
7920         (analyze_accesses_for_phi_node): Tuplify.
7921         (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
7922         (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
7923         (analyze_matrix_accesses): Tuplify.
7924         (check_var_data): New call-back type for check_var_notmodified_p.
7925         (check_var_notmodified_p): Tuplify and use call-back struct to
7926         return statement found.
7927         (can_calculate_expr_before_stmt): Factor out statement related code
7928         into ...
7929         (can_calculate_stmt_before_stmt): New.
7930         (check_allocation_function): Tuplify.
7931         (find_sites_in_func): Ditto.
7932         (record_all_accesses_in_func): Ditto.
7933         (transform_access_sites): Ditto.
7934         (transform_allocation_sites): Ditto.
7935         (matrix_reorg): Re-enable.
7936         (gate_matrix_reorg): Re-enable.
7937
7938 2008-08-01  Jakub Jelinek  <jakub@redhat.com>
7939
7940         * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
7941         for labels for which it hasn't been set yet.  If it has been set,
7942         stop walking insns and continue with next worklist item.
7943         (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
7944         if the only BARRIER is at the very end of a function.
7945
7946 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
7947
7948         * cfgexpand.c (expand_stack_alignment): Assert that
7949         stack_realign_drap and drap_rtx must match.
7950
7951         * function.c (instantiate_new_reg): If DRAP is used to realign
7952         stack, replace virtual_incoming_args_rtx with internal arg
7953         pointer.
7954
7955 2008-08-01  Richard Guenther  <rguenther@suse.de>
7956
7957         * tree-ssa-pre.c (fini_pre): Take in_fre parameter.  Free
7958         loop information only if we initialized it.
7959         (execute_pre): Call fini_pre with in_fre.
7960         * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
7961         if we do not unroll because we hit max-completely-peeled-insns.
7962         Use our estimation for consistency, do allow shrinking.
7963
7964 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
7965
7966         * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
7967         with MIN_STACK_BOUNDARY.
7968         (ix86_update_stack_boundary): Likewise.
7969         (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
7970         STACK_BOUNDARY.
7971
7972         * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
7973         (MIN_STACK_BOUNDARY): This.
7974
7975 2008-08-01  Richard Guenther  <rguenther@suse.de>
7976
7977         PR middle-end/36997
7978         * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
7979
7980 2008-08-01  Richard Guenther  <rguenther@suse.de>
7981
7982         PR tree-optimization/36988
7983         * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
7984         do not matter if that doesn't change volatile qualification.
7985
7986 2008-08-01  Paolo Bonzini  <bonzini@gnu.org>
7987
7988         * configure.ac: Do not generate libada-mk.  Do not subst
7989         host_cc_for_libada.
7990         * libada-mk.in: Remove.
7991         * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
7992         * configure: Regenerate.
7993
7994 2008-08-01  Basile Starynkevitch  <basile@starynkevitch.net>
7995
7996         * tree-pass.h: Added comment about not dumping passes with name
7997         starting with star in struct opt_pass.
7998         * passes.c (register_dump_files_1): Don't do dump for a pass with
7999         name starting with star.
8000         * doc/passes.texi (Pass manager): Mention pass names and special
8001         meaning of star prefix to avoid dump.
8002
8003 2008-07-31  Adam Nemet  <anemet@caviumnetworks.com>
8004
8005         * config.gcc (mipsisa64r2*-*-linux*): New configuration.  Set ISA
8006         to MIPS64r2.
8007         * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
8008         (ISA_MIPS64R2): New macro.
8009         (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
8010         (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
8011         ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
8012         ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
8013         ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
8014         ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
8015         ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
8016         (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
8017         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
8018         Move up to keep list alphabetically sorted.
8019         (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
8020         * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
8021         processor.
8022         * doc/invoke.texi (MIPS Options): Add -mips64r2.
8023         (-march=@var{arch}): Add mips64r2.
8024
8025 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
8026
8027         * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
8028
8029 2008-07-31  Steve Ellcey  <sje@cup.hp.com>
8030
8031         * expr.c (expand_assignment): Check for complete type.
8032
8033 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
8034
8035         PR debug/36977
8036         * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
8037
8038         * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
8039         for stack alignment.
8040
8041         * function.h (rtl_data): Add stack_realign_tried.  Update comments.
8042
8043 2008-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
8044
8045         * config/sh/sh.c (sh_canonical_va_list_type): Remove.
8046         (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
8047
8048 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
8049
8050         PR rtl-optimization/36419
8051         * dwarf2out.c (barrier_args_size): New variable.
8052         (compute_barrier_args_size, compute_barrier_args_size_1): New
8053         functions.
8054         (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
8055         if not called yet in the current function, use barrier_args_size
8056         array to find the new args_size value.
8057         (dwarf2out_frame_debug): Free and clear barrier_args_size.
8058
8059 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
8060
8061         PR debug/36980
8062         * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
8063         rule 19.
8064
8065 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
8066
8067         PR debug/36976
8068         * dwarf2out.c (dwarf2out_args_size_adjust): New.
8069         (dwarf2out_stack_adjust): Use it.
8070         (dwarf2out_frame_debug_expr): Likewise.
8071
8072 2008-07-31  Richard Guenther  <rguenther@suse.de>
8073
8074         PR tree-optimization/36978
8075         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
8076         the generated condition.
8077
8078 2008-07-31  Richard Guenther  <rguenther@suse.de>
8079
8080         * passes.c (init_optimization_passes): Always call
8081         pass_early_warn_uninitialized.
8082         * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
8083         * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
8084         * doc/passes.texi (Warn for uninitialized variables): Adjust.
8085
8086 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
8087
8088         PR c/36970
8089         * builtins.c (maybe_emit_free_warning): New function.
8090         (expand_builtin): Process BUILT_IN_FREE even at -O0.  Call
8091         maybe_emit_free_warning for BUILT_IN_FREE.
8092
8093         PR debug/36278
8094         * dwarf2out.c (get_context_die): New function.
8095         (force_decl_die, force_type_die): Use it.
8096         (dwarf2out_imported_module_or_decl): Likewise.  If base_type_die
8097         returns NULL, force generation of DW_TAG_typedef and put that into
8098         DW_AT_import.
8099
8100         PR preprocessor/36649
8101         * c-pch.c (c_common_read_pch): Save and restore
8102         line_table->trace_includes across PCH restore.
8103
8104 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
8105
8106         PR ada/36554
8107         * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
8108
8109 2008-07-30  Rafael Ãƒvila de Espíndola  <espindola@google.com>
8110
8111         PR 36974
8112         * final.c (call_from_call_insn): Handle COND_EXEC.
8113
8114 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
8115
8116         * builtins.c (std_gimplify_va_arg_expr): Replace
8117         PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
8118         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
8119
8120 2008-07-30  Joey Ye  <joey.ye@intel.com>
8121             H.J. Lu  <hongjiu.lu@intel.com>
8122
8123         * builtins.c (expand_builtin_setjmp_receiver): Replace
8124         virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
8125         (expand_builtin_apply_args_1): Likewise.
8126         (expand_builtin_longjmp): Need DRAP for stack alignment.
8127         (expand_builtin_apply): Likewise.
8128
8129         * caller-save.c (setup_save_areas): Call assign_stack_local_1
8130         instead of assign_stack_local to allow alignment reduction.
8131
8132         * calls.c (emit_call_1): Need DRAP for stack alignment if
8133         return pops.
8134         (expand_call): Replace virtual_incoming_args_rtx with
8135         crtl->args.internal_arg_pointer.
8136         * stmt.c (expand_nl_goto_receiver): Likewise.
8137
8138         * cfgexpand.c (get_decl_align_unit): Estimate stack variable
8139         alignment and store to stack_alignment_estimated and
8140         max_used_stack_slot_alignment.
8141         (expand_one_var): Likewise.
8142         (expand_stack_alignment): New function.
8143         (tree_expand_cfg): Initialize max_used_stack_slot_alignment
8144         and stack_alignment_estimated fields in rtl_data.  Call
8145         expand_stack_alignment at end.
8146
8147         * defaults.h (INCOMING_STACK_BOUNDARY): New.
8148         (MAX_STACK_ALIGNMENT): Likewise.
8149         (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
8150         (SUPPORTS_STACK_ALIGNMENT): Likewise.
8151
8152         * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
8153         stack alignment when generating virtual registers.
8154
8155         * function.c (assign_stack_local): Renamed to ...
8156         (assign_stack_local_1): This.  Add a parameter to indicate
8157         if it is OK to reduce alignment.
8158         (assign_stack_local): Use it.
8159         (instantiate_new_reg): Instantiate virtual incoming args rtx
8160         to vDRAP if stack realignment and DRAP is needed.
8161         (assign_parms): Collect parameter/return type alignment and
8162         contribute to stack_alignment_estimated.
8163         (locate_and_pad_parm): Likewise.
8164         (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
8165         with crtl->args.internal_arg_pointer.
8166
8167         * function.h (rtl_data): Add new field drap_reg,
8168         max_used_stack_slot_alignment, stack_alignment_estimated,
8169         stack_realign_needed, need_drap, stack_realign_processed and
8170         stack_realign_finalized.
8171         (stack_realign_fp): New macro.
8172         (stack_realign_drap): Likewise.
8173
8174         * global.c (compute_regsets): Frame pointer is needed when
8175         stack is realigned.  Can eliminate frame pointer when stack is
8176         realigned and dynamic realigned argument pointer isn't used.
8177
8178         * reload1.c (update_eliminables):  Frame pointer is needed
8179         when stack is realigned.
8180         (init_elim_table): Can eliminate frame pointer when stack is
8181         realigned and dynamic realigned argument pointer isn't used.
8182
8183         * rtl.h (assign_stack_local_1): Declare new funtion.
8184
8185         * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
8186         (TARGET_GET_DRAP_RTX): Likewise.
8187         (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
8188         TARGET_GET_DRAP_RTX.
8189
8190         * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
8191
8192         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
8193         STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
8194
8195 2008-07-30  Xuepeng Guo  <xuepeng.guo@intel.com>
8196             H.J. Lu  <hongjiu.lu@intel.com>
8197
8198         * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
8199         vdrap_reg, stack_realign and drap_reg_saved.
8200         (add_cfi): Don't allow redefining CFA when DRAP is used.
8201         (reg_save): Handle stack alignment.
8202         (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
8203         alignment.  Don't generate DWARF information for (set fp sp)
8204         when DRAP is used.
8205         (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
8206         to INVALID_REGNUM.
8207         (int_loc_descriptor): Move prototype forward.  Also define if
8208         DWARF2_UNWIND_INFO is true.
8209         (output_cfa_loc): Handle DW_CFA_expression.
8210         (build_cfa_aligned_loc): New.
8211         (based_loc_descr): Update assert for stack realign.  For local
8212         variables, use sp+offset when stack is aligned without drap and
8213         fp+offset when stack is aligned with drap.  For arguments, use
8214         cfa+offset when drap is used to align stack.
8215
8216 2008-07-30  Joey Ye  <joey.ye@intel.com>
8217             H.J. Lu  <hongjiu.lu@intel.com>
8218
8219         * config/i386/i386.c (ix86_force_align_arg_pointer_string):
8220         Break long line.
8221         (ix86_gen_andsp): New.
8222         (ix86_user_incoming_stack_boundary): Likewise.
8223         (ix86_default_incoming_stack_boundary): Likewise.
8224         (ix86_incoming_stack_boundary): Likewise.
8225         (ix86_can_eliminate): Likewise.
8226         (find_drap_reg): Likewise.
8227         (ix86_update_stack_boundary): Likewise.
8228         (ix86_get_drap_rtx): Likewise.
8229         (ix86_finalize_stack_realign_flags): Likewise.
8230         (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
8231         (TARGET_GET_DRAP_RTX): Likewise.
8232         (override_options): Overide option value for new options.
8233         (ix86_function_ok_for_sibcall): Remove check for
8234         force_align_arg_pointer.
8235         (ix86_handle_cconv_attribute): Likewise.
8236         (ix86_function_regparm): Likewise.
8237         (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
8238         (ix86_va_start): Replace virtual_incoming_args_rtx with
8239         crtl->args.internal_arg_pointer.
8240         (ix86_select_alt_pic_regnum): Check DRAP register.
8241         (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
8242         (ix86_compute_frame_layout): Compute frame layout wrt stack
8243         realignment.
8244         (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
8245         (ix86_expand_prologue): Decide if stack realignment is needed
8246         and generate prologue code accordingly.
8247         (ix86_expand_epilogue): Generate epilogue code wrt stack
8248         realignment is really needed or not.
8249
8250         * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
8251         (ABI_STACK_BOUNDARY): Likewise.
8252         (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
8253         (STACK_REALIGN_DEFAULT): Likewise.
8254         (INCOMING_STACK_BOUNDARY): Likewise.
8255         (MAX_STACK_ALIGNMENT): Likewise.
8256         (ix86_incoming_stack_boundary): Likewise.
8257         (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
8258         (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
8259         (CAN_ELIMINATE): Defined with ix86_can_eliminate.
8260         (machine_function): Remove force_align_arg_pointer.
8261
8262         * config/i386/i386.md (BX_REG): New.
8263         (R13_REG): Likewise.
8264
8265         * config/i386/i386.opt (mforce_drap): New.
8266         (mincoming-stack-boundary): Likewise.
8267         (mstackrealign): Add Init(-1).
8268
8269         * config/i386/i386-protos.h (ix86_can_eliminate): New
8270
8271 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
8272
8273         * doc/extend.texi: Update force_align_arg_pointer.
8274
8275         * doc/invoke.texi: Document -mincoming-stack-boundary.  Update
8276         -mstackrealign.
8277
8278         * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
8279         (INCOMING_STACK_BOUNDARY): Likewise.
8280         (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
8281         (TARGET_GET_DRAP_RTX): Likewise.
8282
8283 2008-07-30  Andreas Schwab  <schwab@suse.de>
8284
8285         PR rtl-optimization/36929
8286         * dse.c (replace_inc_dec): Use emit_insn_before instead of
8287         add_insn_before and fix argument order.
8288         (replace_inc_dec_mem): Handle NULL rtx.
8289
8290 2008-07-30  Andrew Jenner  <andrew@codesourcery.com>
8291
8292         * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
8293         function.
8294         (arm_compute_initial_elimination_offset): Use it.
8295         (arm_compute_save_reg_mask): Include static chain save slot when
8296         calculating alignment.
8297         (arm_get_frame_offsets): Ditto.
8298         (thumb1_compute_save_reg_mask): Ensure we have a low register saved
8299         that we can use to decrement the stack when the stack decrement
8300         could be too big for an immediate value in a single insn.
8301         (thumb1_expand_prologue): Avoid using r12 for stack decrement.
8302
8303 2008-07-30  Richard Guenther  <rguenther@suse.de>
8304
8305         PR tree-optimization/36967
8306         * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
8307         Release defs of statements we remove.
8308
8309 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
8310
8311         * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
8312         instead of NULL_RTVEC.
8313
8314 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
8315
8316         PR target/35866
8317
8318         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
8319         vector modes.
8320
8321 2008-07-30  Rafael Ãƒvila de Espíndola  <espindola@google.com>
8322
8323         * final.c (call_from_call_insn): New.
8324         (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
8325
8326 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
8327
8328         * configure.ac: Substitute ADA_CFLAGS.
8329         * configure: Regenerate.
8330         * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
8331         * Makefile.in: Remove mention of X_* variables.
8332         * config/pa/x-ada-hpux10: Remove.
8333         * config/pa/x-ada: Remove.
8334
8335         * doc/fragments.texi: Update.
8336
8337 2008-07-30  Olivier Hainque  <hainque@adacore.com>
8338
8339         * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
8340         * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
8341         __dso_handle explicitly here.
8342
8343 2008-07-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8344
8345         PR 34389
8346         * c-typeck.c (build_binary_op): Encapsulate code into...
8347         * c-common.c (shorten_binary_op): ...this new function.
8348         (conversion_warning): Use the new function. Handle non-negative
8349         constant in bitwise-and.
8350         * c-common.h (shorten_binary_op): Declare.
8351
8352 2008-07-30  Olivier Hainque  <hainque@adacore.com>
8353
8354         * scan.c (make_sstring_space): Add explicit conversions of
8355         allocator's return value.
8356         * fix-header.c (recognized_function): Likewise.
8357
8358 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8359
8360         * doc/cpp.texi: Update to GFDL 1.2.
8361         * doc/gcc.texi: Do not list GPL as Invariant Section.
8362         * doc/gccint.texi: Likewise.  Update copyright years.
8363         * doc/install.texi: Update copyright years.
8364
8365 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
8366
8367         PR target/36955
8368         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
8369         a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
8370
8371 2008-07-29  Jan Hubicka  <jh@suse.cz>
8372
8373         * c-decl.c (merge_decls): Do not handle DECL_INLINE.
8374         (grokdeclarator): Likewise.
8375         * langhooks.c (lhd_warn_unused_global_decl): Use
8376         DECL_DECLARED_INLINE_P.
8377         * print-tree.c (print_node): Remove DECL_INLINE check.
8378
8379 2008-07-29  Richard Guenther  <rguenther@suse.de>
8380
8381         PR tree-optimization/36945
8382         * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
8383         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
8384         Record invariant addresses un-decomposed.
8385         (copy_reference_ops_from_call): Record reference call
8386         arguments properly.  Simplify.
8387         * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
8388         helper split out from ...
8389         (create_component_ref_by_pieces): ... here.  Simplify.
8390         Prepare for recursive invocation for call arguments.
8391         (create_expression_by_pieces): Adjust call to
8392         create_component_ref_by_pieces.
8393         (compute_avail): Process operand 2 of reference ops.
8394
8395 2008-07-29  Richard Guenther  <rguenther@suse.de>
8396
8397         * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
8398
8399 2008-07-29  Jakub Jelinek  <jakub@redhat.com>
8400
8401         * c-format.c (check_format_types): Revert unwanted checkin.
8402
8403 2008-07-29  Jan Hubicka  <jh@suse.cz>
8404
8405         * flags.h (flag_really_no_inline): Remove.
8406         * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
8407         * toplev.c (flag_really_no_inline): Remove.
8408         * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
8409         * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
8410         (cgraph_decide_inlining_incrementally): Likewise.
8411         (compute_inline_parameters): Likewise.
8412         * opts.c (decode_options): Simplify.
8413         * c-opts.c (c_common_post_options): Do not set flag_no_inline.
8414         * common.opt (finline): Initialize to 1.
8415         * tree-inline.c (inlinable_function_p): Check flag_no_inline.
8416
8417 2008-07-29  Jan Hubicka  <jh@suse.cz>
8418
8419         * predict.c (always_optimize_for_size_p): New function.
8420         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
8421         optimize_edge_for_size_p, optimize_edge_for_speed_p,
8422         optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
8423         functions.
8424         (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
8425         * function.c (prepare_function_start): Set default profile.
8426         * function.h (rtl_data): Add maybe_hot_insn_p.
8427         * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
8428         (construct_exit_block): Likewise.
8429         (tree_expand_cfg): Likewise.
8430         * basic-block.h
8431         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
8432         optimize_edge_for_size_p, optimize_edge_for_speed_p,
8433         optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
8434         (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
8435         Declare.
8436
8437 2008-07-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8438
8439         PR 34985
8440         * c-decl.c (merge_decls): Merge USED flags.
8441
8442 2008-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
8443
8444         * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
8445         valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
8446         next_stack, lab_false and lab_over trees.
8447
8448 2008-07-28  Richard Guenther  <rguenther@suse.de>
8449
8450         PR tree-optimization/36957
8451         * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
8452         (useless_type_conversion_p): Remove.
8453         (types_compatible_p): Remove.
8454         * gimple.h (tree_ssa_useless_type_conversion): Declare.
8455         (useless_type_conversion_p): Declare.
8456         (types_compatible_p): Declare.
8457         (gimple_expr_type): Return the base type only if it is
8458         trivially convertible to the subtype.
8459
8460 2008-07-28  Andreas Tobler  <a.tobler@schweiz.org>
8461
8462         * configure.ac: Use the m4_do macro to concatenate the warnings into
8463         one string in ACX_PROG_CC_WARNING_OPTS,
8464         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and
8465         ACX_PROG_CC_WARNINGS_ARE_ERRORS.
8466         * configure: Regenerate.
8467
8468 2008-07-28  Richard Guenther  <rguenther@suse.de>
8469
8470         * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
8471         (insert_fake_stores): Remove.
8472         (realify_fake_stores): Likewise.
8473         (execute_pre): Remove dead code.
8474         * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
8475         (find_func_aliases): Deal with it here instead.
8476         Re-enable gcc_unreachable call.
8477
8478 2008-07-28  Richard Guenther  <rguenther@suse.de>
8479
8480         Merge from gimple-tuples-branch.
8481
8482         * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
8483         * gimple.def: New file.
8484         * gsstruct.def: Likewise.
8485         * gimple-iterator.c: Likewise.
8486         * gimple-pretty-print.c: Likewise.
8487         * tree-gimple.c: Removed.  Merged into ...
8488         * gimple.c: ... here.  New file.
8489         * tree-gimple.h: Removed.  Merged into ...
8490         * gimple.h: ... here.  New file.
8491
8492         * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
8493         * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
8494         --enable-checking=gimple flag.
8495         * config.in: Likewise.
8496         * configure: Regenerated.
8497
8498         * tree-ssa-operands.h: Tuplified.
8499         * tree-vrp.c: Likewise.
8500         * tree-loop-linear.c: Likewise.
8501         * tree-into-ssa.c: Likewise.
8502         * tree-ssa-loop-im.c: Likewise.
8503         * tree-dump.c: Likewise.
8504         * tree-complex.c: Likewise.
8505         * cgraphbuild.c: Likewise.
8506         * tree-ssa-threadupdate.c: Likewise.
8507         * tree-ssa-loop-niter.c: Likewise.
8508         * tree-pretty-print.c: Likewise.
8509         * tracer.c: Likewise.
8510         * gengtype.c: Likewise.
8511         * tree-loop-distribution.c: Likewise.
8512         * tree-ssa-loop-unswitch.c: Likewise.
8513         * cgraph.c: Likewise.
8514         * cgraph.h: Likewise.
8515         * tree-ssa-loop-manip.c: Likewise.
8516         * value-prof.c: Likewise.
8517         * tree-ssa-loop-ch.c: Likewise.
8518         * tree-tailcall.c: Likewise.
8519         * value-prof.h: Likewise.
8520         * tree.c: Likewise.
8521         * tree.h: Likewise.
8522         * tree-pass.h: Likewise.
8523         * ipa-cp.c: Likewise.
8524         * tree-scalar-evolution.c: Likewise.
8525         * tree-scalar-evolution.h: Likewise.
8526         * target.h: Likewise.
8527         * lambda-mat.c: Likewise.
8528         * tree-phinodes.c: Likewise.
8529         * diagnostic.h: Likewise.
8530         * builtins.c: Likewise.
8531         * tree-ssa-alias-warnings.c: Likewise.
8532         * cfghooks.c: Likewise.
8533         * fold-const.c: Likewise.
8534         * cfghooks.h: Likewise.
8535         * omp-low.c: Likewise.
8536         * tree-ssa-dse.c: Likewise.
8537         * ipa-reference.c: Likewise.
8538         * tree-ssa-uncprop.c: Likewise.
8539         * toplev.c: Likewise.
8540         * tree-gimple.c: Likewise.
8541         * tree-gimple.h: Likewise.
8542         * tree-chrec.c: Likewise.
8543         * tree-chrec.h: Likewise.
8544         * tree-ssa-sccvn.c: Likewise.
8545         * tree-ssa-sccvn.h: Likewise.
8546         * cgraphunit.c: Likewise.
8547         * tree-ssa-copyrename.c: Likewise.
8548         * tree-ssa-ccp.c: Likewise.
8549         * tree-ssa-loop-ivopts.c: Likewise.
8550         * tree-nomudflap.c: Likewise.
8551         * tree-call-cdce.c: Likewise.
8552         * ipa-pure-const.c: Likewise.
8553         * c-format.c: Likewise.
8554         * tree-stdarg.c: Likewise.
8555         * tree-ssa-math-opts.c: Likewise.
8556         * tree-ssa-dom.c: Likewise.
8557         * tree-nrv.c: Likewise.
8558         * tree-ssa-propagate.c: Likewise.
8559         * ipa-utils.c: Likewise.
8560         * tree-ssa-propagate.h: Likewise.
8561         * tree-ssa-alias.c: Likewise.
8562         * gimple-low.c: Likewise.
8563         * tree-ssa-sink.c: Likewise.
8564         * ipa-inline.c: Likewise.
8565         * c-semantics.c: Likewise.
8566         * dwarf2out.c: Likewise.
8567         * expr.c: Likewise.
8568         * tree-ssa-loop-ivcanon.c: Likewise.
8569         * predict.c: Likewise.
8570         * tree-ssa-loop.c: Likewise.
8571         * tree-parloops.c: Likewise.
8572         * tree-ssa-address.c: Likewise.
8573         * tree-ssa-ifcombine.c: Likewise.
8574         * matrix-reorg.c: Likewise.
8575         * c-decl.c: Likewise.
8576         * tree-eh.c: Likewise.
8577         * c-pretty-print.c: Likewise.
8578         * lambda-trans.c: Likewise.
8579         * function.c: Likewise.
8580         * langhooks.c: Likewise.
8581         * ebitmap.h: Likewise.
8582         * tree-vectorizer.c: Likewise.
8583         * function.h: Likewise.
8584         * langhooks.h: Likewise.
8585         * tree-vectorizer.h: Likewise.
8586         * ipa-type-escape.c: Likewise.
8587         * ipa-type-escape.h: Likewise.
8588         * domwalk.c: Likewise.
8589         * tree-if-conv.c: Likewise.
8590         * profile.c: Likewise.
8591         * domwalk.h: Likewise.
8592         * tree-data-ref.c: Likewise.
8593         * tree-data-ref.h: Likewise.
8594         * tree-flow-inline.h: Likewise.
8595         * tree-affine.c: Likewise.
8596         * tree-vect-analyze.c: Likewise.
8597         * c-typeck.c: Likewise.
8598         * gimplify.c: Likewise.
8599         * coretypes.h: Likewise.
8600         * tree-ssa-phiopt.c: Likewise.
8601         * calls.c: Likewise.
8602         * tree-ssa-coalesce.c: Likewise.
8603         * tree.def: Likewise.
8604         * tree-dfa.c: Likewise.
8605         * except.c: Likewise.
8606         * except.h: Likewise.
8607         * cfgexpand.c: Likewise.
8608         * tree-cfgcleanup.c: Likewise.
8609         * tree-ssa-pre.c: Likewise.
8610         * tree-ssa-live.c: Likewise.
8611         * tree-sra.c: Likewise.
8612         * tree-ssa-live.h: Likewise.
8613         * tree-predcom.c: Likewise.
8614         * lambda.h: Likewise.
8615         * tree-mudflap.c: Likewise.
8616         * ipa-prop.c: Likewise.
8617         * print-tree.c: Likewise.
8618         * tree-ssa-copy.c: Likewise.
8619         * ipa-prop.h: Likewise.
8620         * tree-ssa-forwprop.c: Likewise.
8621         * ggc-page.c: Likewise.
8622         * c-omp.c: Likewise.
8623         * tree-ssa-dce.c: Likewise.
8624         * tree-vect-patterns.c: Likewise.
8625         * tree-ssa-ter.c: Likewise.
8626         * tree-nested.c: Likewise.
8627         * tree-ssa.c: Likewise.
8628         * lambda-code.c: Likewise.
8629         * tree-ssa-loop-prefetch.c: Likewise.
8630         * tree-inline.c: Likewise.
8631         * tree-inline.h: Likewise.
8632         * tree-iterator.c: Likewise.
8633         * tree-optimize.c: Likewise.
8634         * tree-ssa-phiprop.c: Likewise.
8635         * tree-vect-transform.c: Likewise.
8636         * tree-object-size.c: Likewise.
8637         * tree-outof-ssa.c: Likewise.
8638         * cfgloop.c: Likewise.
8639         * system.h: Likewise.
8640         * tree-profile.c: Likewise.
8641         * cfgloop.h: Likewise.
8642         * c-gimplify.c: Likewise.
8643         * c-common.c: Likewise.
8644         * tree-vect-generic.c: Likewise.
8645         * tree-flow.h: Likewise.
8646         * c-common.h: Likewise.
8647         * basic-block.h: Likewise.
8648         * tree-ssa-structalias.c: Likewise.
8649         * tree-switch-conversion.c: Likewise.
8650         * tree-ssa-structalias.h: Likewise.
8651         * tree-cfg.c: Likewise.
8652         * passes.c: Likewise.
8653         * ipa-struct-reorg.c: Likewise.
8654         * ipa-struct-reorg.h: Likewise.
8655         * tree-ssa-reassoc.c: Likewise.
8656         * cfgrtl.c: Likewise.
8657         * varpool.c: Likewise.
8658         * stmt.c: Likewise.
8659         * tree-ssanames.c: Likewise.
8660         * tree-ssa-threadedge.c: Likewise.
8661         * langhooks-def.h: Likewise.
8662         * tree-ssa-operands.c: Likewise.
8663         * config/alpha/alpha.c: Likewise.
8664         * config/frv/frv.c: Likewise.
8665         * config/s390/s390.c: Likewise.
8666         * config/m32c/m32c.c: Likewise.
8667         * config/m32c/m32c-protos.h: Likewise.
8668         * config/spu/spu.c: Likewise.
8669         * config/sparc/sparc.c: Likewise.
8670         * config/i386/i386.c: Likewise.
8671         * config/sh/sh.c: Likewise.
8672         * config/xtensa/xtensa.c: Likewise.
8673         * config/stormy16/stormy16.c: Likewise.
8674         * config/ia64/ia64.c: Likewise.
8675         * config/rs6000/rs6000.c: Likewise.
8676         * config/pa/pa.c: Likewise.
8677         * config/mips/mips.c: Likewise.
8678
8679 2008-07-28  Simon Baldwin  <simonb@google.com>
8680
8681         * c-pragma.c (handle_pragma_message): New function.
8682         (init_pragma): Register handle_pragma_message.
8683         * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
8684         documentation.
8685
8686 2008-07-27  Victor Kaplansky  <victork@il.ibm.com>
8687
8688         PR tree-optimization/35252
8689         * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
8690         REALPART_EXPR to be considered as same load operation.
8691
8692 2008-07-27  Eric Botcazou  <ebotcazou@adacore.com>
8693
8694         PR tree-optimization/36830
8695         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
8696         (expressions_equal_p): Return false if only one operand is null.
8697
8698 2008-07-26  Gerald Pfeifer  <gerald@pfeifer.com>
8699
8700         * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
8701         version requirements.
8702
8703 2008-07-26  Olivier Hainque  <hainque@adacore.com>
8704
8705         * collect2.c (symkind): New enum.  Symbol kinds we care about.
8706         (is_ctor_dtor): Return symkind instead of int.  Adjust prototype,
8707         code and head comment accordingly.
8708         (scan_prog_file): Use symkind names instead of bare integers.
8709
8710 2008-07-25  Jan Hubicka  <jh@suse.cz>
8711
8712         * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
8713         DECL_INLINE.
8714         * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
8715         (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
8716         * dojump.c (clear_pending_stack_adjust): Likewise.
8717         * print-tree.c (print_node): Ignore DECL_INLINE.
8718         * tree-inline.c (inlinable_function_p): Likewise.
8719
8720 2008-07-25  Michael Meissner  <gnu@the-meissners.org>
8721
8722         * doc/extend.texi (hot attribute): Document that the hot attribute
8723         turns on -O3 for some ports.
8724         (cold attribute): Document that the cold attribute turns on -Os
8725         for some ports
8726
8727         * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
8728         reflect function specific option support.
8729
8730         * target.h (struct target_option_hooks): Add fields to say whether
8731         the cold attribute implies -Os and the hot attribute implies -O3.
8732
8733         * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
8734         By default, do not turn on -Os for cold functions.
8735         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
8736         not turn on -O3 for hot functions.
8737
8738         * c-common.c (handle_hot_attribute): Use target hook to determine
8739         if hot functions should enable -O3.
8740         (handle_cold_attribute): Use target hook to determine if cold
8741         functions should enable -Os.
8742
8743         * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
8744         (override_options): Move disable scheduling to
8745         optimization_options.
8746         (optimization_options): Disable scheduling here, not
8747         override_options.
8748         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
8749         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
8750
8751         * config/ia64/ia64.c (ia64_override_options): Move setting
8752         scheduling flags to ia64_optimization_options.
8753         (ia64_optimization_options): Disable scheduling options here, and
8754         not in ia64_override_options.
8755         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
8756         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
8757
8758 2008-07-25  H.J. Lu  <hongjiu.lu@intel.com>
8759
8760         PR target/36936
8761         * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
8762
8763 2008-07-25  Martin Jambor  <mjambor@suse.cz>
8764
8765         PR tree-optimization/36926
8766         * ipa-prop.c (ipa_analyze_call_uses): Call
8767         ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
8768
8769 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
8770
8771         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
8772         movv2si_internal): Add mem = reg alternative.
8773
8774 2008-07-25  Andreas Tobler  <a.tobler@schweiz.org>
8775
8776         PR bootstrap/36918
8777         * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
8778         DEFAULT_PCC_STRUCT_RETURN to 127.
8779
8780 2008-07-24  Jan Hubicka  <jh@suse.cz>
8781
8782         * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
8783         (build_cgraph_edges): Likewise.
8784         * cgraph.c (cgraph_node): Do not update assembler hash.
8785         (cgraph_remove_node): Drop non-unit-at-a-time code.
8786         * tree-pass.h (pass_O0_always_inline): Remove.
8787         * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
8788         * toplev.c (process_options): Flag unit-at-a-time does not imply
8789         no section anchors.
8790         * cgraphunit.c: Update comments.
8791         (decide_is_function_needed): Drop non-unit-at-a-time mode.
8792         (cgraph_assemble_pending_functions): Remove.
8793         (cgraph_reset_node): Drop non-unit-at-a-time code.
8794         (cgraph_finalize_function): Likewise.
8795         (cgraph_analyze_function): Likewise.
8796         (cgraph_finalize_compilation_unit): Likewise.
8797         (cgraph_expand_function): Likewise.
8798         (cgraph_optimize): Likesise.
8799         (save_inline_function_body): Likewise.
8800         * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
8801         * tree-ssa-alias.c (maybe_be_aliased): Likewise.
8802         * ipa-inline.c: Update comments.
8803         (enum inlining_mode): remove INLINE_SPEED.
8804         (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
8805         (cgraph_mark_inline_edge): Likewise.
8806         (try_inline): Likewise.
8807         (cgraph_decide_inlining_incrementally): Likewise.
8808         (cgraph_gate_inlining): Remove.
8809         (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
8810         (cgraph_gate_early_inlining): Likewise.
8811         (gate_inline_passes): Remove.
8812         (pass_inline_parameters, pass_ipa_inline): Remove gates.
8813         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
8814         pass_O0_always_inline): Remove.
8815         * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
8816         * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
8817         * opts.c (no_unit_at_a_time_default): Remove.
8818         (decode_options): Remove flag_unit_at_a_time reset and warning.
8819         * opts.h (no_unit_at_a_time_default): Remove.
8820         * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
8821         early in GNU dialect.
8822         (merge_decls): Update comment; drop unit-at-a-time check.
8823         (finish_decl): Likewise.
8824         (grok_declaration): Remove flag_inline_trees code.
8825         (finish_functions): Return on function returning non-void on all
8826         statics.
8827         * ipa-tye-escape.c (gate_type_escape_vars): Remove.
8828         * cfgexpand.c (expand_one_static_var): Remove.
8829         (expand_one_var): Remove expand_one_static_var call.
8830         (expand_used_vars_for_block): Remove flag_unit_a_time check.
8831         * c-opts.c (c_common_post_options): Remove flag_inline_trees code
8832         and flag_unit_at_a-time compatibility checks.
8833         * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
8834         * tree-inline.c (flag_inline_trees): Remove.
8835         (inlinable_function_p): Don't check it.
8836         (expand_call_inline): Remove non-unit-at-a-time code.
8837         * tree-inline.h (flag_inline_trees): Remove.
8838         * tree-optimize.c (execute_early_local_optimizations): Remove
8839         unit-at-a-time checks.
8840         (tree_rest_of_compilation): Likewise.
8841         * combine.c (setup_incoming_promotions): Likewise.
8842         * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
8843         * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
8844         * passes.c (pass_inline_parameters): Update comments; remove
8845         O0_alwaysinline pass.
8846         (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
8847         (execute_one_pass): Likewise.
8848         * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
8849         (ix86_function_sseregparm): Likewise.
8850         * arm.c (arm_function_in_section_p): Likewise.
8851         * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
8852         * varpool.c: Update comments.
8853         (decide_is_variable_needed): Remove unit-at-a-time checks.
8854         (varpool_finalize_decl): Likewise.
8855
8856 2008-07-24  Kaz Kojima  <kkojima@gcc.gnu.org>
8857
8858         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
8859         to 2 instead of -1.
8860         (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
8861
8862 2008-07-24  Kai Tietz  <kai.tietz@onevision.com>
8863
8864         * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
8865         imp symbol extension.
8866
8867         2008-07-23  Ian Lance Taylor  <iant@google.com>
8868
8869         * tree-vrp.c (infer_value_range): Ignore asm statements when
8870         looking for memory accesses for -fdelete-null-pointer-checks.
8871
8872 2008-07-24  Ben Elliston  <bje@au.ibm.com>
8873
8874         * config/spu/spu-c.c (__vector_keyword): New variable.
8875         (vector_keyword): Likewise.
8876         (spu_categorize_keyword): New function.
8877         (spu_macro_to_expand): Likewise.
8878         (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
8879         compiling an ISO C dialect.
8880
8881 2008-07-24  Ben Elliston  <bje@au.ibm.com>
8882
8883         * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
8884         conventional usage.
8885
8886 2008-07-23  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
8887
8888         * configure: Regenerate.
8889         * configure.ac: Require texinfo 4.7.
8890         * doc/install.texi: Document texinfo 4.7 requirement.
8891
8892 2008-07-23  Martin Jambor  <mjambor@suse.cz>
8893
8894         * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
8895         rather than for DECL_SAVED_TREE.
8896         * ipa-prop.c: Include diagnostic.h.
8897         (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
8898         thoroughly.
8899         (ipa_detect_param_modifications): Function rewritten from scratch.
8900         (ipa_compute_jump_functions): Changed accesses to modification flags.
8901         (ipa_free_node_params_substructures): Update flags destruction.
8902         (ipa_node_duplication_hook): Update flags duplication.
8903         (ipa_print_all_params_modified): Updated flag access.
8904         * ipa-prop.h (struct ipa_param_flags): New structure.
8905         (struct ipa_node_params): New field modification_analysis_done,
8906         modified_flags changed into param_flags.
8907         (ipa_is_ith_param_modified): Changed to use new flags.
8908         * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
8909
8910         * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
8911         ipa-cp.c and split into two functions.
8912         (ipa_print_node_jump_functions): New function.
8913         (compute_scalar_jump_functions): New function.
8914         (type_like_member_ptr_p): New function.
8915         (compute_pass_through_member_ptrs): New function.
8916         (fill_member_ptr_cst_jump_function): New function.
8917         (determine_cst_member_ptr): New function.
8918         (compute_cst_member_ptr_arguments): New function.
8919         (ipa_compute_jump_functions): Complete rewrite.
8920         * ipa-prop.h (enum jump_func_type): Make explicit that we depend
8921         on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
8922         (struct ipa_member_ptr_cst): New structure.
8923         (union jump_func_value): New field member_cst.
8924         * ipa-cp.c (ipcp_lat_is_insertable): New function.
8925         (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
8926         jump function types.
8927         (ipcp_print_all_lattices): Slight fprintf rearrangement.
8928         (ipcp_print_all_structures): Call ipa_print_all_jump_functions
8929         instead of ipcp_print_all_jump_functions.
8930         (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
8931         only for replacable scalars.
8932
8933         * doc/invoke.texi (Optimize options): Add description of
8934         -findirect-inlining.
8935         * common.opt (flag_indirect_inlining): New flag.
8936         * opts.c (decode_options): Set flag_indirect_inlining when
8937         optimize >= 3.
8938
8939         * ipa-inline.c: Include ipa-prop.h.
8940         (inline_indirect_intraprocedural_analysis): New function.
8941         (inline_generate_summary): Allocate parameter and argument info
8942         structures, call inline_indirect_intraprocedural_analysis on each
8943         node when doing indirect inlining and deallocate indirect inlining
8944         data structures in the end.
8945         * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
8946         (free_all_ipa_structures_after_iinln): New function.
8947         (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
8948         done.
8949         * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
8950
8951         * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
8952         (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
8953         of computing the frequency separately.
8954         (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
8955         of computing the frequency separately.
8956         * ipa-cp.c (ipcp_print_all_structures): Replace a call to
8957         ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
8958         * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
8959         (ipa_get_stmt_member_ptr_load_param): New function.
8960         (ipa_is_ssa_with_stmt_def): New function.
8961         (ipa_note_param_call): New function.
8962         (ipa_analyze_call_uses): New function.
8963         (ipa_analyze_stmt_uses): New function.
8964         (ipa_analyze_params_uses): New function.
8965         (ipa_free_node_params_substructures): Also free the param_calls linked
8966         list.
8967         (ipa_node_duplication_hook): Also duplicate the param_calls
8968         linked list.
8969         (ipa_print_node_param_flags): New function.
8970         (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
8971         (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
8972         * ipa-prop.h (struct ipa_param_flags): New field called.
8973         (struct ipa_param_call_note): New structure.
8974         (struct ipa_node_params): New fields param_calls and
8975         uses_analysis_done.
8976         (ipa_is_ith_param_called): New function.
8977         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
8978         ipa_analyze_params_uses and dump parameter flags.
8979
8980         * ipa-inline.c (cgraph_decide_recursive_inlining): Call
8981         ipa_propagate_indirect_call_infos if performing indirect inlining,
8982         pass a new parameter new_edges to it.
8983         (add_new_edges_to_heap): New fucntion.
8984         (cgraph_decide_inlining_of_small_functions): New vector
8985         new_indirect_edges for newly found indirect edges , call
8986         ipa_propagate_indirect_call_infos after inlining.
8987         (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
8988         inlining if performing indirect inlining.  Call
8989         free_all_ipa_structures_after_iinln when doing so too.
8990         (inline_generate_summary): Do not call
8991         free_all_ipa_structures_after_iinln here.
8992         * ipa-prop.c (update_jump_functions_after_inlining): New function.
8993         (print_edge_addition_message): New function.
8994         (update_call_notes_after_inlining): New function.
8995         (propagate_info_to_inlined_callees): New function.
8996         (ipa_propagate_indirect_call_infos): New function.
8997         * ipa-prop.h: Include cgraph.h
8998         (struct ipa_param_call_note): Fields reordered, new field processed.
8999         * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
9000         flag indirect_call.
9001         * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
9002         rediscovered call statements.
9003         * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
9004         (dump_cgraph_node): Dump also the indirect_call flag.
9005         (cgraph_clone_edge): Copy also the indirect_call flag.
9006         * tree-inline.c (copy_bb): Do not check for fndecls from call
9007         expressions, check for edge availability when moving clones.
9008         (get_indirect_callee_fndecl): New function.
9009         (expand_call_inline): If callee declaration is not apprent from
9010         the statement, try calling get_indirect_callee_fndecl.  Do not
9011         issue warnings or call sorry when not inlinings an indirect edge.
9012         * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
9013
9014         * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
9015         bit more frandly to matching.
9016         * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
9017         * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
9018         * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
9019
9020 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
9021
9022         PR 36907
9023         * opth-gen.awk: Suppress function specific features when building
9024         target libraries.
9025         * optc-gen.awk: Ditto.
9026
9027 2008-07-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9028
9029         PR 35058
9030         * diagnostic.c (pedwarn): Add opt parameter.
9031         (pedwarn0): New.
9032         * c-tree.h (pedwarn_init): Add opt parameter.
9033         (pedwarn_c90): Likewise.
9034         (pedwarn_c99): Likewise.
9035         * c-errors.c (pedwarn_c99): Likewise.
9036         (pedwarn_c90): Likewise.
9037         * toplev.h (pedwarn): Update declaration.
9038         (pedwarn0): Declare.
9039         * c-lex.c: All calls to pedwarn changed.
9040         * builtins.c: All calls to pedwarn changed.
9041         * toplev.c: All calls to pedwarn changed.
9042         * c-decl.c: All calls to pedwarn changed.
9043         * c-typeck.c: All calls to pedwarn changed.
9044         * c-common.c: All calls to pedwarn changed.
9045         * c-parser.c: All calls to pedwarn changed.
9046
9047 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
9048             Karthik Kumar  <karthikkumar@gmail.com>
9049
9050         * attribs.c (file scope): Include c-common.h.
9051         (decl_attributes): Add support for #pragma GCC optimize and
9052         #pragma GCC option.
9053
9054         * targhooks.c (default_can_inline_p): New function that is the
9055         default for the TARGET_CAN_INLINE_P target hook.
9056
9057         * targhooks.h (default_can_inline_p): Add declaration.
9058
9059         * tree.c (cl_optimization_node): New static tree for building
9060         OPTIMIZATION_NODE tree.
9061         (cl_target_option_node): New static tree for building
9062         TARGET_OPTION_NODE tree.
9063         (cl_option_hash_table): New hash table for hashing
9064         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
9065         (cl_option_hash_hash): New function to provide the hash value for
9066         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
9067         (cl_option_hash_eq): New function to provide an equality test for
9068         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
9069         (tree_code_size): Add support for OPTIMIZATION_NODE and
9070         TARGET_OPTION_NODE trees.
9071         (tree_code_structure): Add support for OPTIMIZATION_NODE and
9072         TARGET_OPTION_NODE trees.
9073         (build_optimization_node): Build a tree that has all of the
9074         current optimization options.
9075         (build_target_option_node): Build a tree that has the target
9076         options that might be changed on a per function basis.
9077
9078         * tree.h (file scope): Include options.h.
9079         (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
9080         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
9081         (TREE_OPTIMIZATION): Ditto.
9082         (TREE_TARGET_SPECIFIC): Ditto.
9083         (struct tree_function_decl): Add fields for remembering the
9084         current optimization options and target specific options.
9085         (struct tree_optimization_option): New tree variant that remembers
9086         the optimization options.
9087         (struct tree_target_option): New tree variant that remembers the
9088         target specific flags that might change for compiling a particular
9089         function.
9090         (union tree_node): Include tree_optimization_option and
9091         tree_target_option fields.
9092         (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
9093         TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
9094         TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
9095         TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
9096         TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
9097         optimization and target options.
9098         (optimization_default_node): New macro to refer to global_trees
9099         field.
9100         (optimization_current_node): Ditto.
9101         (optimization_cold_node): Ditto.
9102         (optimization_hot_node): Ditto.
9103         (target_option_default_node): Ditto.
9104         (target_option_current_node): Ditto.
9105         (current_option_pragma): Ditto.
9106         (current_optimize_pragma): Ditto.
9107
9108         * target.h (struct gcc_target): Add valid_option_attribute_p,
9109         target_option_save, target_option_restore, target_option_print,
9110         target_option_pragma_parse, and can_inline_p hooks.
9111
9112         * toplev.h (parse_optimize_options): Add declaration.
9113         (fast_math_flags_struct_set_p): Ditto.
9114
9115         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
9116         adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
9117         optimize is used.
9118
9119         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
9120         tree_can_inline_p hook to see if one function can inline another.
9121         (cgraph_decide_inlining): Ditto.
9122         (cgraph_decide_inlining_incrementally): Ditto.
9123
9124         * opts.c (decode_options): Add support for running multiple times
9125         to allow functions with different target or optimization options
9126         than was specified on the command line.
9127         (fast_math_flags_struct_set_p): New function that is similar to
9128         fast_math_flags_set_p, except it uses the values in the
9129         cl_optimization structure instead of global variables.
9130
9131         * optc-gen.awk: Add support for TargetSave to allow a back end to
9132         declare new fields that need to be saved when using function
9133         specific options.  Include flags.h and target.h in the options.c
9134         source.  Add support for Save to indicate which options can be set
9135         for individual functions.  Generate cl_optimize_save,
9136         cl_optimize_restore, cl_optimize_print, cl_target_option_save,
9137         cl_target_option_restore, cl_target_option_print functions to
9138         allow functions to use different optimization or target options.
9139
9140         * opt-functions.awk (var_type_struct): Return the type used for
9141         storing the field in a structure.
9142
9143         * opth-gen.awk: Add support for TargetSave to allow a back end to
9144         declare new fields that need to be saved when using function
9145         specific options.  Add support for Save to indicate which options
9146         can be set for individual functions.  Only generate one extern for
9147         Mask fields.  Generate cl_optimization and cl_target_option
9148         structures to remember optimization and target options.
9149
9150         * treestruct.def (TS_OPTIMIZATION): Add support for garbage
9151         collecting new tree nodes.
9152         (TS_TARGET_OPTION): Ditto.
9153
9154         * c-decl.c (merge_decls): Merge function specific target and
9155         optimization options.
9156
9157         * function.c (invoke_set_current_function_hook): If the function
9158         uses different optimization options, change the global variables
9159         to reflect this.
9160
9161         * coretypes.h (struct cl_optimization): Add forward reference.
9162         (struct cl_target_option): Ditto.
9163
9164         * c-pragma.c (option_stack): New static vector to remember the
9165         current #pragma GCC option stack.
9166         (handle_pragma_option): New function to support #pragma GCC option
9167         to change target options.
9168         (optimize_stack): New static vector to remember the current
9169         #pragma GCC optimize stack.
9170         (handle_pragma_optimize): New function to support #pragma GCC
9171         optimize to change optimization options.
9172         (init_pragma): Add support for #pragma GCC optimize and #pragma
9173         GCC option.
9174
9175         * tree.def (OPTIMIZATION_NODE): New tree code for remembering
9176         optimization options.
9177         (TARGET_OPTION_NODE): New tree code for remembering certain target
9178         options.
9179
9180         * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
9181         TARGET_OPTION_NODE trees.
9182
9183         * common.opt (-O): Add Optimization flag.
9184         (-Os): Ditto.
9185         (-fmath-errno): Ditto.
9186         (-falign-functions): Add UInteger flag to make sure flag gets full
9187         int in cl_optimization structure.
9188         (-falign-jumps): Ditto.
9189         (-falign-labels): Ditto.
9190         (-falign-loops): Ditto.
9191         (-fsched-stalled-insns): Ditto.
9192         (-fsched-stalled-insns-dep): Ditto.
9193
9194         * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
9195         definition.
9196         (TARGET_OPTION_SAVE): Ditto.
9197         (TARGET_OPTION_RESTORE): Ditto.
9198         (TARGET_OPTION_PRINT): Ditto.
9199         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
9200         (TARGET_CAN_INLINE_P): Ditto.
9201         (TARGET_INITIALIZER): Add new hooks.
9202
9203         * tree-inline.c (tree_can_inline_p): New function to determine
9204         whether one function can inline another.  Check if the functions
9205         use compatible optimization options, and also call the backend
9206         can_inline_p hook.
9207
9208         * tree-inline.h (tree_can_inline_p): Add declaration.
9209
9210         * c-common.c (c_common_attribute): Add support for option and
9211         optimize attributes.
9212         (handle_option_attribute): Add support for the option attribute to
9213         allow the user to specify different target options for compiling a
9214         specific function.
9215         (handle_optimize_attribute): Add support for the optimize
9216         attribute to allow the user to specify different optimization
9217         options for compiling a specific function.
9218         (handle_hot_attribute): Turn on -O3 optimization for this one
9219         function if it isn't the default optimization level.
9220         (handle_cold_attribute): Turn on -Os optimization for this one
9221         function if it insn't the default optimization.
9222         (const_char_p): New const char * typedef.
9223         (optimize_args): New static vector to remember the optimization
9224         arguments.
9225         (parse_optimize_options): New function to set up the optimization
9226         arguments from either the optimize attribute or #pragma GCC optimize.
9227
9228         * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
9229         (builtin_define_std): Ditto.
9230
9231         * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
9232         Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
9233         (x86_64-*-*): Ditto.
9234
9235         * Makefile.in (TREE_H): Add options.h.
9236         (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
9237
9238         * doc/extend.texi (option attribute): Document new attribute.
9239         (optimize attribute): Ditto.
9240         (hot attribute): Document hot attribute sets -O3.
9241         (cold attribute): Document cold attribute sets -Os.
9242         (#pragma GCC option): Document new pragma.
9243         (#pragma GCC optimize): Ditto.
9244
9245         * doc/options.texi (TargetSave): Document TargetSave syntax.
9246         (UInteger): Document UInteger must be used for certain flags.
9247         (Save): Document Save option to create target specific options
9248         that can be saved/restored on a function specific context.
9249
9250         * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
9251         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
9252
9253         * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
9254         (TARGET_OPTION_SAVE): Ditto.
9255         (TARGET_OPTION_RESTORE): Ditto.
9256         (TARGET_OPTION_PRINT): Ditto.
9257         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
9258         (TARGET_CAN_INLINE_P): Ditto.
9259
9260         * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
9261         -mfpmath=sse,387.
9262         (-mfpmath=both): Ditto.
9263
9264 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
9265             Karthik Kumar  <karthikkumar@gmail.com>
9266
9267         * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
9268         (TARGET_POPCNT): Ditto.
9269         (TARGET_SAHF): Ditto.
9270         (TARGET_AES): Ditto.
9271         (TARGET_PCLMUL): Ditto.
9272         (TARGET_CMPXCHG16B): Ditto.
9273         (TARGET_RECIP): Move switch into target_flags.
9274         (TARGET_FUSED_MADD): Ditto.
9275         (ix86_arch_features): Make an unsigned char type.
9276         (ix86_tune_features): Ditto.
9277         (OVERRIDE_OPTIONS): Add bool argument to override_options call.
9278         (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
9279         (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
9280
9281         * config/i386/i386.opt (arch): New TargetSave field to define
9282         fields that need to be saved for function specific option support.
9283         (tune): Ditto.
9284         (fpmath): Ditto.
9285         (branch_cost): Ditto.
9286         (ix86_isa_flags_explicit): Ditto.
9287         (tune_defaulted): Ditto.
9288         (arch_specified): Ditto.
9289         (-m128-long-double): Add Save flag to save option for target
9290         specific option support.
9291         (-m80387): Ditto.
9292         (-maccumulate-outgoing-args): Ditto.
9293         (-malign-double): Ditto.
9294         (-malign-stringops): Ditto.
9295         (-mfancy-math-387): Ditto.
9296         (-mhard-float): Ditto.
9297         (-mieee-fp): Ditto.
9298         (-minline-all-stringops): Ditto.
9299         (-minline-stringops-dynamically): Ditto.
9300         (-mms-bitfields): Ditto.
9301         (-mno-align-stringops): Ditto.
9302         (-mno-fancy-math-387): Ditto.
9303         (-mno-push-args): Ditto.
9304         (-mno-red-zone): Ditto.
9305         (-mpush-args): Ditto.
9306         (-mred-zone): Ditto.
9307         (-mrtd): Ditto.
9308         (-msseregparm): Ditto.
9309         (-mstack-arg-probe): Ditto.
9310         (-m32): Ditto.
9311         (-m64): Ditto.
9312         (-mmmx): Ditto.
9313         (-m3dnow): Ditto.
9314         (-m3dnowa): Ditto.
9315         (-msse): Ditto.
9316         (-msse2): Ditto.
9317         (-msse3): Ditto.
9318         (-msse4.1): Ditto.
9319         (-msse4.2): Ditto.
9320         (-msse4): Ditto.
9321         (-mno-sse4): Ditto.
9322         (-msse4a): Ditto.
9323         (-msse5): Ditto.
9324         (-mrecip): Move flag into target_flags.
9325         (-mcld): Ditto.
9326         (-mno-fused-madd): Ditto.
9327         (-mfused-madd): Ditto.
9328         (-mabm): Move flag into ix86_isa_flags.
9329         (-mcx16): Ditto.
9330         (-mpopcnt): Ditto.
9331         (-msahf): Ditto.
9332         (-maes): Ditto.
9333         (-mpclmul): Ditto.
9334
9335         * config/i386/i386-c.c: New file for #pragma support.
9336         (ix86_target_macros_internal): New function to #define or #undef
9337         target macros based when the user uses the #pragma GCC option to
9338         change target options.
9339         (ix86_pragma_option_parse): New function to add #pragma GCC option
9340         support.
9341         (ix86_target_macros): Move defining the target macros here from
9342         TARGET_CPU_CPP_BUILTINS in i386.h.
9343         (ix86_register_pragmas): Register the #pragma GCC option hook.  If
9344         defined, initialize any subtarget #pragmas.
9345
9346         * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
9347         REGISTER_TARGET_PRAGMAS.
9348
9349         * config/i386/t-i386: New file for x86 dependencies.
9350         (i386.o): Make dependencies mirror the include files used.
9351         (i386-c.o): New file, add dependencies.
9352
9353         * config/i386/i386-protos.h (override_options): Add bool argument.
9354         (ix86_valid_option_attribute_tree): Add declaration.
9355         (ix86_target_macros): Ditto.
9356         (ix86_register_macros): Ditto.
9357
9358         * config/i386/i386.c (ix86_tune_features): Move initialization of
9359         the target masks to initial_ix86_tune_features to allow functions
9360         to have different target options.  Make type unsigned char,
9361         instead of unsigned int.
9362         (initial_ix86_tune_features): New static vector to hold processor
9363         masks for the tune variables.
9364         (ix86_arch_features): Move initialization of the target masks to
9365         initial_ix86_arch_features to allow functions to have different
9366         target options.  Make type unsigned char, instead of unsigned int.
9367         (initial_ix86_arch_features): New static vector to hold processor
9368         masks for the arch variables.
9369         (enum ix86_function_specific_strings): New enum to describe the
9370         string options used for attribute((option(...))).
9371         (ix86_target_string): New function to return a string that
9372         describes the target options.
9373         (ix86_debug_options): New function to print the current options in
9374         the debugger.
9375         (ix86_function_specific_save): New function hook to save the
9376         function specific global variables in the cl_target_option structure.
9377         (ix86_function_specific_restore): New function hook to restore the
9378         function specific variables from the cl_target_option structure to
9379         the global variables.
9380         (ix86_function_specific_print): New function hook to print the
9381         target specific options in the cl_target_option structure.
9382         (ix86_valid_option_attribute_p): New function hook to validate
9383         attribute((option(...))) arguments.
9384         (ix86_valid_option_attribute_tree): New function that is common
9385         code between attribute((option(...))) and #pragma GCC option
9386         support that parses the options and returns a tree holding the options.
9387         (ix86_valid_option_attribute_inner_p): New helper function for
9388         ix86_valid_option_attribute_tree.
9389         (ix86_can_inline_p): New function hook to decide if one function
9390         can inline another on a target specific basis.
9391         (ix86_set_current_function); New function hook to switch target
9392         options if the user used attribute((option(...))) or #pragma GCC
9393         option.
9394         (ix86_tune_defaulted): Move to static file scope from
9395         override_options.
9396         (ix86_arch_specified): Ditto.
9397         (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
9398         ix86_isa_flags.
9399         (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
9400         (OPTION_MASK_ISA_ABM_SET): Ditto.
9401         (OPTION_MASK_ISA_POPCNT_SET): Ditto.
9402         (OPTION_MASK_ISA_CX16_SET): Ditto.
9403         (OPTION_MASK_ISA_SAHF_SET): Ditto.
9404         (OPTION_MASK_ISA_AES_UNSET): Ditto.
9405         (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
9406         (OPTION_MASK_ISA_ABM_UNSET): Ditto.
9407         (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
9408         (OPTION_MASK_ISA_CX16_UNSET): Ditto.
9409         (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
9410         (struct ptt): Move to static file scope from override_options.
9411         (processor_target_table): Ditto.
9412         (cpu_names): Ditto.
9413         (ix86_handle_option): Add support for options that are now isa options.
9414         (override_options): Add support for declaring functions that
9415         support different target options than were specified on the
9416         command line.  Move struct ptt, processor_target_table, cpu_names,
9417         ix86_tune_defaulted, ix86_arch_specified to static file scope.
9418         Add bool argument.  Fix up error messages so the appropriate error
9419         is given for either command line or attribute.
9420         (ix86_previous_fndecl): New static to remember previous function
9421         declaration to see if we need to change target options.
9422         (ix86_builtins_isa): New array to record the ISA of each builtin
9423         function.
9424         (def_builtin): Always create the builtin function, even if the
9425         current ISA doesn't support it.
9426         (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
9427         tests for those builtins.
9428         (ix86_init_builtins): Remove TARGET_MMX test for calling
9429         ix86_init_mmx_sse_builtins.
9430         (ix86_expand_builtin): If the current ISA doesn't support a given
9431         builtin, signal an error.
9432         (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
9433         (TARGET_SET_CURRENT_FUNCTION): Ditto.
9434         (TARGET_OPTION_SAVE): Ditto.
9435         (TARGET_OPTION_RESTORE): Ditto.
9436         (TARGET_OPTION_PRINT): Ditto.
9437         (TARGET_CAN_INLINE_P): Ditto.
9438
9439 2008-07-22  Rafael Ãƒvila de Espíndola  <espindola@google.com>
9440
9441         * c-typeck.c (build_external_ref): Don't call assemble_external.
9442         * final.c (output_operand): Call assemble_external.
9443
9444 2008-07-21  DJ Delorie  <dj@redhat.com>
9445
9446         * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
9447         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
9448
9449 2008-07-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9450
9451         * config/spu/spu.md ("div<mode>3"): Convert into expander, move
9452         original insn and splitter contents into ...
9453         ("*div<mode>3_fast"): ... this new pattern.  Enable only if
9454         flag_unsafe_math_optimizations.  Add dummy scratch register.
9455         ("*div<mode>3_adjusted"): New insn and splitter.  Enable only if
9456         !flag_unsafe_math_optimizations.  Returns number with next
9457         highest magnitude if this is still less or equal to the true
9458         quotient in magnitude.
9459
9460 2008-07-21  Rafael Ãƒvila de Espíndola  <espindola@google.com>
9461
9462         * Makefile.in: Replace toplev.h with TOPLEV_H.
9463         * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
9464         * c-lex.c (fe_file_change): Don't set in_system_header.
9465         * c-parser.c (c_token): Remove in_system_header.
9466         (c_lex_one_token): Don't set in_system_header.
9467         (c_parser_set_source_position_from_token): Don't set in_system_header.
9468         * diagnostic.c (diagnostic_report_diagnostic): Use location from
9469         diagnostic_info.
9470         (warning_at): New.
9471         * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
9472         * flags.h (in_system_header): Remove.
9473         * function.c (saved_in_system_header): Remove.
9474         (push_cfun): Don't set in_system_header.
9475         (pop_cfun): Don't set in_system_header.
9476         (push_struct_function): Don't set in_system_header.
9477         * input.h (expanded_location): Add sysp.
9478         (in_system_header_at): New.
9479         (in_system_header): New.
9480         * toplev.c (in_system_header): Remove.
9481         * toplev.h: Include input.h
9482         (warning_at): New.
9483         * tree-cfg.c (execute_warn_function_return): Call warning_at.
9484         * tree-ssa.c (warn_uninit): Call warning_at.
9485         (warn_uninitialized_var): Update calls to warn_uninit.
9486         (warn_uninitialized_phi): Update calls to warn_uninit.
9487         * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
9488         (expand_location): Initialize xloc.sysp.
9489         * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
9490         (tree_decl_with_vis): Remove in_system_header_flag.
9491
9492 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
9493
9494         PR target/36822
9495         * recog.c (asm_operand_ok): Change the order of the extra
9496         memory constraint checks.
9497
9498 2008-07-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9499
9500         PR tree-opt/36879
9501         * tree-switch-conversion.c (build_one_array): Call
9502         varpool_mark_needed_node and varpool_finalize_decl
9503         instead of assemble_variable.
9504
9505 2008-07-19  Jan Hubicka  <jh@suse.cz>
9506
9507         * cgraph.c (cgraph_add_new_function): Do early local passes.
9508         * tree-nrv.c (gate_pass_return_slot): New gate.
9509         (pass_nrv): Add the gate.
9510         * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
9511         functions.
9512         (coalesce_ssa_name): Coalesce SSA names.
9513         * tree-ssa-live.c (remove_unused_locals): Be more conservative when
9514         not optimizing so unused user vars remains visible.
9515         * common.opt (flag_tree_ter): Always enable by default.
9516         * tree-ssa-ter.c: Include flags.h
9517         (is_replaceable_p): Check that locations match; when aliasing
9518         is missing be conservative about loads.
9519         * tree-optimize.c (gate_init_datastructures): Remove.
9520         (pass_init_datastructures): New.
9521         * passes.c: Reorder passes so we always go into SSA.
9522
9523 2008-07-19  Jan Hubicka  <jh@suse.cz>
9524
9525         * doc/extend.texi (flatten attribute): Remove note about
9526         unit-at-a-time.
9527         * doc/invoke.texi (--combine): Likewise.
9528         (-finline-functions-called-once): Update levels when enabled.
9529         (-funit-at-a-time): Document new behaviour.
9530         (-ftoplevel-reorder): Document that it is enabled -O0 and imply
9531         -fno-section-anchors when disabled explicitly.
9532         (inline params): They are not ignored now.
9533         (precompiled headers): Remove unit-at-a-time as being incompatible.
9534         * opts.c (decode_options): Handle unit-at-a-time as alias;
9535         imply -fno-section-anchors when toplevel reorder is disabled
9536         explicitly.
9537         * common.opt (ftoplevel-reorder): Set default value to 2.
9538         (funit-at-a-time): Set default value to 1.
9539         * config/rs6000/rs6000.c (optimization_options): Set section anchors
9540         to 2.
9541
9542 2008-07-19  Jan Hubicka  <jh@suse.cz>
9543
9544         * builtins.c (expand_builtin_int_roundingfn,
9545         expand_builtin_int_roundingfn_2): Do not take subtarget argument;
9546         it is not useful.
9547
9548 2008-07-19  Richard Guenther  <rguenther@suse.de>
9549
9550         PR bootstrap/36864
9551         * tree-ssa-sccvn.h (get_constant_value_id): Declare.
9552         * tree-ssa-sccvn.c (get_constant_value_id): New function.
9553         * tree-ssa-pre.c (get_expr_value_id): For newly created
9554         constant value-ids make sure to add the expression to its
9555         expression-set.
9556
9557 2008-07-19  Jakub Jelinek  <jakub@redhat.com>
9558
9559         PR middle-end/36877
9560         * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
9561         return value of the builtin is ignored.
9562
9563 2008-07-19  Olivier Hainque  <hainque@adacore.com>
9564
9565         * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
9566         bits, a C conformant malloc implementation has to provide.
9567         * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
9568
9569 2008-07-19  Joseph Myers  <joseph@codesourcery.com>
9570
9571         PR target/36780
9572         PR target/36827
9573         * reload.c (find_reloads_subreg_address): Only reload address if
9574         reloaded == 0, not for reloaded != 1.
9575
9576         Revert:
9577         2008-07-16  Joseph Myers  <joseph@codesourcery.com>
9578         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
9579         (m32c_legitimate_address_p): Handle "++rii" addresses created by
9580         m32c_legitimize_reload_address.
9581
9582         2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
9583         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
9584         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
9585
9586 2008-07-19  Olivier Hainque  <hainque@adacore.com>
9587
9588         * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
9589         argument, saying whether nested array are to be collapsed
9590         into a single array type DIE with multiple subscripts.
9591         (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
9592         issues, centralize the nested array types collapsing control and
9593         disable the transformation for Ada.
9594
9595 2008-07-18  Uros Bizjak  <ubizjak@gmail.com>
9596
9597         PR target/36786
9598         * config/i386/i386.md (x86_64_shift_adj_1): Rename from
9599         x86_64_shift_adj.
9600         (x86_64_shift_adj_2): New expander.
9601         (x86_64_shift_adj_3): Ditto.
9602         * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
9603         to split TImode operands.
9604         (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
9605         (ix86_split_lshr): Ditto.
9606
9607 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
9608
9609         * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
9610         and __CHAR32_TYPE__.
9611         * c-typeck.c (digest_init): Support char16_t and char32_t.
9612         (set_nonincremental_init_from_string): Idem.
9613
9614 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9615
9616         PR middle-end/36859
9617         * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
9618         PREFERRED_STACK_BOUNDARY.
9619         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
9620
9621 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9622
9623         PR middle-end/36858
9624         * function.c (locate_and_pad_parm): Cap boundary earlier.
9625
9626 2008-07-17  Julian Brown  <julian@codesourcery.com>
9627
9628         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
9629         no-op for targets which don't use DLLs.
9630
9631 2008-07-17  Martin Jambor  <mjambor@suse.cz>
9632
9633         * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
9634         that nodes are relevant by examining the node->analyzed flag.
9635         (ipcp_init_stage): Check which nodes are relevant, assert that the
9636         relevant ones are also required.
9637         (ipcp_propagate_stage): Check on the side arrays are properly
9638         allocated.
9639         (ipcp_print_all_jump_functions): Make sure not to touch any node
9640         that is not analyzed or an edge that does not have a corresponding
9641         entry in the on-the-side vectors.
9642         (ipcp_function_scale_print): Likewise.
9643         (ipcp_update_callgraph): Check that the node is relevant.
9644         (ipcp_insert_stage): Check that the node is relevant.  Check there is
9645         an info for every node and edge.
9646         * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
9647         (ipa_print_all_tree_maps): Likewise and a new variable info.
9648         (ipa_print_all_params_modified): Likewise.
9649         * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
9650
9651 2008-07-17  Roman Zippel <zippel@linux-m68k.org>
9652
9653         PR target/25343
9654         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
9655
9656 2008-07-17  Paolo Bonzini  <bonzini@gnu.org>
9657
9658         PR rtl-optimization/36753
9659         * fwprop.c (use_killed_between): Don't shortcut
9660         single-definition global registers.
9661
9662 2008-07-16  Jan Hubicka  <jh@suse.cz>
9663
9664         * cgraph.h (varpool_empty_needed_queue): Declare.
9665         * cgraphunit.c (output_in_order): Mark all variables as needed;
9666         empty the queue.
9667         * varpool.c (varpool_assemble_node): Update debug queue.
9668         (varpool_assemble_pending_decls): Don't do it here.
9669         (varpool_empty_needed_queue):  New function.
9670
9671 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9672
9673         * recog.c (peephole2_optimize): Fix formatting.
9674
9675 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9676
9677         * c-pch.c (get_ident): Avoid C++ keywords.
9678         * combine-stack-adj.c (single_set_for_csa): Likewise.
9679         * final.c (asm_insn_count, final_scan_insn, alter_subreg,
9680         output_asm_insn): Likewise.
9681         * reload.c (push_secondary_reload, find_reusable_reload,
9682         push_reload, combine_reloads, find_reloads,
9683         debug_reload_to_stream): Likewise.
9684         * reload.h (struct reload): Likewise.
9685         * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
9686         allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
9687         emit_output_reload_insns): Likewise.
9688         * targhooks.c (default_secondary_reload): Likewise.
9689         * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
9690
9691 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9692
9693         * recog.c (validate_change_1, validate_change,
9694         validate_unshare_change, validate_replace_rtx_1, struct
9695         funny_match, constrain_operands, peephole2_optimize): Avoid C++
9696         keywords.
9697         * reload.c (push_secondary_reload, secondary_reload_class,
9698         scratch_reload_class, find_valid_class, find_reusable_reload,
9699         push_reload, find_dummy_reload, find_reloads_address_1,
9700         find_reloads_address_part, find_equiv_reg): Likewise.
9701         * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
9702         choose_reload_regs): Likewise.
9703         * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
9704         Likewise.
9705         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
9706         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
9707         * sched-rgn.c (concat_INSN_LIST): Likewise.
9708         * stor-layout.c (mode_for_size, mode_for_size_tree,
9709         smallest_mode_for_size): Likewise.
9710
9711 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9712
9713         * cfg.c (dump_reg_info): Avoid C++ keywords.
9714         * dwarf2asm.c (dw2_force_const_mem,
9715         dw2_asm_output_encoded_addr_rtx): Likewise.
9716         * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
9717         * expmed.c (expand_shift): Likewise.
9718         * global.c (find_reg): Likewise.
9719         * graph.c (draw_edge): Likewise.
9720         * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
9721         * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
9722         widen_clz, widen_bswap, expand_parity, expand_unop,
9723         emit_cmp_and_jump_insn_1): Likewise.
9724         * postreload.c (reload_cse_simplify_operands): Likewise.
9725         * ra.h (add_neighbor): Likewise.
9726         * reg-stack.c (remove_regno_note, change_stack): Likewise.
9727         * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
9728         record_reg_classes, copy_cost, record_address_regs,
9729         invalid_mode_change_p): Likewise.
9730         * regrename.c (regrename_optimize, scan_rtx_reg,
9731         dump_def_use_chain, find_oldest_value_reg,
9732         replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
9733
9734 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
9735
9736         * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
9737         MASK_POWERPC64 for power4 in previous commit.
9738
9739 2008-07-16  Olivier Hainque  <hainque@adacore.com>
9740
9741         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
9742         instead of bare conversion to cast const-ness away.
9743
9744 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
9745
9746         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
9747         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
9748         * config/xtensa/xtensa.c (xtensa_function_value): New function.
9749         (TARGET_FUNCTION_VALUE): Define.
9750
9751 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
9752
9753         * config/rs6000/rs6000.c (processor_target_table): Add
9754         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
9755
9756 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
9757
9758         PR target/36827
9759         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
9760         (m32c_legitimate_address_p): Handle "++rii" addresses created by
9761         m32c_legitimize_reload_address.
9762
9763 2007-07-16  Rafael Ãƒvila de Espíndola  <espindola@google.com>
9764
9765         * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
9766         DECL_IN_SYSTEM_HEADER in sync.
9767
9768 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
9769
9770         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
9771         * tree-ssa-pre.c (pre_expr_eq): Ditto
9772         (get_constant_for_value_id): Take a type as an argument.
9773         (fully_constant_expression): Pass in type.
9774         (find_or_generate_expression): Short circuit constant case.
9775         (create_expression_by_pieces): Remove special casing of
9776         pointer_plus.
9777         (do_regular_insertion): Short circuit constant case.
9778         (do_partial_partial_insertion): Ditto.
9779
9780 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
9781
9782         PR target/36782
9783         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
9784
9785 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
9786
9787         * config/xtensa/libgcc-xtensa.ver: New file.
9788         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
9789
9790 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9791
9792         * df-problems.c (df_set_note): Avoid C++ keywords.
9793         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
9794         * dse.c (record_store, remove_useless_values): Likewise.
9795         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
9796         gen_reg_rtx_offset, operand_subword, change_address_1,
9797         change_address, adjust_address_1, offset_address,
9798         widen_memory_access, emit_copy_of_insn_after): Likewise.
9799         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
9800         * fwprop.c (should_replace_address, propagate_rtx_1,
9801         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
9802         Likewise.
9803         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
9804         gcse_emit_move_after, update_ld_motion_stores): Likewise.
9805         * lcm.c (compute_insert_delete, pre_edge_lcm,
9806         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
9807         * lower-subreg.c (resolve_reg_notes): Likewise.
9808         * mode-switching.c (optimize_mode_switching): Likewise.
9809
9810 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9811
9812         * bt-load.c (add_btr_def, migrate_btr_def,
9813         branch_target_load_optimize): Avoid C++ keywords.
9814         * caller-save.c (insert_restore, insert_save, insert_one_insn):
9815         Likewise.
9816         * combine.c (subst, simplify_set, make_extraction,
9817         make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
9818         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
9819         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
9820
9821 2008-07-15  Richard Guenther  <rguenther@suse.de>
9822
9823         PR middle-end/36369
9824         * c-common.c (strict_aliasing_warning): Do not warn for
9825         TYPE_REF_CAN_ALIAS_ALL pointers.
9826         (c_common_get_alias_set): may_alias types are not special.
9827         * tree.c (build_pointer_type_for_mode): Look up the may_alias
9828         attribute and set can_ref_all accordingly.
9829         (build_reference_type_for_mode): Likewise.
9830         * doc/extend.texi (may_alias): Clarify.
9831
9832 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
9833
9834         PR target/36780
9835         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
9836         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
9837
9838 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9839
9840         PR target/31568
9841         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
9842         gcc_assert, instead call output_operand_lossage.
9843
9844 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
9845
9846         * builtins.c (std_canonical_va_list): Treat structure based
9847         va_list types.
9848
9849 2008-07-15  Ben Elliston  <bje@au.ibm.com>
9850
9851         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
9852
9853 2007-07-14  Rafael Ãƒvila de Espíndola  <espindola@google.com>
9854
9855         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
9856         is set.
9857
9858 2008-07-14  Jan Hubicka  <jh@suse.cz>
9859
9860         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
9861         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
9862         fix predicates and constraints.
9863         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
9864         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
9865
9866 2008-07-14  Doug Kwan  <dougkwan@google.com>
9867
9868         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
9869         additional option file arm/eabi.opt.
9870         * config/arm/eabi.h (File): New configuration file for EABI targets.
9871         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
9872         SUBSUBTARGET_EXTRA_SPECS.
9873         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
9874         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
9875         from STARTFILE_SPEC so that it can be referenced in an override.
9876         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
9877         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
9878         can be referenced in an override.
9879         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
9880         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
9881         so that it can be referenced in an override.
9882         (LINK_SPEC): Use BPABI_LINK_SPEC.
9883         * config/arm/eabi.opt (File): New.
9884
9885 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9886
9887         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
9888         (FIXED_VALUE_H): New variable.
9889         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
9890         input.h, fixed-value.h.
9891         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
9892         (BASIC_BLOCK_H): Use $(BITMAP_H).
9893         (FUNCTION_H): Add varray.h.
9894         (IPA_REFERENCE_H): Use $(BITMAP_H).
9895         (CGRAPH_H): Add $(BASIC_BLOCK_H).
9896         (DF_H): Use $(BITMAP_H).
9897         (GGC_H): Add statistics.h.
9898         (INSN_ADDR_H): New.
9899         (INSN_ATTR_H): Use it.
9900         (SYSTEM_H): Add safe-ctype.h, filenames.h.
9901         (INPUT_H): New.
9902         (SYMTAB_H): Add $(OBSTACK_H).
9903         (CPP_INTERNAL_H): New.
9904         (TREE_DUMP_H): Add tree-pass.h.
9905         (TREE_FLOW_H): Use $(BITMAP_H)
9906         (PRETTY_PRINT_H): Use $(INPUT_H).
9907         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
9908         (GSTAB_H): New.
9909         (BITMAP_H): New.
9910         (many object files): Fix lots of header dependencies throughout.
9911
9912 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9913
9914         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
9915         New macros.
9916         (s-gtyp-input): Use them to write tmp-gi.list.
9917         (echo_to_gi.list): Remove.
9918
9919 2008-07-14  Richard Guenther  <rguenther@suse.de>
9920
9921         * tree-ssa-sccvn.c (pre_info): Remove.
9922         (switch_to_PRE_table): Likewise.
9923         (free_scc_vn): Do not clear SSA_NAME_VALUE.  Do not free pre_info.
9924         (set_hashtable_value_ids): Do not create value-ids for the
9925         optimistic tables.
9926         (run_scc_vn): Remove double test.  Remove bogus special-case
9927         in value-number printing.
9928         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
9929         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
9930         SSA_NAME_VALUE.
9931         * tree-flow-inline.h (get_value_handle): Remove.
9932         * tree-flow.h (get_value_handle): Remove.
9933
9934 2008-07-14  Martin Jambor  <mjambor@suse.cz>
9935
9936         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
9937         in which we generate arithmetics is not a subrange.
9938
9939 2008-07-14  Martin Jambor  <mjambor@suse.cz>
9940
9941         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
9942
9943 2008-07-14  Richard Guenther  <rguenther@suse.de>
9944
9945         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
9946
9947 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
9948
9949         PR target/36745
9950         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
9951         reload for symbol refs moved to r0 with -fPIC.
9952         (legitimize_pic_address): Use the target register as temporary
9953         reg if possible.
9954         (emit_symbolic_move): Adjust comment.
9955         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
9956         New expanders.
9957
9958 2008-07-14  Ben Elliston  <bje@au.ibm.com>
9959
9960         * c-common.h (C_CPP_HASHNODE): New macro.
9961         * coretypes.h (struct cpp_token): Forward declare.
9962         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
9963         the context-sensitive keyword method.
9964         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
9965         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
9966         expand_bool_pixel): New.
9967         (altivec_categorize_keyword): New function.
9968         (init_vector_keywords): New function.
9969         (rs6000_macro_to_expand): Likewise.
9970         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
9971         compiling an ISO C dialect.
9972
9973 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
9974
9975         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
9976         (create_expression_by_pieces): Fix typo.
9977         (do_regular_insertion): Use debug counter here too.
9978
9979 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
9980
9981         PR target/35492.
9982         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
9983         CONST_OK_FOR_LETTER_P.  All port-local users changed.
9984         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
9985         implement Kp matching power-of-two.
9986         (CONSTRAINT_LEN): Define to match.
9987         * config/cris/cris.md: Replace all use of constraint K with Kc.
9988         ("*btst*): Use Kp for operand 0 of last alternative.
9989
9990 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9991
9992         PR testsuite/36440
9993         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
9994         and quad formats.
9995
9996 2008-07-13  Jan Hubicka  <jh@suse.cz>
9997
9998         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
9999         to be mangled too.
10000
10001 2008-07-13  Richard Guenther  <rguenther@suse.de>
10002
10003         PR middle-end/36811
10004         * langhooks.c (lhd_print_error_function): Deal with recursive
10005         BLOCK trees.
10006
10007 2008-07-12  Jan Hubicka  <jh@suse.cz>
10008
10009         * cgraph.c (assembler_name_hash): New static var.
10010         (hash_node_by_assembler_name, eq_assembler_name): New.
10011         (cgraph_node_for_asm): Use hashtable.
10012         (cgraph_remove_node): Maintain hashtable.
10013         (change_decl_assembler_name): Sanity check that names are not changing
10014         after aliasing was processed.
10015         * cgraph.h (varpoon_node): Add next GGC marker.
10016         * tree.c (decl_assembler_name_equal): Constify.
10017         (decl_assembler_name_hash): New.
10018         * tree.h (decl_assembler_name_equal): Constify.
10019         (decl_assembler_name_hash): Update.
10020
10021 2008-07-12  David Daney  <ddaney@avtrex.com>
10022
10023         * config/mips/driver-native.c (host_detect_local_cpu): Handle
10024         sb1 and r5000 cpus.
10025
10026 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10027
10028         * doc/md.texi: Document the MIPS "v" constraint.
10029         * config/mips/mips.h (reg_class): Revert last change.
10030         (REG_CLASS_NAMES): Likewise.
10031         (REG_CLASS_CONTENTS): Likewise.
10032         * config/mips/mips.c (mips_regno_to_class): Likewise.
10033         * config/mips/constraints.md (v): Likewise, but add documentation.
10034         Add a comment to say that this constraint should not be used in
10035         gcc code.
10036
10037 2008-07-11  DJ Delorie  <dj@redhat.com>
10038
10039         * config/h8300/h8300.md (length): Fix branch offset limit.
10040
10041 2008-07-11  Anatoly Sokolov  <aesok@post.ru>
10042
10043         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
10044         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
10045         (avr_hard_regno_scratch_ok): New function.
10046         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
10047         * config/avr/avr.md (all peepholes that request a scratch register):
10048         Remove avr_peep2_scratch_safe use.
10049
10050 2008-07-11  Tom Tromey  <tromey@redhat.com>
10051             Ian Lance Taylor  <iant@google.com>
10052
10053         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
10054         (struct c_common_resword): Define.
10055         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
10056         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
10057         (c_common_reswords, num_c_common_reswords): Declare.
10058         * c-common.c (c_common_reswords): New global const array.
10059         (num_c_common_reswords): New const int.
10060         * c-parser.c (struct resword, reswords): Don't define.
10061         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
10062         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
10063         than reswords.  If warning about C++ keywords, give them a special
10064         RID code.
10065         (c_lex_one_token): Warn about C++ keywords.  Call
10066         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
10067         (c_parser_external_declaration): Look for RID_xxx rather than
10068         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
10069         (c_parser_statement_after_labels): Likewise.
10070         (c_parser_objc_class_instance_variables): Likewise.
10071         (c_parser_objc_class_declaration): Likewise.
10072         (c_parser_objc_try_catch_statement): Likewise.
10073         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
10074         (declspecs_add_type): Likewise.
10075
10076 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
10077
10078         * ggc-page.c (alloc_page):
10079         Substituting xmalloc, xcalloc with
10080         XNEWVEC and XCNEWVAR macros which add the
10081         needed casts.
10082
10083 2008-07-11  Richard Guenther  <rguenther@suse.de>
10084
10085         PR tree-optimization/36765
10086         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
10087         aliases from HEAP vars to SMTs.
10088
10089 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10090
10091         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
10092         * configure.ac (loose_warn): Move -Wc++-compat from here...
10093         (strict_warn): ...to here.
10094         * configure: Regenerate.
10095
10096 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
10097
10098         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
10099         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
10100         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
10101         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
10102         excluding more specific h8300-*-* and sh-*-* targets.
10103
10104 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
10105
10106         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
10107         (eliminate): Ditto.
10108         (execute_pre): Call loop_optimizer_finalize in early exit.
10109
10110 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
10111
10112         PR middle-end/36790
10113         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
10114         uids in the bitmap, not just VAR_DECL uids.
10115
10116         PR rtl-optimization/36419
10117         * combine-stack-adj.c (adjust_frame_related_expr): New function.
10118         (combine_stack_adjustments_for_block): Call it if needed.  Delete
10119         correct insn.
10120         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
10121         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
10122         prologue sp adjustment.
10123
10124 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
10125
10126         PR other/28322
10127         * opts.c (print_ignored_options): Report postponed diagnostics for
10128         unknown -Wno-* options as warnings, not errors.
10129         (postpone_unknown_option_error): Renamed to...
10130         (postpone_unknown_option_warning): ... this.
10131
10132 2008-07-09  Doug Kwan  <dougkwan@google.com>
10133
10134         Revert:
10135         2008-07-08  Doug Kwan  <dougkwan@google.com>
10136
10137         * config/arm/arm.opt (mandroid): New option.
10138         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
10139         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
10140         (CC1_SPEC): Same.
10141         (CC1PLUS_SPEC): Same.
10142         (LIB_SPEC): Same.
10143         (STARTFILE_SPEC): Same.
10144         (ENDFILE_SPEC): Same.
10145         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
10146         used.
10147
10148 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
10149
10150         PR target/35802
10151         * config/mips/mips.h (reg_class): Remove V1_REG.
10152         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
10153         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
10154         instead of V1_REGS.
10155         (mips_get_tp): New function.
10156         (mips_legitimize_tls_address): Use it.
10157         * config/mips/constraints.md (v): Delete.
10158         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
10159         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
10160         After reload, split into a move and ...
10161         (*tls_get_tp_<mode>_split): ...this new instruction.
10162
10163 2008-07-09  David Daney  <ddaney@avtrex.com>
10164
10165         * config/mips/driver-native.c: Include coretypes.h and tm.h.
10166
10167 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
10168
10169         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
10170         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
10171         Add c argument.
10172         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
10173         htab_delete should be called.  Don't free c.
10174         (lookup_tmp_var): Create temp_htab lazily.
10175         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
10176         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
10177         callers.
10178         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
10179         lower_omp_ordered, lower_omp_critical, lower_omp_for,
10180         create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
10181         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
10182         * tree-sra.c (generate_element_init): Likewise.
10183         * tree-mudflap.c (execute_mudflap_function_ops,
10184         execute_mudflap_function_decls): Likewise.
10185         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
10186         * tree-gimple.h (struct gimplify_ctx): New type.
10187         (push_gimplify_context): Adjust prototype.
10188
10189 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
10190
10191         * tree-ssa-pre.c (phi_translate_1): Update placement of
10192         add_to_value calls.
10193
10194 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
10195
10196         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
10197         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
10198         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
10199         * targhooks.c (default_hard_regno_scratch_ok): New function.
10200         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
10201         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
10202         * recog.c:  Include "target.h".
10203         (peep2_find_free_register): Add check for global regs. Add target
10204         specific check.
10205         * Makefile.in (recog.o): Depend on target.h.
10206
10207 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
10208
10209         * config/sh/sh.c (sh_canonical_va_list_type): New.
10210         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
10211
10212 2008-07-09  Raksit Ashok <raksit@google.com>
10213
10214         * doc/invoke.texi (Option Summary): Mention new option
10215         -Wdisallowed-function-list=...
10216         (Warning Options): Document -Wdisallowed-function-list=...
10217         * common.opt (Wdisallowed-function-list=): New flag.
10218         * flags.h (warn_disallowed_functions): External definition of new
10219         boolean warning flag.
10220         (warn_if_disallowed_function_p): Declare new function.
10221         * opts.c (warning_disallowed_functions): New static variable.
10222         (warn_disallowed_functions): New boolean warning flag.
10223         (warn_if_disallowed_function_p): New function.
10224         (add_comma_separated_to_vector): Rename
10225         add_instrument_functions_exclude_list to this.
10226         (common_handle_option): Handle new option. Rename calls to
10227         add_instrument_functions_exclude_list into calls to
10228         add_comma_separated_to_vector.
10229         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
10230         based on flag warn_disallowed_functions.
10231
10232 2008-07-09  Christian Bruel  <christian.bruel@st.com>
10233
10234         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
10235          instead of get_attr_length.
10236
10237 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10238
10239         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
10240         keywords.
10241         * genemit.c (gen_insn): Likewise.
10242         * gengtype.c (note_def_vec): Likewise.
10243         * gengtype.h (note_def_vec): Likewise.
10244         * genoutput.c (struct data, output_insn_data, process_template,
10245         gen_expand, gen_split, note_constraint): Likewise.
10246         * genrecog.c (new_decision, add_to_sequence, factor_tests,
10247         make_insn_sequence): Likewise.
10248         * gensupport.c (record_insn_name): Likewise.
10249
10250 2008-07-08  Doug Kwan  <dougkwan@google.com>
10251
10252         * config/arm/arm.opt (mandroid): New option.
10253         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
10254         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
10255         (CC1_SPEC): Same.
10256         (CC1PLUS_SPEC): Same.
10257         (LIB_SPEC): Same.
10258         (STARTFILE_SPEC): Same.
10259         (ENDFILE_SPEC): Same.
10260         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
10261         used.
10262
10263 2008-07-08  Raksit Ashok  <raksit@google.com>
10264
10265         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
10266         (set_storage_via_setmem): Fix expected_align parameter.
10267         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
10268         missing from the list.
10269         * doc/md.texi (movmem): Explicitly state that expected alignment is
10270         to be expressed in bytes.
10271         (setmem): Explicitly state that expected alignment is to be expressed
10272         in bytes.
10273
10274 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
10275
10276         * reload.c (find_reloads_subreg_address): Do not require validity
10277         of address in original mode before reloading address.
10278
10279 2008-07-07  Tianwei Sheng  <tianweis@google.com>
10280
10281         * df-core.c (df_remove_problem): Adjust the access to avoid out of
10282         bounds array access.
10283
10284 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
10285
10286         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
10287
10288 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
10289
10290         Fix PR tree-optimization/23455
10291         Fix PR tree-optimization/35286
10292         Fix PR tree-optimization/35287
10293         * Makefile.in (OBJS-common): Remove tree-vn.o.
10294         (tree-vn.o): Remove.
10295         * dbgcnt.def: Add treepre_insert debug counter.
10296         * gcc/tree-flow.h (add_to_value): Updated for other changes.
10297         (debug_value_expressions): Ditto.
10298         (print_value_expressions): Ditto.
10299         * tree-pretty-print.c (dump_generic_node): Updated for
10300         VALUE_HANDLE removal.
10301         * tree-ssa-dom.c (record_equality): Ditto.
10302         (cprop_operand): Ditto.
10303         (lookup_avail_expr): Ditto.
10304         * tree-ssa-threadedge.c
10305         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
10306         (simplify_control_stmt_condition): Ditto.
10307         * tree.c (tree_code_size): Ditto.
10308         (tree_node_structure): Ditto.
10309         (iterative_hash_expr): Ditto.
10310         * tree.def: Ditto.
10311         * tree.h (VALUE_HANDLE_ID): Ditto.
10312         (VALUE_HANDLE_EXPR_SET): Ditto.
10313         (struct tree_value_handle): Ditto.
10314         (union tree_node): Ditto.
10315         * treestruct.def: Ditto.
10316         * tree-vn.c: Removed.
10317         * tree-ssa-pre.c: Rewritten entirely.
10318         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
10319         (constant_value_ids): Ditto.
10320         (vn_nary_op_t): Moved to header.
10321         (vn_phi_t): Ditto.
10322         (vn_reference_op_t): Ditto
10323         (vn_reference_t): Ditto.
10324         (next_value_id): New variable.
10325         (VN_INFO): Add an assert.
10326         (vn_constant_eq): New function.
10327         (vn_constant_hash): Ditto.
10328         (get_or_alloc_constant_value_id): Ditto.
10329         (value_id_constant_p): Ditto.
10330         (vn_reference_compute_hash): De-staticify.
10331         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
10332         Disable some code with a FIXME.  Remove VALUE_HANDLE use.
10333         (valueize_refs): Update opcode if it changes from ssa name to constant.
10334         (vn_reference_lookup_1): Add new argument.
10335         (vn_reference_lookup):  Ditto.
10336         (vn_reference_lookup_pieces): New function.
10337         (vn_reference_insert): Add return type. Modify to deal with value ids.
10338         (vn_reference_insert_pieces):  New function.
10339         (vn_nary_op_compute_hash): De-staticify.
10340         (vn_nary_op_eq): Ditto.
10341         (vn_nary_op_lookup_pieces): New function.
10342         (vn_nary_op_lookup): Add new argument.
10343         (vn_nary_op_insert_pieces): New function.
10344         (vn_nary_op_insert): Add return type. Modify to deal with value ids.
10345         (vn_phi_insert): Ditto.
10346         (visit_unary_op): Update for callee changes.
10347         (visit_binary_op): Ditto.
10348         (visit_reference_op_load): Ditto.
10349         (visit_reference_op_store): Ditto.
10350         (init_scc_vn): Init next_value_id, constant_to_value_id and
10351         constant_value_ids.
10352         (free_scc_vn): Free them.
10353         (set_hashtable_value_ids): New function.
10354         (run_scc_vn): Use it.
10355         (get_max_value_id): New function.
10356         (get_next_value_id): Ditto.
10357         (expressions_equal_p): Moved from tree-vn.c
10358         (sort_vuses): Ditto.
10359         (sort_vuses_heap): Ditto.
10360         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
10361         above).
10362         * tree.c (iterative_hash_hashval_t): Made non-static
10363         * tree.h (iterative_hash_hashval_t): Declare it.
10364
10365 2008-07-08  Martin Jambor  <mjambor@suse.cz>
10366
10367         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
10368         instead of ipa_create_node_params.
10369         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
10370         ipa_check_create_edge_args, free them with
10371         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
10372
10373         * ipa-prop.c: Include flags.h and tree-inline.h.
10374         (ipa_node_params_vector): New variable.
10375         (ipa_edge_args_vector): New variable.
10376         (edge_removal_hook_holder): New variable.
10377         (node_removal_hook_holder): New variable.
10378         (edge_duplication_hook_holder): New variable.
10379         (node_duplication_hook_holder): New variable.
10380         (ipa_detect_param_modifications): Check for presence of modified flags.
10381         (ipa_compute_jump_functions): Check for presence of jump functions.
10382         (ipa_free_edge_args_substructures): New function.
10383         (ipa_create_node_params): Removed.
10384         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
10385         (ipa_free_node_params_substructures): New function.
10386         (ipa_free_all_node_params): Changed to deallocate the on-the-side
10387         vector.
10388         (ipa_edge_removal_hook): New function.
10389         (ipa_node_removal_hook): New function.
10390         (duplicate_array): New function.
10391         (ipa_edge_duplication_hook): New function.
10392         (ipa_node_duplication_hook): New function.
10393         (ipa_register_cgraph_hooks): New function.
10394         (ipa_unregister_cgraph_hooks): New function.
10395         (free_all_ipa_structures_after_ipa_cp): New function.
10396
10397         * ipa-prop.h: Include vec.h.
10398         (ipa_node_params_t): New typedef with vector types for it.
10399         (ipa_edge_args_t):  New typedef with vector types for it.
10400         (IPA_NODE_REF): Changed to access an on-the-side vector.
10401         (IPA_EDGE_REF): Changed to access an on-the-side vector.
10402         (ipa_check_create_node_params): New function.
10403         (ipa_check_create_edge_args): New function.
10404
10405         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
10406         all users.
10407
10408 2008-07-07  Tom Tromey  <tromey@redhat.com>
10409
10410         * configure, config.in: Rebuilt.
10411         * configure.ac: Don't check for scandir or alphasort.
10412
10413 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
10414
10415         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
10416         types immediately after creating them.
10417
10418 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
10419
10420         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
10421
10422 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
10423
10424         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
10425         dump_constraint_graph.
10426         (dump_constraint_edge): New function.
10427         (dump_constraint_graph): New function.
10428         (debug_constraint_graph): New function.
10429         (dump_constraint): Removed useless comparison.
10430         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
10431         (dump_constraint_graph): Declare.
10432         (debug_constraint_graph): Declare.
10433         * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
10434
10435 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
10436
10437         * config/i386/i386.c (is_va_list_char_pointer): New.
10438         (ix86_va_start): Replace compare with ms_va_list_type_node
10439         by is_va_list_char_pointer.
10440         (ix86_gimplify_va_arg): Likewise.
10441
10442 2008-07-07  Martin Jambor  <mjambor@suse.cz>
10443
10444         * cgraph.c (cgraph_edge_max_uid): New variable.
10445         (struct cgraph_edge_hook_list): New type.
10446         (struct cgraph_node_hook_list): New type.
10447         (struct cgraph_2edge_hook_list): New type.
10448         (struct cgraph_2node_hook_list): New type.
10449         (first_cgraph_edge_removal_hook): New variable.
10450         (first_cgraph_node_removal_hook): New variable.
10451         (first_cgraph_edge_duplicated_hook): New variable.
10452         (first_cgraph_node_duplicated_hook): New variable.
10453         (cgraph_add_edge_removal_hook): New function.
10454         (cgraph_remove_edge_removal_hook): New function.
10455         (cgraph_call_edge_removal_hooks):  New function.
10456         (cgraph_add_node_removal_hook):  New function.
10457         (cgraph_remove_node_removal_hook):  New function.
10458         (cgraph_call_node_removal_hooks):  New function.
10459         (cgraph_add_edge_duplication_hook):  New function.
10460         (cgraph_remove_edge_duplication_hook):  New function.
10461         (cgraph_call_edge_duplication_hooks):  New function.
10462         (cgraph_add_node_duplication_hook):  New function.
10463         (cgraph_remove_node_duplication_hook):  New function.
10464         (cgraph_call_node_duplication_hooks):  New function.
10465         (cgraph_create_edge): Assign to edge uid.
10466         (cgraph_remove_edge): Call edge removal hooks.
10467         (cgraph_node_remove_callees): Call edge removal hooks.
10468         (cgraph_node_remove_callers): Call edge removal hooks.
10469         (cgraph_remove_node): Call node removal hooks.
10470         (cgraph_clone_edge): Call edge duplication hooks.
10471         (cgraph_clone_node): Call node duplication hooks.
10472
10473         * cgraph.h (cgraph_edge): New field uid.
10474         (cgraph_edge_hook): New type.
10475         (cgraph_node_hook): New type.
10476         (cgraph_2edge_hook): New type.
10477         (cgraph_2node_hook): New type.
10478
10479 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
10480
10481         * config.in: Regenerate.
10482
10483 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
10484
10485         * gcc.c (print_sysroot): New.
10486         (option_map, display_help, process_command): Handle the
10487         -print-sysroot option.
10488         (main): Print the sysroot if requested.
10489         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
10490
10491 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10492
10493         PR target/34780
10494         * unwind-pe.h (size_of_encoded_value): add attribute unused.
10495
10496 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
10497
10498         * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
10499         (assign_parm_setup_block_p): Also check mode of entry_parm.
10500
10501 2008-07-07  Richard Guenther  <rguenther@suse.de>
10502
10503         * tree-ssa-structalias.h (set_used_smts): Remove.
10504         * tree-ssa-structalias.c (used_smts): Likewise.
10505         (set_used_smts): Likewise.
10506         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
10507         call to set_used_smts.
10508
10509 2008-07-07  Richard Guenther  <rguenther@suse.de>
10510
10511         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
10512         (new_var_info): Set it to false.
10513         (solution_set_add): Correctly handle pointers outside a var and
10514         inside a field.
10515         (type_safe): Treat variables with is_full_var properly.
10516         (do_sd_constraint): Likewise.
10517         (do_ds_constraint): Likewise.
10518         (process_constraint): Remove zeroing offset for !use_field_sensitive.
10519         (get_constraint_for_ptr_offset): New function.
10520         (get_constraint_for_component_ref): For addresses at least include
10521         the last field of the variable.  Handle is_full_vars properly.
10522         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
10523         (handle_ptr_arith): Remove.
10524         (find_func_aliases): Simplify assignment handling.
10525         (create_function_info_for): For parameter and result varinfos set
10526         is_full_var flag.
10527         (create_variable_info_for): Set is_full_var flag whenever we
10528         just created a single varinfo for a decl.
10529         (init_alias_vars): Initialize use_field_sensitive from
10530         max-fields-for-field-sensitive parameter.
10531
10532 2008-07-07  Richard Guenther  <rguenther@suse.de>
10533
10534         PR tree-optimization/36713
10535         * tree-flow-inline.h (is_call_used): New function.
10536         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
10537         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
10538         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
10539
10540 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
10541
10542         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
10543
10544 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
10545
10546         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
10547
10548 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
10549             Nathan Sidwell  <nathan@codesourcery.com>
10550
10551         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
10552         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
10553         tmake_file.
10554         * config/m68k/t-linux: New.
10555         * doc/install.texi: Document m68k-*-linux is now multilibbed by
10556         default.
10557
10558 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
10559
10560         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
10561         * config/m68k/m68k-devices.def: Remove multilibs that only differ
10562         by MAC/EMAC.
10563
10564 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10565
10566         * gcc.c (execute): Fix -Wc++-compat warning.
10567
10568 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
10569
10570         PR target/36720
10571         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
10572         constant for little endian.
10573
10574 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
10575
10576         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
10577         mips_base_mips16 instead of TARGET_MIPS16.
10578         (mips_base_mips16): Declare.
10579         * config/mips/mips.c (mips_base_mips16): Make global.
10580         (was_mips16_p): Remove GTY marker.
10581         (was_mips16_pch_p): New variable.
10582         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
10583         (mips_override_options): Force to non-MIPS16 mode initially.
10584         Do not complain about MIPS16 PIC incompatibilities here.
10585         Only allow -mgpopt if -mexplicit-relocs is in force for
10586         non-MIPS16 code.
10587
10588 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
10589
10590         * configure.ac: Check for caddr_t, define to char * if not defined.
10591         * configure: Regenerate.
10592         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
10593         (mmap_gt_pch_use_address): Likewise.
10594         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
10595
10596 2008-07-06  Richard Guenther  <rguenther@suse.de>
10597
10598         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
10599         (new_var_info): Deal with it.
10600         (solution_set_add): Likewise.
10601         (bitpos_of_field): Make signed, fix.
10602         (struct fieldoff): Remove type and decl fields.  Make size field
10603         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
10604         flags.
10605         (fieldoff_compare): Deal with it.
10606         (push_fields_onto_fieldstack): Remove has_union argument, glob
10607         adjacent non-pointer fields together.
10608         (create_function_info_for): Do not set has_union.
10609         (create_variable_info_for): Simplify.
10610
10611 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
10612
10613         * config.gcc (extra_headers): Add cross-stdarg.h for target
10614         x86_64-*-* and i?86-*-*.
10615         * config/i386/cross-stdarg.h: New.
10616         * builtins.c (std_fn_abi_va_list): New.
10617         (std_canonical_va_list_type): New.
10618         (stabilize_va_list): Replace va_list_type_node use by
10619         mtarget.canonical_va_list_type.
10620         (gimplify_va_arg_expr): Likewise.
10621         (expand_builtin_va_copy): Replace va_list_type_node use by
10622         mtarget.fn_abi_va_list.
10623         * tree-sra.c (is_va_list_type): New helper.
10624         (decl_can_be_decomposed_p): Replace
10625         va_list_type_node use by is_va_list_type.
10626         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
10627         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
10628         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
10629         * config/i386/i386-protos.h (ix86_get_valist_type): New.
10630         (ix86_enum_va_list): New.
10631         * config/i386/i386.c (sysv_va_list_type_node): New.
10632         (ms_va_list_type_node): New.
10633         (ix86_function_type_abi): Remove sorry.
10634         (ix86_build_builtin_va_list_abi): New.
10635         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
10636         for 64-bit targets.
10637         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
10638         (ix86_init_builtins_va_builtins_abi): New.
10639         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
10640         for 64-bit targets.
10641         (ix86_handle_abi_attribute): New.
10642         (attribute_spec): Add sysv_abi and ms_abi.
10643         (ix86_fn_abi_va_list): New.
10644         (ix86_canonical_va_list_type): New.
10645         (ix86_enum_va_list): New.
10646         (TARGET_FN_ABI_VA_LIST): New.
10647         (TARGET_CANONICAL_VA_LIST_TYPE): New.
10648         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
10649         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
10650         (TARGET_CANONICAL_VA_LIST_TYPE): New.
10651         (TARGET_ENUM_VA_LIST): New.
10652         * expr.h (std_fn_abi_va_list): New.
10653         (std_canonical_va_list_type): New.
10654         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
10655         (TARGET_CANONICAL_VA_LIST_TYPE): New.
10656         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
10657         TARGET_CANONICAL_VA_LIST_TYPE.
10658         * target.h (struct gcc_target): Add fn_abi_va_list hook
10659         and canonical_va_list_type hook.
10660
10661 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10662
10663         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
10664         integral and pointer types.
10665
10666 2008-07-04  Roger Sayle  <roger@eyesopen.com>
10667
10668         * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
10669         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
10670
10671 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
10672
10673         PR target/36684
10674         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
10675
10676 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
10677
10678         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
10679         build_gimple_modify_stmt.
10680         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
10681         gimple operand.  Use fold_build* instead of build*.
10682
10683 2008-07-04  Richard Guenther  <rguenther@suse.de>
10684
10685         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
10686         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
10687         properly to compute the reachability set if we do field-sensitive PTA.
10688         * invoke.texi (max-fields-for-field-sensitive): Document default.
10689         * opts.c (decode_options): Set max-fields-for-field-sensitive to
10690         100 for optimize >= 2.
10691
10692 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10693
10694         * ggc-zone.c (lookup_page_table_if_allocated,
10695         set_page_table_entry, zone_find_object_size, alloc_small_page,
10696         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
10697         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
10698         -Wc++-compat and/or -Wcast-qual warnings.
10699
10700 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
10701
10702         PR target/36634
10703         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
10704         pic_offset_table_rtx to be marked as used here.
10705         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
10706         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
10707         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
10708         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
10709         !TARGET_SECURE_PLT.
10710
10711 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10712
10713         * alloc-pool.c (hash_descriptor, eq_descriptor,
10714         alloc_pool_descriptor): Fix -Wc++-compat warnings.
10715         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
10716         Likewise.
10717         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
10718         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
10719         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
10720         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
10721         Likewise.
10722
10723 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
10724
10725         * tree-flow.h (loop_only_exit_p): Declare.
10726         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
10727         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
10728         the number of iterations if it is constant.  Otherwise, if this is the
10729         only possible exit of the loop, use the conservative estimate on the
10730         number of iterations of the entire loop if available.
10731
10732 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
10733
10734         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
10735         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
10736         Add synchronization functions.
10737         * config/sync.c: New file.
10738         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
10739         (LIBGCC_SYNC_CFLAGS): Likewise.
10740
10741 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
10742
10743         PR target/36710
10744         * config/i386/i386.md (mode): Add TF to "mode" attribute.
10745         (*pushtf_sse): New insn pattern.
10746         (pushtf splitters): New splitters.
10747
10748 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
10749
10750         PR middle-end/35736
10751         * predict.c (build_predict_expr): Use void_type_node for the tree
10752         type, instead of NULL_TREE.
10753
10754 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
10755
10756         * config/i386/i386.c (contains_aligned_value_p): Return true
10757         for TCmode.
10758         (ix86_data_alignment): Align TCmode to 128bits.
10759         (ix86_local_alignment): Likewise.
10760
10761 2008-07-03  Andrew Haley  <aph@redhat.com>
10762
10763         PR bootstrap/33304
10764         * vec.h (VEC_TA): New.
10765         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
10766         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
10767         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
10768         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
10769         (C_COMMON_FIXED_TYPES): Remove first arg.
10770         (C_COMMON_FIXED_MODE_TYPES): Likewise.
10771         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
10772         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
10773         not to use empty macro arguments.
10774
10775 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
10776
10777         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
10778         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
10779         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
10780         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
10781         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
10782         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
10783         config/ia64/crtn.asm, config/m68hc11/larith.asm,
10784         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
10785         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
10786         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
10787         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
10788         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
10789         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
10790         config/rs6000/e500crtres64gpr.asm,
10791         config/rs6000/e500crtres64gprctr.asm,
10792         config/rs6000/e500crtrest32gpr.asm,
10793         config/rs6000/e500crtrest64gpr.asm,
10794         config/rs6000/e500crtresx32gpr.asm,
10795         config/rs6000/e500crtresx64gpr.asm,
10796         config/rs6000/e500crtsav32gpr.asm,
10797         config/rs6000/e500crtsav64gpr.asm,
10798         config/rs6000/e500crtsav64gprctr.asm,
10799         config/rs6000/e500crtsavg32gpr.asm,
10800         config/rs6000/e500crtsavg64gpr.asm,
10801         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
10802         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
10803         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
10804         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
10805         config/sparc/sol2-cn.asm: Remove .file directives.
10806
10807 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
10808
10809         * resource.c (mark_referenced_resources): Look inside
10810         UNSPEC_VOLATILEs and ASM_INPUTs.
10811
10812 2008-07-02  Ian Lance Taylor  <iant@google.com>
10813
10814         * rtlanal.c (add_reg_note): New function.
10815         * rtl.h (add_reg_note): Declare.
10816         * auto-inc-dec.c (attempt_change): Use add_reg_note.
10817         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
10818         * builtins.c (expand_builtin_longjmp): Likewise.
10819         (expand_builtin_nonlocal_goto): Likewise.
10820         * calls.c (emit_call_1, expand_call): Likewise.
10821         * cfgexpand.c (add_reg_br_prob_note): Likewise.
10822         * cfglayout.c (fixup_reorder_chain): Likewise.
10823         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
10824         (commit_one_edge_insertion): Likewise.
10825         * combine.c (move_deaths, distribute_notes): Likewise.
10826         * df-problems.c (df_set_note): Likewise.
10827         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
10828         (set_unique_reg_note): Likewise.
10829         (emit_copy_of_insn_after): Likewise.
10830         * expr.c (expand_expr_real): Likewise.
10831         * gcse.c (add_label_notes): Likewise.
10832         * haifa-sched.c (create_check_block_twin): Likewise.
10833         * jump.c (mark_jump_label_1): Likewise.
10834         * loop-doloop.c (add_test, doloop_modify): Likewise.
10835         * loop-unswitch.c (compare_and_jump_seq): Likewise.
10836         * lower-subreg.c (move_eh_region_note): Likewise.
10837         * optabs.c (emit_libcall_block): Likewise.
10838         * predict.c (predict_insn): Likewise.
10839         (combine_predictions_for_insn): Likewise.
10840         * recog.c (peephole2_optimize): Likewise.
10841         * regmove.c (try_auto_increment): Likewise.
10842         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
10843         * reload.c (find_reloads): Likewise.
10844         * reload1.c (fixup_eh_region_note): Likewise.
10845         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
10846         * reorg.c (delete_prior_computation): Likewise.
10847         (delete_computation, dbr_schedule): Likewise.
10848         * config/pa/pa.c (legitimize_pic_address): Likewise.
10849         * config/sh/sh.c (sh_reorg): Likewise.
10850
10851 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
10852
10853         PR target/36669
10854         * config/libgcc-glibc.ver: Add %exclude.
10855         * config/m32r/libgcc-glibc.ver: Likwise.
10856         * config/s390/libgcc-glibc.ver: Likwise.
10857         * config/sh/libgcc-glibc.ver: Likwise.
10858         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
10859
10860         * config/i386/libgcc-glibc.ver: New.
10861
10862         * config/i386/libgcc-x86_64-glibc.ver: Removed.
10863
10864 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
10865
10866         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
10867         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
10868         i[34567]86-*-linux*, x86_64-*-linux*.  Add
10869         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
10870         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
10871         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
10872         i[34567]86-*-linux*, x86_64-*-linux*.
10873
10874         * libgcc-std.ver: Add empty GCC_4.4.0.
10875
10876         * mkmap-symver.awk: Support multiple versions per symbol.
10877
10878         * config/i386/i386.c (ix86_init_builtins): Always define
10879         __builtin_fabsq and __builtin_copysignq with fallbacks.
10880         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
10881         and __builtin_copysignq if SSE2 isn't available.
10882
10883         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
10884         (LIBGCC2_TF_CEXT): Likwise.
10885         (TF_SIZE): Likwise.
10886
10887         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
10888
10889         * config/i386/sfp-machine.h: Moved to libgcc.
10890
10891         * config/i386/sfp-machine.h: New.
10892         * config/i386/t-linux: Likwise.
10893
10894         * config/i386/t-darwin: Remove softfp_wrap_start and
10895         softfp_wrap_end.
10896         * config/i386/t-darwin64: Likewise.
10897
10898         * config/i386/t-fprules-softfp64: Renamed to ...
10899         * config/i386/t-fprules-softfp: This.
10900
10901         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
10902         and softfp_wrap_end.
10903
10904 2008-07-02  Jason Merrill  <jason@redhat.com>
10905
10906         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
10907
10908         * tree.c (ctor_to_list): New fn.
10909         * tree.h: Declare it.
10910         (CONSTRUCTOR_ELT): New macro.
10911         (CONSTRUCTOR_NELTS): New macro.
10912
10913 2008-07-02  Richard Guenther  <rguenther@suse.de>
10914
10915         * tree-ssa-structalias.c (struct variable_info): Reorder
10916         to fill padding on 64bit hosts.  Make collapsed_to an int.
10917         (get_varinfo_fc): Deal with that.
10918         (new_var_info): Likewise.
10919         (collapse_rest_of_var): Likewise.
10920
10921 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
10922
10923         * doc/install.texi (--enable-java-home): Document.
10924         (--enable-aot-compile-rpm): Likewise.
10925         (--with-arch-directory): Likewise.
10926         (--with-os-directory): Likewise.
10927         (--with-origin-name): Likewise.
10928         (--with-arch-suffix): Likewise.
10929         (--with-jvm-root-dir): Likewise.
10930         (--with-jvm-jar-dir): Likewise.
10931         (--with-python-dir): Likewise.
10932
10933 2008-07-02  Richard Guenther  <rguenther@suse.de>
10934
10935         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
10936         from decls explicitly.  Merge operand checking from tuples.
10937
10938 2008-07-02  Martin Jambor  <mjambor@suse.cz>
10939
10940         * tree-switch-conversion.c: Included timevar.h which I forgot before.
10941
10942 2008-07-02  Martin Jambor  <mjambor@suse.cz>
10943
10944         * tree-switch-conversion.c: Included timevar.h
10945         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
10946
10947         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
10948
10949 2008-07-02  Martin Jambor  <mjambor@suse.cz>
10950
10951         * tree-switch-conversion.c: Corrected various comments and
10952         whitespace issues
10953         (build_constructors): Fixed minor formatting mistakes.
10954
10955         * invoke.texi (Optimize Options): Corrected the
10956         switch-conversion-max-branch-ratio parameter.
10957
10958 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
10959
10960         * final.c (asm_insn_count): Return zero for an empty asm body.
10961
10962 2008-07-02  Richard Guenther  <rguenther@suse.de>
10963
10964         * bitmap.h (bitmap_set_bit): Return bool.
10965         (bitmap_clear_bit): Likewise.
10966         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
10967         write to the bitmap if it would.
10968         (bitmap_clear_bit): Likewise.
10969         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
10970         bitmap_set_bit return value.
10971         (add_pred_graph_edge): Likewise.
10972         (add_graph_edge): Likewise.
10973         (do_sd_constraint): Likewise.
10974         (do_ds_constraint): Likewise.
10975
10976 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10977
10978         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
10979         Fix -Wc++-compat and/or -Wcast-qual warnings.
10980         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
10981         gen_regparm_prefix): Likewise.
10982         * vmsdbgout.c (write_modbeg, lookup_filename,
10983         vmsdbgout_source_line, vmsdbgout_init): Likewise.
10984
10985 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
10986
10987         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
10988         defaults.h definition apply.
10989
10990 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
10991
10992         * function.c (assign_parm_remove_parallels): New.
10993         (assign_parm_setup_block_p): Do not return true for non-BLKmode
10994         PARALLELs.
10995         (assign_parm_setup_block): Do not handle them.
10996         (assign_parm_setup_reg, assign_parm_setup_stack): Call
10997         assign_parm_remove_parallels.
10998
10999 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
11000
11001         * c-typeck.c (convert_for_assignment): Use
11002         vector_targets_convertible_p.
11003         * c-common.c (vector_targets_convertible_p): New.
11004         * c-common.h (vector_targets_convertible_p): New prototype.
11005         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
11006         opaque_p_V2SI_type_node.
11007
11008 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
11009
11010         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
11011         RFmode constants.
11012
11013 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
11014
11015         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
11016         TFmode constants via two element DImode vector for hosts with
11017         HOST_BITS_PER_WIDE_INT < 64.
11018         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
11019         also for HOST_BITS_PER_WIDE_INT < 64.
11020
11021 2008-07-01  Richard Guenther  <rguenther@suse.de>
11022
11023         PR tree-optimization/36666
11024         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
11025         (get_constraint_exp_from_ssa_var): Split into ...
11026         (get_constraint_exp_for_temp): ... this ...
11027         (get_constraint_for_ssa_var): ... and that.
11028         Return constraint expressions for all touched sub-fields
11029         if the results address is not taken.
11030         (process_constraint): Remove assertion that aggregate
11031         assignments do not happen at this place.
11032         (get_constraint_for_component_ref): Add address_p argument.
11033         Return constraint expressions for all touched sub-fields
11034         if the results address is not taken.
11035         (do_deref): Use get_constraint_exp_for_temp.
11036         (get_constraint_for_1): Rename from ...
11037         (get_constraint_for): ... this.  Add the old function as wrapper.
11038         (do_structure_copy): Use get_constraint_for_1.
11039
11040 2008-07-01  Martin Jambor  <mjambor@suse.cz>
11041
11042         * Makefile.in (tree-switch-conversion.o): Add.
11043         (OBJS-common): Add tree-swtch-conversion.o.
11044         * passes.c (init_optimization_passes): Add pass_convert_switch.
11045         * tree-pass.h: (pass_convert_switch): Add.
11046         * tree-switch-conversion.c: New file.
11047         * gcc.dg/tree-ssa/cswtch.c: New testcase.
11048         * common.opt (ftree-cswtch): New option.
11049         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
11050         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
11051         * opts.c (decode_options): Set flag_tree_switch_conversion when
11052         optimization level is >= 2.
11053         * doc/invoke.texi (Optimize Options): Added description of
11054         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
11055
11056 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11057
11058         * config/darwin-driver.c (darwin_default_min_version): Fix
11059         -Wc++-compat warnings.
11060
11061 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
11062
11063         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
11064         of operand 0.
11065
11066 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
11067
11068         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
11069
11070 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
11071
11072         PR rtl-optimization/34744
11073         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
11074         (df_scan_free_internal): Free data structures not
11075         allocated in storage pools.
11076         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
11077         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
11078         df_scan_free_mws_vec.
11079         * dse.c (dse_step6): Free offset_map_p and offset_map_n
11080         unconditionally.
11081
11082 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
11083
11084         * config/i386/i386.c (contains_aligned_value_p): Return true
11085         for __float128.
11086         (ix86_function_arg_boundary): Return its natural boundary
11087         for __float128.
11088         (return_in_memory_32): Don't check TDmode.
11089         (ix86_split_to_parts): Support splitting into 4 parts and
11090         support TFmode for 32bit target.
11091         (ix86_split_long_move): Support splitting into 4 parts.
11092         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
11093         for SSE2.
11094         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
11095         (ix86_init_builtins): Here.
11096         (ix86_scalar_mode_supported_p): Always return true for TFmode.
11097         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
11098         'q' and 'w', respectively.
11099
11100         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
11101         TARGET_64BIT.
11102         (movtf_internal): Likewise.
11103         (<code>tf2): Likewise.
11104         (*absnegtf2_sse): Likewise.
11105         (copysign<mode>3): Likewise.
11106         (copysign<mode>3_const): Likewise.
11107         (copysign<mode>3_var): Likewise.
11108         (define_split UNSPEC_COPYSIGN): Likewise.
11109         * config/i386/sse.md (*nandtf3): Likewise.
11110         (<code>tf3): Likewise.
11111         (*<code>tf3): Likewise.
11112
11113 2008-06-30  Joey Ye  <joey.ye@intel.com>
11114             H.J. Lu  <hongjiu.lu@intel.com>
11115
11116         * global.c (compute_regsets): Set frame_pointer_needed here.
11117         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
11118
11119 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
11120
11121         * doc/install.texi (specific): Expand Windows build notes.
11122
11123 2008-06-30  Ira Rosen  <irar@il.ibm.com>
11124
11125         PR tree-optimization/36648
11126         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
11127         number of prolog iterations by step. Fix the comment.
11128
11129 2008-06-30  Richard Guenther  <rguenther@suse.de>
11130
11131         PR middle-end/36671
11132         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
11133         handle calls from ECF_MALLOC functions.
11134         (handle_pure_call): ECF_MALLOC functions do not return
11135         call-used memory.
11136         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
11137
11138 2008-06-29  Andreas Schwab  <schwab@suse.de>
11139
11140         * config/m68k/m68k.c (print_operand): Always print a float
11141         constant in hex.
11142         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
11143         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
11144         Remove macros.
11145
11146         * config/rs6000/x-linux64: Remove never used file.
11147
11148 2008-06-29  Richard Guenther  <rguenther@suse.de>
11149
11150         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
11151         prototype.
11152         (struct alias_info): Move ...
11153         * tree-ssa-alias.c: ... here.
11154         (update_alias_info): Declare.
11155         (compute_may_aliases): Call it.
11156         (update_alias_info): New function.
11157         * tree-ssa-structalias.c (update_alias_info): Move ...
11158         * tree-ssa-alias.c (update_alias_info_1): ... here.
11159         * tree-ssa-structalias.c (process_constraint_1): Remove
11160         unused from_call argument.  Rename to ...
11161         (process_constraint): ... this.  Delete old wrapper.
11162         (make_constraint_to): Adjust callers.
11163         (handle_const_call): Likewise.
11164         (handle_pure_call): Likewise.
11165         (init_base_vars): Likewise.
11166         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
11167         (find_func_aliases): We don't need structure copies for
11168         complex types.
11169         (make_constraint_from_anything): Remove.
11170         (create_variable_info_for): For globals make constraints
11171         from escaped, not from anything.
11172         (compute_points_to_sets): Do not call update_alias_info.
11173         (ipa_pta_execute): Use make_constraint_from.
11174
11175 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11176
11177         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
11178         (bitmap.o-warn, dominance.o-warn): New.
11179         * configure.ac (cxx_compat_warn): Delete.
11180         (loose_warn): Add -Wcast-qual and -Wc++-compat.
11181         * system.h: Remove #pragma diagnostic for -Wcast-qual and
11182         -Wc++-compat.
11183         * configure: Regenerate.
11184
11185         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
11186         warnings.
11187
11188 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11189
11190         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
11191         * df-scan.c (df_notes_rescan): Likewise.
11192         * ggc-page.c (set_page_table_entry): Likewise.
11193         * intl.c (gcc_gettext_width): Likewise.
11194         * varasm.c (get_unnamed_section, get_noswitch_section,
11195         get_section): Likewise.
11196
11197 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
11198
11199         * regrename.c (build_def_use): Don't copy RTX.
11200
11201 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
11202
11203         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
11204         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
11205         punctuation.  Use @ref instead of @xref.
11206         (Function Names): Remove stray @display/@end display.
11207         (C++ Attributes): Use @ref instead of @xref.
11208         (Deprecated Features): Fix punctuation around @xref.
11209         (Backwards Compatibility): Likewise.
11210         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
11211
11212 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
11213
11214         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
11215         constants for E500 double.
11216
11217 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11218
11219         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
11220         element type of const_vector.
11221
11222 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
11223
11224         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
11225         Remove FLAGS_REG clobber from expander pattern.
11226         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
11227         (anddi3, andsi3, andhi3, andqi3): Ditto.
11228         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
11229         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
11230         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
11231         (ashlsi3, ashlhi3, ashlqi3): Ditto.
11232         (ashrsi3, ashrhi3, ashrqi3): Ditto.
11233         (lshrsi3, lshrhi3, lshrqi3): Ditto.
11234         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
11235         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
11236
11237 2008-06-28  Richard Guenther  <rguenther@suse.de>
11238
11239         * tree-ssa-structalias.c (callused_id, var_callused,
11240         callused_tree): Add.
11241         (handle_pure_call): New function.
11242         (find_func_aliases): Call it.
11243         (find_what_p_points_to): Handle the call-used set.
11244         (clobber_what_escaped): Likewise.
11245         (compute_call_used_vars): New function.
11246         (init_base_vars): Init the call-used variable.
11247         (do_sd_constraint): Do not propagate the solution from CALLUSED
11248         but use CALLUSED as a placeholder.
11249         (solve_graph): Likewise.
11250         * tree-flow-inline.h (gimple_call_used_vars): New function.
11251         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
11252         (compute_call_used_vars): Declare.
11253         * tree-ssa-alias.c (set_initial_properties): Call
11254         compute_call_used_vars.
11255         (reset_alias_info): Clear call-used variables.
11256         (add_call_clobber_ops): Assert we are not called for const/pure
11257         functions.  Remove handling of them.
11258         (add_call_read_ops): Handle pure functions by adding the
11259         call-used set of variables as VUSEs.
11260         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
11261         (delete_tree_ssa): Free it.
11262         * tree-dfa.c (remove_referenced_var): Clear the var from the
11263         call-used bitmap.
11264
11265 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
11266
11267         * tree.c (build_varargs_function_type_list): New.
11268         (build_function_type_list_1): New.
11269         (build_function_type_list): Use build_function_type_list_1.
11270         * tree.h (build_varargs_function_type_list): New.
11271
11272 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11273
11274         PR target/34856
11275         * config/spu/spu.c (spu_builtin_splats): Do not generate
11276         invalid CONST_VECTOR expressions.
11277         (spu_expand_vector_init): Likewise.
11278
11279 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
11280
11281         * optabs.c (libfunc_decls): New variable.
11282         (libfunc_decl_hash, libfunc_decl_eq): New functions.
11283         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
11284         for the same function twice.
11285
11286 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
11287
11288         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
11289         ix86_expand_binary_operator directly.
11290         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
11291         for operand 2.
11292         (*ashrti3_1): Ditto.
11293         (*lshrti3_1): Ditto.
11294         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
11295         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
11296         using only one splitter.  Conditionaly execute splitter before or
11297         after peephole2 pass.
11298         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
11299         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
11300         Use only one alternative in asm template.
11301         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
11302         in asm template.
11303         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
11304         "J" operand constraint for operand 2.
11305         (*ashldi3_cconly_rex64): Ditto.
11306         (*ashrdi3_cmp_rex64): Ditto.
11307         (*ashrdi3_cconly_rex64): Ditto.
11308         (*lshrdi3_cmp_rex64): Ditto.
11309         (*lshrdi3_cconly_rex64): Ditto.
11310         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
11311         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
11312         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
11313         gen_x86_shrd_1.
11314
11315 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
11316
11317         * gimplify.c (omp_is_private): Don't return true if decl is not
11318         already private on #pragma omp for or #pragma omp parallel for.
11319
11320         PR debug/36617
11321         * tree-cfg.c (struct move_stmt_d): Replace block field with
11322         orig_block and new_block fields.
11323         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
11324         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
11325         (move_block_to_fn): Replace vars_map and new_label_map arguments
11326         with struct move_stmt_d pointer.
11327         (replace_block_vars_by_duplicates): New function.
11328         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
11329         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
11330         all subblocks of ORIG_BLOCK to the new function.  Call
11331         replace_block_vars_by_duplicates.
11332         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
11333         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
11334         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
11335         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
11336         (expand_omp): Temporarily set input_location to the location of
11337         region's controlling stmt.
11338         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
11339         BIND_EXPR, push ctx->block_vars and gimplification vars into
11340         the BIND_EXPR and its block's BLOCK_VARS instead of directly
11341         into dest function.
11342         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
11343         there are any BLOCK_VARS.
11344         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
11345         OMP_PARALLEL or OMP_TASK stmt.
11346         (lower_omp): Save and restore input_location around the lower_omp_1
11347         call.
11348
11349 2008-06-27  Richard Guenther  <rguenther@suse.de>
11350
11351         PR tree-optimization/36400
11352         PR tree-optimization/36373
11353         PR tree-optimization/36344
11354         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
11355         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
11356         (update_alias_info): Remove call clobbering code.
11357         (make_constraint_to): New helper function.
11358         (make_escape_constraint): Likewise.
11359         (handle_rhs_call): Use it on all pointer containing arguments.
11360         Also mark the static chain escaped.
11361         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
11362         instead of ANYTHING.
11363         (make_constraint_from): New helper split out from ...
11364         (make_constraint_from_anything): ... here.
11365         (find_func_aliases): Add constraints for escape sites.
11366         (intra_create_variable_infos): Make constraints from NONLOCAL
11367         for parameters.
11368         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
11369         as ANYTHING.
11370         (clobber_what_p_points_to): Remove.
11371         (clobber_what_escaped): New function.
11372         (init_base_vars): Init NONLOCAL and ESCAPED.
11373         (do_sd_constraint): Do not propagate the solution from ESCAPED
11374         but use ESCAPED as a placeholder.
11375         (solve_graph): Likewise.
11376         * tree-flow.h (clobber_what_p_points_to): Remove.
11377         (clobber_what_escaped): Declare.
11378         * tree-ssa-alias.c (set_initial_properties): Call it.
11379         Remove code clobbering escaped pointers.
11380
11381 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
11382
11383         * function.c (allocate_struct_function): Only allocate a unique
11384         funcdef_no if the decl is nonzero.
11385
11386 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
11387
11388         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
11389         * config/mips/mips.c (mips_split_const_insns): New function.
11390         * config/mips/mips.md (move_type): New attribute.
11391         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
11392         (dword_mode): New attribute.
11393         (type): Avoid long line.  Map "move_type"s to "type"s,
11394         choosing "multi" for doubleword moves if appropriate.
11395         Swap MTC/MFC comments to match their declaration order.
11396         (extended_mips16): Default to "yes" if "move_type" is "sll0",
11397         "type" is "branch" or "jal" is "direct".
11398         (length): Handle "extended_mips16" first.  Make the default
11399         "0" for "ghost" instructions.  Set the length from "move_type".
11400         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
11401         of "type", with "sll0" for the register alternative.  Remove the
11402         "extended_mips16" attribute.
11403         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
11404         of "type", with "shift_shift" for the register alternative.
11405         Remove the "length" attribute.
11406         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
11407         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
11408         of "type", with "andi" for the register alternative.
11409         (*zero_extendqihi2): Likewise.
11410         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
11411         of "andi" instead of a "type" of "arith".
11412         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
11413         instead of "type".
11414         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
11415         (mov_<store>r, *mov<mode>_ra): Likewise.
11416         (extendsidi2): Use "move_type" instead of "type", with "move"
11417         for the register alternative.
11418         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
11419         of "type", with "signext" for the register alternative.
11420         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
11421         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
11422         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
11423         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
11424         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
11425         (unnamed branch insn): Likewise.
11426         (*movdi_gp32_fp64): Fold into...
11427         (*movdi_32bit): ...here.
11428         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
11429         (*movdf_hardfloat): ...this new pattern.
11430         (*movdf_softfloat): Remove redundant FPR alternatives.
11431         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
11432         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
11433         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
11434         the "move" attribute.
11435         (*movdi_32bit): Use "move_type" instead of "type" and remove the
11436         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
11437         and "store" for COP loads and stores.
11438         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
11439         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
11440         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
11441         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
11442         (*movtf_mips16, *movv2sf): Likewise.
11443         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
11444         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
11445         (mfhc1<mode>): Use "move_type" instead of "move".
11446         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
11447         (loadgp_blockage): Remove the "length" attribute.
11448         (blockage, set_got_version, update_got_version): Likewise.
11449         (call_internal): Remove the "extended_mips16" attribute.
11450         (call_value_internal, call_value_multiple_internal): Likewise.
11451         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
11452         instead of "move".
11453         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
11454         the "length" attribute.
11455
11456 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11457
11458         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
11459         -Wcast-qual warnings.
11460         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
11461         handle_pragma_pop_macro): Likewise.
11462         * collect2.c (resolve_lib_name): Likewise.
11463         * config/arc/arc.c (arc_init): Likewise.
11464         * config/arm/arm.c (neon_builtin_compare,
11465         locate_neon_builtin_icode): Likewise.
11466         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
11467         * config/bfin/bfin.c (bfin_init_machine_status,
11468         bfin_optimize_loop): Likewise.
11469         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
11470         * config/cris/cris.c (cris_init_expanders): Likewise.
11471         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
11472         * config/darwin.c (machopic_indirection_eq,
11473         machopic_indirection_name, machopic_output_indirection): Likewise.
11474         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
11475         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
11476         frv_optimize_membar): Likewise.
11477         * config/i386/cygwin.h (mingw_scan,
11478         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
11479         * config/i386/cygwin1.c (mingw_scan): Likewise.
11480         * config/i386/i386.c (machopic_output_stub): Likewise.
11481         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
11482         i386_pe_unique_section): Likewise.
11483         * config/ia64/ia64.c (ia64_init_machine_status,
11484         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
11485         Likewise.
11486         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
11487         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
11488         * config/m68k/m68k.c (m68k_handle_option,
11489         m68k_sched_md_init_global): Likewise.
11490         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
11491         mcore_unique_section): Likewise.
11492         * config/mips/mips.c (mips_block_move_straight,
11493         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
11494         Likewise.
11495         * config/mmix/mmix.c (mmix_init_machine_status,
11496         mmix_encode_section_info): Likewise.
11497         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
11498         * config/rs6000/rs6000.c (rs6000_init_machine_status,
11499         print_operand_address, output_toc, redefine_groups,
11500         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
11501         * config/s390/s390.c (s390_init_machine_status): Likewise.
11502         * config/score/score.c (score_block_move_straight,
11503         score_block_move_loop_body): Likewise.
11504         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
11505         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
11506         * emit-rtl.c (find_auto_inc): Likewise.
11507         * gcc.c (translate_options, process_command): Likewise.
11508         * reorg.c (dbr_schedule): Likewise.
11509         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
11510         * xcoffout.c (xcoffout_declare_function): Likewise.
11511
11512 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
11513
11514         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
11515         ipa-pta working again.
11516
11517 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
11518
11519         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
11520         genautomata.
11521
11522 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
11523
11524         * config.gcc (powerpc*-*-*): Add new core e500mc.
11525         * config/rs6000/e500mc.md: New file.
11526         * config/rs6000/rs6000.c (processor_costs): Add new costs for
11527         e500mc.
11528         (rs6000_override_options): Add e500mc case to
11529         processor_target_table. Altivec and Spe options not allowed
11530         with e500mc. Add isel instruction to e500mc by
11531         default. Initialize rs6000_cost for e500mc.
11532         (rs6000_issue_rate): Set issue rate for e500mc.
11533         * config/rs6000/rs6000.h (processor_type): Add
11534         PROCESSOR_PPCE500MC.
11535         (ASM_CPU_SPEC): Add e500mc.
11536         Set TARGET_ISEL to rs6000_isel.
11537         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
11538         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
11539         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
11540         Include e500mc.md.
11541         * doc/invoke.texi: Add e500mc to list of cpus.
11542
11543 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11544
11545         PR c/34867
11546         * c-lex.c (lex_charconst): Initialize unsignedp.
11547
11548 2008-06-27  Olivier Hainque  <hainque@adacore.com>
11549
11550         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
11551         documented assumptions.
11552
11553 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
11554
11555         * dwarf2out.c: Remove trailing white spaces.  Break long line
11556         in comments.
11557
11558 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
11559
11560         * libfuncs.h (LTI_synchronize): New libfunc_index.
11561         (synchronize_libfunc): Declare.
11562         * builtins.c (expand_builtin_synchronize): Consider using
11563         synchronize_libfunc before falling back on an asm blockage.
11564         * config/mips/mips.c: Include libfuncs.h
11565         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
11566
11567 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
11568
11569         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
11570         parameter.  Copy stack_reg to r11 where appropriate.
11571         (no_global_regs_above): Add gpr parameter.
11572         (rs6000_stack_info): Only add padding for SPE save area if we
11573         are saving SPE GPRs and CR.
11574         (saveres_routine_syms): New variable.
11575         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
11576         Define.
11577         (rs6000_savres_routine_sym): New function.
11578         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
11579         split out of...
11580         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
11581         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
11582         Tweak FPR out-of-line saving.
11583         (rs6000_make_savres_rtx): New function.
11584         (rs6000_use_multiple_p): New function.
11585         (rs6000_savres_strategy): New function.
11586         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
11587         out-of-line if appropriate.
11588         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
11589         if we are optimizing for size.
11590         (GP_SAVE_INLINE): Define.
11591         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
11592         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
11593         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
11594         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
11595         (*save_fpregs_<mode>): Add use of r11.
11596         (*restore_gpregs_<mode>): New insn.
11597         (*return_and_restore_gpregs_<mode>): New insn.
11598         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
11599         use r11.
11600         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
11601         (*restore_gpregs_spe): New insn.
11602         (*return_and_restore_gpregs_spe): New insn.
11603         * config/rs6000/predicates.md (save_world_operation): Fix check.
11604
11605 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
11606
11607         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
11608         this point, so assert that.
11609
11610 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
11611
11612         * cfganal.c: Include vec.h and vecprim.h.
11613         (compute_idf): Import from...
11614         * tree-into-ssa (compute_idf): ...here.
11615         * basic-block.h (compute_idf): Export.
11616
11617 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
11618
11619         * c-decl.c (merge_decls): Use !current_function_decl to check for
11620         extern declaration of C99 inline function being at file scope.
11621
11622 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
11623
11624         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
11625
11626 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11627
11628         * alias.c (record_alias_subset, init_alias_analysis): Fix
11629         -Wc++-compat and/or -Wcast-qual warnings.
11630         * attribs.c (lookup_attribute_spec): Likewise.
11631         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
11632         copy_bb, connect_traces,
11633         find_rarely_executed_basic_blocks_and_cr): Likewise.
11634         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
11635         note_btr_set, migrate_btr_defs): Likewise.
11636         * builtins.c (result_vector, expand_builtin_memcpy,
11637         expand_builtin_mempcpy_args, expand_builtin_strncpy,
11638         builtin_memset_read_str, expand_builtin_printf,
11639         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
11640         Likewise.
11641         * caller-save.c (mark_set_regs): Likewise.
11642         * calls.c (expand_call, emit_library_call_value_1): Likewise.
11643         * cgraph.c (cgraph_edge): Likewise.
11644         * combine.c (likely_spilled_retval_1): Likewise.
11645         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
11646         htab_counts_entry_del, get_coverage_counts): Likewise.
11647         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
11648         new_cselib_val): Likewise.
11649         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
11650         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
11651         Likewise.
11652         * df-core.c (df_compact_blocks): Likewise.
11653         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
11654         * df-scan.c (df_grow_reg_info, df_ref_create,
11655         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
11656         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
11657         df_record_entry_block_defs, df_record_exit_block_uses,
11658         df_bb_verify): Likewise.
11659         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
11660         DF_REF_EXTRACT_MODE_CONST): New.
11661         * dominance.c (get_immediate_dominator, get_dominated_by,
11662         nearest_common_dominator, root_of_dom_tree,
11663         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
11664         -Wc++-compat and/or -Wcast-qual warnings.
11665         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
11666         record_store, replace_read, check_mem_read_rtx, scan_insn,
11667         dse_step1, dse_record_singleton_alias_set): Likewise.
11668         * dwarf2asm.c (dw2_force_const_mem): Likewise.
11669
11670 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11671
11672         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
11673         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
11674         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
11675         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
11676         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
11677         add_ranges_num, add_ranges_by_labels, file_info_cmp,
11678         file_name_acquire, output_file_names, add_const_value_attribute,
11679         premark_used_types_helper, file_table_eq, file_table_hash,
11680         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
11681         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
11682         -Wcast-qual warnings.
11683         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
11684         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
11685         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
11686         gen_reg_rtx, start_sequence, init_emit): Likewise.
11687         * et-forest.c (et_new_occ, et_new_tree): Likewise.
11688         * except.c (init_eh_for_function, gen_eh_region,
11689         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
11690         arh_to_landing_pad, arh_to_label, add_action_record,
11691         add_call_site, switch_to_exception_section): Likewise.
11692         * expmed.c (synth_mult): Likewise.
11693         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
11694         store_expr): Likewise.
11695         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
11696         Likewise.
11697         * function.c (assign_stack_temp_for_type,
11698         allocate_struct_function, match_asm_constraints_1): Likewise.
11699         * gcov-io.c (gcov_allocate): Likewise.
11700         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
11701         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
11702         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
11703         record_one_set, insert_expr_in_table, insert_set_in_table,
11704         dump_hash_table, compute_hash_table_work, alloc_hash_table,
11705         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
11706         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
11707         -Wcast-qual warnings.
11708
11709 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11710
11711         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
11712         -Wcast-qual warnings.
11713         * gcc.c (process_command): Likewise.
11714         * genattrtab.c (oballoc): Use XOBNEW.
11715         (oballocvec): Define.
11716         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
11717         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
11718         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
11719         -Wc++-compat and/or -Wcast-qual warnings.
11720         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
11721         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
11722         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
11723         gen_presence_absence_set, gen_automaton, gen_regexp_el,
11724         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
11725         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
11726         add_excls, process_presence_absence_names,
11727         process_presence_absence_patterns, add_presence_absence,
11728         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
11729         get_free_state, add_arc, get_free_automata_list_el,
11730         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
11731         transform_3, cache_presence, create_ainsns, create_automata,
11732         create_state_ainsn_table, dfa_insn_code_enlarge,
11733         output_trans_func, output_min_issue_delay_func,
11734         output_dead_lock_func, output_reset_func,
11735         output_get_cpu_unit_code_func, output_dfa_start_func,
11736         expand_automata): Likewise.
11737         * genextract.c (gen_insn): Likewise.
11738         * gengtype-lex.l: Likewise.
11739         * gengtype.c (read_input_list, adjust_field_type,
11740         process_gc_options): Likewise.
11741         * genoutput.c (note_constraint): Likewise.
11742         * genpreds.c (mangle, add_constraint): Likewise.
11743         * genrecog.c (process_define_predicate, new_decision,
11744         add_to_sequence): Likewise.
11745         * gensupport.c (record_insn_name): Likewise.
11746
11747 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11748
11749         * config/i386/driver-i386.c (detect_caches_amd,
11750         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
11751         and/or -Wcast-qual warnings.
11752         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
11753         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
11754         gt_pch_save): Likewise.
11755         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
11756         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
11757         * global.c (compute_regsets): Likewise.
11758         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
11759         finish_graph_dump_file): Likewise.
11760         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
11761         unlink_bb_notes): Likewise.
11762         * integrate.c (get_hard_reg_initial_val): Likewise.
11763         * ipa-prop.c (ipa_push_func_to_list): Likewise.
11764         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
11765         * local-alloc.c (update_equiv_regs): Likewise.
11766         * loop-invariant.c (check_invariant_table_size,
11767         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
11768         Likewise.
11769         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
11770         altered_reg_used, mark_altered): Likewise.
11771         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
11772         insert_var_expansion_initialization,
11773         combine_var_copies_in_loop_exit, apply_opt_in_copies,
11774         release_var_copies): Likewise.
11775         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
11776         analyze_matrix_decl, add_allocation_site, analyze_transpose,
11777         analyze_accesses_for_phi_node, check_var_notmodified_p,
11778         check_allocation_function, find_sites_in_func,
11779         record_all_accesses_in_func, transform_access_sites,
11780         transform_allocation_sites): Likewise.
11781         * omp-low.c (new_omp_region, create_omp_child_function_name,
11782         check_omp_nesting_restrictions, check_combined_parallel,
11783         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
11784         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
11785         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
11786         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
11787         Likewise.
11788         * opts-common.c (prune_options): Likewise.
11789         * opts.c (add_input_filename, print_filtered_help,
11790         get_option_state): Likewise.
11791         * params.c (add_params): Likewise.
11792         * passes.c (set_pass_for_id, next_pass_1,
11793         do_per_function_toporder, pass_fini_dump_file): Likewise.
11794         * postreload.c (reload_cse_simplify_operands): Likewise.
11795         * predict.c (tree_predicted_by_p, tree_predict_edge,
11796         clear_bb_predictions, combine_predictions_for_bb): Likewise.
11797
11798 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11799
11800         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
11801         warnings.
11802         * recog.c (check_asm_operands, validate_change_1): Likewise.
11803         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
11804         subst_asm_stack_regs): Likewise.
11805         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
11806         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
11807         * regmove.c (reg_is_remote_constant_p): Likewise.
11808         * regrename.c (regrename_optimize, scan_rtx_reg,
11809         kill_clobbered_value, kill_set_value, kill_autoinc_value):
11810         Likewise.
11811         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
11812         regstat_compute_calls_crossed): Likewise.
11813         * reload1.c (init_reload, new_insn_chain,
11814         has_nonexceptional_receiver, reload, copy_reloads,
11815         calculate_needs_all_insns, init_elim_table): Likewise.
11816         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
11817         * rtl.c (shallow_copy_rtx_stat): Likewise.
11818         * rtlanal.c (parms_set): Likewise.
11819         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
11820         sbitmap_resize, sbitmap_vector_alloc): Likewise.
11821         * sched-ebb.c (earliest_block_with_similiar_load,
11822         add_deps_for_risky_insns): Likewise.
11823         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
11824         schedule_region): Likewise.
11825         * see.c (eq_descriptor_pre_extension,
11826         hash_descriptor_pre_extension, hash_del_pre_extension,
11827         eq_descriptor_properties, hash_descriptor_properties,
11828         hash_del_properties, see_seek_pre_extension_expr,
11829         see_initialize_data_structures, see_print_register_properties,
11830         see_print_pre_extension_expr, see_delete_merged_def_extension,
11831         see_delete_unmerged_def_extension, see_emit_use_extension,
11832         see_pre_delete_extension, see_map_extension, see_commit_changes,
11833         see_analyze_merged_def_local_prop,
11834         see_analyze_merged_def_local_prop,
11835         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
11836         see_set_prop_merged_def, see_set_prop_unmerged_def,
11837         see_set_prop_unmerged_use, see_print_one_extension,
11838         see_merge_one_use_extension, see_merge_one_def_extension,
11839         see_store_reference_and_extension, see_update_uses_relevancy,
11840         see_update_defs_relevancy): Likewise.
11841         * statistics.c (hash_statistics_hash, hash_statistics_eq,
11842         hash_statistics_free, curr_statistics_hash): Likewise.
11843         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
11844         expand_asm_operands, expand_return, case_bit_test_cmp,
11845         expand_case): Likewise.
11846         * stor-layout.c (start_record_layout): Likewise.
11847         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
11848         gt_pch_save_stringpool): Likewise.
11849         * tree-data-ref.c (hash_stmt_vertex_info,
11850         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
11851         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
11852
11853 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
11854
11855         PR target/36627
11856         * config/i386/i386.md : Change constraints of HImode and QImode
11857         immediate operands from "i" to "n".  Change SImode "ni" constraint to
11858         "i" and SImode "rmi" constraint to "g".  Remove all constraints
11859         from const0_operand and const1_operand predicated operands.
11860         (i): Change QImode and HImode attribute from "i" to "n".
11861         (*subqi_2): Change HImode operands to QImode.
11862         (*subqi_3): Ditto.
11863
11864 2008-06-25  Olivier Hainque  <hainque@adacore.com>
11865
11866         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
11867         sed substitutions.
11868
11869 2008-06-25  Richard Guenther  <rguenther@suse.de>
11870
11871         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
11872         not overflow the result type.
11873
11874 2008-06-25  Richard Guenther  <rguenther@suse.de>
11875
11876         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
11877         (vn_lookup): Likewise.
11878
11879 2008-06-25  Richard Guenther  <rguenther@suse.de>
11880
11881         PR tree-optimization/35518
11882         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
11883         * tree-sra.c (instantiate_element): Use fold_build3 to build
11884         BIT_FIELD_REFs.
11885         (try_instantiate_multiple_fields): Likewise.
11886
11887 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11888
11889         * config/rs6000/rs6000.md: Change all string instruction's clobber to
11890         be early clobbers.
11891
11892 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11893
11894         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
11895         use_backchain_to_restore_sp to true
11896         if the offset of the link register save area would go over the 32k - 1
11897         offset limit of the load
11898         instructions.
11899
11900 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
11901
11902         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
11903         anchor for the type-punning blurb.  Cross-reference "Structures
11904         unions enumerations and bit-fields implementation".  Provide a
11905         cast-through-pointer example.  Make final sentence self-contained.
11906         * doc/implement-c.texi (Structures unions enumerations and
11907         bit-fields implementation): Cross-reference the type-punning blurb
11908         in the -fstrict-aliasing documentation.
11909
11910 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11911
11912         PR middle-end/36594
11913         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
11914         the memory instead of the memory itself for the save area.
11915
11916 2008-06-24  Olivier Hainque  <hainque@adacore.com>
11917             Nicolas Roche  <roche@adacore.com>
11918
11919         * gengtype.c (srcdir_len): size_t instead of int.
11920         (get_file_realbasename): New function.  For F a filename, the real
11921         basename of F, with all the path components stripped.
11922         (get_file_srcdir_relative_path): New function.  For F a filename, the
11923         relative path to F from $(srcdir).
11924         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
11925         get_file_realbasename.  Adjust the head comment.
11926         (get_prefix_langdir_index): New function. For F a filename, return the
11927         lang_dir_names[] relative index of the language directory that is
11928         a prefix in F.
11929         (get_file_langdir): For F a filename, return the name of the language
11930         directory where F is located.
11931         (get_file_gtfilename): New function. The gt- output file name for an
11932         input filename F.
11933         (get_output_file_with_visibility): Replace in-line computations with
11934         uses of get_file_gtfilename and get_prefix_langdir_index.
11935         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
11936
11937 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
11938
11939         PR tree-optimization/36504
11940         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
11941         references without base address.
11942
11943 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
11944
11945         PR middle-end/36584
11946         * calls.c (expand_call): Increase alignment for recursive functions.
11947
11948 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
11949
11950         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
11951         (TARGET_FUNCTION_VALUE): New define.
11952         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
11953         * config/avr/avr.h (FUNCTION_VALUE): Remove.
11954
11955 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
11956
11957         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
11958         (fmod<mode>3): Ditto.
11959         (remainderxf3): Ditto.
11960         (remainder<mode>3): Ditto.
11961
11962 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
11963
11964         PR target/36533
11965         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
11966         REG is a hard register.
11967
11968         PR tree-optimization/36508
11969         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
11970         499, don't check it at all in release compilers.
11971
11972 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
11973
11974         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
11975         together with SSE_TARGET_MATH to disable insn pattern.
11976         (*fop_<MODEF:mode>_2_i387): Ditto.
11977         (*fop_<MODEF:mode>_3_i387): Ditto.
11978
11979 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
11980
11981         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
11982
11983 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11984
11985         PR middle-end/34906
11986         * gimplify.c (gimplify_asm_expr): Check the return code of
11987         parse_output_constraint call, set function return and is_inout
11988         value if it failed.
11989
11990 2008-06-22  Ian Lance Taylor  <iant@google.com>
11991
11992         * c-lex.c (narrowest_unsigned_type): Change itk to int.
11993         (narrowest_signed_type): Likewise.
11994         * c-typeck.c (c_common_type): Change local variable mclass to enum
11995         mode_class, twice.
11996         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
11997         tcc_comparison, not the tree code itself.
11998         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
11999         (c_expand_expr): Cast modifier to enum expand_modifier.
12000         * c-common.h (C_RID_CODE): Add casts.
12001         (C_SET_RID_CODE): Define.
12002         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
12003         (c_lex_one_token): Add cast to avoid warning.
12004         (c_parser_objc_type_name): Rename local typename to type_name.
12005         (check_no_duplicate_clause): Change code parameter to enum
12006         omp_clause_code.
12007         (c_parser_omp_var_list_parens): Change kind parameter to enum
12008         omp_clause_code.
12009         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
12010         c_parser_omp_list_var_parens.
12011         (c_parser_omp_threadprivate): Likewise.
12012         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
12013         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
12014         * c-format.c (NO_FMT): Define.
12015         (printf_length_specs): Use NO_FMT.
12016         (asm_fprintf_length_specs): Likewise.
12017         (gcc_diag_length_specs): Likewise.
12018         (scanf_length_specs): Likewise.
12019         (strfmon_length_specs): Likewise.
12020         (gcc_gfc_length_specs): Likewise.
12021         (printf_flag_specs): Change 0 to STD_C89.
12022         (asm_fprintf_flag_specs): Likewise.
12023         (gcc_diag_flag_specs): Likewise.
12024         (gcc_cxxdiag_flag_specs): Likewise.
12025         (scanf_flag_specs): Likewise.
12026         (strftime_flag_specs): Likewise.
12027         (strfmon_flag_specs): Likewise.
12028         (print_char_table): Likewise.
12029         (asm_fprintf_char_table): Likewise.
12030         (gcc_diag_char_table): Likewise.
12031         (gcc_tdiag_char_table): Likewise.
12032         (gcc_cdiag_char_table): Likewise.
12033         (gcc_cxxdiag_char_table): Likewise.
12034         (gcc_gfc_char_table): Likewise.
12035         (scan_char_table): Likewise.
12036         (time_char_table): Likewis.
12037         (monetary_char_table): Likewise.
12038         * c-format.h (BADLEN): Likewise.
12039
12040 2008-06-21  Ian Lance Taylor  <iant@google.com>
12041
12042         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
12043         Define END_OF_BASE_TREE_CODES around inclusion.
12044         * tree.c (tree_code_type): New global array.
12045         (tree_code_length, tree_code_name): Likewise.
12046         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
12047         $(lang_tree_files).
12048         (all-tree.def, s-alltree): New targets.
12049         (gencheck.h, s-gencheck): Remove.
12050         (tree.o): Depend upon all-tree.def.
12051         (build/gencheck.o): Remove gencheck.h dependency.
12052         (mostlyclean): Don't remove gencheck.h.
12053         * c-common.h (enum c_tree_code): Remove.
12054         * c-lang.c (tree_code_type): Remove.
12055         (tree_code_length, tree_code_name): Remove.
12056         * gencheck.c (tree_codes): Include all-tree.def, rather than
12057         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
12058         after it is used.
12059         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
12060         than tree.def.
12061         * cp/cp-tree.h (enum cplus_tree_code): Remove.
12062         (operator_name_info): Size to MAX_TREE_CODES.
12063         (assignment_operator_name_info): Likewise.
12064         * cp/cp-lang.c (tree_code_type): Remove.
12065         (tree_code_length, tree_code_name): Remove.
12066         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
12067         (assignment_operator_name_info): Likewise.
12068         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
12069         MAX_TREE_CODES.
12070         * cp/mangle.c (write_expression): Likewise.
12071         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
12072         * fortran/f95-lang.c (tree_code_type): Remove.
12073         (tree_code_length, tree_code_name): Remove.
12074         * java/java-tree.h (enum java_tree_code): Remove.
12075         * java/lang.c (tree_code_type): Remove.
12076         (tree_code_length, tree_code_name): Remove.
12077         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
12078         * objc/objc-act.h (enum objc_tree_code): Remove.
12079         * objc/objc-lang.c (tree_code_type): Remove.
12080         (tree_code_length, tree_code_name): Remove.
12081         * objcp/objcp-lang.c (tree_code_type): Remove.
12082         (tree_code_length, tree_code_name): Remove.
12083         * ada/ada-tree.h (enum gnat_tree_code): Remove.
12084         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
12085         * ada/misc.c (tree_code_type): Remove.
12086         (tree_code_length, tree_code_name): Remove.
12087
12088 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
12089
12090         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
12091         the grand_bitmap_obstack.
12092
12093 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12094
12095         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
12096         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
12097         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
12098         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
12099         move_stmt_r, new_label_mapper): Likewise.
12100         * tree-complex.c (cvc_lookup): Likewise.
12101         * tree-dfa.c (create_function_ann): Likewise.
12102         * tree-dump.c (dump_register): Likewise.
12103         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
12104         find_phi_replacement_condition): Likewise.
12105         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
12106         tree_function_versioning): Likewise.
12107         * tree-into-ssa.c (cmp_dfsnum): Likewise.
12108         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
12109         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
12110         get_nonlocal_debug_decl, convert_nonlocal_reference,
12111         convert_nonlocal_omp_clauses, get_local_debug_decl,
12112         convert_local_reference, convert_local_omp_clauses,
12113         convert_nl_goto_reference, convert_nl_goto_receiver,
12114         convert_tramp_reference, convert_call_expr): Likewise.
12115         * tree-outof-ssa.c (contains_tree_r): Likewise.
12116         * tree-parloops.c (reduction_phi, initialize_reductions,
12117         eliminate_local_variables_1, add_field_for_reduction,
12118         add_field_for_name, create_phi_for_local_result,
12119         create_call_for_reduction_1, create_loads_for_reductions,
12120         create_stores_for_reduction, create_loads_and_stores_for_name):
12121         Likewise.
12122         * tree-phinodes.c (allocate_phi_node): Likewise.
12123         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
12124         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
12125         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
12126         * tree-ssa-coalesce.c (compare_pairs): Likewise.
12127         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
12128         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
12129         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
12130         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
12131         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
12132         vn_nary_op_insert): Likewise.
12133         * tree-ssa.c (redirect_edge_var_map_add,
12134         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
12135         * tree-vectorizer.c (vectorize_loops): Likewise.
12136         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
12137         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
12138         tree_cons_stat, build1_stat, build_variant_type_copy,
12139         decl_init_priority_lookup, decl_fini_priority_lookup,
12140         decl_priority_info, decl_restrict_base_lookup,
12141         decl_restrict_base_insert, decl_debug_expr_lookup,
12142         decl_debug_expr_insert, decl_value_expr_lookup,
12143         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
12144         type_hash_add, get_file_function_name, tree_check_failed,
12145         tree_not_check_failed, tree_range_check_failed,
12146         omp_clause_range_check_failed, build_omp_clause,
12147         build_vl_exp_stat): Likewise.
12148         * value-prof.c (gimple_histogram_value,
12149         gimple_duplicate_stmt_histograms): Likewise.
12150         * var-tracking.c (attrs_list_insert, attrs_list_copy,
12151         unshare_variable, variable_union_info_cmp_pos, variable_union,
12152         dataflow_set_different_1, dataflow_set_different_2,
12153         vt_find_locations, variable_was_changed, set_variable_part,
12154         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
12155         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
12156         section_entry_hash, object_block_entry_eq,
12157         object_block_entry_hash, create_block_symbol,
12158         initialize_cold_section_name, default_function_rodata_section,
12159         strip_reg_name, set_user_assembler_name, const_desc_eq,
12160         build_constant_desc, output_constant_def, lookup_constant_def,
12161         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
12162         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
12163         default_internal_label): Likewise.
12164         * varray.c (varray_init, varray_grow): Likewise.
12165         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
12166
12167 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
12168
12169         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
12170         operators for "test" insn.  Macroize insn using SWI mode macro.
12171         (*jcc_fused_2): Ditto.
12172         (*jcc_fused_3): Macroize insn using SWI mode macro.
12173         (*jcc_fused_4): Ditto.
12174
12175 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
12176
12177         * tree-ssa-pre.c: Fix typo in comment.
12178         (init_antic, fini_antic): Add explicit funtions for
12179         initializing and deinitializing ANTIC and AVAIL sets.
12180         (create_expression_by_pieces): Fix typo in comment.
12181         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
12182         (execute_pre): Eventually dump details about ANTIC_IN.
12183
12184 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12185
12186         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
12187         * gcc.c (translate_options, init_spec, store_arg, read_specs,
12188         add_to_obstack, file_at_path, find_a_file, execute,
12189         add_preprocessor_option, add_assembler_option, add_linker_option,
12190         process_command, insert_wrapper, do_option_spec, do_self_spec,
12191         spec_path, do_spec_1, is_directory, main, used_arg,
12192         getenv_spec_function): Likewise.
12193         * tlink.c (symbol_hash_lookup, file_hash_lookup,
12194         demangled_hash_lookup, symbol_push, file_push, frob_extension):
12195         Likewise.
12196
12197 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
12198
12199         * doc/rtl.texi: Updated subreg section.
12200
12201 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
12202
12203         PR c++/36523
12204         * cgraphunit.c (cgraph_process_new_functions): Don't clear
12205         node->needed and node->reachable.
12206         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
12207         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
12208         (expand_task_call): Don't call expand_task_copyfn.
12209         (expand_task_copyfn): Renamed to...
12210         (finalize_task_copyfn): ... this.
12211
12212 2008-06-19  Jan Hubicka  <jh@suse.cz>
12213
12214         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
12215         clobbering framepointer.
12216
12217 2008-06-19  Jan Hubicka  <jh@suse.cz>
12218
12219         * tree-optimize.c (execute_early_local_optimizations): Set
12220         cgraph_state only at first invocation.
12221
12222 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12223
12224         * system.h (-Wc++-compat): Activate as a warning, no an error.
12225
12226 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
12227
12228         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
12229         instead of "#" in insn asm template.
12230         (*jcc_fused_2): Ditto.
12231
12232 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
12233
12234         * config/i386/i386.h (ix86_tune_indices)
12235         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
12236         (TARGET_FUSE_CMP_AND_BRANCH): New define.
12237         * config/i386/i386.md (*jcc_fused_1): New insn pattern
12238         (*jcc_fused_2): Ditto.
12239         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
12240         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
12241         (print operand): Handle 'E' and 'e' code.
12242
12243 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
12244
12245         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
12246         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
12247         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
12248
12249 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
12250
12251         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
12252         node->decl.
12253         (cgraph_expand_function): Use local copy of decl.
12254         (cgraph_expand_all_functions): Remove redundant initialization of
12255         order_pos.
12256         (cgraph_optimize): Reword internal_error message.
12257
12258 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
12259
12260         * arm-protos.h (arm_return_in_memory): Remove public
12261         arm_return_in_memory() prototype.
12262         * arm.c (arm_return_in_memory): Add static prototype, add target
12263         hook macro, change definition and comments.
12264         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
12265
12266 2008-06-19  Ben Elliston  <bje@au.ibm.com>
12267
12268         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
12269         real.c: Remove references to IEEE 754R.
12270         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
12271         * doc/libgcc.texi (Decimal float library routines): Likewise.
12272
12273 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12274
12275         * targhooks.h (struct gcc_target): New member unwind_word_mode.
12276         (default_unwind_word_mode): Add prototype.
12277         * targhooks.c (default_unwind_word_mode): New function.
12278         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
12279         instead of word_mode.
12280         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
12281         (TARGET_INITIALIZER): Use it.
12282
12283         * c-common.c (handle_mode_attribute): Support "unwind_word"
12284         mode attribute.
12285         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
12286
12287         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
12288         word_mode to access SjLj_Function_Context member "data".
12289         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
12290         conversion from targetm.eh_return_filter_mode () to
12291         targetm.unwind_word_mode () if they differ.
12292
12293         * builtin-types.def (BT_UNWINDWORD): New primitive type.
12294         (BT_FN_UNWINDWORD_PTR): New function type.
12295         (BT_FN_WORD_PTR): Remove.
12296         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
12297         * except.c (expand_builtin_extend_pointer): Convert pointer to
12298         targetm.unwind_word_mode () instead of word_mode.
12299
12300         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
12301         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
12302         (spu_unwind_word_mode): New function.
12303         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
12304         (TARGET_UNWIND_WORD_MODE): Define.
12305         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
12306
12307 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12308
12309         * config/spu/spu.c (reg_align): Remove.
12310         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
12311         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
12312         (spu_split_store): Likewise.
12313
12314 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
12315
12316         * gcc/tree-vn.c: Fix typo in comment.
12317
12318 2008-06-18  Jan Hubicka  <jh@suse.cz>
12319
12320         * cgraphunit.c (cgraph_optimize): Output debug info when doing
12321         toplevel reorder too.
12322
12323 2008-06-18  Jan Hubicka  <jh@suse.cz>
12324
12325         * c-opts.c (c_common_post_options): PCH is not compatible with
12326         no-unit-at-a-time.
12327         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
12328         -fno-toplevel-reorder by default now.
12329
12330 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12331
12332         PR documentation/30739
12333         * doc/install.texi (Prerequisites): Document dependency on awk.
12334
12335 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
12336             Ian Lance Taylor  <iant@google.com>
12337
12338         PR rtl-optimization/35604
12339         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
12340         only want to change jump destinations, not eventual label comparisons.
12341
12342 2008-06-16  Jan Hubicka  <jh@suse.cz>
12343
12344         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
12345         syntax errors.
12346         (cgraph_analyze_function): Likewise.
12347
12348 2008-06-16  Jan Hubicka  <jh@suse.cz>
12349
12350         * cgraph.h (cgraph_mark_if_needed): New function.
12351         * cgraphunit.c (cgraph_mark_if_needed): New function.
12352         * c-decl.c (duplicate_decl): Use it.
12353
12354 2008-06-16  Jan Hubicka  <jh@suse.cz>
12355
12356         * cgraph.c (cgraph_add_new_function): When in expansion state, do
12357         lowering.
12358
12359 2008-06-16  Jan Hubicka  <jh@suse.cz>
12360
12361         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
12362
12363 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
12364             Kazu Hirata  <kazu@codesourcery.com>
12365             Maxim Kuvyrkov  <maxim@codesourcery.com
12366
12367         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
12368         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
12369         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
12370         EXTRA_SPEC_FUNCTIONS.
12371         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
12372         (DRIVER_SELF_SPECS): Adjust.
12373         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
12374         * config/mips/st.h, config/mips/t-st: New.
12375         * config/mips/driver-native.c, config/mips/x-native: New.
12376         * doc/invoke.texi (MIPS): Document 'native' value for -march and
12377         -mtune options.
12378
12379 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
12380
12381         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
12382         from it.
12383         (ISA_HAS_FP_CONDMOVE): New macro.
12384         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
12385         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
12386         (ISA_HAS_NMADD3_NMSUB3): New macro.
12387         * config/mips/mips.c (mips_rtx_costs): Update.
12388         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
12389         compiling for ST Loongson 2E/2F.
12390         (madd<mode>): Rename to madd4<mode>.  Update.
12391         (madd3<mode>): New pattern.
12392         (msub<mode>): Rename to msub4<mode>.  Update.
12393         (msub3<mode>): New pattern.
12394         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
12395         (nmadd3<mode>): New pattern.
12396         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
12397         (nmadd3<mode>_fastmath): New pattern.
12398         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
12399         (nmsub3<mode>): New pattern.
12400         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
12401         (nmsub3<mode>_fastmath): New pattern.
12402         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
12403
12404 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
12405
12406         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
12407         (DF_REF_INSN_INFO): New.
12408         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
12409         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
12410         with a NULL DF_REF_INSN_INFO.
12411         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
12412         DF_INSN_SET.
12413         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
12414         DF_INSN_INFO_EQ_USES): New.
12415         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
12416         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
12417         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
12418         * df-core.c: Update comment for above changes.
12419         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
12420         DF_INSN_UID_* macros.
12421         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
12422         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
12423         insn rtx.  Update all callers.
12424         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
12425         df_ref_create_structure, df_insn_refs_collect): Likewise.
12426         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
12427         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
12428         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
12429         macros to access the insn refs.
12430         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
12431         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
12432         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
12433         for accessing the refs.
12434         (try_fwprop_subst): Likewise.
12435         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
12436         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
12437         for accessing the refs.
12438         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
12439         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
12440         to look at the insn refs.
12441         (record_uses): Likewise.
12442         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
12443         function anymore.
12444         (mark_artificial_uses): Don't mark_insn for artificial refs.
12445         (mark_reg_rependencies): Likewise.
12446
12447         * doc/rtl.texi: Remove documentation of ADDRESSOF.
12448
12449 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12450
12451         * configure: Regenerate.
12452
12453 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
12454
12455         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
12456         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
12457         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12458
12459 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
12460
12461         * config/avr/avr.c (avr_mcu_t): Add attiny167.
12462         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
12463         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12464
12465 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
12466
12467         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
12468         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
12469         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12470
12471 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
12472
12473         * tree-ssa-sccvn.c: Fix format of comments.
12474
12475 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
12476
12477         * cgraph.c: Remove unneeded forward declarations of eq_node()
12478         and hash_node().
12479
12480 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
12481
12482         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
12483         REG_RETVAL notes.
12484         (see_update_relevancy): Likewise.
12485         * fwprop.c (try_fwprop_subst): Likewise.
12486         * rtlanal.c (noop_move_p): Likewise.
12487         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
12488         notes to non-existing libcall blocks.
12489         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
12490         Remove orig_set.
12491         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
12492         (dead_libcall_p): Remove.
12493         (delete_trivially_dead_insns): Don't use it.
12494         * web.c (union_defs): Remove comment about keeping nops.
12495         * gcse.c (hash_scan_insn): Don't take libcall pointers.
12496         (compute_hash_table_work): Don't track libcall notes.
12497         (do_local_cprop): Don't take libcall pointers.  Don't update
12498         libcall notes.
12499         (adjust_libcall_notes): Deleted.
12500         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
12501         ever have existed in the first place).
12502         (replace_store_insn): Don't try to remove libcall notes.
12503         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
12504         (resolve_reg_notes): Don't call them.
12505         (resolve_simple_move): Likewise.
12506         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
12507         Don't remove REG_RETVAL notes.
12508         * emit-rtl.c (try_split): Don't update libcall notes.
12509         (emit_copy_of_insn_after): Dito.
12510         * cselib.c (cselib_current_insn_in_libcall): Remove.
12511         (cselib_process_insn): Don't set/clear it.
12512         (new_elt_loc_list): Don't record it.
12513         (cselib_init): Don't initialize it.
12514         * cselib.c (struct elt_loc_list): Remove in_libcall field.
12515         * loop-invariant.c (find_invariant_insn): Don't look for libcall
12516         notes.
12517         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
12518         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
12519         (init_deps): Don't initialize it.
12520         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
12521         * combine.c (delete_noop_moves): Don't update libcall notes.
12522         (can_combine_p): Remove now pointless #if 0 block.
12523         (try_combine): Remove another obsolete #if 0 block.
12524         (distribute_notes): Don't distribute libcall notes.
12525         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
12526         * dce.c (libcall_dead_p): Remove.
12527         (delete_unmarked_insns): Don't handle libcall blocks.
12528         (preserve_libcall_for_dce): Remove.
12529         (prescan_insns_for_dce): Don't special-case libcall block insns.
12530         * reload1 (reload): Don't handle libcall notes.
12531         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
12532         documentation.
12533
12534 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
12535
12536         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
12537         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
12538         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12539
12540 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
12541
12542         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
12543         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
12544         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12545
12546 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12547
12548         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
12549
12550 2008-06-16  Ira Rosen  <irar@il.ibm.com>
12551
12552         PR tree-optimization/36493
12553         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
12554         the arguments list. Use VECTYPE to create vector pointer.
12555         (vectorizable_store): Fail if accesses through a pointer to vectype
12556         do not alias the original memory reference operands.
12557         Call vect_create_data_ref_ptr without the removed argument.
12558         (vectorizable_load): Likewise.
12559         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
12560         removed argument.
12561
12562 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
12563
12564         PR target/36336
12565         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
12566         reg_equiv_constant.
12567
12568 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
12569
12570         * config/mips/loongson2ef.md: New file.
12571         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
12572         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
12573         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
12574         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
12575         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
12576         and loongson_2f.
12577         (loongson2ef.md): New include.
12578         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
12579         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
12580         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
12581         (loongson_gt_<mode>, loongson_extract_halfword)
12582         (loongson_insert_halfword_0, loongson_insert_halfword_2)
12583         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
12584         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
12585         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
12586         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
12587         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
12588         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
12589         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
12590         (vec_interleave_low<mode>): Define type attribute.
12591         * config/mips/mips.c (mips_ls2): New static variable.
12592         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
12593         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
12594         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
12595         Implement target scheduling hooks.
12596         (mips_multipass_dfa_lookahead): Update to handle tuning for
12597         Loongson 2E/2F.
12598         (mips_sched_init): Initialize data for Loongson scheduling.
12599         (mips_ls2_variable_issue): New static function.
12600         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
12601         Add sanity check.
12602         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
12603         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
12604         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
12605         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
12606         Handle ST Loongson 2E/2F cores.
12607         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
12608
12609 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12610
12611         * omp-low.c (extract_omp_for_data): Fix comment typo.
12612         * c.opt: Fix typo.
12613
12614 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12615
12616         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
12617         FIXME note about gcc/config.guess.
12618         * doc/options.texi (Option file format): Remove non-ASCII bytes.
12619         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
12620         * doc/cppopts.texi: Likewise.
12621         * doc/extend.texi: Likewise.
12622         * doc/gcc.texi: Likewise.
12623         * doc/gccint.texi: Likewise.
12624         * doc/gcov.texi: Likewise.
12625         * doc/gty.texi: Likewise.
12626         * doc/hostconfig.texi: Likewise.
12627         * doc/install.texi: Likewise.
12628         * doc/invoke.texi: Likewise.
12629         * doc/loop.texi: Likewise.
12630         * doc/makefile.texi: Likewise.
12631         * doc/md.texi: Likewise.
12632         * doc/passes.texi: Likewise.
12633         * doc/tm.texi: Likewise.
12634         * doc/tree-ssa.texi: Likewise.
12635         * doc/trouble.texi: Likewise.
12636
12637 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
12638             Nathan Sidwell  <nathan@codesourcery.com>
12639             Maxim Kuvyrkov  <maxim@codesourcery.com>
12640             Richard Sandiford  <rdsandiford@googlemail.com>
12641
12642         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
12643         * config/mips/mips-protos.h (mips_expand_vector_init): New.
12644         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
12645         builtins.
12646         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
12647         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
12648         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
12649         V8QImode cases.
12650         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
12651         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
12652         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
12653         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
12654         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
12655         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
12656         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
12657         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
12658         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
12659         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
12660         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
12661         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
12662         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
12663         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
12664         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
12665         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
12666         (mips_builtins): Add Loongson builtins.
12667         (mips_loongson_2ef_bdesc): New.
12668         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
12669         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
12670         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
12671         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
12672         New.
12673         (mips_expand_vector_init): New.
12674         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
12675         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
12676         if appropriate.
12677         * config/mips/mips.md: Add unspec numbers for Loongson
12678         builtins.  Include loongson.md.
12679         (MOVE64): Include Loongson vector modes.
12680         (SPLITF): Include Loongson vector modes.
12681         (HALFMODE): Handle Loongson vector modes.
12682         * config/mips/loongson.md: New.
12683         * config/mips/loongson.h: New.
12684         * config.gcc: Add loongson.h header for mips*-*-* targets.
12685         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
12686
12687 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
12688
12689         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
12690         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
12691         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
12692         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
12693         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
12694         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
12695         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
12696         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
12697         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
12698         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
12699         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
12700         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
12701         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
12702         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
12703         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
12704         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
12705         Remove use_fixproto=yes.
12706         (ia64*-*-hpux*): Remove comment about using fixproto.
12707         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
12708
12709 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12710
12711         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
12712         library rebuilds.
12713         * configure: Regenerate.
12714
12715 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
12716
12717         PR middle-end/36520
12718         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
12719         before evaluating it.
12720
12721 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
12722
12723         PR c/36507
12724         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
12725         nested inline functions.
12726         (start_decl, start_function): Don't invert DECL_EXTERNAL
12727         for nested inline functions.
12728
12729 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
12730
12731         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
12732         splits that must be made for correctness.
12733
12734 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
12735
12736         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
12737         (AVAIL_NON_MIPS16): Likewise.
12738         (mips_builtin_description): Replace target_flags with a predicate.
12739         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
12740         (dspr2_32): New availability predicates.
12741         (MIPS_BUILTIN): New macro.
12742         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
12743         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
12744         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
12745         Replace the TARGET_FLAGS parameters with AVAIL parameters.
12746         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
12747         (mips_dsp_32only_bdesc): Merge into...
12748         (mips_builtins): ...this new array.
12749         (mips_bdesc_map, mips_bdesc_arrays): Delete.
12750         (mips_init_builtins): Update after above changes.
12751         (mips_expand_builtin_1): Merge into...
12752         (mips_expand_builtin): ...here and update after above changes.
12753
12754 2008-06-12  Paul Brook  <paul@codesourcery.com>
12755
12756         * longlong.h (__arm__): Define count_leading_zeros.
12757         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
12758         (clzsi2, clzdi2): New functions.
12759         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
12760         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
12761         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
12762         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
12763         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
12764         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
12765         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
12766         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
12767         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
12768         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
12769
12770 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
12771
12772         * config/m68k/m68k.c (m68k_tune_flags): New.
12773         (override_options): Compute m68k_tune_flags.
12774         (MULL_COST, MULW_COST): Update for various variants of CFV2.
12775         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
12776
12777 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
12778
12779         PR middle-end/36506
12780         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
12781
12782 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
12783
12784         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
12785         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
12786
12787 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
12788
12789         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
12790         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
12791
12792 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
12793
12794         PR middle-end/36506
12795         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
12796         reductions.
12797
12798 2008-06-12  Richard Guenther  <rguenther@suse.de>
12799
12800         PR tree-optimization/36345
12801         * tree-flow.h (struct ptr_info_def): Align escape_mask,
12802         add memory_tag_needed flag.
12803         (may_alias_p): Declare.
12804         * tree-ssa-alias.c (may_alias_p): Export.
12805         (set_initial_properties): Use memory_tag_needed flag.
12806         (update_reference_counts): Likewise.
12807         (reset_alias_info): Reset memory_tag_needed flag.
12808         (create_name_tags): Check memory_tag_needed flag.
12809         (dump_points_to_info_for): Dump it.
12810         * tree-ssa-structalias.c (struct variable_info): Remove
12811         directly_dereferenced flag.
12812         (new_var_info): Do not initialize it.
12813         (process_constraint_1): Do not set it.
12814         (update_alias_info): Set is_dereferenced flag.
12815         (set_uids_in_ptset): Use may_alias_p.
12816         (set_used_smts): Check memory_tag_needed flag.
12817         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
12818         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
12819         memory_tag_needed flag.
12820         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
12821         from broken design.
12822
12823 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
12824
12825         * config/i386/i386.c (ix86_compute_frame_layout): Disable
12826         red zone for w64 abi.
12827         (ix86_expand_prologue): Likewise.
12828         (ix86_force_to_memory): Likewise.
12829         (ix86_free_from_memory): Likewise.
12830
12831 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
12832
12833         PR target/36425
12834         * config/rs6000/rs6000.c (rs6000_override_options): Set
12835         rs6000_isel conditionally to the absence of comand line override.
12836         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
12837         Remove duplicate rs6000_isel setting.
12838         * config/rs6000/eabispe.h: Ditto.
12839
12840 2008-06-11  Richard Guenther  <rguenther@suse.de>
12841
12842         * alias.c (get_alias_set): Use the element alias-set for arrays.
12843         (record_component_aliases): For arrays and vectors do nothing.
12844         * c-common.c (strict_aliasing_warning): Handle the cases
12845         of alias set zero explicitly.
12846         * Makefile.in (dfp.o-warn): Add -Wno-error.
12847
12848 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
12849
12850         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
12851         tune_32 tune_64.
12852         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
12853         tune_32 tune_64 to supported_defaults.  Allow values not
12854         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
12855         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
12856         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
12857         with_cpu_64 to generic for 64-bit-supporting configurations, not
12858         with_cpu.  Remove FIXMEs.
12859         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
12860         --with-arch-64, --with-tune-32, --with-tune-64): Document.
12861         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
12862         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
12863         arch_32 and arch_64.
12864
12865 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
12866             Olivier Hainque  <hainque@adacore.com>
12867
12868         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
12869         Use DECL_SIZE_UNIT to retrieve the size of the field.
12870
12871 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
12872
12873         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
12874         with function calls after declarations.  Lay out
12875         neon_float_type_node before further use.
12876
12877 2008-06-11  Richard Guenther  <rguenther@suse.de>
12878
12879         * tree-flow.h (may_point_to_global_var): Declare.
12880         * tree-ssa-alias.c (may_point_to_global_var): New function.
12881         * tree-ssa-sink.c (is_hidden_global_store): Use it.
12882
12883 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
12884
12885         * configure.ac: Teach that fido supports .debug_line.
12886         * configure: Regenerate.
12887
12888 2008-06-10  Tom Tromey  <tromey@redhat.com>
12889
12890         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
12891         debug hook.
12892
12893 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
12894
12895         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
12896         (encode_decimal64, decode_decimal64, encode_decimal128,
12897         decode_decimal128): Reverse order of 32-bit parts of value if host
12898         and target endianness differ.
12899
12900 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
12901
12902         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
12903         Avoid division by 0.
12904         (tree_mod_pow2_value_transform): Likewise.
12905         (tree_ic_transform): Likewise.
12906         (tree_stringops_transform): Likewise.
12907         (tree_mod_subtract_transform): Likewise.
12908         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
12909         (copy_edges_for_bb): Likewise.
12910         (initialize_cfun): Likewise.
12911
12912 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
12913
12914         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
12915         nonmemory_operand. Add "N" operand constraint.
12916         (*btsi): Ditto.
12917         (*jcc_btdi_mask_rex64): New instruction and split pattern.
12918         (*jcc_btsi_mask): Ditto.
12919         (*jcc_btsi_mask_1): Ditto.
12920
12921 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
12922
12923         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
12924         TYPE_CANONICAL for copied element type.
12925
12926 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
12927
12928         PR target/36473
12929         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
12930         Add m_CORE2 and m_GENERIC.
12931         * config/i386/predicates.md (bt_comparison_operator): New predicate.
12932         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
12933         (*btsi): Ditto.
12934         (*jcc_btdi_rex64): New instruction and split pattern.
12935         (*jcc_btsi): Ditto.
12936         (*jcc_btsi_1): Ditto.
12937         (*btsq): Fix Intel asm dialect operand order.
12938         (*btrq): Ditto.
12939         (*btcq): Ditto.
12940
12941 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
12942
12943         PR middle-end/36447
12944         * simplify-rtx.c (simplify_subreg): Add check for shift count
12945         greater than size.
12946
12947 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
12948
12949         * doc/md.texi: Synchronize with later constraints.md change.
12950         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
12951         with a C implementation.
12952         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
12953         MFLO handling.
12954         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
12955         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
12956         when moving to and from MD_REGNUM.
12957         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
12958         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
12959         Handle byte and halfword moves.
12960         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
12961         separately.
12962         * config/mips/constraints.md (h): Turn into NO_REGS.
12963         (l, x): Update documentation.
12964         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
12965         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
12966         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
12967         (HILO): New mode iterator.
12968         (MOVE128): Add TI.
12969         (any_div): New code iterator.
12970         (u): Extend code attribute to div and udiv.
12971         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
12972         d_operand in the splitters.  Remove redundant CONST_INT checks.
12973         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
12974         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
12975         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
12976         accordingly, using normal moves instead of unspecs to move LO into
12977         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
12978         (<u>mulsidi3): Handle expansion in C code.
12979         (<u>mulsidi3_32bit_internal): Rename to...
12980         (<u>mulsidi3_32bit): ...this.
12981         (<u>mulsidi3_32bit_r4000): Fix insn separator.
12982         (*<u>mulsidi3_64bit): Rename to...
12983         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
12984         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
12985         to set LO and HI to the multiplication result.  Use a normal move
12986         for MFLO and an unspec for MFHI.
12987         (*<u>mulsidi3_64bit_parts): Replace with...
12988         (<u>mulsidi3_64bit_hilo): ...this new instruction.
12989         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
12990         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
12991         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
12992         instead of HI.  Split the instruction into a separate multiplication
12993         and MFHI if !TARGET_FIX_R4000.
12994         (<su>muldi3_highpart): Likewise.
12995         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
12996         and the "=h" clobber.
12997         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
12998         (<u>mulditi3): New expander.
12999         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
13000         (madsi): Remove "=h" clobber.
13001         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
13002         Force the modulus result to be a GPR and split the instruction into
13003         a division followed by an MFHI after reload.
13004         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
13005         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
13006         the MIPS16 HIGH define_split.
13007         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
13008         of acc<->gpr moves to "multi".
13009         (*movdi_64bit): Replace the single "x" alternative with
13010         alternatives for moving into and out of "a".
13011         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
13012         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
13013         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
13014         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
13015         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
13016         (movti): New expander.
13017         (*movti, *movti_mips16): New insns.
13018         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
13019         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
13020         (mthi<GPR:mode>_<HILO:mode>): Likewise.
13021         * config/mips/predicates.md (fpr_operand): Delete.
13022         (d_operand): New predicate.
13023
13024 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
13025
13026         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
13027         failure on some Bourne shells.
13028         (x86_64-*-*): Ditto.
13029
13030 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
13031
13032         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
13033
13034 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
13035
13036         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
13037         (sparc-sun-solaris2*): Likewise.
13038
13039 2008-06-09  Arnaud Charlet  <charlet@adacore.com
13040
13041         * doc/install.texi: Update requirements to build the Ada compiler.
13042
13043 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
13044
13045         * df-scan.c (struct df_scan_problem_data): Remove the
13046         mw_link_pool alloc pool.
13047         (df_scan_free_internal): Don't free it.
13048         (df_scan_alloc): Don't allocate it.
13049         * df.h (struct df_link): Update comment.
13050
13051 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
13052
13053         * except.h: Correct checks for when SJLJ exceptions must be used.
13054
13055 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13056
13057         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
13058         default.
13059
13060 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
13061
13062         PR tree-optimization/36218
13063         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
13064         configure for the build system.
13065         (BUILD_LDFLAGS): Define.
13066         * configure: Regenerate.
13067         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
13068
13069 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
13070
13071         PR target/36424
13072         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
13073         * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
13074         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
13075
13076 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
13077
13078         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
13079
13080 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
13081
13082         * config.gcc (Obsolete configurations): Remove list of
13083         configurations.
13084         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
13085         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
13086         targets matched by those patterns.
13087         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
13088         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
13089         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
13090         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
13091         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
13092         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
13093         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
13094         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
13095         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
13096         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
13097         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
13098         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
13099         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
13100         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
13101         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
13102         Make code for Solaris 7 and greater unconditional for Solaris.
13103         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
13104         Remove --with-* handling.
13105         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
13106         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
13107         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
13108         LINK_OS_WINDISS_SPEC): Remove.
13109         * config/rs6000/sysv4.opt (mwindiss): Remove.
13110         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
13111         * configure: Regenerate.
13112         * doc/cpp.texi: Don't mention BeOS.
13113         * doc/extend.texi (interrupt): Don't mention MS1.
13114         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
13115         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
13116         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
13117         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
13118         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
13119         Remove.
13120         * doc/invoke.texi (MT Options): Remove.
13121         (-mwindiss): Remove.
13122         (CRIS Options): Remove cris-axis-aout references.
13123         (HPPA Options): Don't mention hppa1.1-*-pro.
13124         * doc/md.texi: (MorphoTech family): Remove.
13125         * libgcc2.c: Don't handle UWIN.
13126         * config/alpha/t-unicosmk: Remove.
13127         * config/alpha/unicosmk.h: Remove.
13128         * config/arm/kaos-arm.h: Remove.
13129         * config/arm/kaos-strongarm.h: Remove.
13130         * config/arm/strongarm-coff.h: Remove.
13131         * config/arm/strongarm-elf.h: Remove.
13132         * config/arm/strongarm-pe.h: Remove.
13133         * config/arm/t-strongarm-pe: Remove.
13134         * config/arm/t-xscale-coff: Remove.
13135         * config/arm/t-xscale-elf: Remove.
13136         * config/arm/xscale-coff.h: Remove.
13137         * config/arm/xscale-elf.h: Remove.
13138         * config/chorus.h: Remove.
13139         * config/cris/aout.h: Remove.
13140         * config/cris/aout.opt: Remove.
13141         * config/cris/t-aout: Remove.
13142         * config/i386/beos-elf.h: Remove.
13143         * config/i386/kaos-i386.h: Remove.
13144         * config/i386/ptx4-i.h: Remove.
13145         * config/i386/sco5.h: Remove.
13146         * config/i386/sco5.opt: Remove.
13147         * config/i386/sysv4-cpp.h: Remove.
13148         * config/i386/sysv5.h: Remove.
13149         * config/i386/t-beos: Remove.
13150         * config/i386/t-sco5: Remove.
13151         * config/i386/t-uwin: Remove.
13152         * config/i386/uwin.asm: Remove.
13153         * config/i386/uwin.h: Remove.
13154         * config/kaos.h: Remove.
13155         * config/mips/windiss.h: Remove.
13156         * config/mt: Remove directory.
13157         * config/pa/pa-osf.h: Remove.
13158         * config/pa/pa-pro-end.h: Remove.
13159         * config/pa/t-pro: Remove.
13160         * config/ptx4.h: Remove.
13161         * config/rs6000/beos.h: Remove.
13162         * config/rs6000/kaos-ppc.h: Remove.
13163         * config/rs6000/t-beos: Remove.
13164         * config/rs6000/windiss.h: Remove.
13165         * config/sh/kaos-sh.h: Remove.
13166         * config/sol2-6.h: Remove.
13167         * config/sparc/sol26-sld.h: Remove.
13168         * config/sparc/sysv4-only.h: Remove.
13169         * config/vax/bsd.h: Remove.
13170         * config/vax/t-memfuncs: Remove.
13171         * config/vax/ultrix.h: Remove.
13172         * config/vax/vaxv.h: Remove.
13173         * config/windiss.h: Remove.
13174
13175 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
13176
13177         PR rtl-optimization/36438
13178         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
13179         for vector shifts with constant scalar shift operands.
13180
13181 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
13182
13183         * doc/invoke.texi: Document -march=xlr.
13184         * config/mips/xlr.md: New file.
13185         * config/mips/mips.md: Include it.
13186         (cpu): Add "xlr".
13187         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
13188         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
13189         (mips_rtx_cost_data): Likewise.
13190
13191 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
13192
13193         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
13194         PRE_INC and PRE_DEC cases.
13195
13196 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
13197
13198         PR rtl-optimization/36419
13199         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
13200         the emitting jump insn.
13201
13202         PR target/36362
13203         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
13204         is not bool, boolify the whole *expr_p and convert to the desired type.
13205
13206 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
13207
13208         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
13209         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
13210         Add omp_private_outer_ref hook, add another argument to
13211         omp_clause_default_ctor hook.
13212         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
13213         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
13214         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
13215         hook_tree_tree_tree_tree_null.
13216         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
13217         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
13218         * hooks.c (hook_tree_tree_tree_tree_null): New function.
13219         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
13220         * tree.def (OMP_TASK): New tree code.
13221         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
13222         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
13223         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
13224         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
13225         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
13226         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
13227         OMP_CLAUSE_COLLAPSE_EXPR): Define.
13228         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
13229         (OMP_DIRECTIVE_P): Add OMP_TASK.
13230         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
13231         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
13232         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
13233         and OMP_CLAUSE_UNTIED entries.
13234         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
13235         num_ops to 2.
13236         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
13237         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
13238         * tree-pretty-print.c (dump_omp_clause): Handle
13239         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
13240         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
13241         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
13242         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
13243         warning about unsigned iterators.  Change decl/init/cond/incr
13244         arguments to TREE_VECs, check arguments for all collapsed loops.
13245         (c_finish_omp_taskwait): New function.
13246         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
13247         ws_clauses.
13248         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
13249         default_function_array_conversion on init.  Add par_clauses argument.
13250         If decl is present in parallel's lastprivate clause, change it to
13251         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
13252         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
13253         collapse count in clauses.
13254         (c_parser_omp_for, c_parser_omp_parallel): Adjust
13255         c_parser_omp_for_loop callers.
13256         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
13257         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
13258         (c_parser_omp_clause_name): Handle collapse and untied clauses.
13259         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
13260         functions.
13261         (c_parser_omp_clause_schedule): Handle schedule(auto).
13262         Include correct location in the error message.
13263         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
13264         and PRAGMA_OMP_CLAUSE_UNTIED.
13265         (OMP_TASK_CLAUSE_MASK): Define.
13266         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
13267         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
13268         * tree-nested.c (convert_nonlocal_omp_clauses,
13269         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
13270         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
13271         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
13272         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
13273         OMP_CLAUSE_DECL.
13274         (conver_nonlocal_reference, convert_local_reference,
13275         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
13276         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
13277         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
13278         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
13279         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
13280         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
13281         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
13282         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
13283         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
13284         OMP_CLAUSE_UNTIED.
13285         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
13286         * c-common.h (c_finish_omp_taskwait): New prototype.
13287         * gimple-low.c (lower_stmt): Handle OMP_TASK.
13288         * tree-parloops.c (create_parallel_loop): Create 1 entry
13289         vectors for OMP_FOR_{INIT,COND,INCR}.
13290         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
13291         (make_edges): Handle OMP_TASK.
13292         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
13293         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
13294         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
13295         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
13296         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
13297         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
13298         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
13299         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
13300         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
13301         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
13302         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
13303         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
13304         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
13305         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
13306         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
13307         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
13308         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
13309         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
13310         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
13311         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
13312         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
13313         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
13314         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
13315         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
13316         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
13317         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
13318         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
13319         original iterator is present in lastprivate clause or if
13320         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
13321         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
13322         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
13323         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
13324         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
13325         if it is set, lookup var in outer contexts too.  Handle
13326         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
13327         to be implicitly determined firstprivate for task regions.
13328         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
13329         if it is set, lookup var in outer contexts too.  Set
13330         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
13331         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
13332         OMP_CLAUSE_UNTIED.  Take region_type as last argument
13333         instead of in_parallel and in_combined_parallel.
13334         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
13335         Adjust callers.
13336         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
13337         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
13338         (new_omp_context): Set default_kind to
13339         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
13340         (omp_region_type): New enum.
13341         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
13342         fields, add region_type.
13343         (new_omp_context): Take region_type as argument instead of is_parallel
13344         and is_combined_parallel.
13345         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
13346         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
13347         ctx->is_combined_parallel checks.
13348         (gimplify_omp_task): New function.
13349         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
13350         OMP_CLAUSE_UNTIED.
13351         * omp-low.c (extract_omp_for_data): Use schedule(static)
13352         for schedule(auto).  Handle pointer and unsigned iterators.
13353         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
13354         Add loops argument.  Extract data for collapsed OMP_FOR loops.
13355         (expand_parallel_call): Assert sched_kind isn't auto,
13356         map runtime schedule to index 3.
13357         (struct omp_for_data_loop): New type.
13358         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
13359         Add loop, loops, collapse and iter_type fields.
13360         (workshare_safe_to_combine_p): Disallow combined for if
13361         iter_type is unsigned long long.  Don't combine collapse > 1 loops
13362         unless all bounds and steps are constant.  Adjust extract_omp_for_data
13363         caller.
13364         (expand_omp_for_generic): Handle pointer, unsigned and long long
13365         iterators.  Handle collapsed OMP_FOR loops.  Adjust
13366         for struct omp_for_data changes.  If libgomp function doesn't return
13367         boolean_type_node, add comparison of the return value with 0.
13368         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
13369         pointer, unsigned and long long iterators.  Adjust for struct
13370         omp_for_data changes.
13371         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
13372         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
13373         unsigned long long.  Allocate loops array, pass it to
13374         extract_omp_for_data.  For collapse > 1 loops use always
13375         expand_omp_for_generic.
13376         (omp_context): Add sfield_map and srecord_type fields.
13377         (is_task_ctx, lookup_sfield): New functions.
13378         (use_pointer_for_field): Use is_task_ctx helper.  Change first
13379         argument's type from const_tree to tree.  Clarify comment.
13380         In OMP_TASK disallow copy-in/out sharing.
13381         (build_sender_ref): Call lookup_sfield instead of lookup_field.
13382         (install_var_field): Add mask argument.  Populate both record_type
13383         and srecord_type if needed.
13384         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
13385         in srecord_type.
13386         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
13387         and DECL_FIELD_OFFSET.
13388         (scan_sharing_clauses): Adjust install_var_field callers.  For
13389         firstprivate clauses on explicit tasks allocate the var by value in
13390         record_type unconditionally, rather than by reference.
13391         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
13392         Use is_taskreg_ctx instead of is_parallel_ctx.
13393         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
13394         (create_omp_child_function_name): Add task_copy argument, use
13395         *_omp_cpyfn* names if it is true.
13396         (create_omp_child_function): Add task_copy argument, if true create
13397         *_omp_cpyfn* helper function.
13398         (scan_omp_parallel): Adjust create_omp_child_function callers.
13399         Rename parallel_nesting_level to taskreg_nesting_level.
13400         (scan_omp_task): New function.
13401         (lower_rec_input_clauses): Don't run constructors for firstprivate
13402         explicit task vars which are initialized by *_omp_cpyfn*.
13403         Pass outer var ref to omp_clause_default_ctor hook if
13404         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
13405         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
13406         OMP_CLAUSE_REDUCTION_INIT.
13407         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
13408         avoid duplicate setting of fields.  Handle
13409         OMP_CLAUSE_PRIVATE_OUTER_REF.
13410         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
13411         copy-out if TREE_READONLY, only copy-in.
13412         (expand_task_copyfn): New function.
13413         (expand_task_call): New function.
13414         (struct omp_taskcopy_context): New type.
13415         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
13416         New functions.
13417         (lower_omp_parallel): Rename to...
13418         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
13419         Call create_task_copyfn if srecord_type is needed.  Adjust
13420         sender_decl type.
13421         (task_shared_vars): New variable.
13422         (check_omp_nesting_restrictions): Warn if work-sharing,
13423         barrier, master or ordered region is closely nested inside OMP_TASK.
13424         Add warnings for barrier if closely nested inside of work-sharing,
13425         ordered, or master region.
13426         (scan_omp_1): Call check_omp_nesting_restrictions even for
13427         GOMP_barrier calls.  Rename parallel_nesting_level to
13428         taskreg_nesting_level.  Handle OMP_TASK.
13429         (lower_lastprivate_clauses): Even if some lastprivate is found on a
13430         work-sharing construct, continue looking for them on parent parallel
13431         construct.
13432         (lower_omp_for_lastprivate): Add lastprivate clauses
13433         to the beginning of dlist rather than end.  Adjust for struct
13434         omp_for_data changes.
13435         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
13436         not after it.  Handle collapsed OMP_FOR loops, adjust for
13437         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
13438         (get_ws_args_for): Adjust extract_omp_for_data caller.
13439         (scan_omp_for): Handle collapsed OMP_FOR
13440         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
13441         (lower_omp_single_simple): If libgomp function doesn't return
13442         boolean_type_node, add comparison of the return value with 0.
13443         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
13444         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
13445         (parallel_nesting_level): Rename to...
13446         (taskreg_nesting_level): ... this.
13447         (is_taskreg_ctx): New function.
13448         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
13449         of is_parallel_ctx.
13450         (execute_lower_omp): Rename parallel_nesting_level to
13451         taskreg_nesting_level.
13452         (expand_omp_parallel): Rename to...
13453         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
13454         Call omp_task_call for OMP_TASK regions.
13455         (expand_omp): Adjust caller, handle OMP_TASK.
13456         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
13457
13458         * bitmap.c (bitmap_default_obstack_depth): New variable.
13459         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
13460         if argument is NULL and bitmap_default_obstack is already initialized.
13461         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
13462         at the end.
13463         * matrix-reorg.c (matrix_reorg): Likewise.
13464
13465 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
13466
13467         * config/i386/i386.md (*indirect_jump): Macroize using P
13468         mode iterator.  Remove !TARGET_64BIT from insn constraints.
13469         (*tablejump_1): Ditto.
13470         (*indirect_jump_rex64): Remove insn pattern.
13471         (*tablejump_1_rex64): Ditto.
13472         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
13473         and eh_return_si insn patterns.
13474
13475 2008-06-06  Richard Guenther  <rguenther@suse.de>
13476
13477         * tree-ssa-structalias.c (merge_smts_into): Remove.
13478         (find_what_p_points_to): Do not bother to compute the
13479         points-to set for pt_anything pointers.
13480         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
13481         for pt_anything pointers is ok.
13482
13483 2008-06-06  Jan Hubicka  <jh@suse.cz>
13484
13485         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
13486
13487 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13488
13489         * cgraph.c: Fix typos in comments.
13490         (cgraph_availability_names): Fix string typo.
13491         * fold-const.c: Fix typos in comments.
13492         (fold_binary): Fix typo in warning.
13493         * genautomata.c: Fix typos in comments.
13494         (check_presence_pattern_sets): Fix typo in local variable.
13495         (output_description): Fix typo in output.
13496         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
13497         * hwint.h: Likewise.
13498         * matrix-reorg.c (check_allocation_function): Likewise.
13499         * omega.c (smooth_weird_equations): Likewise.
13500         * auto-inc-dec.c: Fix typos in comments.
13501         * bb-reorder.c: Likewise.
13502         * builtins.c: Likewise.
13503         * c-common.c: Likewise.
13504         * c-cppbuiltin.c: Likewise.
13505         * c-parser.c: Likewise.
13506         * c-pretty-print.c: Likewise.
13507         * cfgcleanup.c: Likewise.
13508         * cfgexpand.c: Likewise.
13509         * cfghooks.c: Likewise.
13510         * cfglayout.c: Likewise.
13511         * cfgloopmanip.c: Likewise.
13512         * cgraphunit.c: Likewise.
13513         * coverage.c: Likewise.
13514         * dbxout.c: Likewise.
13515         * df-byte-scan.c: Likewise.
13516         * df-core.c: Likewise.
13517         * df-problems.c: Likewise.
13518         * df-scan.c: Likewise.
13519         * dfp.c: Likewise.
13520         * dominance.c: Likewise.
13521         * domwalk.c: Likewise.
13522         * dse.c: Likewise.
13523         * dwarf2out.c: Likewise.
13524         * emit-rtl.c: Likewise.
13525         * et-forest.c: Likewise.
13526         * function.c: Likewise.
13527         * function.h: Likewise.
13528         * gcc.c: Likewise.
13529         * gcov-io.c: Likewise.
13530         * gcov.c: Likewise.
13531         * gcse.c: Likewise.
13532         * genattrtab.c: Likewise.
13533         * ggc-page.c: Likewise.
13534         * gimplify.c: Likewise.
13535         * gthr-lynx.h: Likewise.
13536         * haifa-sched.c: Likewise.
13537         * ipa-cp.c: Likewise.
13538         * ipa-inline.c: Likewise.
13539         * ipa-prop.h: Likewise.
13540         * ipa-pure-const.c: Likewise.
13541         * ipa-struct-reorg.c: Likewise.
13542         * ipa-struct-reorg.h: Likewise.
13543         * ipa-type-escape.c: Likewise.
13544         * ipa.c: Likewise.
13545         * loop-doloop.c: Likewise.
13546         * mips-tfile.c: Likewise.
13547         * mkmap-flat.awk: Likewise.
13548         * mkmap-symver.awk: Likewise.
13549         * modulo-sched.c: Likewise.
13550         * omp-low.c: Likewise.
13551         * optabs.c: Likewise.
13552         * optabs.h: Likewise.
13553         * opts.c: Likewise.
13554         * passes.c: Likewise.
13555         * postreload-gcse.c: Likewise.
13556         * postreload.c: Likewise.
13557         * predict.c: Likewise.
13558         * pretty-print.h: Likewise.
13559         * profile.c: Likewise.
13560         * protoize.c: Likewise.
13561         * ra-conflict.c: Likewise.
13562         * real.c: Likewise.
13563         * recog.c: Likewise.
13564         * regclass.c: Likewise.
13565         * regs.h: Likewise.
13566         * reload.c: Likewise.
13567         * rtl-error.c: Likewise.
13568         * rtlanal.c: Likewise.
13569         * scan.h: Likewise.
13570         * sched-rgn.c: Likewise.
13571         * see.c: Likewise.
13572         * stmt.c: Likewise.
13573         * target.h: Likewise.
13574         * tree-dfa.c: Likewise.
13575         * tree-eh.c: Likewise.
13576         * tree-flow-inline.h: Likewise.
13577         * tree-inline.c: Likewise.
13578         * tree-into-ssa.c: Likewise.
13579         * tree-loop-distribution.c: Likewise.
13580         * tree-nested.c: Likewise.
13581         * tree-parloops.c: Likewise.
13582         * tree-pass.h: Likewise.
13583         * tree-pretty-print.c: Likewise.
13584         * tree-profile.c: Likewise.
13585         * tree-scalar-evolution.c: Likewise.
13586         * tree-sra.c: Likewise.
13587         * tree-ssa-alias-warnings.c: Likewise.
13588         * tree-ssa-ccp.c: Likewise.
13589         * tree-ssa-coalesce.c: Likewise.
13590         * tree-ssa-dom.c: Likewise.
13591         * tree-ssa-dse.c: Likewise.
13592         * tree-ssa-forwprop.c: Likewise.
13593         * tree-ssa-live.c: Likewise.
13594         * tree-ssa-live.h: Likewise.
13595         * tree-ssa-loop-im.c: Likewise.
13596         * tree-ssa-loop-ivopts.c: Likewise.
13597         * tree-ssa-loop-niter.c: Likewise.
13598         * tree-ssa-loop-prefetch.c: Likewise.
13599         * tree-ssa-phiopt.c: Likewise.
13600         * tree-ssa-phiprop.c: Likewise.
13601         * tree-ssa-sccvn.c: Likewise.
13602         * tree-ssa-ter.c: Likewise.
13603         * tree-ssa-threadupdate.c: Likewise.
13604         * tree-ssa.c: Likewise.
13605         * tree-vect-analyze.c: Likewise.
13606         * tree-vect-transform.c: Likewise.
13607         * tree-vectorizer.c: Likewise.
13608         * tree-vn.c: Likewise.
13609         * tree-vrp.c: Likewise.
13610         * tree.c: Likewise.
13611         * tree.def: Likewise.
13612         * tree.h: Likewise.
13613         * unwind-dw2-fde.c: Likewise.
13614         * unwind.inc: Likewise.
13615         * value-prof.c: Likewise.
13616         * vmsdbgout.c: Likewise.
13617
13618 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
13619
13620         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
13621         always place FP constants in the TOC for TARGET_POWERPC64.
13622         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
13623
13624 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
13625
13626         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
13627         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
13628         enable for TARGET_E500_DOUBLE.
13629         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
13630         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
13631         floating-point modes like integer modes for E500 double.
13632         (rs6000_legitimate_offset_address_p): Likewise.
13633         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
13634         addressing for DDmode for E500 double.
13635         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
13636         modes as using 64-bits of registers for E500 double.
13637         (spe_build_register_parallel): Do not handle DDmode or TDmode.
13638         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
13639         specially for E500 double.
13640         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
13641         TDmode for E500 double.
13642         (rs6000_gimplify_va_arg): Only handle SDmode in registers
13643         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
13644         (rs6000_split_multireg_move): Do not handle TDmode specially for
13645         E500 double.
13646         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
13647         using 64-bit registers for E500 double.
13648         (emit_frame_save): Do not handle DDmode specially for E500 double.
13649         (gen_frame_mem_offset): Likewise.
13650         (rs6000_function_value): Do not call spe_build_register_parallel
13651         for DDmode or TDmode.
13652         (rs6000_libcall_value): Likewise.
13653         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
13654         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
13655         for E500 double.
13656
13657 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
13658
13659         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
13660         in comments.
13661
13662 2008-06-04  Junjie Gu <jgu@tensilica.com>
13663
13664         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
13665         comparison for frame pointers.
13666
13667 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
13668
13669         PR target/27386
13670         * config/avr/avr.h (PUSH_ROUNDING): Remove.
13671
13672 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
13673
13674         PR target/30243
13675         * builtins.c (expand_builtin_signbit): Don't take lowpart when
13676         register is already smaller or equal to required mode.
13677
13678 2008-06-04  Xinliang David Li  <davidxl@google.com>
13679
13680         * tree-call-cdce.c: New file.
13681         (cond_dead_built_in_calls): New static variable.
13682         (input_domain): New struct.
13683         (check_pow): New function.
13684         (check_builtin_call): Ditto.
13685         (check_target_format): Ditto.
13686         (is_call_dce_candidate): Ditto.
13687         (gen_one_condition): Ditto.
13688         (gen_conditions_for_domain): Ditto.
13689         (get_domain): Ditto.
13690         (gen_conditions_for_pow_cst_base): Ditto.
13691         (gen_conditions_for_pow_int_base): Ditto.
13692         (gen_conditions_for_pow): Ditto.
13693         (get_no_error_domain): Ditto.
13694         (gen_shrink_wrap_conditions): Ditto.
13695         (shrink_wrap_one_built_in_call): Ditto.
13696         (shink_wrap_conditional_dead_built_in_calls): Ditto.
13697         (tree_call_cdce): Ditto.
13698         (gate_call_cdce): Ditto.
13699         (pass_call_cdce): New gimple pass.
13700         * passes.c: (init_optimization_passes): New pass.
13701         * tree-pass.h: New pass declaration.
13702         * opts.c (decode_options): New flag setting.
13703         * common.opt: Add -ftree-builtin-call-dce flag.
13704         * Makefile.in: Add new source file.
13705         * tempvar.def: New tv_id.
13706         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
13707
13708 2008-06-04  Richard Guenther  <rguenther@suse.de>
13709
13710         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
13711         (is_call_clobbered): Always check var_ann->call_clobbered.
13712         (mark_call_clobbered): Always set var_ann->call_clobbered.
13713         (clear_call_clobbered): Always clear var_ann->call_clobbered.
13714         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
13715         (reset_alias_info): Clear call clobbering info on MTAGs and
13716         globals as well.
13717         (set_pt_anything): Set pt_global_mem.
13718         (create_tag_raw): Adjust comment.
13719         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
13720
13721 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
13722             Maxim Kuvyrkov  <maxim@codesourcery.com>
13723
13724         * config/m68k/m68k.opt (mxgot): New option.
13725         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
13726         (m68k_output_addr_const_extra): New.
13727         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
13728         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
13729         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
13730         * doc/invoke.texi (M680x0 Options): Document -mxgot.
13731
13732 2008-06-04  Richard Guenther  <rguenther@suse.de>
13733
13734         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
13735         negative or non-representable offsets.
13736
13737 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
13738
13739         * config/i386/i386.c (ix86_gen_leave): New.
13740         (ix86_gen_pop1): Likewise.
13741         (ix86_gen_add3): Likewise.
13742         (ix86_gen_sub3): Likewise.
13743         (ix86_gen_sub3_carry): Likewise.
13744         (ix86_gen_one_cmpl2): Likewise.
13745         (ix86_gen_monitor): Likewise.
13746         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
13747         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
13748         ix86_gen_one_cmpl2 and ix86_gen_monitor.
13749         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
13750         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
13751         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
13752         (ix86_expand_epilogue): Updated.
13753         (print_operand): Handle integer register operand for 'z'.
13754         (ix86_expand_strlensi_unroll_1): Likewise.
13755         (ix86_expand_strlen): Likewise.
13756         (ix86_expand_builtin): Likewise.
13757         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
13758         mov{q}/mov{l} and add{q}/add{l}.
13759
13760 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
13761
13762         * config/i386/i386.md (P): New mode iterator.
13763         (SFmode push_operand splitter): Macroize DImode and SImode pushes
13764         using P mode iterator.
13765         (DFmode push_operand splitter): Ditto.
13766         (XFmode push_operand splitter): Ditto.
13767         (DFmode float_extend SFmode push_operand splitter): Ditto.
13768         (XFmode float_extend SFmode push_operand splitter): Do not generate
13769         SImode pushes for 64bit target.  Macroize Dimode and SImode
13770         pushes using P mode iterator.
13771         (XFmode float_extend DFmode push_operand splitter): Ditto.
13772
13773 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
13774
13775         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
13776         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
13777         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
13778         return type to int.
13779         (ix86_call_abi_override): Remove check for call_used_regs.
13780
13781 2008-06-03  Richard Guenther  <rguenther@suse.de>
13782
13783         * tree-ssa-structalias.c (find_func_aliases): Add constraints
13784         for the lhs of calls if the return type contains pointers.
13785
13786 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
13787
13788         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
13789         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
13790         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
13791         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
13792         of cfun and DEFAULT_ABI to deceide abi mode.
13793         (DEFAULT_ABI): New.
13794         (REG_PARM_STACK_SPACE): Removed.
13795         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
13796         (STACK_BOUNDARY): Use default target to deceide stack boundary.
13797         * config/i386/i386-protos.h (ix86_cfun_abi): New.
13798         (ix86_function_abi): Likewise.
13799         (ix86_function_type_abi): Likewise.
13800         (ix86_call_abi_override): Likewise.
13801         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
13802         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
13803         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
13804         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
13805         specific defines.
13806         (X86_64_REGPARM_MAX): New.
13807         (X86_64_SSE_REGPARM_MAX): New.
13808         (X64_REGPARM_MAX): New.
13809         (X64_SSE_REGPARM_MAX): New.
13810         (X86_32_REGPARM_MAX): New.
13811         (X86_32_SSE_REGPARM_MAX): New.
13812         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
13813         (ix86_function_regparm): Handle user calling abi.
13814         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
13815         by DEFAULT_ABI versus SYSV_ABI check.
13816         (ix86_reg_parm_stack_space): New.
13817         (ix86_function_type_abi): New.
13818         (ix86_call_abi_override): New.
13819         (ix86_function_abi): New.
13820         (ix86_cfun_abi): New.
13821         (init_cumulative_args): Call abi specific initialization.
13822         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
13823         (function_arg_64): Extend SSE_REGPARM_MAX check.
13824         (function_arg (): Remove TARGET_64BIT_MS_ABI.
13825         (ix86_pass_by_reference): Likewise.
13826         (ix86_function_value_regno_p): Likewise.
13827         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
13828         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
13829         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
13830         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
13831         (setup_incoming_varargs_64): Adjust regparm for call abi.
13832         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
13833         (ix86_va_start): Likewise.
13834         (ix86_gimplify_va_arg): Likewise.
13835         (ix86_expand_prologue): Likewise.
13836         (output_pic_addr_const): Likewise.
13837         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
13838         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
13839         (x86_output_mi_thunk): Likewise.
13840         (x86_function_profiler): Likewise.
13841         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
13842         (SYSV_ABI, MS_ABI): New constants.
13843         (DEFAULT_ABI): New.
13844         (init_regs): Add prototype of function in regclass.c file.
13845         (OVERRIDE_ABI_FORMAT): New.
13846         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
13847         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
13848         (OUTGOING_REG_PARM_STACK_SPACE): New.
13849         (ix86_reg_parm_stack_space): New prototype.
13850         (CUMULATIVE_ARGS): Add call_abi member.
13851         (machine_function): Add call_abi member.
13852         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
13853         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
13854
13855 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com>
13856
13857         PR target/34879
13858         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
13859         (avr_builtin_setjmp_frame_value): New function.
13860         * config/avr/avr.md (nonlocal_goto_receiver): Define.
13861         (nonlocal_goto): Define.
13862
13863 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
13864
13865         * config/mips/mips.c (mips_emit_loadgp): Return early if
13866         there is nothing do to, otherwise emit a blockage if
13867         !TARGET_EXPLICIT_RELOCS || crtl->profile.
13868         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
13869
13870 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13871
13872         * configure.ac: Drop unneeded backslash ending up in config.in.
13873         * acinclude.m4: Likewise.
13874         * config.in: Regenerate.
13875
13876 2008-05-26  Jan Hubicka  <jh@suse.cz>
13877
13878         * predict.c (maybe_hot_frequency_p): Break out of...
13879         (maybe_hot_bb_p): ... here.
13880         (maybe_hot_edge_p): New.
13881         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
13882         * basic-block.h (maybe_hot_edge_p): Declare.
13883
13884 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
13885
13886         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
13887         (*cmpfp_<mode>_cc): Ditto.
13888         (*fp_jcc_8<mode>_387): Ditto.
13889         (*fop_<MODEF:mode>_2_i387): Ditto.
13890         (*fop_<MODEF:mode>_3_i387): Ditto.
13891         (*fop_xf_2_i387): Ditto.
13892         (*fop_xf_3_i387): Ditto.
13893
13894 2008-06-02  Tomas Bily  <tbily@suse.cz>
13895
13896         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
13897
13898 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
13899
13900         * config/mips/mips.c (mips_valid_offset_p): New function.
13901         (mips_valid_lo_sum_p): Likewise.
13902         (mips_classify_address): Use them.
13903         (mips_force_address): New function.
13904         (mips_legitimize_address): Use it.
13905         * config/mips/mips.md (MOVE128): New mode iterator.
13906         (movtf): Require TARGET_64BIT.  Remove empty strings.
13907         (*movtf_internal): Rename to...
13908         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
13909         of "R" and use {,fp}{load,store} attributes instead of "multi".
13910         Use a separate define_split.
13911         (*movtf_mips16): New pattern.
13912
13913 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
13914
13915         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
13916         * config/mips/mips.c (mips_expand_before_return): New function.
13917         (mips_expand_epilogue): Call it.
13918         * config/mips/mips.md (return): Turn into a define_expand.
13919         (*return): New insn.
13920
13921 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
13922
13923         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
13924         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
13925         functions.  Do not emit uses and clobbers of CONCATs; individually
13926         use and clobber their operands.
13927         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
13928         gen_clobber, emit_use and gen_use.
13929         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
13930         (expand_builtin_return): Likewise.
13931         * cfgbuild.c (count_basic_blocks): Likewise.
13932         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
13933         * explow.c (emit_stack_restore): Likewise.
13934         * expmed.c (extract_bit_field_1): Likewise.
13935         * expr.c (convert_move, emit_move_complex_parts): Likewise.
13936         (emit_move_multi_word, store_constructor): Likewise.
13937         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
13938         (thread_prologue_and_epilogue_insns): Likewise.
13939         * lower-subreg.c (resolve_simple_move): Likewise.
13940         * optabs.c (widen_operand, expand_binop): Likewise.
13941         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
13942         * reload.c (find_reloads): Likewise.
13943         * reload1.c (eliminate_regs_in_insn): Likewise.
13944         * stmt.c (expand_nl_goto_receiver): Likewise.
13945         * config/alpha/alpha.md (builtin_longjmp): Likewise.
13946         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
13947         * config/arm/arm.c (arm_load_pic_register): Likewise.
13948         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
13949         * config/arm/arm.md (untyped_return): Likewise.
13950         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
13951         * config/avr/avr.c (expand_prologue): Likewise.
13952         * config/bfin/bfin.c (do_unlink): Likewise.
13953         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
13954         * config/cris/cris.c (cris_expand_prologue): Likewise.
13955         * config/darwin.c (machopic_indirect_data_reference): Likewise.
13956         (machopic_legitimize_pic_address): Likewise.
13957         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
13958         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
13959         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
13960         (ix86_expand_convert_uns_didf_sse): Likewise.
13961         (ix86_expand_vector_init_general): Likewise.
13962         * config/ia64/ia64.md (eh_epilogue): Likewise.
13963         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
13964         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
13965         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
13966         (config/iq2000/iq2000.c): Likewise.
13967         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
13968         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
13969         (builtin_longjmp): Likewise.
13970         * config/mn10300/mn10300.md (call, call_value): Likewise.
13971         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
13972         * config/pdp11/pdp11.md (abshi2): Likewise.
13973         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
13974         * config/s390/s390.c (s390_emit_prologue): Likewise.
13975         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
13976         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
13977         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
13978         * config/sh/sh.c (prepare_move_operands): Likewise.
13979         (output_stack_adjust, sh_expand_epilogue): Likewise.
13980         (sh_set_return_address, sh_expand_t_scc): Likewise.
13981         * config/sparc/sparc.c (load_pic_register): Likewise.
13982         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
13983         * config/spu/spu.c (spu_expand_epilogue): Likewise.
13984         * config/v850/v850.c (expand_epilogue): Likewise.
13985
13986 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
13987
13988         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
13989         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
13990         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
13991         * config/avr/avr.c (expand_prologue, expand_epilogue): Use
13992         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
13993         stack pointer register.
13994         (output_movhi): Remove code for interrupt specific writing to the
13995         stack pointer register.
13996
13997 2008-05-31  Richard Guenther  <rguenther@suse.de>
13998
13999         PR tree-optimization/34244
14000         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
14001         (tree_expr_nonzero_warnv_p): Likewise.
14002         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
14003         ssa_name_nonnegative_p.
14004         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
14005         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
14006         not tree_expr_nonzero_warnv_p.
14007
14008         PR tree-optimization/36262
14009         Revert
14010         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
14011
14012         PR tree-optimization/34244
14013         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
14014         (record_numbers_of_iterations): New function.
14015         (execute_vrp): Cache the numbers of iterations of loops.
14016         * tree-scalar-evolution.c (scev_reset_except_niters):
14017         New function.
14018         (scev_reset): Use scev_reset_except_niters.
14019         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
14020
14021 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
14022
14023         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
14024         __WORKAROUND_RETS when appropriate.
14025
14026 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
14027
14028         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
14029         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
14030         mode iterator.
14031         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
14032         *fop_df_comm_sse insn patterns using MODEF mode iterator.
14033         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
14034         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
14035         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
14036         *fop_df_1_mixed insn patterns using MODEF mode iterator.
14037         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
14038         *fop_df_1_sse insn patterns using MODEF mode iterator.
14039         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
14040         *fop_df_1_i387 insn patterns using MODEF mode iterator.
14041         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
14042         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
14043         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
14044         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
14045         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
14046         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
14047         (*fop_xf_4_i387): Use <MODE> for mode attribute.
14048         (*fop_xf_5_i387): Ditto.
14049         (*fop_xf_6_i387): Ditto.
14050
14051 2008-05-30  Richard Guenther  <rguenther@suse.de>
14052
14053         * builtins.c (build_string_literal): Avoid generating
14054         a non-gimple_val result.
14055
14056 2008-05-30  DJ Delorie  <dj@redhat.com>
14057
14058         * exec-tool.in: Use an environment variable (private) instead of a
14059         file (shared) as a semaphore, so as to not break parallel builds.
14060
14061 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
14062
14063         * optabs.c (maybe_encapsulate_block): Remove.
14064         (emit_libcall_block): Adjust accordingly.
14065         * optabs.h (maybe_encapsulate_block): Remove prototype.
14066
14067         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
14068         Don't use maybe_encapsulate_block.
14069
14070 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
14071
14072         * config/rs6000/rs6000.c (rs6000_legitimize_address,
14073         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
14074         rtx is a SYMBOL_REF before calling get_pool_constant.
14075
14076 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
14077
14078         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
14079
14080 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
14081
14082         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
14083         rather than OS names to choose INO_T_EQ definition.
14084         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
14085         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
14086
14087 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
14088
14089         PR target/36348
14090         * config/darwin-f.c: New.
14091         * config/t-darwin: Added rule to build darwin-f.o.
14092         * config.gcc: Defined new variable, fortran_target_objs.
14093         (*-*-darwin*): Set fortran_target_objs.
14094         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
14095         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
14096         * configure: Regenerated.
14097
14098 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
14099
14100         PR target/35771
14101         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
14102         canonical type if needed.
14103
14104 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
14105
14106         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
14107
14108 2008-05-29  Richard Guenther  <rguenther@suse.de>
14109
14110         PR tree-optimization/36343
14111         PR tree-optimization/36346
14112         PR tree-optimization/36347
14113         * tree-flow.h (clobber_what_p_points_to): Declare.
14114         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
14115         pointed-to variable is dereferenced is irrelevant to whether
14116         the pointer can access the pointed-to variable.
14117         (clobber_what_p_points_to): New function.
14118         * tree-ssa-alias.c (set_initial_properties): Use it.
14119         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
14120         call clobber check for NMTs.
14121
14122 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
14123
14124         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
14125         for printing gcov_type.
14126
14127 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
14128
14129         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
14130         and the eh region information.
14131         * value-prof.c (gimple_move_stmt_histograms): New function.
14132         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
14133
14134 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
14135
14136         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
14137
14138 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
14139
14140         * value-prof.c (tree_ic_transform): Print counts.
14141         * tree-profile.c (tree_gen_ic_func_profiler):
14142         Clear __gcov_indreict_call_callee variable to avoid misattribution
14143         of the profile.
14144
14145 2008-05-28  Rafael Espíndola  <espindola@google.com>
14146
14147         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
14148         invalid sharing.
14149
14150 2008-05-28  Richard Guenther  <rguenther@suse.de>
14151
14152         PR tree-optimization/36339
14153         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
14154         and clobbering code out of the loop.
14155
14156 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
14157
14158         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
14159         letters defined.
14160
14161         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
14162         s390_contiguous_bitmask_p, s390_symref_operand_p,
14163         s390_check_symref_alignment, s390_reload_larl_operand,
14164         s390_reload_symref_address): New functions.
14165         (s390_branch_condition_mnemonic): Support compare and branch
14166         instructions.
14167         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
14168         and 'W' constraints.
14169         (s390_secondary_reload): Add secondary reloads for unaligned
14170         symbol refs or symbol refs to floating point or QI/TI mode
14171         integer values.
14172         (legitimate_address_p): Accept symbol references as addresses.
14173         (s390_expand_insv): Use rotate and insert selected bits
14174         instruction for insv when building for z10.
14175         (print_operand_address): Handle symbol ref addresses.
14176         (print_operand): Output modifier 'c' added for signed byte values.
14177         (s390_encode_section_info): Mark symbol refs with
14178         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
14179
14180         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
14181         (length attribute): RRF, RRR have 4 byte length.
14182         (FPALL, INTALL): New mode iterators added.
14183         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
14184         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
14185         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
14186         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
14187         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
14188         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
14189         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
14190         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
14191         instructions.
14192         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
14193         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
14194         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
14195         reload<INTALL:mode><P:mode>_toreg_z10,
14196         reload<FPALL:mode><P:mode>_tomem_z10,
14197         reload<FPALL:mode><P:mode>_toreg_z10,
14198         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
14199         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
14200         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
14201         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
14202         definition.
14203         (movmem, clrmem, cmpmem): New splitters added.
14204
14205         * config/s390/predicates.md (larl_operand): Use
14206         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
14207         SYMBOL_REF_ALIGN1_P.
14208         (s390_signed_integer_comparison,
14209         s390_unsigned_integer_comparison): New predicates.
14210
14211         * config/s390/s390-protos.h (s390_check_symref_alignment,
14212         s390_contiguous_bitmask_p, s390_reload_larl_operand,
14213         s390_reload_symref_address,
14214         s390_compare_and_branch_condition_mask): Prototypes added.
14215
14216         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
14217         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
14218         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
14219
14220 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
14221
14222         * config/s390/s390.c (z10_cost): New cost function for z10.
14223         (s390_handle_arch_option, override_options): Support -march=z10 switch.
14224         (s390_issue_rate): Adjust issue rate for z10.
14225         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
14226         (processor_flags): Add PF_Z10.
14227         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
14228         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
14229         * gcc/config.gcc: Add z10.
14230
14231 2008-05-28  Richard Guenther  <rguenther@suse.de>
14232
14233         PR tree-optimization/36291
14234         * tree-flow. h (struct gimple_df): Remove var_anns member.
14235         * tree-flow-inline.h (gimple_var_anns): Remove.
14236         (var_ann): Simplify.
14237         * tree-dfa.c (create_var_ann): Simplify.
14238         (remove_referenced_var): Clear alias info from var_anns of globals.
14239         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
14240         (delete_tree_ssa): Clear alias info from var_anns of globals.
14241         Do not free var_anns.
14242         (var_ann_eq): Remove.
14243         (var_ann_hash): Likewise.
14244
14245 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
14246
14247         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
14248         and loongson2f entries.
14249         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
14250         * config/mips/mips.h (processor_type): Add Loongson-2E
14251         and Loongson-2F entries.
14252         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
14253         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
14254         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
14255         * doc/invoke.texi (MIPS Options): Document loongson2e
14256         and loongson2f processor names.
14257
14258 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
14259
14260         PR target/35767
14261         PR target/35771
14262         * config/i386/i386.c (ix86_function_arg_boundary): Use
14263         alignment of canonical type.
14264         (ix86_expand_vector_move): Check unaligned memory access for
14265         all SSE modes.
14266
14267 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
14268
14269         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
14270         Moved to the front of file.
14271
14272 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
14273             H.J. Lu  <hongjiu.lu@intel.com>
14274
14275         * dwarf2out.c (current_fde): New.
14276         (add_cfi): Use it.
14277         (lookup_cfa:): Likewise.
14278         (dwarf2out_end_epilogue): Likewise.
14279         (dwarf2out_note_section_used): Likewise.
14280
14281 2008-05-27  Michael Matz  <matz@suse.de>
14282
14283         PR c++/27975
14284         * c.opt (Wenum-compare): New warning option.
14285         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
14286
14287 2008-05-27  Michael Matz  <matz@suse.de>
14288
14289         PR middle-end/36326
14290         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
14291         non-BLKmode types.
14292         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
14293         into memory as tail calls.
14294
14295 2008-05-27  Richard Guenther  <rguenther@suse.de>
14296
14297         PR tree-optimization/36339
14298         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
14299         pointers cause all addressable variables to be call clobbered.
14300
14301 2008-05-27  Richard Guenther  <rguenther@suse.de>
14302
14303         PR tree-optimization/36245
14304         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
14305
14306 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
14307
14308         * config/s390/s390.md: Replace all occurences of the 'm'
14309         constraint with 'RT'.
14310
14311 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
14312
14313         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
14314         definitions added.
14315         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
14316         "*movdi_64".
14317         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
14318         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
14319         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
14320
14321 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
14322
14323         * reload.c: (find_reloads): Skip alternatives according to the
14324         "enabled" attribute. Constify the constraint variable.
14325         * recog.c (get_attr_enabled): Add default implementation.
14326         (extract_insn): Set the alternative_enabled_p array
14327         in the recog_data struct.
14328         (preprocess_constraints, constrain_operands): Skip
14329         alternatives according to the "enabled" attribute
14330         * recog.h (struct recog_data): New field alternative_enabled_p.
14331         (skip_alternative): New inline function.
14332         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
14333         (record_reg_classes): Skip alternative according to the
14334         "enabled" attribute.
14335
14336         * doc/md.texi: Add documention for the "enabled" attribute.
14337
14338 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
14339
14340         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
14341         * postreload.c (reload_cse_simplify_operands): Replace 'm'
14342         constraint with TARGET_MEM_CONSTRAINT.
14343         * recog.c (asm_operand_ok, preprocess_constraints,
14344         constrain_operands): Likewise.
14345         * regclass.c (record_reg_classes): Likewise.
14346         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
14347         * reload1.c (maybe_fix_stack_asms): Likewise.
14348         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
14349         * recog.h: Adjust comment.
14350         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
14351         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
14352         * doc/md.texi: Add a note to description of 'm' constraint.
14353         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
14354
14355 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
14356
14357         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
14358         that the bitfield is of integral type before testing its precision.
14359
14360 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
14361             Sa Liu  <saliu@de.ibm.com>
14362
14363         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
14364         __modti3, __udivti3, __umodti3 and __udivmodti4.
14365         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
14366         that implement TImode mul and div functions.
14367         * config/spu/multi3.c: New. Implement __multi3.
14368         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
14369         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
14370         functions on SPU.
14371
14372 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
14373
14374         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
14375         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
14376         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
14377         tls_sysv_suffix): New mode and mode attribute iterators.
14378         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
14379         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
14380         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
14381         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
14382         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
14383         iterators.
14384
14385 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
14386
14387         PR tree-optimization/36329
14388         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
14389         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
14390         * cgraphbuild.c (initialize_inline_failed): Use the latter
14391         macro in lieu of the former.
14392         * ipa-inline.c (cgraph_mark_inline): Likewise.
14393         (cgraph_decide_inlining_of_small_function): Likewise.
14394         (cgraph_decide_inlining): Likewise.
14395         (cgraph_decide_inlining_incrementally): Likewise.
14396
14397 2008-05-26  Tristan Gingold  <gingold@adacore.com>
14398             Anatoly Sokolov  <aesok@post.ru>
14399
14400         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
14401         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
14402         * config/avr/avr.c (expand_prologue): Tune "call_prologue"
14403         optimization for 'avr6' architecture.
14404
14405 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
14406
14407         PR target/34932
14408         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
14409
14410 2008-05-26  Richard Guenther  <rguenther@suse.de>
14411
14412         * tree-ssa-sccvn.c (expr_has_constants): Declare.
14413         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
14414
14415 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
14416
14417         PR middle-end/36253
14418         * caller-save.c (insert_restore): Verify alignment of spill space.
14419         (insert_save): Likewise.
14420         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
14421         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
14422         (STACK_SLOT_ALIGNMENT): Likewise.
14423         * function.c (LOCAL_ALIGNMENT): Removed.
14424         (get_stack_local_alignment): New.
14425         (assign_stack_local): Use it.  Set alignment on stack slot.
14426         (assign_stack_temp_for_type): Use get_stack_local_alignment.
14427         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
14428         (STACK_SLOT_ALIGNMENT): New.
14429         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
14430         stack slot in XFmode.
14431
14432         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
14433
14434 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
14435
14436         PR/36321
14437         * config/i386/i386.md (allocate_stack_worker_64): Make sure
14438         argument operand in rax isn't removed.
14439
14440 2008-05-26  Richard Guenther  <rguenther@suse.de>
14441
14442         PR middle-end/36300
14443         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
14444         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
14445
14446 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
14447
14448         PR bootstrap/36331
14449         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
14450
14451 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
14452
14453         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
14454         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
14455
14456 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
14457
14458         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
14459         build a trampoline if we don't want one.
14460         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
14461         return zero for nested functions if we don't want a trampoline.
14462
14463 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
14464
14465         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
14466
14467 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
14468
14469         PR fortran/18428
14470         * c.opt: Removed undocumented option '-lang-fortran'.
14471         * c-common.h: Removed global variable 'lang_fortran'.
14472         * c-opts.c (c_common_handle_option): Removed code to handle
14473         option '-lang-fortran'. Updated includes.
14474         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
14475         definition of '__GFORTRAN__'.
14476         (define__GNUC__): Reimplemented to use BASEVER and
14477         cpp_define_formatted.
14478         (builtin_define_with_value_n): Removed.
14479         * c-incpath.h: Renamed to ...
14480         * incpath.h: ... this.
14481         * c-incpath.c: Renamed to ...
14482         * incpath.c: ... this. Updated includes.
14483         * fix-header.c: Updated includes.
14484         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
14485         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
14486         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
14487
14488 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
14489
14490         * tree.h: Update the table of flags used on tree nodes.
14491         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
14492         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
14493         (FORCED_LABEL): Add access check.
14494         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
14495         (ASM_INPUT_P): Likewise.
14496         (ASM_VOLATILE_P): Likewise.
14497         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
14498         (OMP_SECTION_LAST): Access private_flag directly.
14499         (OMP_RETURN_NOWAIT): Likewise.
14500         (OMP_PARALLEL_COMBINED): Likewise.
14501         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
14502         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
14503         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
14504         deprecated_flag directly.
14505
14506 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
14507
14508         * final.c (frame_pointer_needed): Removed.
14509         * flags.h (frame_pointer_needed): Likewise.
14510
14511         * function.h (rtl_data): Add frame_pointer_needed.
14512         (frame_pointer_needed): New.
14513
14514 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
14515
14516         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
14517
14518 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
14519
14520         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
14521         SRC is a REG.
14522
14523 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
14524
14525         * c-common.c (strip_array_types): Move function to..
14526         * tree.c: ..here.
14527         (get_inner_array_type): Delete.
14528         * c-common.h (strip_array_types): Move declaration to..
14529         * tree.h: ..here.
14530         (get_inner_array_type): Delete.
14531         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
14532         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
14533         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
14534         * config/pa/pa.c (emit_move_sequence): Likewise.
14535
14536 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
14537
14538         * config/i386/i386.md (*sse_prologue_save_insn): Set length
14539         attribute to 34.
14540
14541 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
14542
14543         * function.c: Include target hook for nonlocal_goto frame value.
14544
14545 2008-05-24  Richard Guenther  <rguenther@suse.de>
14546
14547         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
14548         variable can be only accessed through a pointer or a union.
14549
14550 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14551
14552         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
14553         * doc/extend.texi: Likewise.
14554
14555 2008-05-23  DJ Delorie  <dj@redhat.com>
14556
14557         * config/m32c/jump.md (untyped_call): Add.
14558
14559         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
14560         for A24 to PSImode.
14561         (m32c_address_cost): Detail costs for indirect offsets.
14562
14563 2008-05-23  Rafael Espíndola  <espindola@google.com>
14564
14565         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
14566         if a node is a SUBREG.
14567         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
14568         is a SUBREG.
14569
14570 2008-05-23  Paul Brook  <paul@codesourcery.com>
14571             Carlos O'Donell  <carlos@codesourcery.com>
14572
14573         * doc/extend.texi: Clarify use of __attribute__((naked)).
14574         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
14575         * target.h (gcc_target): Add allocate_stack_slots_for_args.
14576         * function.c (use_register_for_decl): Use
14577         targetm.calls.allocate_stack_slots_for_args.
14578         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
14579         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
14580         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
14581
14582 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
14583
14584         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
14585
14586 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
14587
14588         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
14589         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
14590         is only rounded once.
14591
14592 2008-05-23  Richard Guenther  <rguenther@suse.de>
14593
14594         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
14595
14596 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
14597             Jakub Jelinek  <jakub@redhat.com>
14598
14599         PR target/36079
14600         * configure.ac: Handle --enable-cld.
14601         * configure: Regenerated.
14602         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
14603         * config/i386/i386.h (struct machine_function): Add needs_cld field.
14604         (ix86_current_function_needs_cld): New define.
14605         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
14606         (cld): New isns pattern.
14607         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
14608         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
14609         * config/i386/i386.opt (mcld): New option.
14610         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
14611         TARGET_CLD and ix86_current_function_needs_cld.
14612         (override_options): Use -mcld by default for 32-bit code if
14613         USE_IX86_CLD.
14614
14615         * doc/install.texi (Options specification): Document --enable-cld.
14616         * doc/invoke.texi (Machine Dependent Options)
14617         [i386 and x86-64 Options]: Add -mcld option.
14618         (Intel 386 and AMD x86-64 Options): Document -mcld option.
14619
14620 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
14621         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
14622         (return_in_memory_64): Likewise.
14623         (return_in_memory_ms_64): Likewise.
14624
14625 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14626
14627         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
14628         * builtins.c (fold_builtin_fpclassify): New.
14629         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
14630         * builtins.def (BUILT_IN_FPCLASSIFY): New.
14631         * c-common.c (handle_type_generic_attribute): Adjust to accept
14632         fixed arguments before an elipsis.
14633         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
14634         * doc/extend.texi: Document __builtin_fpclassify.
14635
14636 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
14637
14638         * omp-low.c (gate_expand_omp_ssa): Remove.
14639         (pass_expand_omp_ssa): Remove.
14640         (gate_expand_omp): Do not check for flag_openmp_ssa.
14641         * common.opt (-fopenmp-ssa): Remove.
14642         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
14643
14644 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
14645
14646         * config/sh/sh.opt (mfixed-range): New option.
14647         * config/sh/sh-protos.h (sh_fix_range): Declare.
14648         * config/sh/sh.c (sh_fix_range): New function.
14649         * config/sh/sh.h (sh_fixed_range_str): Declare.
14650         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
14651         is not empty.
14652         * doc/invoke.texi (SH Options): Document -mfixed-range.
14653
14654 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
14655
14656         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
14657         it before the redeclaration.
14658
14659 2008-05-22  Anatoly Sokolov <aesok@post.ru>
14660
14661         * config/avr/avr.c (get_sequence_length): Add new function.
14662         (expand_prologue, expand_epilogue): Remove duplicate code.
14663
14664 2008-05-22  Rafael Espíndola  <espindola@google.com>
14665
14666         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
14667         sharing.
14668
14669 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
14670
14671         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
14672         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
14673
14674         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
14675         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
14676         (vect_update_misalignment_for_peel): Likewise.
14677         (vector_alignment_reachable_p): Likewise.
14678         * tree-vect-transform.c (vectorizable_load): Likewise.
14679         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
14680         (get_vectype_for_scalar_type): Pass mode of scalar_type
14681         to UNITS_PER_SIMD_WORD.
14682
14683         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
14684         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
14685         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
14686         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
14687         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
14688
14689 2008-05-22  Ira Rosen  <irar@il.ibm.com>
14690
14691         PR tree-optimization/36293
14692         * tree-vect-transform.c (vect_transform_strided_load): Don't check
14693         if the first load must be skipped because of a gap.
14694
14695 2008-05-22  Richard Guenther  <rguenther@suse.de>
14696
14697         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
14698         more cases of offset disambiguation that is possible if
14699         strict-aliasing rules apply.
14700         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
14701         for basic offset and type-based disambiguation.
14702
14703 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14704
14705         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
14706         ix86_expand_vector_set on V16QImode for SSE4.1.
14707
14708 2008-05-21  Tom Tromey  <tromey@redhat.com>
14709
14710         * c.opt (Wimport): Mark as undocumented.
14711         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
14712         -Wno-import.
14713         (Warning Options): Likewise.
14714         * doc/cppopts.texi: Don't mention -Wimport.
14715
14716 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
14717
14718         PR tree-optimization/36287
14719         PR tree-optimization/36286
14720         * lambda-code.c (build_access_matrix): Do not use the loop->num
14721         for computing the number of induction variables: use the loop depth
14722         instead.
14723
14724 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
14725
14726         PR/36280
14727         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
14728         option -f(no-)leading-underscore.
14729
14730 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14731
14732         * config/i386/i386.c (ix86_expand_vector_init_general): Use
14733         GET_MODE_NUNITS (mode).
14734
14735 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
14736
14737         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
14738         (-mmulhw): Add 464 to description.
14739         (-mdlmzb): Likewise.
14740         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
14741         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
14742         464fp entries.
14743         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
14744         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
14745         * config/rs6000/rs6000.md: Update comments for 464.
14746
14747 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
14748
14749         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
14750
14751 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14752
14753         * config/i386/sse.md (vec_extractv4sf): Removed.
14754         (vec_extractv2df): Likewise.
14755         (vec_extractv2di): Likewise.
14756         (vec_extractv4si): Likewise.
14757         (vec_extractv8hi): Likewise.
14758         (vec_extractv16qi): Likewise.
14759         (vec_extract<mode>): New.
14760
14761 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14762
14763         * config/i386/sse.md (vec_setv4sf): Removed.
14764         (vec_setv2df): Likewise.
14765         (vec_setv2di): Likewise.
14766         (vec_setv4si): Likewise.
14767         (vec_setv8hi): Likewise.
14768         (vec_setv16qi): Likewise.
14769         (vec_set<mode>): New.
14770
14771 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14772
14773         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
14774         goto for vec_concat and vec_interleave.
14775
14776 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14777
14778         * config/i386/sse.md (vec_initv4sf): Removed.
14779         (vec_initv2df): Likewise.
14780         (vec_initv2di): Likewise.
14781         (vec_initv4si): Likewise.
14782         (vec_initv8hi): Likewise.
14783         (vec_initv16qi): Likewise.
14784         (vec_init<mode>): New.
14785
14786 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
14787
14788         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
14789
14790 2008-05-21  Tom Tromey  <tromey@redhat.com>
14791
14792         * ggc-zone.c (lookup_page_table_if_allocated): New function.
14793         (zone_find_object_offset): Likewise.
14794         (gt_ggc_m_S): Likewise.
14795         (highest_bit): Likewise.
14796         * ggc-page.c (gt_ggc_m_S): New function.
14797         * stringpool.c (string_stack): Remove.
14798         (init_stringpool): Update.
14799         (ggc_alloc_string): Use ggc_alloc.
14800         (maybe_delete_ident): New function.
14801         (ggc_purge_stringpool): Likewise.
14802         (gt_ggc_m_S): Remove.
14803         * ggc-common.c (ggc_protect_identifiers): New global.
14804         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
14805         ggc_protect_identifiers.
14806         * ggc.h (ggc_protect_identifiers): Declare.
14807         (gt_ggc_m_S): Update.
14808         (ggc_purge_stringpool): Declare.
14809         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
14810         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
14811         special case.
14812         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
14813
14814 2008-05-21  David S. Miller  <davem@davemloft.net>
14815
14816         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
14817         tmake_file.
14818
14819 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
14820
14821         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
14822         once finished.
14823
14824 2008-05-20  David Daney  <ddaney@avtrex.com>
14825
14826         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
14827         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
14828         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
14829         UNSPEC_UPDATE_GOT_VERSION): Renumber.
14830         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
14831         (atomic_hiqi_op): New define_code_iterator.
14832         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
14833         mips_expand_compare_and_swap_12.
14834         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
14835         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
14836         (sync_<optab><mode>, sync_old_<optab><mode>,
14837         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
14838         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
14839         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
14840         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
14841         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
14842         (test_and_set_12): New insn.
14843         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
14844         sync_new_<optab><mode>, sync_old_nand<mode>,
14845         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
14846         clobber to operand 0 for SI and DI mode insns.
14847         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
14848         mips_gen_fn_4): New typedefs.
14849         (mips_gen_fn_ptrs): Define new union type.
14850         (mips_expand_compare_and_swap_12): Remove declaration.
14851         (mips_expand_atomic_qihi): Declare function.
14852         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
14853         (mips_expand_atomic_qihi): ... this.  Use new generator function
14854         parameter.
14855         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
14856         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
14857         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
14858         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
14859         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
14860         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
14861         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
14862         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
14863         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
14864         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
14865         New macros.
14866
14867 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
14868
14869         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
14870         the missing break.
14871
14872 2008-05-20  Anatoly Sokolov <aesok@post.ru>
14873
14874         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
14875         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
14876         (avr_attribute_table): Add 'OS_main' function attribute.
14877         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
14878         functions with 'OS_main' attribute.
14879
14880 2008-05-20  Richard Guenther  <rguenther@suse.de>
14881
14882         PR tree-optimization/35204
14883         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
14884         helper, split out from ...
14885         (DFS): ... here.  Make the DFS walk non-recursive.
14886
14887 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
14888             Jan Sjodin  <jan.sjodin@amd.com>
14889
14890         PR tree-optimization/36181
14891         * tree-parloops.c (loop_has_vector_phi_nodes): New.
14892         (parallelize_loops): Don't parallelize when the loop has vector
14893         phi nodes.
14894
14895 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
14896             Sebastian Pop  <sebastian.pop@amd.com>
14897
14898         * tree-loop-linear.c (gather_interchange_stats): Look in the access
14899         matrix, and never look at the tree representation of the memory
14900         accesses.
14901         (linear_transform_loops): Computes parameters and access matrices.
14902         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
14903         when fails.
14904         (access_matrix_get_index_for_parameter): New.
14905         * tree-data-ref.h (struct access_matrix): New.
14906         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
14907         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
14908         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
14909         am_vector_index_for_loop): New.
14910         (struct data_reference): Add field access_matrix.
14911         (DR_ACCESS_MATRIX): New.
14912         (compute_data_dependences_for_loop): Update declaration.
14913         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
14914         * lambda.h (lambda_vector_vec_p): Declared.
14915         * lambda-code.c: Depend on pointer-set.h.
14916         (lambda_collect_parameters_from_af, lambda_collect_parameters,
14917         av_for_af_base, av_for_af, build_access_matrix,
14918         lambda_compute_access_matrices): New.
14919         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
14920
14921 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
14922
14923         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
14924         $SOURCEDIR/include.
14925
14926 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
14927             Sebastian Pop  <sebastian.pop@amd.com>
14928
14929         PR tree-optimization/36206
14930         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
14931         FOLD_CONVERSIONS.
14932         (instantiate_scev_1): Rename flags to fold_conversions.
14933         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
14934         outeside instantiation_loop.
14935         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
14936         (evolution_function_is_affine_or_constant_p): Removed.
14937         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
14938         instantiate_scev.
14939         (analyze_siv_subscript): Pass in the loop nest number.
14940         Call evolution_function_is_affine_in_loop instead of
14941         evolution_function_is_affine_p.
14942         (analyze_overlapping_iterations): Pass in the loop nest number.
14943
14944 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
14945             Sebastian Pop  <sebastian.pop@amd.com>
14946
14947         PR tree-optimization/36206
14948         * tree-chrec.h (chrec_fold_op): New.
14949         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
14950         and other trees.
14951
14952 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
14953
14954         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
14955         (DIRS_EQ): New.
14956         (remove_duplicates): Do not set inode on non-inode systems.
14957         Use DIRS_EQ.
14958
14959 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
14960
14961         * config.gcc (tm_file): Update comments about relative pathnames.
14962
14963 2008-05-20  Richard Guenther  <rguenther@suse.de>
14964
14965         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
14966         * tree-ssa-sccvn.c (process_scc): Likewise.
14967         * tree-ssa-sink.c (execute_sink_code): Likewise.
14968         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
14969         * tree-vrp.c (process_assert_insertions): Likewise.
14970         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
14971         (perform_tree_ssa_dce): Likewise.
14972         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
14973         (dump_dominator_optimization_stats): Likewise.
14974         * tree-vectorizer.c (vectorize_loops): Likewise.
14975
14976 2008-05-20  Richard Guenther  <rguenther@suse.de>
14977
14978         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
14979
14980 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
14981
14982         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
14983         (ix86_i386elf_return_in_memory): Likewise.
14984         (ix86_i386interix_return_in_memory): Likewise.
14985         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
14986         (SUBTARGET_RETURN_IN_MEMORY): New.
14987         * config/i386/i386elf.h: Likewise.
14988         * config/i386/ptx4-i.h: Likewise.
14989         * config/i386/sol2-10.h: Likewise.
14990         * config/i386/sysv4.h: Likewise.
14991         * config/i386/vx-common.h: Likewise.
14992         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
14993         * config/i386/i386.c (ix86_return_in_memory): Made static and
14994         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
14995         (ix86_i386elf_return_in_memory): Removed.
14996         (ix86_i386interix_return_in_memory): Removed.
14997         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
14998         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
14999
15000 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
15001
15002         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
15003
15004 2008-05-19  Xinliang David Li  <davidxl@google.com>
15005
15006         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
15007         * opts.c: Ditto.
15008         * common.opt: Ditto.
15009         * doc/invoke.texi: Ditto.
15010
15011 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
15012
15013         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
15014         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
15015
15016 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
15017
15018         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
15019         sizes of operand array from 8/4 to 4/2.
15020         (ix86_expand_vector_init_general): Change size of operand array
15021         from 32 to 16.  Remove op0, op1 and half_mode.
15022
15023 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
15024
15025         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
15026         (ix86_expand_vector_init_interleave): Likewise.
15027         (ix86_expand_vector_init_general): Use them.  Assert
15028         word_mode == SImode when n_words == 4.
15029
15030 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
15031
15032         * config/i386/i386.c (ix86_secondary_reload): New static function.
15033         (TARGET_SECONDARY_RELOAD): New define.
15034         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
15035         * config/i386/i386.md (reload_outqi): Remove.
15036
15037 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15038
15039         PR middle-end/35509
15040         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
15041         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
15042         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
15043         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
15044         (fold_builtin_1): Likewise.
15045         * builtins.def (BUILT_IN_ISINF_SIGN): New.
15046         c-common.c (check_builtin_function_arguments): Handle
15047         BUILT_IN_ISINF_SIGN.
15048         * doc/extend.texi: Document __builtin_isinf_sign.
15049         * fold-const.c (operand_equal_p): Handle COND_EXPR.
15050
15051 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
15052
15053         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
15054         EH cleanup at the end of the pass, search for those that have been
15055         turned into forwarder blocks and do the cleanup on their successor.
15056
15057 2008-05-18  Richard Guenther  <rguenther@suse.de>
15058
15059         * tree-cfg.c (verify_gimple_expr): Allow conversions from
15060         pointers to sizetype and vice versa.
15061
15062 2008-05-18 Xinliang David Li   <davidxl@google.com>
15063
15064         * gcc/tree-ssa-dce.c: Coding style fix.
15065         (check_pow): Documentation comment.
15066         (check_log): Documenation comment. Coding style fix.
15067         (is_unnecessary_except_errno_call): Ditto.
15068         (gen_conditions_for_pow): Ditto.
15069         (gen_conditions_for_log): Ditto.
15070         (gen_shrink_wrap_conditions): Ditto.
15071         (shrink_wrap_one_built_in_calls): Ditto.
15072         * gcc/doc/invoke.texi: Better documentation string.
15073         * ChangeLog: Fix wrong change log entries from
15074         May 17 checkin on function call DCE.
15075
15076 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
15077
15078         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
15079
15080 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
15081
15082         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
15083         * df-problems.c (simulation routines): Fixed block comment to
15084         properly say how to add forwards scanning functions.
15085
15086 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
15087
15088         * tree-inline.c (setup_one_parameter): Remove dead code.
15089
15090 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
15091
15092         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
15093         a BIT_AND_EXPR only for an INTEGER_TYPE.
15094
15095 2008-05-17 Xinliang David Li   <davidxl@google.com>
15096
15097         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
15098         (check_pow, check_log, is_unnecessary_except_errno_call): New
15099         functions to check for eliminating math functions that are pure
15100         except for setting errno.
15101         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
15102         general condition expressions for shrink-wrapping pow/log calls.
15103         (gen_shrink_wrap_conditions): Ditto.
15104         (shrink_wrap_one_built_in_call): Ditto.
15105         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
15106         (mark_operand_necessary): If debugging, output if OP is necessary.
15107         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
15108         unnecessary.
15109         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
15110         opt level >= 2.
15111         * gcc/common.opt: New user flag -ftree-builtin-dce.
15112         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
15113
15114 2008-05-16  David S. Miller  <davem@davemloft.net>
15115
15116         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
15117         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
15118
15119 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
15120
15121         PR target/36246
15122         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
15123
15124 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
15125
15126         * ifcvt.c (dead_or_predicable): Rename
15127         df_simulate_one_insn_backwards to df_simulate_one_insn.
15128         * recog.c (peephole2_optimize): Ditto.
15129         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
15130         Ditto.
15131         * df.h: Rename df_simulate_one_insn_backwards to
15132         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
15133         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
15134         scanning of defs and uses.
15135         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
15136         (df_simulate_one_insn_forwards): Removed.
15137
15138 2008-05-16  Doug Kwan  <dougkwan@google.com>
15139
15140         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
15141         QNaN & SNaN.
15142         (real_from_string): Handle NaNs and Inf as approriate.
15143
15144 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
15145
15146         * doc/gty.texi (Source Files Containing Type Information): Note
15147         that headers should appear first in the gtfiles list.
15148
15149 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
15150
15151         * tree.def (COND_EXEC): Properly documented this code.
15152
15153 2008-05-16  Diego Novillo  <dnovillo@google.com>
15154
15155         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
15156         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
15157         the new field.
15158
15159 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
15160
15161         * tree-ssa-dse (max_stmt_uid): Removed.
15162         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
15163         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
15164         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
15165         * function.h (cfun.last_stmt_uid): New field.
15166         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
15167         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
15168         New functions.
15169         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
15170         (create_stmt_ann): Initialize the ann->uid field.
15171         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
15172         with new calls.
15173         * tree-flow.h (renumber_gimple_stmt_uids): New function.
15174
15175 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
15176
15177         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
15178         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
15179         (init_empty_tree_cfg): Call it.
15180
15181 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
15182
15183         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
15184         Update all users.
15185
15186 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
15187
15188         * doc/invoke.text (-fdump-tree-*-verbose): New option.
15189         * tree-dump.c (dump_options): New verbose option.
15190         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
15191         Add verbose dump.
15192         * tree-pass.h (TDF_VERBOSE): New dump flag.
15193         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
15194         (tree-flow.h): Added include.
15195         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
15196
15197 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
15198
15199         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
15200
15201         From Jie Zhang  <jie.zhang@analog.com>
15202         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
15203         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
15204         mcpu=bf561-none and mcpu=bf561-0.2.
15205         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
15206         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
15207         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
15208         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
15209         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
15210         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
15211         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
15212         option.
15213         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
15214         (cputype_selected): Remove.
15215         (bfin_handle_option): Don't use cputype_selected.
15216         (override_options): When no mcpu option, enable all workarounds.
15217         Don't use bfin_workarounds.
15218         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
15219         processor type.
15220         (DEFAULT_CPU_TYPE): Don't define.
15221
15222 2008-05-16  Richard Guenther  <rguenther@suse.de>
15223
15224         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
15225         on deletion of the last stmt.
15226
15227 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15228
15229         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
15230         V8HImode for SSE2 and V16QImode for SSE4.1.
15231
15232 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
15233
15234         * cgraph.h (compute_inline_parameters): Made public.
15235         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
15236         variable_generate_summary, function_write_summary,
15237         variable_write_summary, variable_read_summary.  Added generate_summary,
15238         write_summary, read_summary.
15239         * cgraphunit.c (cgraph_process_new_functions): Changed call from
15240         pass_ipa_inline.function_generate_summary, to
15241         compute_inline_parameters.
15242         * ipa-inline.c (compute_inline_parameters): Made public and added
15243         node parameter.
15244         (compute_inline_parameters_for_current): New function.
15245         (pass_inline_param): Now calls compute_inline_parameters_for_current.
15246         (inline_generate_summary): Removed parameter and made to loop over
15247         all cgraph nodes.
15248         (pass_ipa_inline): Updated for new IPA_PASS structure.
15249         * passes.c (execute_ipa_summary_passes): Now is called once per
15250         pass rather than once per node*pass.
15251
15252 2008-05-15  Anatoly Sokolov <aesok@post.ru>
15253
15254         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
15255         avr_have_mul_p, avr_asm_only_p): Remove variables.
15256         (avr_override_options): Remove initialization of removed variables.
15257         (avr_file_start):  Convert removed variables to fields of
15258         'struct base_arch_s *avr_current_arch'.
15259         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
15260         (AVR_HAVE_MUL): (Ditto.).
15261         (AVR_HAVE_MOVW): (Ditto.).
15262         (AVR_HAVE_LPMX): (Ditto.).
15263         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
15264         avr_asm_only_p): Remove declaration.
15265
15266 2008-05-15  Diego Novillo  <dnovillo@google.com>
15267
15268         * config/arm/arm.c (arm_return_in_memory): Fix return type.
15269         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
15270
15271 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
15272
15273         PR middle-end/36194
15274         * combine.c (check_conversion): Rename back to check_promoted_subreg.
15275         Don't call record_truncated_value from here.
15276         (record_truncated_value): Turn it into a for_each_rtx callback.
15277         (record_truncated_values): New function.
15278         (combine_instructions): Call note_uses with record_truncated_values.
15279         Change name of check_conversion to check_promoted_subreg.
15280
15281 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
15282
15283         * doc/sourcebuild.texi: Document support for torture tests.
15284
15285 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
15286
15287         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
15288         to alternative 4 of operand 2.
15289
15290 2008-05-15  Richard Guenther  <rguenther@suse.de>
15291
15292         * tree-pass.h (current_pass): Declare.
15293         (get_pass_for_id): Likewise.
15294         * passes.c (passes_by_id, passes_by_id_size): New globals.
15295         (set_pass_for_id): New function.
15296         (get_pass_for_id): Likewise.
15297         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
15298         (execute_function_todo): Flush per function statistics.
15299         * toplev.c (compile_file): Init statistics.
15300         (general_init): Do early statistics initialization.
15301         (finalize): Finish statistics.
15302         * statistics.h (statistics_early_init): Declare.
15303         (statistics_init): Likewise.
15304         (statistics_fini): Likewise.
15305         (statistics_fini_pass): Likewise.
15306         (statistics_counter_event): Likewise.
15307         (statistics_histogram_event): Likewise.
15308         * statistics.c: New file.
15309         * Makefile.in (OBJS-common): Add statistics.o.
15310         (statistics.o): Add dependencies.
15311         * doc/invoke.texi (-fdump-statistics): Document.
15312
15313         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
15314         (insert): Likewise.
15315         (execute_pre): Use statistics_counter_event.
15316         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
15317         (substitute_and_fold): Increment it.  Use statistics_counter_event.
15318
15319 2008-05-15  Diego Novillo  <dnovillo@google.com>
15320
15321         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
15322
15323         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
15324         * tree-ssa-alias.c (new_type_alias): Remove references to
15325         sub-variables from comment.
15326         * tree-ssa-operands.c (swap_tree_operands): Likewise.
15327
15328 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15329
15330         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
15331         attribute to 1 only for insertps alternative.
15332
15333 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
15334
15335         * config/bfin/bfin.md (loadbytes): New pattern.
15336         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
15337         (bfin_init_builtins): Initialize it.
15338         (bdesc_1arg): Add it.
15339
15340 2008-05-15  Sa Liu  <saliu@de.ibm.com>
15341
15342         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
15343         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
15344         * testsuite/lib/target-supports.exp: Add
15345         check_effective_target_fortran_integer_16.
15346
15347 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
15348
15349         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
15350         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
15351         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
15352         (TARGET_RETURN_IN_MEMORY): Define.
15353
15354 2008-05-15  Richard Guenther  <rguenther@suse.de>
15355
15356         PR middle-end/36244
15357         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
15358         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
15359         represent unmodifiable vars.
15360
15361 2008-05-15  Richard Guenther  <rguenther@suse.de>
15362
15363         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
15364         INDIRECT_REF and TARGET_MEM_REF.
15365         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
15366         TARGET_MEM_REF.
15367
15368 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
15369             H.J. Lu  <hongjiu.lu@intel.com>
15370
15371         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
15372         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
15373         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
15374         insn alternatives.  Add missing alternatives.
15375         (*vec_concatv2di_rex64_sse4_1): Likewise.
15376         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
15377         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
15378         Require TARGET_SSE.
15379
15380 2008-05-15  Richard Guenther  <rguenther@suse.de>
15381
15382         PR tree-optimization/36009
15383         PR tree-optimization/36204
15384         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
15385         (determine_invariantness_stmt): Record the loop a store is
15386         always executed in.
15387         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
15388         dependency.
15389
15390 2008-05-15  Richard Guenther  <rguenther@suse.de>
15391
15392         PR tree-optimization/34330
15393         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
15394         through the pointer will alias the SMT.
15395
15396 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
15397
15398         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
15399
15400 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15401
15402         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
15403
15404 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
15405             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
15406
15407         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
15408         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
15409         (vashl_optab): New optab for vector/vector shifts.
15410         (vashr_optab): Ditto.
15411         (vlshr_optab): Ditto.
15412         (vrotl_optab): Ditto.
15413         (vrotr_optab): Ditto.
15414         (optab_subtype): New enum for optab_for_tree_code call.
15415         (optab_for_tree_code): Add enum optab_subtype argument.
15416
15417         * optabs.c (optab_for_tree_code): Take an additional argument to
15418         distinguish between a vector shift by a scalar and vector shift by
15419         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
15420         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
15421         vector shift by a vector.
15422         (expand_widen_pattern_expr): Pass additional argument to
15423         optab_for_tree_code.
15424
15425         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
15426         vrotl_optab, vrotr_optab.
15427
15428         * expr.c (expand_expr_real_1): Update calls to
15429         optab_for_tree_code to distinguish between vector shifted by a
15430         scalar and vector shifted by a vector.
15431         * tree-vectorizer.c (supportable_widening_operation): Ditto.
15432         (supportable_narrowing_operation): Ditto.
15433         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
15434         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
15435         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
15436         (vect_create_epilog_for_reduction): Ditto.
15437         (vectorizable_reduction): Ditto.
15438         (vectorizable_operation): Ditto.
15439         (vect_strided_store_supported): Ditto.
15440         (vect_strided_load_supported): Ditto.
15441         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
15442         * expmed.c (expand_shift): Ditto.
15443
15444         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
15445         scalar type.
15446         (ashr@var{m}3): Ditto.
15447         (vashl@var{m}3): Document new vector/vector shift standard name.
15448         (vashr@var{m}3): Ditto.
15449         (vlshr@var{m}3): Ditto.
15450         (vrotl@var{m}3): Ditto.
15451         (vrotr@var{m}3): Ditto.
15452
15453         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
15454         (PPERM_INVERT): Ditto.
15455         (PPERM_REVERSE): Ditto.
15456         (PPERM_REV_INV): Ditto.
15457         (PPERM_ZERO): Ditto.
15458         (PPERM_ONES): Ditto.
15459         (PPERM_SIGN): Ditto.
15460         (PPERM_INV_SIGN): Ditto.
15461         (PPERM_SRC1): Ditto.
15462         (PPERM_SRC2): Ditto.
15463
15464         * config/i386/sse.md (mulv2di3): Add SSE5 support.
15465         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
15466         allows a memory operand to be the value being added, and split it
15467         to improve vectorization.
15468         (sse5_pmacsdqh_mem): Ditto.
15469         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
15470         (sse5_mulv2div2di3_high): Ditto.
15471         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
15472         (vec_pack_trunc_v4si): Ditto.
15473         (vec_pack_trunc_v2di): Ditto.
15474         (sse5_pcmov_<mode>): Remove code that tried to use use
15475         andps/andnps instead of pcmov.
15476         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
15477         pmacsdqh instructions.
15478         (vec_widen_smult_lo_v4si): Ditto.
15479
15480         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
15481         (PPERM_INVERT): Ditto.
15482         (PPERM_REVERSE): Ditto.
15483         (PPERM_REV_INV): Ditto.
15484         (PPERM_ZERO): Ditto.
15485         (PPERM_ONES): Ditto.
15486         (PPERM_SIGN): Ditto.
15487         (PPERM_INV_SIGN): Ditto.
15488         (PPERM_SRC1): Ditto.
15489         (PPERM_SRC2): Ditto.
15490         (ix86_expand_sse_movcc): Move the SSE5 test after the if
15491         true/false tests.
15492         (ix86_expand_int_vcond): If SSE5 generate all possible integer
15493         comparisons.
15494         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
15495         says ignore whether the last reference is a memory operand.
15496
15497 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
15498             Paolo Bonzini <bonzini at gnu dot org>
15499
15500         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
15501         shift patterns.
15502
15503         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
15504         (vlshr<mode>3): Rename from vlshr<mode>3.
15505         (vashr<mode>3): Rename from vashr<mode>3.
15506         (mulv4sf3): Change the names of vector shift patterns.
15507         (mulv4si3): Ditto.
15508         (negv4sf2): Ditt.
15509
15510         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
15511         shift insns.
15512
15513         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
15514         (SI_SHLHI): Ditto.
15515         (SI_SHL): Ditto.
15516         (SI_SHLI): Ditto.
15517         (SI_ROTH): Ditto.
15518         (SI_ROTHI): Ditto.
15519         (SI_ROT): Ditto.
15520         (SI_ROTI): Ditto.
15521         (SPU_RL_0): Ditto.
15522         (SPU_RL_1): Ditto.
15523         (SPU_RL_2): Ditto.
15524         (SPU_RL_3): Ditto.
15525         (SPU_RL_4): Ditto.
15526         (SPU_RL_5): Ditto.
15527         (SPU_RL_6): Ditto.
15528         (SPU_RL_7): Ditto.
15529         (SPU_SL_0): Ditto.
15530         (SPU_SL_1): Ditto.
15531         (SPU_SL_2): Ditto.
15532         (SPU_SL_3): Ditto.
15533         (SPU_SL_4): Ditto.
15534         (SPU_SL_5): Ditto.
15535         (SPU_SL_6): Ditto.
15536         (SPU_SL_7): Ditto.
15537
15538         * config/spu/spu.md (v): New iterator macro to add v for vector types.
15539         (floatunssidf2_internal): Change vector/vector shift names.
15540         (floatunsdidf2_internal): Ditto.
15541         (mulv8hi3): Ditto.
15542         (ashrdi3): Ditto.
15543         (ashrti3): Ditto.
15544         (cgt_df): Ditto.
15545         (cgt_v2df): Ditto.
15546         (dftsv): Ditto.
15547         (vashl<mode>3): Rename from ashl<mode>3.
15548         (vashr<mode>3): Rename from ashr<mode>3.
15549         (vlshr<mode>3): Rename from lshr<mode>3.
15550         (vrotl<mode>3): Rename from rotl<mode>3.
15551
15552 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
15553
15554         PR target/36224
15555         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
15556         multiply gives the wrong value when doing widening multiplies.
15557         (vec_widen_smult_lo_v4si): Ditto.
15558
15559 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
15560
15561         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
15562         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
15563         emit_library_call_value.
15564         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
15565         * tree.h (ECF_LIBCALL_BLOCK): Removed.
15566         * calls.c (initialize_argument_information, precompute_arguments,
15567         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
15568         (precompute_arguments): Removed flags parameter.
15569         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
15570
15571 2008-05-14  Richard Guenther  <rguenther@suse.de>
15572
15573         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
15574         Make sure to register the store if the use is a PHI_NODE.
15575
15576 2008-05-14  Olivier Hainque  <hainque@adacore.com>
15577
15578         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
15579         memory if the component is to be referenced in BLKmode according
15580         to get_inner_reference.
15581
15582 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
15583
15584         * calls.c (emit_library_call_value_1): Restore code clearing
15585         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
15586
15587 2008-05-14  Olivier Hainque  <hainque@adacore.com>
15588             Nicolas Roche  <roche@adacore.com>
15589
15590         * configure.ac: Add support for a "gcc_subdir" variable in
15591         config-lang.in, to denote a subdirectory where the language/GCC
15592         integration files are to be found.
15593         * configure: Regenerate.
15594
15595 2008-05-14  Ira Rosen  <irar@il.ibm.com>
15596
15597         PR tree-optimization/36098
15598         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
15599         value for the first load in the group in case of a gap.
15600         (vect_build_slp_tree): Check that there are no gaps in loads.
15601
15602 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
15603
15604         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
15605         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
15606         expand_copysign_bit, ): Change call to emit_no_conflict_block to
15607         emit_insn and remove unneeded code to construct extra args.
15608         (emit_no_conflict_block): Removed.
15609         * optabls.h: (emit_no_conflict_block): Removed.
15610         * cse.c (cse_extended_basic_block): Remove search for
15611         REG_NO_CONFLICT note.
15612         * global.c: Removed incorrect comment added in revision 117.
15613         * expr.c (convert_move): Change call to emit_no_conflict_block to
15614         emit_insn.
15615         * recog.c: Change comments so that they do not mention
15616         REG_NO_CONFLICT.
15617         * local_alloc.c (combine_regs): Removed last parameter.
15618         (no_conflict_p): Removed.
15619         (block_alloc): Removed note, no_conflict_combined_regno and set
15620         local vars. Removed all code to process REG_NO_CONFLICT blocks.
15621         (combine_regs): Removed already_dead and code to look for
15622         REG_NO_CONFLICT notes.
15623         * lower_subreg (remove_retval_note): Removed code to look for
15624         REG_NO_CONFLICT block.
15625         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
15626         (resolve_clobber): Remove code to process libcalls that have
15627         REG_NO_CONFLICT notes.
15628         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
15629         case.
15630         * combine.c (can_combine_p, distribute_notes):  Removed
15631         REG_NO_CONFLICT case.
15632         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
15633         to emit_insns.
15634         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
15635         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
15636         Ditto.
15637         * reg-notes.def (NO_CONFLICT): Removed.
15638
15639 2008-05-14  David S. Miller  <davem@davemloft.net>
15640
15641         * config/sparc/sparc.c (sparc_profile_hook): If
15642         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
15643         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
15644         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
15645
15646 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
15647
15648         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
15649
15650 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
15651
15652         PR target/36222
15653         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
15654         and op1 expansion before vector concat to have less live pseudos.
15655
15656 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
15657
15658         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
15659         ix86_expand_vector_set if supported.
15660
15661 2008-05-13  Diego Novillo  <dnovillo@google.com>
15662             Kenneth Zadeck  <zadeck@naturalbridge.com>
15663
15664         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
15665
15666         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
15667         phinodes_print_statistics, init_ssanames, fini_ssanames,
15668         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
15669         release_ssa_name, release_defs, replace_ssa_name_symbol,
15670         ssanames_print_statistics): Move ...
15671         * tree-flow.h: ... here.
15672         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
15673         Use FN instead of cfun.
15674         (make_ssa_name_fn): Rename from make_ssa_name.
15675         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
15676         * tree-flow-inline.h (make_ssa_name): Move from
15677         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
15678         * omp-low.c (expand_omp_parallel):
15679         * tree-flow-inline.h (redirect_edge_var_map_result):
15680         * tree-ssa.c (init_tree_ssa): Add argument FN.
15681         Use it instead of cfun.  Update all users.
15682
15683 2008-05-13  Tom Tromey  <tromey@redhat.com>
15684
15685         PR preprocessor/22168:
15686         * doc/cpp.texi (Top): Update menu.
15687         (Alternatives to Wrapper #ifndef): New node.
15688         (Other Directives): Document deprecation.
15689         (Obsolete Features): Remove menu.
15690         (Assertions): Merge node into Obsolete Features.
15691         (Obsolete once-only headers): Move earlier; rename to Alternatives
15692         to Wrapper #ifndef.
15693         * doc/cppopts.texi: Update.
15694         * c.opt (Wdeprecated): Enable for C and ObjC.
15695         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
15696         (C++ Dialect Options): Move -Wno-deprecated from here to...
15697         (Warning Options): ... here.
15698
15699 2008-05-13  Richard Guenther  <rguenther@suse.de>
15700
15701         PR middle-end/36227
15702         * fold-const.c (fold_sign_changed_comparison): Do not allow
15703         changes in pointer-ness.
15704
15705 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
15706
15707         PR target/24713
15708         * config/sh/sh.c (sh_expand_prologue): Don't clear
15709         RTX_FRAME_RELATED_P for push insns.
15710
15711 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
15712
15713         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
15714
15715 2008-05-12  Anatoly Sokolov <aesok@post.ru>
15716
15717         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
15718         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
15719         Use 'machine->is_leaf' instead of 'leaf_func_p'.
15720
15721 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
15722
15723         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
15724         (*vec_concatv4sf_sse): This.
15725         (*sse2_concatv2si): Renamed to ...
15726         (*vec_concatv2si_sse2): This.
15727         (*sse1_concatv2si): Renamed to ...
15728         (*vec_concatv2si_sse): This.
15729         (*vec_concatv2di_rex): Renamed to ...
15730         (*vec_concatv2di_rex64): This.
15731         (*vec_concatv2si_sse4_1): New.
15732         (*vec_concatv2di_rex64_sse4_1): Likewise.
15733
15734 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
15735
15736         PR rtl-optimization/36111
15737         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
15738         that was created for swappable operands.
15739
15740 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
15741
15742         PR ada/36001
15743         * Makefile.in: Substitute GNATMAKE and GNATBIND.
15744         * configure.ac: Add call to ACX_PROG_GNAT.
15745
15746 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
15747
15748         * optc-gen.awk: Fix comment typo.
15749
15750 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
15751
15752         * pretty-print.c (pp_integer_with_precision): Use
15753         HOST_LONG_LONG_FORMAT.
15754
15755 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
15756
15757         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
15758
15759 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15760
15761         * config/i386/i386.c (bdesc_ptest): Removed.
15762         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
15763         (bdesc_args): Add __builtin_ia32_ptestz128,
15764         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
15765         (ix86_init_mmx_sse_builtins): Updated.
15766         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
15767         (ix86_expand_builtin): Updated.
15768
15769 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
15770
15771         * tree-cfg.c (valid_fixed_convert_types_p): New function.
15772         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
15773
15774 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
15775
15776         * value-prof.c (interesting_stringop_to_profile): Do not
15777         return early for BUILT_IN_MEMPCPY.
15778
15779 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
15780
15781         * calls.c (expand_call): Don't use callgraph to increase
15782         preferred_stack_boundary.
15783
15784         * cgraph.h (cgraph_rtl_info): Use unsigned on
15785         preferred_incoming_stack_boundary.
15786
15787         * final.c (rest_of_clean_state): Use unsigned on
15788         preferred_stack_boundary.
15789
15790 2008-05-09  Tom Tromey  <tromey@redhat.com>
15791
15792         PR preprocessor/22231:
15793         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
15794         proceeding.
15795
15796 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
15797
15798         PR tree-optimization/36129
15799         * tree-ssa-ccp.c: Include value-prof.h.
15800         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
15801         built-in function was folded to a constant.
15802         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
15803
15804 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
15805             Sebastian Pop  <sebastian.pop@amd.com>
15806
15807         * tree-scalar-evolution.c: Document instantiate_scev.
15808         (instantiate_parameters_1): Renamed instantiate_scev_1.
15809         Don't use the same loop for instantiation_loop and evolution_loop.
15810         (instantiate_scev): New.
15811         (instantiate_parameters): Moved...
15812         (resolve_mixers): Update call to instantiate_scev_1 to pass the
15813         same loop twice.  Maintains the semantics for this function.
15814         * tree-scalar-evolution.h (instantiate_scev): Declare.
15815         (instantiate_parameters): ...here.  Now static inline.
15816         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
15817         instead of resolve_mixers.
15818
15819 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
15820
15821         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
15822
15823 2008-05-09  Tomas Bily  <tbily@suse.cz>
15824
15825         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
15826         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
15827         * tree-ssa-structalias.c (get_constraint_for): Likewise.
15828         * c-common.c (c_common_truthvalue_conversion): Likewise.
15829         * tree-object-size.c (compute_object_offset): Likewise.
15830         * tree-inline.c (estimate_num_insns_1): Likewise.
15831         * varasm.c (const_hash_1, compare_constant, copy_constant)
15832         (compute_reloc_for_constant, output_addressed_constants)
15833         (initializer_constant_valid_p): Likewise.
15834         * c-omp.c (check_omp_for_incr_expr): Likewise.
15835         * gimplify.c (gimplify_expr): Likewise.
15836         * c-typeck.c (c_finish_return): Likewise.
15837         * tree-vectorizer.c (supportable_widening_operation)
15838         (supportable_narrowing_operation): Likewise.
15839         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
15840         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
15841         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
15842         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
15843         (descr_info_loc): Likewise.
15844         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
15845         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
15846         (fold_unary): Likewise.
15847         * builtins.c (get_pointer_alignment): Likewise.
15848         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
15849         (instantiate_parameters_1): Likewise.
15850         * tree.c (expr_align, stabilize_reference): Likewise.
15851         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
15852         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
15853         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
15854         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
15855         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
15856         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
15857         Likewise.
15858         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
15859         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
15860         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
15861         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
15862         (forward_propagate_comparison)
15863         (tree_ssa_forward_propagate_single_use_vars): Likewise.
15864         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
15865         * emit-rtl.c (component_ref_for_mem_expr)
15866         (set_mem_attributes_minus_bitpos): Likewise.
15867         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
15868         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
15869         Likewise.
15870         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
15871         (build_function_call, pointer_diff, build_compound_expr)
15872         (c_finish_return): Likewise.
15873         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
15874         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
15875         Likewise.
15876         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
15877         * expr.c (is_aligning_offset): Likewise.
15878         * tree-ssa-alias.c (is_escape_site): Likewise.
15879         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
15880         (check_all_va_list_escapes): Likewise.
15881         * tree-ssa-loop-ivopts.c (determine_base_object)
15882         (determine_common_wider_type): Likewise.
15883         * dojump.c (do_jump): Likewise.
15884         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
15885         * tree-gimple.c (is_gimple_cast): Likewise.
15886         * fold-const.c (decode_field_reference, )
15887         (fold_sign_changed_comparison, fold_unary, fold_comparison)
15888         (fold_binary): Likewise.
15889         * tree-ssa-alias-warnings.c (find_alias_site_helper)
15890         (already_warned_in_frontend_p): Likewise.
15891         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
15892         * tree.c (really_constant_p, get_unwidened): Likewise.
15893         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
15894         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
15895         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
15896         Likewise.
15897         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
15898         CONVERT_EXPR_P.
15899         (CONVERT_EXPR_P): Define.
15900         (CASE_CONVERT): Define.
15901
15902 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
15903
15904         PR middle-end/36117
15905         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
15906         (delete_unmarked_insns): When deleting a call, call
15907         delete_unreachable_blocks.
15908         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
15909         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
15910
15911 2008-05-08  Richard Guenther  <rguenther@suse.de>
15912
15913         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
15914         (-ftree-salias): Likewise.
15915         (salias-max-implicit-fields): Remove param documentation.
15916         (salias-max-array-elements): Likewise.
15917         * tree-pass.h (pass_create_structure_vars): Remove.
15918         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
15919         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
15920         * tree-ssa-alias.c (create_structure_vars): Remove.
15921         (gate_structure_vars): Likewise.
15922         (pass_create_structure_vars): Likewise.
15923         (gate_build_alias): Likewise.
15924         (pass_build_alias): Adjust to run always and dump the function.
15925         * common.opt (ftree-salias): Hide.
15926         * passes.c (init_optimization_passes): Remove
15927         pass_create_structure_vars, adjust comment.
15928         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
15929         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
15930         * opts.c (decode_options): Do not set flag_tree_salias.
15931         (common_handle_option): Add OPT_ftree_salias to the backward
15932         compatibility section.
15933
15934 2008-05-08  Richard Guenther  <rguenther@suse.de>
15935
15936         * tree-flow-inline.h (var_can_have_subvars): Move ...
15937         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
15938         * tree-flow.h (var_can_have_subvars): Remove.
15939         (push_fields_onto_fieldstack): Remove.
15940         (sort_fieldstack): Likewise.
15941         (struct fieldoff): Move ...
15942         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
15943         alias_set and base_for_components fields.
15944         (sort_fieldstack): Make static.
15945         (push_fields_onto_fieldstack): Likewise.  Remove code that
15946         handles anything but RECORD_TYPEs.  Remove alias_set and
15947         base_for_components handling.
15948         (create_variable_info_for): Adjust.
15949
15950 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
15951
15952         * common.opt (Wframe-larger-than=): Shorten the help message
15953         to one line.
15954         * doc/invoke.texi (Wframe-larger-than=): Add more description.
15955
15956 2008-05-08  Rafael Espíndola  <espindola@google.com>
15957
15958         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
15959         trap.
15960         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
15961         trap and that both operands are gimple values.
15962         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
15963         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
15964         is a fp operation.
15965
15966 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
15967
15968         * read-rtl.c (join_c_conditions): Return the first string if the
15969         two strings are equal.
15970
15971 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
15972
15973         * gensupport.h (pred_data): Add a "num_codes" field.
15974         (add_predicate_code): Declare.
15975         * gensupport.c (add_predicate_code): New function.
15976         (std_pred_table): Add an "allows_const_p" field.
15977         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
15978         Remove the (incomplete) list of such codes from the codes field.
15979         (init_predicate_table): Use add_predicate_code.  Add all
15980         RTX_CONST_OBJs if allows_const_p is true.
15981         * genrecog.c (process_define_predicate): Use add_predicate_code.
15982
15983 2008-05-08  David Daney  <ddaney@avtrex.com>
15984             Richard Sandiford  <rsandifo@nildram.co.uk>
15985
15986         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
15987         special case of constant zero operands.
15988         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
15989         old and new values.  Special case constant zero values.
15990         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
15991         fails.
15992         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
15993         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
15994
15995 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
15996
15997         PR target/36090
15998         * simplify-rtx.c (simplify_plus_minus): Create CONST of
15999         similar RTX_CONST_OBJ before CONST_INT.
16000
16001 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
16002
16003         * stmt.c (expand_stack_restore): Change sa mode if needed.
16004
16005 2008-05-08  Richard Guenther  <rguenther@suse.de>
16006
16007         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
16008         return type to bool.
16009         (ix86_sol10_return_in_memory): Likewise.
16010         (ix86_i386elf_return_in_memory): Likewise.
16011         (ix86_i386interix_return_in_memory): Likewise.
16012         * config/i386/i386.c (ix86_return_in_memory): Likewise.
16013         (ix86_sol10_return_in_memory): Likewise.
16014         (ix86_i386elf_return_in_memory): Likewise.
16015         (ix86_i386interix_return_in_memory): Likewise.
16016
16017 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
16018
16019         PR bootstrap/36180
16020         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
16021         fndecl argument.
16022         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
16023         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
16024         declared in front.
16025
16026 2008-05-08  Richard Guenther  <rguenther@suse.de>
16027
16028         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
16029         * tree-data-ref.h (struct dr_alias): Remove subvars field.
16030         (DR_SUBVARS): Remove.
16031         * tree-dfa.c (dump_subvars_for): Remove.
16032         (debug_subvars_for): Likewise.
16033         (dump_variable): Do not dump subvars.
16034         (remove_referenced_var): Do not remove subvars.
16035         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
16036         (lookup_subvars_for_var): Remove.
16037         (get_subvars_for_var): Likewise.
16038         (get_subvars_at): Likewise.
16039         (get_first_overlapping_subvar): Likewise.
16040         (overlap_subvar): Likewise.
16041         * tree-flow.h (subvar_t): Remove.
16042         (struct var_ann_d): Remove subvars field.
16043         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
16044         argument.  Remove special handling of SFTs.
16045         (compute_tag_properties): Likewise.
16046         (set_initial_properties): Likewise.
16047         (compute_call_clobbered): Likewise.
16048         (count_mem_refs): Likewise.
16049         (compute_memory_partitions): Likewise.
16050         (compute_flow_insensitive_aliasing): Likewise.
16051         (setup_pointers_and_addressables): Likewise.
16052         (new_type_alias): Likewise.
16053         (struct used_part): Remove.
16054         (used_portions): Likewise.
16055         (struct used_part_map): Likewise.
16056         (used_part_map_eq): Likewise.
16057         (used_part_map_hash): Likewise.
16058         (free_used_part_map): Likewise.
16059         (up_lookup): Likewise.
16060         (up_insert): Likewise.
16061         (get_or_create_used_part_for): Likewise.
16062         (create_sft): Likewise.
16063         (create_overlap_variables_for): Likewise.
16064         (find_used_portions): Likewise.
16065         (create_structure_vars): Likewise.
16066         * tree.def (STRUCT_FIELD_TAG): Remove.
16067         * tree.h (MTAG_P): Adjust.
16068         (struct tree_memory_tag): Remove base_for_components and
16069         unpartitionable flags.
16070         (struct tree_struct_field_tag): Remove.
16071         (SFT_PARENT_VAR): Likewise.
16072         (SFT_OFFSET): Likewise.
16073         (SFT_SIZE): Likewise.
16074         (SFT_NONADDRESSABLE_P): Likewise.
16075         (SFT_ALIAS_SET): Likewise.
16076         (SFT_UNPARTITIONABLE_P): Likewise.
16077         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
16078         (union tree_node): Remove sft field.
16079         * alias.c (get_alias_set): Remove special handling of SFTs.
16080         * print-tree.c (print_node): Remove handling of SFTs.
16081         * tree-dump.c (dequeue_and_dump): Likewise.
16082         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
16083         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
16084         * tree-predcom.c (set_alias_info): Do not set subvars.
16085         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
16086         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
16087         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
16088         (add_vars_for_offset): Remove.
16089         (add_virtual_operand): Remove special handling of SFTs.
16090         (add_call_clobber_ops): Likewise.
16091         (add_call_read_ops): Likewise.
16092         (get_asm_expr_operands): Likewise.
16093         (get_modify_stmt_operands): Likewise.
16094         (get_expr_operands): Likewise.
16095         (add_to_addressable_set): Likewise.
16096         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
16097         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
16098         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
16099         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
16100         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
16101         (tree_node_structure): Likewise.
16102         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
16103         handling of SFTs.
16104         (find_what_p_points_to): Likewise.
16105
16106 2008-05-08  Sa Liu  <saliu@de.ibm.com>
16107
16108         * config/spu/spu.md: Fixed subti3 pattern.
16109
16110 2008-05-08  Richard Guenther  <rguenther@suse.de>
16111
16112         PR middle-end/36154
16113         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
16114         sure to create a representative for trailing arrays for PTA.
16115
16116 2008-05-08  Richard Guenther  <rguenther@suse.de>
16117
16118         PR middle-end/36172
16119         * fold-const.c (operand_equal_p): Two objects which types
16120         differ in pointerness are not equal.
16121
16122 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
16123
16124         * calls.c (compute_argument_block_size): Add argument tree fndecl.
16125         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
16126         (emit_library_call_value_1): Add new variable fndecl initialized by
16127         NULL_TREE. It should be the decl type of orgfun, but this information
16128         seems not to be available here, so it uses the default calling abi.
16129         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
16130         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
16131         by TARGET_RETURN_IN_MEMORY.
16132         * config/i386/i386-interix.h: Likewise.
16133         * config/i386/i386.h: Likewise.
16134         * config/i386/i386elf.h: Likewise.
16135         * config/i386/ptx4-i.h: Likewise.
16136         * config/i386/sol2-10.h: Likewise.
16137         * config/i386/sysv4.h: Likewise.
16138         * config/i386/vx-common.h: Likewise.
16139         * config/cris/cris.h: Removed #if 0 clause.
16140         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
16141         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
16142         argument.
16143         (ix86_sol10_return_in_memory): Likewise.
16144         (ix86_i386elf_return_in_memory): New.
16145         (ix86_i386interix_return_in_memory): New.
16146         * config/mt/mt-protos.h (mt_return_in_memory): New.
16147         * config/mt/mt.c: Likewise.
16148         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
16149         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
16150         * config/bfin/bfin.h: Likewise.
16151         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
16152         argument.
16153         * config/bfin/bfin.c: Likewise.
16154         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
16155         * config/alpha/unicosmk.h: Likewise.
16156         * config/i386/cygming.h: Likewise.
16157         * config/iq2000/iq2000.h: Likewise.
16158         * config/mips/mips.h: Likewise.
16159         * config/mn10300/mn10300.h: Likewise.
16160         * config/rs6000/rs6000.h: Likewise.
16161         * config/score/score.h: Likewise.
16162         * config/spu/spu.h: Likewise.
16163         * config/v850/v850.h: Likewise.
16164         * defaults.h: Likewise.
16165         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
16166         * expr.c (emit_block_move): Adjust use of
16167         OUTGOING_REG_PARM_STACK_SPACE.
16168         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
16169         OUTGOING_REG_PARM_STACK_SPACE.
16170         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
16171
16172 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
16173
16174         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
16175         on OMP_RETURN for OMP_FOR.
16176
16177         PR debug/35896
16178         * dwarf2out.c (dw_expand_expr, common_check): Removed.
16179         (fortran_common): New function.
16180         (gen_variable_die): Call fortran_common instead of common_check,
16181         adjust for it returning tree instead of rtx.  Formatting.
16182
16183 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
16184
16185         PR rtl/7335
16186         PR rtl/33826
16187         * see.c (see_copy_insn): Copy new pure const attributes for new call.
16188         * c-decl.c (merge_decls): Ditto.
16189         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
16190         to RTL_CONST_OR_PURE_CALL_P.
16191         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
16192         Initialized DECL_LOOPING_CONST_PURE.
16193         (process_call_operands): Set tree_side_effects properly.
16194         * tree.h (TREE_READONLY_DECL_P): Removed.
16195         (DECL_IS_PURE): Renamed to DECL_PURE_P.
16196         (DECL_LOOPING_OR_CONST_P): New macro.
16197         (struct tree_function_decl): Added looping_const_or_pure_p.
16198         (ECF_*) Renumbered.
16199         (ECF_LOOPING_OR_CONST_P): New macro.
16200         * rtlanal.c (pure_const_p): Removed.
16201         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
16202         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
16203         to RTL_CONST_CALL_P.
16204         * ipa-pure-const.c (pure_const_state_e): Added looping field.
16205         (check_decl, check_tree, check_call, scan_function): Initialize
16206         looping.
16207         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
16208         (static_execute): Set looping true for recursive functions.
16209         Undo setting state to IPA_NEITHER for recursive functions.
16210         * cse.c (cse_insn):
16211         * ifcvt.c (noce_can_store_speculate_p): Changed
16212         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
16213         RTL_CONST_OR_PURE_CALL_P.
16214         * dse.c (scan_insn): Ditto.
16215         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
16216         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
16217         RTL_CONST_OR_PURE_CALL_P.
16218         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
16219         pure_call_p to RTL_CONST_CALL_P.
16220         * gimplify.c (gimplify_call_expr): Clear side effects for
16221         non-looping pure and constant calls.
16222         * calls.c (emit_call_1): Set rtl flags from ecf flags.
16223         (flags_from_decl_or_type): Set ecf flags from decl flags.
16224         (initialize_argument_information): Turn off
16225         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
16226         Change const to pure if callee_copies is true rather than just
16227         turning off const.
16228         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
16229         way of marking pure calls.
16230         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
16231         Remove hack that was supposed to fix pr7335 and remove old
16232         way of marking pure calls.
16233         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
16234         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
16235         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
16236         RTL_CONST_OR_PURE_CALL_P.
16237         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
16238         * loop-invariant.c (find_exits, find_invariant_bb): Changed
16239         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
16240         * sched-deps.c (schedule_analyze): Ditto.
16241         * rtl.h (struct rtx_def): Use call field, unchanging field, and
16242         return_val field of calls to represent pure and const function info.
16243         (CONST_OR_PURE_CALL_P): Deleted macro.
16244         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
16245         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
16246         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
16247         TREE_READONLY.
16248         * tree-optimize.c (execute_fixup_cfg): Added test for
16249         ECF_LOOPING_CONST_OR_PURE.
16250         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
16251         DECL_PURE_P.
16252         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
16253         effects for looping pure or const calls.
16254         (verify_gimple_expr): Added verification code.
16255         * config/alpha/alpha.c (alpha_legitimize_address,
16256         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
16257         RTL_CONST_CALL_P.
16258         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
16259         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
16260         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
16261         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
16262         RTL_CONST_OR_PURE_CALL_P.
16263         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
16264         and const calls to be deleted.
16265
16266 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
16267
16268         PR target/35714
16269         * config/i386/mmx.md (mmx_subv2sf3): New expander.
16270         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
16271         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
16272         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
16273         to handle nonimmediate operands.
16274         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
16275         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
16276         to handle nonimmediate operands.
16277         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
16278         (mmx_pmulhrwv4hi3): New expander.  Use
16279         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16280         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
16281         (sse2_umulv1siv1di3): New expander.  Use
16282         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16283         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
16284         (mmx_eq<mode>3): New expander.  Use
16285         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16286         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
16287         (mmx_uavgv8qi3): New expander.  Use
16288         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16289         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
16290         (mmx_uavgv4hi3): New expander.  Use
16291         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16292
16293         * config/i386/sse.md
16294         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
16295         to handle nonimmediate operands.
16296         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
16297         to handle nonimmediate operands.
16298         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
16299         to handle nonimmediate operands.
16300         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
16301         to handle nonimmediate operands.
16302         (sse2_unpckhpd_exp): New expander.  Use
16303         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16304         (sse2_unpcklpd_exp): New expander.  Use
16305         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16306         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
16307         to handle nonimmediate operands.
16308         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
16309         to handle nonimmediate operands.
16310         (*sse2_<plusminus_insn><mode>3): Rename from
16311         sse2_<plusminus_insn><mode>3 insn pattern.
16312         (sse2_<plusminus_insn><mode>3): New expander.  Use
16313         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16314         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
16315         (sse2_umulv2siv2di3): New expander.  Use
16316         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16317         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
16318         (sse4_1_mulv2siv2di3): New expander.  Use
16319         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16320         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
16321         (sse2_pmaddwd): New expander.  Use
16322         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16323         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
16324         (sse2_eq<mode>3): New expander.  Use
16325         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16326         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
16327         (sse4_1_eqv2di3): New expander.  Use
16328         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16329         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
16330         (sse2_uavgv16qi3): New expander.  Use
16331         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16332         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
16333         (sse2_uavgv16qi3): New expander.  Use
16334         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16335         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
16336         (sse2_uavgv8hi3): New expander.  Use
16337         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16338         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
16339         (ssse3_pmulhrswv8hi3): New expander.  Use
16340         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16341         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
16342         (ssse3_pmulhrswv4hi3): New expander.  Use
16343         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16344
16345         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
16346         (<sse>_vmmul<mode>3): Ditto.
16347         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
16348         (divv2df3): Ditto.
16349         (ssse3_pmaddubsw128): Use register_operand for operand 1.
16350         (ssse3_pmaddubsw): Ditto.
16351
16352         * config/i386/i386.c (struct_builtin_description)
16353         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
16354         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
16355         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
16356         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
16357         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
16358         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
16359         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
16360         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
16361         (ix86_fixup_binary_operands): Assert that src1
16362         and src2 must have the same mode when swapped.
16363         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
16364         and ix86_binary_operator_ok.  Do not force operands in registers
16365         when optimizing.
16366
16367 2008-05-07  Jan Hubicka  <jh@suse.cz>
16368
16369         * cgraph.c (dump_cgraph_node): Update.
16370         * cgraph.h (cgraph_local_info): Break out inline summary.
16371         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
16372         hook.
16373         * ipa-inline (inline_summary): New accestor function.
16374         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
16375         cgraph_decide_inlining, compute_inline_parameters): Update.
16376         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
16377
16378 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
16379
16380         Cleanup ColdFire scheduling support and add V4 pipeline model.
16381
16382         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
16383         (define_attr cpu): Add cfv4 value.
16384         (define_attr type, define_attr type1): Merge into a single 'type'
16385         attribute.  Update all uses.
16386         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
16387         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
16388         Update all uses.
16389         (define_attr opx_mem, define_attr opy_mem): Remove.
16390         (define_attr op_mem): Clean up, update comment.
16391         (define_attr size): Use specific values instead of general int.
16392         (define_attr guess, define_attr split): Remove.  Update all uses.
16393         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
16394         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
16395         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
16396         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
16397         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
16398         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
16399         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
16400         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
16401         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
16402         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
16403         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
16404         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
16405         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
16406         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
16407         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
16408         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
16409         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
16410         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
16411         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
16412         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
16413         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
16414         Update or set attributes.
16415         (stack_tie): New fake instruction.
16416
16417         * config/m68k/m68k.h (TUNE_CFV4): New macro.
16418         (m68k_sched_attr_size): Update declaration.
16419         (m68k_sched_attr_type2): Remove.
16420         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
16421         Declare new bypass predicates.
16422
16423         * config/m68k/m68k.c (m68k_sched_issue_rate,
16424         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
16425         implementations.
16426         (TARGET_SCHED_ISSUE_RATE,
16427         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
16428         (override_options): Handle scheduling for ColdFire V4 core.
16429         (m68k_expand_prologue): Emit stack_tie.
16430         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
16431         'OP_TYPE_FPN'.  Update all uses.
16432         (sched_guess_p): Remove.
16433         (sched_address_type): Handle symbolic addresses.
16434         (sched_get_operand): New static function.
16435         (sched_operand_type): Merge into sched_attr_op_type.
16436         (sched_attr_op_type): Handle FP registers, handle quick constants,
16437         update.
16438         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
16439         (m68k_sched_attr_size): Update.  Move logic to ...
16440         (sched_get_attr_size_int): New static function.
16441         (sched_get_opxy_mem_type): New static function.
16442         (m68k_sched_attr_op_mem): Update.
16443         (m68k_sched_attr_type2): Remove.
16444         (sched_cfv4_bypass_data): New static variable.
16445         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
16446         (m68k_sched_issue_rate): Implement scheduler hook.
16447         (struct _sched_ib: enabled_p): New field.
16448         (m68k_sched_variable_issue): Update.  Handle V4.
16449         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
16450         sched_dump_class_func_t, sched_dump_split_class,
16451         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
16452         sched_dump_dfa_class, m68k_sched_dump): Remove.
16453         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
16454         hook.
16455         (m68k_sched_init_global): Remove statisctics dumping, introduce
16456         sanity check that all instructions have pipeline reservations.  Handle
16457         ColdFire V4 core.
16458         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
16459         Handle ColdFire V4 core.
16460         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
16461         New static functions.
16462         (m68k_sched_address_bypass_p): New bypass predicate.
16463         (sched_get_indexed_address_scale): New static function.
16464         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
16465
16466         * cf.md: Update comments.
16467         (define_attr type2): Remove.  Use 'type' attribute instead.
16468         Update all uses.
16469         (cf_ib): Rename to cfv123_ib.  Update all uses.
16470         (cf_oep): Rename to cfv123_oep.  Update all uses.
16471         (cf_chr): Rename to cfv123_chr.  Update all uses.
16472         (cf_mem): Rename to cfv123_mem.  Update all uses.
16473         (cf_mac): Move to more appropriate place.
16474         (cfv123_guess): New automaton and cpu_unit.
16475         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
16476         Update uses of 'size' attribute.  Handle before reload scheduling.
16477         (cfv123_guess): New dummy reservation for unhandled instructions.
16478         (cfv4_*): Pipeline description of ColdFire V4 core.
16479         (ignore): New reservation to handle 'ignore' type.
16480
16481 2008-05-07  Ian Lance Taylor  <iant@google.com>
16482
16483         PR middle-end/36013
16484         * gimplify.c (find_single_pointer_decl_1): Don't look through
16485         indirections.
16486         (find_single_pointer_decl): Adjust comments.
16487
16488 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
16489
16490         PR middle-end/36137
16491         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
16492         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
16493
16494         PR middle-end/36106
16495         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
16496         integral type rather than floating point, then VIEW_CONVERT_EXPR
16497         to the floating point type.
16498
16499 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
16500
16501         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
16502         TFmode op0 to register.
16503
16504 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
16505
16506         * c-decl.c (grokdeclarator): Comment typo.
16507
16508 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
16509
16510         * tree-flow.h: Remove prototype for computed_goto_p.
16511         * tree-cfg.c (computed_goto_p): Make static.
16512
16513 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
16514
16515         PR target/35657
16516         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
16517         (contains_aligned_value_p): This.  Handle _Decimal128.
16518         (ix86_function_arg_boundary): Only align _Decimal128 to its
16519         natural boundary and handle it properly.
16520
16521 2008-05-06  Martin Jambor  <mjambor@suse.cz>
16522
16523         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
16524         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
16525         (ipcp_method_set_orig_node): Removed.
16526         (ipcp_cval_get_cvalue_type): Removed.
16527         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
16528         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
16529         (ipcp_cval_set_cvalue_type): Removed.
16530         (ipcp_cval_get_cvalue): Removed.
16531         (ipcp_cval_set_cvalue): Removed.
16532         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
16533         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
16534         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
16535         (ipcp_cval_meet): Renamed to ipa_lattice_meet
16536         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
16537         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
16538         (ipcp_get_ith_lattice): Changed parameters.
16539         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
16540         (ipcp_lattice_from_jfunc): Changed parameters.
16541         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
16542         (ipcp_method_cval_print): Added temporary variable info.
16543         (ipcp_redirect): Removed already unused local variable caller.
16544         (ipcp_redirect): New temporary variable orig_callee_info
16545         (ipcp_redirect): Removed newly unused local variable callee.
16546         (ipcp_redirect): Removed (a bit confusing) local variable type.
16547         (ipcp_insert_stage): Added local variable info.
16548         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
16549         renamed too
16550         (ipcp_formal_create): Removed.
16551         (ipcp_method_cval_set): Removed.
16552         (ipcp_propagate_stage): Renamed lattice variables.
16553         (ipcp_method_cval_set_cvalue_type): Removed.
16554         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
16555         (ipcp_print_all_lattices): Changed printed strings to refer to
16556         lattices rather than cvals.
16557         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
16558         (ipcp_propagate_const): Changed formal parameters.
16559         (build_const_val): Changed formal parameters.
16560         (ipcp_insert_stage): Removed useless variable cvalue
16561         (build_const_val): Changed formal parameters.
16562         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
16563         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
16564         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
16565         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
16566         (ipcp_print_func_profile_counts): Changed string from "method" to
16567         "function"
16568         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
16569         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
16570         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
16571         (ipcp_structures_print): Renamed to ipcp_print_all_structures
16572         (ipcp_profile_print): Renamed to ipcp_print_profile_data
16573         (ipcp_lat_is_const): Changed parameters and made inline.
16574         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
16575         (ipcp_redirect): Renamed to ipcp_need_redirect_p
16576         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
16577         the predicate condition directly
16578         (ipcp_propagate_stage): Added local variable args. Removed local
16579         variable callee.  (Both are mere code simplifications.)
16580         (ipcp_method_dont_insert_const): Renamed to
16581         ipcp_node_not_modifiable_p.
16582         (ipcp_node_not_modifiable_p): Made inline.
16583         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
16584         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
16585         (ipcp_print_all_lattices): Removed variable cvalue
16586         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
16587         Updated comments.
16588
16589 2008-05-06  Olivier Hainque  <hainque@adacore.com>
16590
16591         * tree-sra.c (try_instantiate_multiple_fields): Early return
16592         if field has POINTER_TYPE.
16593
16594 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
16595
16596         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
16597         by using 'q' specifier for instruction.
16598         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
16599
16600 2008-05-06  Anatoly Sokolov <aesok@post.ru>
16601
16602         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
16603         Change mode of zero_extract from QImode to HImode.
16604         (sign bit tests peepholes): (Ditto.).
16605
16606 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
16607
16608         * config/i386/mmx.md: Remove double backslashes from asm templates.
16609         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
16610         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
16611         to handle nonimmediate operands.
16612         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
16613         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
16614         to handle nonimmediate operands.
16615         (*mmx_<code>v2sf3_finite): New insn pattern.
16616         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
16617         (mmx_<code>v2sf3): New expander.  Use
16618         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16619         (mmx_<plusminus_insn><mode>3): New expander.  Use
16620         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16621         (*mmx_<plusminus_insn><mode>3): New insn pattern.
16622         (mmx_add<mode>3): Removed.
16623         (mmx_ssadd<mode>3): Ditto.
16624         (mmx_usadd<mode>3): Ditto.
16625         (mmx_sub<mode>3): Ditto.
16626         (mmx_sssub<mode>3): Ditto.
16627         (mmx_ussub<mode>3): Ditto.
16628         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
16629         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
16630         to handle nonimmediate operands.
16631         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
16632         insn pattern.
16633         (mmx_smulv4hi3_highpart): New expander.  Use
16634         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16635         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
16636         insn pattern.
16637         (mmx_umulv4hi3_highpart): New expander.  Use
16638         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16639         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
16640         (mmx_<code>v4hi3): New expander.  Use
16641         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16642         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
16643         (mmx_<code>v8qi3): New expander.  Use
16644         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16645         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
16646         (mmx_<code><mode>3): New expander.  Use
16647         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16648
16649 2008-05-05  Jan Hubicka  <jh@suse.cz>
16650
16651         PR tree-optimization/36118
16652         * passes.c (pass_init_dump_file): Fix dump header.
16653
16654 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16655
16656         PR middle-end/36141
16657         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
16658         VCE for function decls.
16659
16660 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
16661
16662         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
16663
16664 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
16665
16666         * config/i386/i386.md (sat_plusminus): New.
16667         (plusminus_insn): Likewise.
16668         (plusminus_mnemonic): Likewise.
16669         (addsub): Removed.
16670         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
16671         (*<addsub><mode>3_cc_overflow): Renamed to ...
16672         (*<plusminus_insn><mode>3_cc_overflow): This.
16673         (*<addsub>si3_zext_cc_overflow): Renamed to ...
16674         (*<plusminus_insn>si3_zext_cc_overflow): This.
16675
16676         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
16677         (<plusminus_insn><mode>3): This.
16678         (*<addsub><mode>3): Renamed to ...
16679         (*<plusminus_insn><mode>3): This.
16680         (<sse>_vm<addsub><mode>3): Renamed to ...
16681         (<sse>_vm<plusminus_insn><mode>3): This.
16682         (sse3_h<addsub>v4sf3): Renamed to ...
16683         (sse3_h<plusminus_insn>v4sf3): This.
16684         (sse3_h<addsub>v2df3): Renamed to ...
16685         (sse3_h<plusminus_insn>v2df3): This.
16686         (<plusminus_insn><mode>3): New.
16687         (*<plusminus_insn><mode>3): Likewise.
16688         (sse2_<plusminus_insn><mode>3): Likewise.
16689         (add<mode>): Removed.
16690         (*add<mode>3): Likewise.
16691         (sse2_ssadd<mode>3): Likewise.
16692         (sse2_usadd<mode>3): Likewise.
16693         (sub<mode>3): Likewise.
16694         (*sub<mode>3): Likewise.
16695         (sse2_sssub<mode>3): Likewise.
16696         (sse2_ussub<mode>3): Likewise.
16697
16698 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
16699
16700         * gthr-single.h: Add in required interface elements as per gthr.h.
16701         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
16702         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
16703         Generalize UNUSED macro.
16704         (__gthread_once): Add.
16705         (__gthread_key_create): Add.
16706         (__gthread_key_delete): Add.
16707         (__gthread_getspecific): Add.
16708         (__gthread_setspecific): Add.
16709
16710 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
16711
16712         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
16713         the same size types for the indirect reference on the rhs, then
16714         create a VCE.
16715
16716 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
16717
16718         * config/i386/i386.md
16719         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
16720         one insn template instead of template series.
16721         (*xordi_1_rex64): Ditto.
16722         (*xordi_2_rex64): Ditto.
16723
16724 2008-05-05  Ira Rosen  <irar@il.ibm.com>
16725
16726         PR tree-optimization/36119
16727         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
16728         in case of SLP.
16729
16730 2008-06-04  Jan Hubicka  <jh@suse.cz>
16731
16732         tree-optimization/36100
16733         * tree-pass.h (pass_O0_always_inline): Declare.
16734         * ipa-inline.c (inline_transform): Remove dead code.
16735         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
16736         pass_O0_always_inline): New.
16737         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
16738
16739 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
16740
16741         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
16742         mnemonic in this_param move for TARGET_64BIT.
16743
16744 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
16745
16746         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
16747         (*strmovsi_rex_1): Ditto.
16748         (*strsetsi_1): Ditto.
16749         (*strsetsi_rex_1): Ditto.
16750
16751         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
16752         adddicc expanders using SWI mode iterator.
16753
16754 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
16755
16756         PR target/36121
16757         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
16758         argument handling.
16759
16760 2008-05-04  David S. Miller  <davem@davemloft.net>
16761
16762         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
16763         (sparc*-*-linux*): Use linux.h in tm_file.
16764         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
16765         compiler defaulting to 32-bit.
16766         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
16767         no longer needed.
16768         * config/sparc/linux.h: Remove definitions now obtained
16769         properly from linux.h
16770         * config/sparc/linux64.h: Likewise.
16771         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
16772         don't want this setting for 32-bit builds in a biarch compiler.
16773         * doc/install.texi: Add sparc-linux to list of targets
16774         supporting --enable-targets=all.
16775
16776 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
16777
16778         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
16779
16780 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
16781
16782         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
16783         after V4SI_FTYPE_V8HI.
16784         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
16785         case V4SI_FTYPE_V2DF.
16786
16787 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
16788
16789         * doc/invoke.texi (max-flow-memory-locations): Removed.
16790         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
16791
16792 2008-05-03  Richard Guenther  <rguenther@suse.de>
16793
16794         PR middle-end/34973
16795         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
16796
16797 2008-05-02  David S. Miller  <davem@davemloft.net>
16798
16799         * config.gcc (need_64bit_hwint): Document libcpp dependency.
16800
16801 2008-05-02  Simon Baldwin <simonb@google.com>
16802
16803         PR bootstrap/36108
16804         * c-common.h (warn_array_subscript_range): Removed.
16805         * c-common.c (warn_array_subscript_range): Ditto.
16806         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
16807         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
16808
16809 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
16810
16811         * config/i386/i386.c (ix86_special_builtin_type): New.
16812         (bdesc_special_args): Likewise.
16813         (ix86_expand_special_args_builtin): Likewise.
16814         (ix86_init_mmx_sse_builtins): Updated.
16815         (ix86_expand_builtin): Updated.
16816         (ix86_expand_store_builtin): Removed.
16817         (ix86_expand_unop_builtin): Likewise.
16818
16819         * config/i386/mm3dnow.h (__v2sf): Moved to ...
16820         * config/i386/mmintrin.h (__v2sf): Here.
16821
16822         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
16823         const __v2sf.
16824         (_mm_loadl_pi): Likewise.
16825         (_mm_storeh_pi): Replace __v2si with __v2sf.
16826         (_mm_storel_pi): Likewise.
16827
16828         * doc/extend.texi: Correct __builtin_ia32_loadhps,
16829         __builtin_ia32_loadlps, __builtin_ia32_storehps,
16830         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
16831         __builtin_ia32_loadlpd.
16832
16833 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
16834
16835         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
16836         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
16837         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
16838         (ix86_init_mmx_sse_builtins): Updated.
16839         (ix86_expand_args_builtin): Likewise.
16840         (ix86_expand_builtin): Likewise.
16841         (ix86_expand_unop1_builtin): Renamed to ...
16842         (ix86_expand_unop_vec_merge_builtin): This.
16843
16844 2008-05-01  Jan Hubicka  <jh@suse.cz>
16845
16846         PR bootstrap/36100
16847         * ipa-inline.c (inline_generate_summary): Make static.
16848         (inline_transform): Do not call inlining at -O0; make static.
16849         * passes.c (execute_todo): Add sanity check.
16850         (execute_one_ipa_transform_pass): Execute proper flags.
16851
16852 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
16853
16854         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
16855         (DECL_NONADDRESSABLE_P): Likewise.
16856         * alias.c (record_component_aliases): Fix comment.
16857
16858 2008-05-01  Simon Baldwin <simonb@google.com>
16859
16860         * c-common.h (warn_array_subscript_range): New function.
16861         * c-common.c (warn_array_subscript_range): Ditto.
16862         * tree-vrp.c (check_array_ref): Corrected code to agree with
16863         comment, ignoring only arrays of size 0 or size 1.
16864         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
16865
16866 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
16867
16868         * config/i386/i386.c (ix86_builtin_type): Replace
16869         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
16870         (bdesc_args): Updated.
16871         (ix86_init_mmx_sse_builtins): Likewise.
16872         (ix86_expand_args_builtin): Likewise.
16873
16874         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
16875         with __v1di.
16876
16877         * doc/extend.texi: Correct __builtin_ia32_palignr.
16878
16879 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
16880
16881         PR target/36095
16882         * config/i386/i386.c (bdesc_crc32): Removed.
16883         (ix86_expand_crc32): Likewise.
16884         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
16885         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
16886         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
16887         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
16888         UINT_FTYPE_UINT_UCHAR.
16889         (bdesc_args): Updated. Add crc32 builtins.
16890         (ix86_init_mmx_sse_builtins): Updated.
16891         (ix86_expand_args_builtin): Updated to support subreg.
16892
16893         * doc/extend.texi: Correct __builtin_ia32_crc32di.
16894
16895 2008-05-01  Jan Hubicka  <jh@suse.cz>
16896
16897         * tree-pass.h (opt_pass): Add IPA_PASS.
16898         (varpool_node, cgraph_node): Forward declare.
16899         (ipa_opt_pass): Define.
16900         (pass_ipa_inline): Turn into ipa_opt_pass.
16901         (pass_apply_inline): Remove.
16902         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
16903         (apply_inline): Turn into ....
16904         (inline_transform): ... this one.
16905         (inline_generate_summary): New function.
16906         (pass_apply_inline): Remove.
16907         * function.h (ipa_opt_pass): Forward declare structure; typedef;
16908         vector.
16909         (struct function): Add ipa_transforms_to_apply.
16910         * passes.c (register_one_dump_file): Work on IPA_PASS.
16911         (init_optimization_passes): Remove pass_inline_parameters and
16912         pass_apply_inline.
16913         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
16914         (execute_one_pass) ... here; apply transforms when possible.
16915         (add_ipa_transform_pass, execute_ipa_summary_asses,
16916         execute_one_ipa_transform_pass): New.
16917         (execute_ipa_pass_list): Update for IPA_PASS type.
16918
16919 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
16920
16921         * config/i386/i386.c (ix86_builtin_type): Add
16922         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
16923         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
16924         (bdesc_args): Add SSE4a builtins.
16925         (ix86_init_mmx_sse_builtins): Updated.
16926         (ix86_expand_args_builtin): Likewise.
16927         (ix86_expand_builtin): Likewise.
16928
16929 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
16930
16931         * config/i386/i386.c (ix86_builtin_type): Add
16932         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
16933         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
16934         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
16935         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
16936         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
16937         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
16938         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
16939         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
16940         and DI_FTYPE_DI_DI_INT.
16941         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
16942         (ix86_init_mmx_sse_builtins): Updated.
16943         (ix86_expand_args_builtin): Likewise.
16944         (ix86_expand_builtin): Likewise.
16945         (ix86_expand_binop_imm_builtin): Removed.
16946
16947         * doc/extend.texi: Correct __builtin_ia32_palignr128.
16948
16949 2008-04-30  Richard Guenther  <rguenther@suse.de>
16950
16951         PR tree-optimization/32921
16952         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
16953
16954 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
16955
16956         * config/arm/arm.c (arm_unwind_emit): Use
16957         crtl->all_throwers_are_sibcalls instead of
16958         cfun->all_throwers_are_sibcalls.
16959         (arm_output_fn_unwind): Likewise.
16960         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
16961         instead of cfun->uses_pic_offset_table.
16962         (frv_expand_prologue): Likewise.
16963         (frv_frame_pointer_required): Likewise.
16964         (frv_expand_fdpic_call): Likewise.
16965         (frv_emit_movsi): Likewise.
16966         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
16967         cfun->returns_pcc_struct instead of
16968         current_function_returns_pcc_struct.
16969         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
16970         instead of cfun->calls_eh_return.
16971         (m32c_pushm_popm): Likewise.
16972         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
16973         "extern" declaration.
16974
16975 2008-04-30  Richard Guenther  <rguenther@suse.de>
16976
16977         PR tree-optimization/21636
16978         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
16979         constant address.
16980         (evaluate_stmt): Print the likely value.
16981         (ccp_visit_stmt): Avoid excessive vertical spacing.
16982
16983 2008-04-30  Rafael Espíndola  <espindola@google.com>
16984
16985         * builtins.c (fold_call_expr): Return realret.
16986         * tree-ssa-threadedge.c
16987         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
16988         __builtin_object_size.
16989
16990 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
16991
16992         * gcc.c (wrapper_string): New variable.
16993         (insert_wrapper): New function.
16994         (execute): New option -wrapper.
16995         * doc/invoke.texi (Overall Options): New driver option -wrapper.
16996
16997 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
16998
16999         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
17000         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
17001         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
17002         from...
17003         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
17004         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
17005         config/rs6000/e500crtres64gprctr.asm,
17006         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
17007         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
17008         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
17009         config/rs6000/e500crtsav64gprctr.asm,
17010         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
17011         config/rs6000/e500crtsavg64gprctr.asm: New files.
17012         * config/rs6000/t-ppccomm: Add build rules for new files.
17013         (LIB2FUNCS_STATIC_EXTRA): Add new files.
17014         * config/rs6000/t-netbsd: Add build rules for new files.
17015         (LIB2FUNCS_STATIC_EXTRA): New variable.
17016         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
17017         (CRTSAVRES_DEFAULT_SPEC): Likewise.
17018         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
17019
17020 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
17021
17022         * config/i386/i386.c (ix86_builtin_type): Add
17023         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
17024         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
17025         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
17026         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
17027         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
17028         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
17029         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
17030         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
17031         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
17032         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
17033         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
17034         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
17035         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
17036         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
17037         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
17038         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
17039         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
17040         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
17041         V1DI_FTYPE_V2SI_V2SI.
17042         (bdesc_2arg): Moved to ...
17043         (bdesc_args): Here.
17044         (ix86_init_mmx_sse_builtins): Updated.
17045         (ix86_expand_args_builtin): Updated.  Take a pointer
17046         to const struct builtin_description.  Handle comparison
17047         builtin functions.
17048         (ix86_expand_sse_compare): Take a new argument for swapping operands.
17049         (ix86_expand_builtin): Updated.
17050
17051         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
17052         (ssse3_pmaddubsw128): This.
17053         (ssse3_pmaddubswv4hi3): Renamed to ...
17054         (ssse3_pmaddubsw): This.
17055
17056         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
17057         (__builtin_ia32_packssdw128): Likewise.
17058         (__builtin_ia32_packuswb128): Likewise.
17059         (__builtin_ia32_pmaddubsw): Likewise.
17060         (__builtin_ia32_pmaddubsw128): Likewise.
17061
17062 2008-04-30  Richard Guenther  <rguenther@suse.de>
17063
17064         PR tree-optimization/14847
17065         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
17066         (recognize_bits_test): Use it.
17067         (recognize_single_bit_test): Likewise.
17068
17069 2008-04-30  Martin Jambor  <mjambor@suse.cz>
17070
17071         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
17072         instead of setting number of formal parameters to zero.
17073         (ipcp_init_stage): Do not set the number of actual parameters to zero
17074         either.
17075         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
17076         which are called with variable number of arguments.
17077         (ipcp_insert_stage): Explicitely skipping all nodes which are
17078         called with variable number of arguments.
17079         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
17080         number of parameters.
17081
17082         * ipa-prop.h (struct ipa_node_params): Added flag
17083         called_with_var_arguments
17084         (ipa_set_param_count): Added.  Changed sole setter to use it.
17085         (ipa_get_param_count): Added.  All readers of param_count
17086         converted to use it instead.
17087         (ipa_set_called_with_variable_arg): Added.
17088         (ipa_is_called_with_var_arguments): Added.
17089         (ipa_get_ith_param): Added.  All readers of param_decls converted
17090         to use it instead.
17091         (ipa_set_cs_argument_count): Added, sole writer to argument_count
17092         changed to use it.
17093         (ipa_get_cs_argument_count): Added, all readers of argument_count
17094         changed to cal it.
17095         (ipa_get_ith_jump_func): Added. Accessors of jump values changed
17096         to use it.
17097
17098         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
17099         (struct ipcp_lattice): Renamed cval_type to type
17100         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
17101
17102         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
17103         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
17104         (ipcp_insert_stage): Changed the type of variable cvalue to tree
17105         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
17106         (build_const_val): Changed the type of parameter cvalue to tree
17107         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
17108         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
17109
17110         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
17111         constant
17112
17113         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
17114         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
17115         (ipa_add_method): Renamed to ipa_push_func_to_list
17116         (ipa_remove_method): Renamed to ipa_pop_func_from_list
17117         (ipa_callsite_param_count): Removed.
17118         (ipa_callsite_param_count_set): Removed.
17119         (ipa_callsite_param): Removed.
17120         (ipa_callsite_callee): Removed.
17121         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
17122         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
17123         (ipa_method_formal_count): Removed.
17124         (ipa_method_formal_count_set): Removed.
17125         (ipa_method_get_tree): Removed.
17126         (ipa_method_tree_map_create): Removed.
17127         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
17128         (ipa_create_param_decls_array): Creates the array itself
17129         (ipa_create_param_decls_array): Temporary variable info instead of
17130         a few dereferences.
17131         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
17132         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
17133         (get_type): Removed.
17134         (ipa_jf_get_info_type): Removed.
17135         (ipa_node_create): Renamed to ipa_create_node_params
17136         (ipa_free): Renamed to ipa_free_all_node_params
17137         (ipa_nodes_create): Renamed to ipa_create_all_node_params
17138         (ipa_edges_create): Renamed to ipa_create_all_edge_args
17139         (ipa_edges_free): Renamed to ipa_free_all_edge_args
17140         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
17141         (ipa_free_all_node_params): Deallocation to jump_functions moved to
17142         ipa_free_all_edge_args
17143         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
17144         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
17145         (ipa_create_methodlist_node): Removed.
17146         (ipa_methodlist_method): Removed.
17147         (ipa_methodlist_method_set): Removed.
17148         (ipa_methodlist_next_method): Removed.
17149         (ipa_methodlist_next_method_set): Removed.
17150         (ipa_method_is_modified): Removed.
17151         (ipa_method_modify_create): Removed.
17152         (ipa_method_modify_init): Temporary variable info instead of a few
17153         dereferences.
17154         (ipa_detect_param_modifications): Temporary variable info instead of
17155         a few dereferences.
17156         (ipa_compute_jump_functions): Temporary variable info instead of
17157         a few dereferences.
17158         (ipa_method_modify_set): Removed.
17159         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
17160         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
17161         than craph_node as the first parameter.
17162         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
17163         (ipa_method_modify_init): Removed.
17164         (ipa_compute_jump_functions): Added a temp variable instead of
17165         repeatadly dereferencing the cgraph_edge.aux pointer
17166         (ipa_callsite_param_set_type): Removed.
17167         (ipa_compute_jump_functions): i renamed to index and moved to
17168         an inner block
17169         (ipa_callsite_param_set_info_type_formal): Removed.
17170         (ipa_callsite_param_set_info_type): Removed.
17171         (ipa_callsite_param_map_create): Removed.
17172         (ipa_callsite_tree): Removed.
17173         (ipa_callsite_caller): Removed.
17174         (ipa_pop_func_from_list): return_method removed to return_func
17175
17176         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
17177         prefixed all values with IPA_. Changed all users.
17178         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
17179         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
17180         and FORMAL_IPATYPE IPA_PASS_THROUGH.
17181         (union parameter_info): Renamed to jump_func_value.
17182         (union jump_func_value): Renamed value to constant
17183         (struct ipa_jump_func): Renamed info_type to value
17184         (struct ipa_node): Renamed to ipa_node_params
17185         (struct ipa_node_params): Renamed ipa_arg_num to param_count
17186         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
17187         (struct ipa_node_params): Renamed ipa_mod to modified_flags
17188         (struct ipa_edge): Renamed to ipa_edge_args
17189         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
17190         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
17191         (struct ipa_methodlist): Renamed to ipa_func_list
17192         (struct ipa_func_list): method_p renamed to node, next_method
17193         renamed to next
17194         (ipa_methodlist_p): Removed, switched all users to struct pointer
17195         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
17196
17197 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
17198
17199         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
17200         (rs6000_emit_epilogue): Use backchain to restore only when we
17201         have a large frame.  Make use of frame pointer to restore if we
17202         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
17203
17204 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
17205
17206         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
17207         Add mode to zero_extract.
17208         (sign bit tests peepholes): (Ditto.).
17209
17210 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
17211
17212         * config/i386/i386.c (ix86_builtins): Replace Prescott New
17213         Instructions in comments with SSE3.
17214         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
17215         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
17216         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
17217         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
17218         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
17219         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
17220         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
17221         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
17222         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
17223         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
17224         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
17225         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
17226         (bdesc_sse_args): Renamed to ...
17227         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
17228         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
17229         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
17230         IX86_BUILTIN_FABSQ.
17231         (bdesc_1arg): Moved to ...
17232         (bdesc_args): Here.
17233         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
17234         Instructions in comments with SSE3.
17235         (ix86_expand_sse_operands_builtin): Renamed to ...
17236         (ix86_expand_args_builtin): This.  Updated.
17237         (ix86_expand_unop1_builtin): Update comments.
17238         (ix86_expand_builtin): Updated.
17239
17240 2008-04-29  Richard Guenther  <rguenther@suse.de>
17241
17242         PR tree-optimization/36078
17243         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
17244         Update virtual SSA form after cleaning up the CFG.
17245
17246 2008-04-29  Richard Guenther  <rguenther@suse.de>
17247
17248         PR middle-end/15255
17249         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
17250
17251 2008-04-29  Richard Guenther  <rguenther@suse.de>
17252
17253         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
17254         (compute_may_aliases): Do not call finalize_ref_all_pointers.
17255         (compute_flow_insensitive_aliasing): Do not treat
17256         PTR_IS_REF_ALL pointers special.
17257         (get_smt_for): Likewise.
17258         (may_alias_p): Re-structure.
17259         (is_escape_site): A ref-all pointer conversion is not an escape site.
17260         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
17261         PTR_IS_REF_ALL pointers special.
17262         * tree-ssa-structalias.h (struct alias_info): Remove
17263         ref_all_symbol_mem_tag field.
17264         (PTR_IS_REF_ALL): Remove.
17265
17266 2008-04-29  Richard Guenther  <rguenther@suse.de>
17267
17268         PR middle-end/36077
17269         * fold-const.c (extract_muldiv_1): In combining division constants
17270         make sure to never overflow.
17271
17272 2008-04-29  Nick Clifton  <nickc@redhat.com>
17273
17274         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
17275
17276 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17277
17278         PR bootstrap/35169
17279         * optc-gen.awk: Work around HP-UX/IA awk bug.
17280
17281 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
17282
17283         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
17284         2008-04-25 commit.
17285
17286 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
17287
17288         PR target/36073
17289         * config/i386/i386.md
17290         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
17291         Change operand 1 predicate to nonimmediate_operand.
17292
17293 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
17294
17295         PR debug/36060
17296         * dwarf2out.c (struct die_struct): Mark as chain_circular through
17297         die_sub field.
17298         * gengtype.c (walk_type, write_func_for_structure): Handle
17299         chain_circular.
17300         * doc/gty.texi: Document chain_circular.
17301
17302 2008-04-28  Richard Guenther  <rguenther@suse.de>
17303
17304         PR tree-optimization/36066
17305         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
17306         SCEV and loop.
17307
17308 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
17309
17310         PR target/36064
17311         * config/i386/i386.md
17312         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
17313         Use match_scratch instead of match_operand for operands 3 and 4.
17314
17315 2008-04-27  Richard Guenther  <rguenther@suse.de>
17316
17317         PR tree-optimization/18754
17318         PR tree-optimization/34223
17319         * tree-pass.h (pass_complete_unrolli): Declare.
17320         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
17321         loop size before and after unconditionally of UL_NO_GROWTH in effect.
17322         Rewrite loop into loop closed SSA form if it is not already.
17323         (tree_unroll_loops_completely): Re-structure to iterate over
17324         innermost loops with intermediate CFG cleanups.
17325         Unroll outermost loops only if requested or the code does not grow
17326         doing so.
17327         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
17328         loops are available.
17329         (tree_vectorize): Instead do so here.
17330         (tree_complete_unroll): Also unroll outermost loops.
17331         (tree_complete_unroll_inner): New function.
17332         (gate_tree_complete_unroll_inner): Likewise.
17333         (pass_complete_unrolli): New pass.
17334         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
17335         uses outside of the loop.
17336         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
17337         form if it is available.
17338         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
17339         * passes.c (init_optimization_passes): Schedule complete inner
17340         loop unrolling pass before the first CCP pass after final inlining.
17341
17342 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
17343
17344         * targhooks.h (default_emutls_var_fields,
17345         default_emutls_var_init): Declare.
17346         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
17347         * target.h (struct gcc_target): Add struct emutls member.
17348         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
17349         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
17350         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
17351         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
17352         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
17353         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
17354         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
17355         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
17356         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
17357         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
17358         emit debug information.
17359         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
17360         * varasm.c: Include targhooks.h.
17361         (emutls_object_section, emutls_tmpl_section): New.
17362         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
17363         (EMUTLS_SEPARATOR): New.
17364         (prefix_name): New.
17365         (get_emutls_object_name): New.
17366         (default_emutls_var_fields): New, broken out of ...
17367         (get_emutls_object_type): ... here.  Adjust to use target hooks.
17368         (get_emutls_init_templ_addr): Adjust to use target hooks.
17369         (emutls_decl): Adjust to use target hooks.
17370         (emutls_finish): Likewise.
17371         (default_emutls_var_init): New, broken out of ...
17372         (assemble_variable): ... here.  Adjust to use target hooks.
17373         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
17374         SECCAT_EMUTLS_TMPL.
17375         * c-common.c (handle_section_attribute): Prevent overriding
17376         sections for emulated tls with special sections.
17377         * config/i386/i386.c (x86_64_elf_select_section): Add
17378         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
17379         (x86_64_elf_unique_section): Likewise.
17380         * config/vxworks.c: Include tree.h.
17381         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
17382         (vxworks_override_options): Set TLS scheme.
17383         * doc/tm.texi (Emulated TLS): New node.
17384
17385 2008-04-26  Simon Baldwin <simonb@google.com>
17386
17387         PR c/35652
17388         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
17389         with propagated string constants.
17390
17391 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
17392
17393         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
17394         constraint for operand 2 when operand 0 is memory operand.
17395         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
17396         operand 0 is memory operand.
17397         (fix_trunc<mode>_i387_with_temp): Ditto.
17398         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
17399         operand 2 when operand 1 is memory operand.
17400         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
17401         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
17402         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
17403         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
17404         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
17405         operands 2,3 and 4 when operand 1 is memory operand.
17406         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
17407         is memory operand.
17408         (fistdi2_floor_with_temp): Ditto.
17409         (fist<mode>2_floor_with_temp): Ditto.
17410         (fistdi2_ceil_with_temp): Ditto.
17411         (fist<mode>2_ceil_with_temp): Ditto.
17412         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
17413
17414 2008-04-26  David Daney  <ddaney@avtrex.com>
17415
17416         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
17417         unspec_volitile.
17418         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
17419         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
17420         UNSPEC_UPDATE_GOT_VERSION): Renumber.
17421         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
17422         (compare_and_swap_12): New insn.
17423         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
17424         * config/mips/mips.c (mips_force_binary): New function.
17425         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
17426         (mips_expand_compare_and_swap_12): New function.
17427         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
17428
17429 2008-04-25  Jan Hubicka  <jh@suse.cz>
17430
17431         PR testsuite/35843
17432         * cfgexpand.c (pass_expand): Turn into RTL pass.
17433         * passes.c (execute_one_pass): Do pass typechecking after execution.
17434         * tree-pass.h (pass_expand): Turn into RTL pass.
17435
17436         * function.h (struct rtl_data): Move here fields
17437         accesses_prior_frames, calls_eh_return, saves_all_registers,
17438         has_nonlocal_goto, has_asm_statement, is_thunk,
17439         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
17440         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
17441         arg_pointer_save_area_init from struct function; turn into bool.
17442         (struct function): Move
17443         calls_eh_return, saves_all_registers, has_nonlocal_goto,
17444         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
17445         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
17446         tail_call_emit, arg_pointer_save_area_init
17447         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
17448         (current_function_returns_struct, current_function_returns_pcc_struct,
17449         current_function_calls_setjmp, current_function_calls_alloca,
17450         current_function_accesses_prior_frames,
17451         current_function_calls_eh_return, current_function_is_thunk,
17452         current_function_stdarg, current_function_profile,
17453         current_function_limit_stack, current_function_uses_pic_offset_table,
17454         current_function_uses_const_pool, current_function_has_nonlocal_label,
17455         current_function_saves_all_registers,
17456         current_function_has_nonlocal_goto,
17457         current_function_has_asm_statement): Remove accesor macros.
17458         * ra-conflict.c (global_conflicts): Update.
17459         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
17460         (suitable_for_tail_call_opt_p): Update.
17461         * builtins.c (expand_builtin_return_addr): Update.
17462         (expand_builtin_setjmp_setup): Update.
17463         (expand_builtin_nonlocal_goto): Update.
17464         * final.c (final_start_function): Update.
17465         (profile_function): Update.
17466         (leaf_function_p): Update.
17467         (only_leaf_regs_used): Update.
17468         * df-scan.c (df_get_exit_block_use_set): Update.
17469         * dojump.c (clear_pending_stack_adjust): Update.
17470         * tree-stdarg.c (gate_optimize_stdarg): Update.
17471         * gimple-low.c (lower_function_body): Update.
17472         * global.c (compute_regsets): Update.
17473         (global_alloc): Update.
17474         * dwarf2out.c (dwarf2out_begin_prologue): Update.
17475         * expr.c (expand_assignment): Update.
17476         * dse.c (dse_step0): Update.
17477         (dse_step1): Update.
17478         * c-decl.c (store_parm_decls): Update.
17479         * local-alloc.c (combine_regs): Update.
17480         (find_free_reg): Update.
17481         * function.c (assign_parms_augmented_arg_list): Update.
17482         (assign_parm_find_data_types): Update.
17483         (assign_parms): Update.
17484         (allocate_struct_function): Update.
17485         (expand_function_start): Update.
17486         (expand_function_end): Update.
17487         (get_arg_pointer_save_area): Update.
17488         (thread_prologue_and_epilogue_insns): Update.
17489         (rest_of_match_asm_constraints): Update.
17490         * stor-layout.c (variable_size): Update.
17491         * gcse.c (gcse_main): Update.
17492         (bypass_jumps): Update.
17493         * gimplify.c (gimplify_function_tree): Update.
17494         * calls.c (emit_call_1): Update.
17495         (expand_call): Update.
17496         * bt-load.c (compute_defs_uses_and_gen): Update.
17497         * except.c (sjlj_assign_call_site_values): Update.
17498         (sjlj_emit_function_enter): Update.
17499         (can_throw_external): Update.
17500         (set_nothrow_function_flags): Update.
17501         (expand_builtin_unwind_init): Update.
17502         (expand_eh_return): Update.
17503         (convert_to_eh_region_ranges): Update.
17504         (output_function_exception_table): Update.
17505         * emit-rtl.c (gen_tmp_stack_mem): Update.
17506         * cfgexpand.c (expand_used_vars): Update.
17507         (tree_expand_cfg): Update.
17508         * cfgcleanup.c (rest_of_handle_jump): Update.
17509         * explow.c (allocate_dynamic_stack_space): Update.
17510         * varasm.c (assemble_start_function): Update.
17511         (force_const_mem): Update.
17512         (mark_constant_pool): Update.
17513         * tree-optimize.c (tree_rest_of_compilation): Update.
17514         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
17515         * tree-cfg.c (notice_special_calls): Update.
17516         (is_ctrl_altering_stmt): Update.
17517         (tree_can_make_abnormal_goto): Update.
17518         (tree_purge_dead_abnormal_call_edges): Update.
17519         * config/alpha/predicates.md: Update.
17520         * config/alpha/alpha.c (alpha_sa_mask): Update.
17521         (alpha_sa_size): Update.
17522         (alpha_does_function_need_gp): Update.
17523         (alpha_expand_prologue): Update.
17524         (alpha_start_function): Update.
17525         (alpha_output_function_end_prologue): Update.
17526         (alpha_expand_epilogue): Update.
17527         * config/frv/frv.c (frv_stack_info): Update.
17528         (frv_expand_epilogue): Update.
17529         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
17530         (s390_register_info): Update.
17531         (s390_frame_info): Update.
17532         (s390_init_frame_layout): Update.
17533         (s390_can_eliminate): Update.
17534         (save_gprs): Update.
17535         * config/spu/spu.c (spu_split_immediate): Update.
17536         (need_to_save_reg): Update.
17537         (spu_expand_prologue): Update.
17538         (spu_expand_epilogue): Update.
17539         * config/sparc/sparc.md: Update.
17540         * config/sparc/sparc.c (eligible_for_return_delay): Update.
17541         (sparc_tls_got): Update.
17542         (legitimize_pic_address): Update.
17543         (sparc_emit_call_insn): Update.
17544         (sparc_expand_prologue): Update.
17545         (output_return): Update.
17546         (print_operand): Update.
17547         (sparc_function_ok_for_sibcall): Update.
17548         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
17549         * config/m32r/m32r.md: Update.
17550         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
17551         (m32r_compute_frame_size): Update.
17552         (m32r_expand_prologue): Update.
17553         (m32r_expand_epilogue): Update.
17554         (m32r_legitimize_pic_address): Update.
17555         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
17556         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
17557         * config/i386/i386.c (ix86_frame_pointer_required): Update.
17558         (gen_push): Update.
17559         (ix86_save_reg): Update.
17560         (ix86_compute_frame_layout): Update.
17561         (ix86_expand_prologue): Update.
17562         (ix86_expand_epilogue): Update.
17563         * config/sh/sh.c (output_stack_adjust): Update.
17564         (calc_live_regs): Update.
17565         (sh5_schedule_saves): Update.
17566         (sh_expand_prologue): Update.
17567         (sh_expand_epilogue): Update.
17568         (sh_setup_incoming_varargs): Update.
17569         (sh_allocate_initial_value): Update.
17570         (sh_get_pr_initial_val): Update.
17571         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
17572         * config/sh/sh.md (label:): Update.
17573         * config/avr/avr.c (out_movhi_mr_r): Update.
17574         * config/crx/crx.h (enum): Update.
17575         * config/xtensa/xtensa.h (along): Update.
17576         * config/stormy16/stormy16.c Update.
17577         (xstormy16_compute_stack_layout): Update.
17578         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
17579         (fr30_expand_prologue): Update.
17580         * config/cris/cris.c (cris_conditional_register_usage): Update.
17581         (cris_reg_saved_in_regsave_area): Update.
17582         (cris_initial_frame_pointer_offset): Update.
17583         (cris_simple_epilogue): Update.
17584         (cris_expand_prologue): Update.
17585         (cris_expand_epilogue): Update.
17586         (cris_expand_pic_call_address): Update.
17587         (cris_asm_output_symbol_ref): Update.
17588         (cris_asm_output_label_ref): Update.
17589         * config/cris/cris.md Update.
17590         * config/iq2000/iq2000.c (compute_frame_size): Update.
17591         (iq2000_expand_epilogue): Update.
17592         * config/mt/mt.h (save_direction): Update.
17593         * config/mn10300/mn10300.c (mn10300_function_value): Update.
17594         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
17595         (ia64_secondary_reload_class): Update.
17596         * config/m68k/m68k.c (m68k_save_reg): Update.
17597         (m68k_expand_prologue): Update.
17598         (m68k_expand_epilogue): Update.
17599         (legitimize_pic_address): Update.
17600         * config/rs6000/rs6000.c (rs6000_got_register): Update.
17601         (first_reg_to_save): Update.
17602         (first_altivec_reg_to_save): Update.
17603         (compute_vrsave_mask): Update.
17604         (compute_save_world_info): Update.
17605         (rs6000_stack_info): Update.
17606         (spe_func_has_64bit_regs_p): Update.
17607         (rs6000_ra_ever_killed): Update.
17608         (rs6000_emit_eh_reg_restore): Update.
17609         (rs6000_emit_allocate_stack): Update.
17610         (rs6000_emit_prologue): Update.
17611         (rs6000_emit_epilogue): Update.
17612         (rs6000_output_function_epilogue): Update.
17613         (output_profile_hook): Update.
17614         (rs6000_elf_declare_function_name): Update.
17615         * config/rs6000/rs6000.h (rs6000_args): Update.
17616         * config/rs6000/rs6000.md: Update.
17617         * config/mcore/mcore.c (mcore_expand_prolog): Update.
17618         * config/arc/arc.c (arc_output_function_epilogue): Update.
17619         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
17620         * config/darwin.c (machopic_function_base_name): Update.
17621         * config/score/score3.c (score3_compute_frame_size): Update.
17622         (rpush): Update.
17623         (rpop): Update.
17624         (score3_epilogue): Update.
17625         * config/score/score7.c (score7_compute_frame_size): Update.
17626         (score7_prologue): Update.
17627         (score7_epilogue): Update.
17628         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
17629         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
17630         * config/arm/arm.c (use_return_insn): Update.
17631         (require_pic_register): Update.
17632         (arm_load_pic_register): Update.
17633         (arm_compute_save_reg0_reg12_mask): Update.
17634         (arm_compute_save_reg_mask): Update.
17635         (thumb1_compute_save_reg_mask): Update.
17636         (output_return_instruction): Update.
17637         (arm_output_function_prologue): Update.
17638         (arm_output_epilogue): Update.
17639         (arm_get_frame_offsets): Update.
17640         (arm_expand_prologue): Update.
17641         (thumb_pushpop): Update.
17642         (thumb_exit): Update.
17643         (thumb1_expand_prologue): Update.
17644         (thumb1_expand_epilogue): Update.
17645         (arm_unwind_emit): Update.
17646         (arm_output_fn_unwind): Update.
17647         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
17648         * config/arm/arm.md: Update.
17649         * config/pa/pa.md: Update.
17650         * config/pa/pa.c (legitimize_pic_address): Update.
17651         (compute_frame_size): Update.
17652         (hppa_expand_prologue): Update.
17653         (hppa_expand_epilogue): Update.
17654         (borx_reg_operand): Update.
17655         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
17656         (HARD_REGNO_RENAME_OK): Update.
17657         * config/mips/mips.c (mips_global_pointer): Update.
17658         (mips_save_reg_p): Update.
17659         (mips_compute_frame_info): Update.
17660         (mips_frame_pointer_required): Update.
17661         (mips_expand_prologue): Update.
17662         (mips_expand_epilogue): Update.
17663         (mips_can_use_return_insn): Update.
17664         (mips_reorg_process_insns): Update.
17665         * config/v850/v850.c (compute_register_save_size): Update.
17666         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
17667         * config/mmix/mmix.c (along): Update.
17668         (mmix_expand_epilogue): Update.
17669         * config/bfin/bfin.c (legitimize_pic_address): Update.
17670         (must_save_p): Update.
17671         (stack_frame_needed_p): Update.
17672         (add_to_reg): Update.
17673         (bfin_expand_prologue): Update.
17674         * stmt.c (expand_asm_operands): Update.
17675         * reload1.c (reload): Update.
17676         (init_elim_table): Update.
17677
17678 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
17679
17680         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
17681
17682 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
17683
17684         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
17685         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
17686         (mov<mode>): Removed.
17687         (*movv4sf_internal): Likewise.
17688         (*movv2df_internal): Likewise.
17689
17690 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
17691
17692         * config.gcc (crx-*-elf): Remove deprecation.
17693
17694 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
17695
17696         * config/i386/cygming-crtend.c (register_frame_ctor): Register
17697         __gcc_deregister_frame with atexit.
17698         (deregister_frame_dtor): Remove.
17699
17700 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
17701             Nathan Sidwell  <nathan@codesourcery.com>
17702
17703         * config/rs6000/rs6000.opt (mspe): Remove Var property.
17704         (misel): Likewise.
17705         * config/rs6000/rs6000.h (rs6000_spe): Declare.
17706         (rs6000_isel): Likewise.
17707         * config/rs6000/rs6000.c (rs6000_spe): New variable.
17708         (rs6000_isel): New variable.
17709         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
17710
17711 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
17712
17713         PR c++/35758
17714         * c-common.c (handle_vector_size_attribute): Call
17715         lang_hooks.types.reconstruct_complex_type instead of
17716         reconstruct_complex_type.
17717         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
17718         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
17719         * langhooks.h (struct lang_hooks_for_types): Add
17720         reconstruct_complex_type hook.
17721         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
17722         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
17723
17724 2008-04-24  Richard Guenther  <rguenther@suse.de>
17725
17726         * c-common.h (check_builtin_function_arguments): Declare.
17727         * c-common.c (validate_nargs): New function.
17728         (check_builtin_function_arguments): Likewise.
17729         * c-typeck.c (build_function_call): Call
17730         check_builtin_function_arguments.
17731         * builtins.c (fold_builtin_classify): Remove error reporting code.
17732         (fold_builtin_unordered_cmp): Likewise.
17733         (fold_builtin_1): Likewise.
17734         (fold_builtin_n): Likewise.
17735
17736 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
17737
17738         PR tree-optimization/36008
17739         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
17740         the original op1, rather than delta by step.
17741
17742 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
17743             Sebastian Pop  <sebastian.pop@amd.com>
17744
17745         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
17746         eliminate_local_variables_stmt, eliminate_local_variables,
17747         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
17748         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
17749         of code delimited by two edges in the CFG.
17750         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
17751         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
17752         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate
17753         the case of parallelisation of reductions.
17754         (expr_invariant_in_region_p): New.
17755
17756         * tree-flow.h (gather_blocks_in_sese_region): Declared.
17757         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
17758
17759 2008-04-24  Ira Rosen  <irar@il.ibm.com>
17760             Richard Guenther  <rguenther@suse.de>
17761
17762         PR tree-optimization/36034
17763         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
17764         incapable of dealing with loads with gaps.
17765
17766 2008-04-24  Rafael Espíndola  <espindola@google.com>
17767
17768         * tree-flow.h (vrp_evaluate_conditional): Change signature.
17769         * tree-ssa-propagate.c (fold_predicate_in): Update call to
17770         vrp_evaluate_conditional.
17771         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
17772         (vrp_evaluate_conditional): Split the cond argument.
17773         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
17774         (simplify_stmt_for_jump_threading): Update call to
17775         vrp_evaluate_conditional.
17776
17777 2008-04-24  Ira Rosen  <irar@il.ibm.com>
17778
17779         PR tree-optimization/35982
17780         * tree-vect-analyze.c (vect_check_interleaving): Check that the
17781         interleaved data-refs are of the same type.
17782
17783 2008-04-24  Danny Smith  <dannysmith@users.net>
17784
17785         * c-format.c (check_format_info_main): Use strncmp rather than a
17786         magic prefix to handle multichar length specs.
17787         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
17788         Don't prefix "I64" and "I32" with '\0'.
17789
17790 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
17791
17792         PR target/36015
17793         * config/i386/i386.c (init_cumulative_args): Don't pass anything
17794         in registers for -m32 only if stdarg_p (fntype).
17795
17796 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
17797
17798         PR rtl-optimization/36006
17799         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
17800         temp to op0 in order to avoid invalid rtx sharing.
17801
17802 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
17803
17804         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
17805         check TREE_INVARIANT.
17806         * tree-gimple.c (is_gimple_address): New.
17807         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
17808         * tree-gimple.h (is_gimple_address): New.
17809         * tree.h (decl_address_invariant_p): New.
17810         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
17811         (build_string): Likewise.
17812         (decl_address_invariant_p): New, from is_gimple_invariant_address.
17813         (tree_invariant_p_1): Likewise.
17814         (save_expr): Use it.
17815         (tree_invariant_p): New.
17816         (skip_simple_arithmetic): Use it.
17817         (stabilize_reference_1): Use it.
17818         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
17819         simplify.
17820         (build1_stat): Drop code to compute TREE_INVARIANT.
17821         (build2_stat): Drop code to compute TREE_INVARIANT.
17822         (build3_stat): Drop code to compute TREE_INVARIANT.
17823         (build4_stat): Drop code to compute TREE_INVARIANT.
17824         (build5_stat): Drop code to compute TREE_INVARIANT.
17825         (build7_stat): Drop code to compute TREE_INVARIANT.
17826         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
17827         * tree.h (struct tree_base): Remove invariant_flag.
17828         (TREE_INVARIANT): Remove.
17829         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
17830         (fold_builtin_expect): Check TREE_CONSTANT.
17831         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
17832         * c-tree.h (c_expr_to_decl): Drop third parameter.
17833         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
17834         (build_c_cast): Don't set TREE_INVARIANT.
17835         (pop_init_level): Don't set TREE_INVARIANT.
17836         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
17837         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
17838         TREE_CONSTANT.
17839         (gimplify_init_constructor): Don't set TREE_INVARIANT.
17840         (gimplify_addr_expr): Adjust comment.
17841         * tree-mudflap.c (mf_build_string):
17842         * print-tree.c (print_node): Don't print TREE_INVARIANT.
17843         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
17844         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
17845         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
17846         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
17847         * langhooks.h (struct lang_hooks): Drop third parameter from
17848         expr_to_decl.
17849
17850 2008-04-23  Richard Guenther  <rguenther@suse.de>
17851
17852         PR tree-optimization/27799
17853         PR tree-optimization/32921
17854         PR tree-optimization/32624
17855         * tree-ssa-structalias.c (merge_smts_into): Only merge the
17856         SMTs aliases and the tag itself into the solution.
17857         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
17858         merge the points-to solution back into the SMT aliases.
17859         (may_alias_p): Use alias_set_subset_of instead of
17860         aliases_conflict_p.  A pointer which points to
17861         memory with alias set zero may access any variable.
17862
17863 2008-04-23  Richard Guenther  <rguenther@suse.de>
17864
17865         * alias.c (alias_set_subset_of): Correctly handle asking
17866         if zero is a subset of an alias set with zero child.
17867         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
17868         (compute_flow_insensitive_aliasing): Correctly walk all
17869         pointers.  Do not unnecessarily union sets.
17870
17871 2008-04-23  Richard Guenther  <rguenther@suse.de>
17872
17873         PR middle-end/36021
17874         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
17875
17876 2008-04-22  Tomas Bily  <tbily@suse.cz>
17877
17878         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
17879         unreachable case.
17880         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
17881         NON_LVALUE_EXPR.
17882         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
17883         * tree-ssa-structalias.c (get_constraint_for): Likewise.
17884         * tree-inline.c (estimate_num_insns_1): Likewise.
17885         * varasm.c (const_hash_1, compare_constant, copy_constant)
17886         (compute_reloc_for_constant, output_addressed_constants): Likewise.
17887         * emit-rtl.c (component_ref_for_mem_expr)
17888         (set_mem_attributes_minus_bitpos): Likewise.
17889         * expr.c (highest_pow2_factor, expand_expr_real_1, )
17890         (is_aligning_offset): Likewise.
17891         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
17892         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
17893         * dojump.c (do_jump): Likewise.
17894         * builtins.c (get_pointer_alignment, get_memory_rtx)
17895         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
17896         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
17897
17898 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
17899
17900         PR rtl-optimization/36017
17901         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
17902         expanding the library call.
17903
17904 2008-04-22  Ian Lance Taylor  <iant@google.com>
17905
17906         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
17907         than size_in_bytes.
17908
17909 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
17910
17911         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
17912         of LR/CTR moves for Power6.
17913
17914 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
17915
17916         PR middle-end/36003
17917         * passes.c (init_optimization_passes): Remove
17918         pass_fast_rtl_byte_dce.
17919
17920 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
17921
17922         PR target/29096
17923         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
17924         builtin functions to generate faster code.
17925         (_mm_cvtpu16_ps): Ditto.
17926         (_mm_cvtpi32x2_ps): Ditto.
17927
17928 2008-04-22  Nick Clifton  <nickc@redhat.com>
17929
17930         * common.opt (ftree-loop-distribution): Add Optimization
17931         attribute.
17932
17933         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
17934         (frv_expand_builtin_va_start): Likewise.
17935
17936         * config/arm/arm.c (thumb_find_work_register): Fix location of
17937         argument register count.
17938
17939 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
17940
17941         Support scheduling for ColdFire V1 and V3 microarchitecture.
17942         Improve scheduling of multiplication instructions.
17943
17944         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
17945         (mac): New instruction attribute.
17946         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
17947         (m68k_sched_mac): New variable.
17948         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
17949         Handle cfv1 and cfv3.
17950         (max_insn_size): New static variable.
17951         (struct _sched_ib): New type.
17952         (sched_ib): New static variable.
17953         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
17954         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
17955         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
17956         Update.
17957         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
17958         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
17959         new variables.  Update.
17960         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
17961         Add modeling of cfv3 instruction buffer.  Update.
17962         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
17963         * config/m68k/m68k.h (TUNE_CFV3): New macro.
17964         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
17965         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
17966         a particular reservation applies to.
17967         (type2): Reorganize attribute values.  Rename alu to alu_reg,
17968         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
17969         to mul_l and mul_w.
17970         (cf_ib_*): Simplify description of instruction buffer.
17971         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
17972         (cf_mem): Split into cf_mem1 and cf_mem2.
17973         (cf_v2_move_??): Rename to cfv12_alu_??.
17974         (cf_v2_move_l_??): Rename to cfv12_omove_??.
17975         (cf_v2_mul_??): Remove reservations.
17976         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
17977         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
17978         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
17979         appropriate place.
17980         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
17981         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
17982         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
17983         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
17984         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
17985         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
17986         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
17987         expansions of the above reservations for instructions of sizes
17988         1, 2 and 3 words.
17989
17990 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
17991
17992         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
17993
17994 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
17995
17996         * coverage.c: Include tree-pass.h.
17997         (coverage_counter_alloc): Print da_file_name to the dump file.
17998
17999 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
18000
18001         * sbitmap.c (sbitmap_range_empty_p): New function.
18002         * sbitmap.h (sbitmap_range_empty_p): New function.
18003         * bitmap.h: Now includes obstack.h.
18004
18005 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
18006             Kenneth Zadeck  <zadeck@naturalbridge.com>
18007
18008         * dbgcnt.def (ra_byte_scan): Added.
18009         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
18010         when the last hit happens for a counter.
18011         * timevar.def (TV_DF_BYTE_LR): New variable.
18012         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
18013         * passes.c (pass_fast_rtl_byte_dce): New pass.
18014         * fwprop.c (update_df): Added mode to call df_ref_create.
18015         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
18016         DF_REF_EXTRACT_OFFSET.
18017         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
18018         DF_BYTE_LR_OUT, df_byte_lr): New macro.
18019         (df_mm): New enum.
18020         (df_ref_extract): Added mode field.
18021         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
18022         DF_REF_EXTRACT_OFFSET.
18023         (DF_REF_EXTRACT_MODE): New macro.
18024         (df_byte_lr_bb_info): New structure.
18025         (df_print_byte_regset, df_compute_accessed_bytes,
18026         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
18027         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
18028         df_byte_lr_simulate_uses,
18029         df_byte_lr_simulate_artificial_refs_at_top,
18030         df_byte_lr_simulate_artificial_refs_at_end,
18031         df_compute_accessed_bytes): New function.
18032         (df_ref_create): Add parameter.
18033         (df_byte_lr_get_bb_info): New inline function.
18034         * df-scan.c (df_ref_record, df_uses_record,
18035         df_ref_create_structure): Added mode parameter.
18036         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
18037         df_defs_record, df_uses_record, df_get_conditional_uses,
18038         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
18039         df_entry_block_defs_collect, df_exit_block_uses_collect):
18040         Added mode parameter to calls to df_ref_record, df_uses_record,
18041         df_ref_create_structure.
18042         (df_ref_equal_p, df_ref_compare): Added test for modes.
18043         (df_ref_create_structure): Added code to set mode.  Renamed
18044         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
18045         DF_REF_EXTRACT_OFFSET.
18046         * df-core.c (df_print_byte_regset): New function.
18047         * df-byte-scan.c: New file.
18048         * df-problems.c (df_rd_transfer_function): Removed unnecessary
18049         calls to BITMAP_FREE.
18050         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
18051         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
18052         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
18053         df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
18054         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
18055         df_byte_lr_local_compute, df_byte_lr_init,
18056         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
18057         df_byte_lr_transfer_function, df_byte_lr_free,
18058         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
18059         df_byte_lr_add_problem, df_byte_lr_simulate_defs,
18060         df_byte_lr_simulate_uses,
18061         df_byte_lr_simulate_artificial_refs_at_top,
18062         df_byte_lr_simulate_artificial_refs_at_end): New function.
18063         * dce.c (byte_dce_process_block): New function.
18064         (dce_process_block): au is now passed in rather than computed
18065         locally.  Changed loops that look at artificial defs to not look
18066         for conditional or partial ones, because there never are any.
18067         (fast_dce): Now is able to drive byte_dce_process_block or
18068         dce_process_block depending on the kind of dce being done.
18069         (rest_of_handle_fast_dce): Add parameter to fast_dce.
18070         (rest_of_handle_fast_byte_dce): New function.
18071         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
18072         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
18073
18074 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
18075
18076         PR fortran/35019
18077         * gcc.h: Added fortran options that take arguments to
18078         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
18079         macros.
18080
18081 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
18082
18083         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
18084         scalarization if on the LHS and not a full access.
18085
18086 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18087
18088         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
18089
18090 2008-04-18  Rafael Espíndola  <espindola@google.com>
18091
18092         * tree-vrp.c (find_case_label_index): Fix the binary search.
18093         (find_case_label_range): New.
18094         (vrp_visit_switch_stmt): Use find_case_label_range.
18095         (simplify_switch_using_ranges): Use find_case_label_range.
18096
18097 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
18098
18099         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
18100         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
18101
18102 2008-04-18  Tom Tromey  <tromey@redhat.com>
18103
18104         PR libcpp/15500:
18105         * doc/cpp.texi (Implementation-defined behavior): Mention
18106         -finput-charset.
18107
18108 2008-04-18  Ian Lance Taylor  <iant@google.com>
18109
18110         * fold-const.c (pointer_may_wrap_p): New static function.
18111         (fold_comparison): Add another test for pointer overflow.  Use
18112         pointer_may_wrap_p to disable some false positives.
18113
18114 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
18115
18116         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
18117         (fname_as_string): Match updated cpp_interpret_string prototype.
18118         (fix_string_type): Support char16_t* and char32_t*.
18119         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
18120         derivative) nodes.  Register as builtin if C++0x.
18121         (c_parse_error): Support CPP_CHAR{16,32}.
18122         * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
18123         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
18124         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
18125         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
18126         CTI_CHAR32_ARRAY_TYPE>: New elements.
18127         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
18128         char32_type_node, signed_char32_type_node, char16_array_type_node,
18129         char32_array_type_node): New defines.
18130         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
18131         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
18132         (lex_string): Support CPP_STRING{16,32}, match updated
18133         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
18134         (lex_charconst): Support CPP_CHAR{16,32}.
18135         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
18136         and CPP_STRING{16,32}.
18137
18138 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
18139
18140         PR bootstrap/35457
18141         * aclocal.m4: Regenerate.
18142         * configure: Regenerate.
18143
18144 2008-04-18  Jan Hubicka  <jh@suse.cz>
18145
18146         * except.c (dw2_size_of_call_site_table,
18147         sjlj_size_of_call_site_table): Use vector API for call_site_record.
18148
18149         * cgraphbuild.c (build_cgraph_edges): Update.
18150         * tree-pass.h: Update comment.
18151         * final.c (leaf_function_p): Update.
18152         (leaf_renumber_regs): Update.
18153         (rest_of_clean_state): Update.
18154         * omp-low.c (expand_omp_parallel): Update.
18155         * ipa-reference.c (analyze_function): Update.
18156         * reorg.c (find_end_label): Update.
18157         (optimize_skip): Update.
18158         (fill_simple_delay_slots): Update.
18159         (fill_simple_delay_slots): Update.
18160         (make_return_insns): Update.
18161         (dbr_schedule): Update.
18162         * gimple-low.c (record_vars_into): Update.
18163         * cfgbuild.c (make_edges): Update.
18164         * function.c (assign_stack_local): Update.
18165         (assign_parm_adjust_stack_rtl): Update.
18166         (locate_and_pad_parm): Update.
18167         (allocate_struct_function): Do not initialize stack_alignment_needed
18168         and preferred_stack_boundary here.
18169         (stack_protect_prologue): Update.
18170         (stack_protect_epilogue): Update.
18171         (expand_function_start): Initialize stack_alignment_needed,
18172         preferred_stack_boundary and max_jumptable_ents.
18173         (expand_function_end): Update.
18174         (free_after_compilation): Do not NULLify epilogue_delay_list.
18175         * function.h (struct rtl_data): Add stack_protect_guard,
18176         stack_alignment_needed,
18177         preferred_stack_boundary, epilogue_delay_list.
18178         (struct function): Remove value_histograms, stack_alignment_needed,
18179         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
18180         last_label_uid,
18181         unexpanded_var_list, stack_protect_guard.
18182         (current_function_epilogue_delay_list): Remove.
18183         * ipa-type-escape.c (analyze_function): Update.
18184         * gimplify.c (pop_gimplify_context): Update comment.
18185         * calls.c (expand_call): Update.
18186         (emit_library_call_value_1): Update.
18187         * except.c (set_nothrow_function_flags): Update.
18188         * cfgexpand.c (get_decl_align_unit): Update.
18189         (create_stack_guard): Update.
18190         (estimated_stack_frame_size): Update.
18191         (expand_used_vars): Update.
18192         (tree_expand_cfg): Free histogram earliers, init expansion variables.
18193         * explow.c (allocate_dynamic_stack_space): Update.
18194         * tree-ssa-live.c (remove_unused_locals): Update.
18195         * varasm.c (mark_constant_pool): Update.
18196         * tree-inline.c (remap_decls): Update.
18197         (initialize_cfun): Update.
18198         (declare_return_variable): Update.
18199         (inline_forbidden_p): Update.
18200         (expand_call_inline): Update.
18201         (declare_inline_vars): Update.
18202         (tree_function_versioning): Update.
18203         * tree-flow.h (value_histograms): New.
18204         (VALUE_HISTOGRAMS): New macro.
18205         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
18206         last_label_uid.
18207         * tree-cfg.c (set_bb_for_stmt): Update.
18208         (replace_by_duplicate_decl): Update.
18209         (move_block_to_fn): Update.
18210         (new_label_mapper): Update.
18211         (dump_function_to_file): Update.
18212         * ipa-struct-reorg.c (build_data_structure): Update.
18213         * cfgrtl.c (print_rtl_with_bb): Update.
18214         * reload1.c (reload): Update.
18215         (reload): Update.
18216         * config/i386/i386.c (setup_incoming_varargs_64,
18217         ix86_compute_frame_layout): Update.
18218         * config/arc/arc.c (arc_output_function_epilogue): Update.
18219
18220 2008-04-18  Marius Strobl <marius@FreeBSD.org>
18221
18222         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
18223         for FreeBSD as well.
18224         * gthr-posix95.h: Likewise.
18225
18226 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
18227
18228         PR rtl-optimization/35838
18229         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
18230         out the byte offset of the first subreg.
18231
18232 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
18233
18234         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
18235         to split_ti instead of three separate calls with single member arrays.
18236         (subti3 splitter): Ditto.
18237         (adddi3 splitter): Ditto with split_di.
18238         (subdi3 splitter): Ditto.
18239         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
18240         two separate calls with single member arrays.  Swap match_dup
18241         operands 1 and 2 to better fit into the array.
18242         (negdi2 splitter): Ditto with split_di.
18243         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
18244         two separate calls with single member arrays.  Swap match_dup operands
18245         6 and 7 to better fit into the array.
18246
18247 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
18248
18249         * config/i386/i386.c (sse_builtin_type): New.
18250         (bdesc_sse_args): Likewise.
18251         (bdesc_sse_3arg): Removed.
18252         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
18253         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
18254         IX86_BUILTIN_ROUNDPS.
18255         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
18256         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
18257         IX86_BUILTIN_ROUNDPS.
18258         (ix86_expand_sse_4_operands_builtin): Removed.
18259         (ix86_expand_sse_operands_builtin): New.
18260         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
18261         and CODE_FOR_sse4_1_roundps.
18262         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
18263         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
18264
18265 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
18266
18267         PR target/35907
18268         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
18269         regs before frame pop when needed.  If use_backchain_to_restore_sp
18270         then load backchain into a temp reg to restore vr and vrsave.  Add
18271         code to restore vr after frame pop if possible.
18272
18273 2008-04-17  Richard Guenther  <rguenther@suse.de>
18274
18275         * tree-vn.c (expressions_equal_p): Do not check type
18276         equality or compatibility before calling operand_equal_p.
18277         * fold-const.c (operand_equal_p): Check equivalence of
18278         integer constants before bailing out due to signedness or
18279         precision differences.
18280         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
18281         spurious differences in type qualification.  Ignore types
18282         for COMPONENT_REFs at all.
18283
18284 2008-04-17  Christian Bruel  <christian.bruel@st.com>
18285
18286         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
18287         msw_skip comparison.
18288
18289 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
18290
18291         PR c/35739
18292         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
18293         reg type.
18294
18295         PR tree-optimization/35899
18296         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
18297         rather than TREE_OPERAND.
18298
18299 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
18300
18301         PR target/35944
18302         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
18303         temporary registers.  Change operand predicate to general_operand.
18304         (remainderxf3): Ditto.
18305
18306 2008-04-16  Richard Guenther  <rguenther@suse.de>
18307
18308         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
18309         * tree-affine.c (aff_combination_expand): Look through some
18310         conversions.
18311
18312 2008-04-15  Doug Kwan  <dougkwan@google.com>
18313
18314         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
18315         for hex printing.
18316         * tree-pretty-print.c (dump_generic_node): Ditto.
18317         * final.c (output_addr_const): Ditto.
18318         * dwarf2out.c (output_cfi): Ditto.
18319         * c-pretty-print.c (pp_c_integer_constant): Ditto.
18320         * print-rtl.c (print_rtx): Ditto.
18321         * print-tree.c (print_node_brief, print_node): Ditto.
18322         * c-common.c (match_case_to_enum_1): Ditto.
18323         * sched-vis.c (print_value): Ditto.
18324         * config/i386/i386.c (print_operand): Cast to long unsigned int
18325         for hex printing.
18326
18327 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
18328         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
18329         MS Windows VirtualProtect function.
18330
18331 2008-04-15  Jan Hubicka  <jh@suse.cz>
18332
18333         * gengtype.c (write_root): Param_is argument is OK.
18334         * expr.c (expand_expr_real_1): Update call of get_exception_*.
18335         * function.h: Include varray.h
18336         (rtl_eh): New stucture based on except.c one.
18337         (call_site_record): New forward declaration and vector type.
18338         * calls.c (emit_call_1): Do not call
18339         note_current_region_may_contain_throw.
18340         * except.c (eh_status): Remove cur_region, try_region since they are
18341         unused.
18342         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
18343         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
18344         sjlj_fc, sjlj_exit_after to rth_eh in function.h.
18345         Remove call_site_data_used, call_site_data_size.
18346         Turn call_site_record into vector in function.h.
18347         (note_current_region_may_contain_throw): Remove.
18348         (get_exception_pointer, get_exception_filter): Do not take struct
18349         function argument; update.
18350         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
18351         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
18352         build_post_landing_pads, dw2_build_landing_pads,
18353         sjlj_assign_call_site_values, sjlj_mark_call_sites,
18354         sjlj_emit_function_enter, sjlj_emit_function_enter,
18355         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
18356         sjlj_build_landing_pads, finish_eh_generation,
18357         remove_exception_handler_label, remove_eh_handler,
18358         maybe_remove_eh_handler, add_reachable_handler,
18359         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
18360         add_action_record, collect_one_action_chain, add_call_site,
18361         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
18362         sjlj_output_call_site_table, output_function_exception_table,
18363         * except.h (note_current_region_may_contain_throw): Remove
18364         (get_exception_pointer, get_exception_filter): Do not take struct
18365         function argument.
18366         * Makefile.in (GTFILES): Put varargs before struct function.
18367
18368 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
18369
18370         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
18371         punt for STRING_CST.
18372         (get_constraint_for): Deal with STRING_CST here instead.
18373
18374 2008-04-15  Richard Guenther  <rguenther@suse.de>
18375
18376         * tree-ssa-propagate.c (substitute_and_fold): Substitute
18377         statements in a basic-block with a backward walk.  Do not
18378         substitute into dead statements but instead remove those.
18379
18380 2008-04-15  Richard Guenther  <rguenther@suse.de>
18381
18382         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
18383         to zero, thus disable creation of SFTs.
18384
18385 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
18386
18387         * tree-predcom.c (suitable_reference_p): Return false if the
18388         reference can throw.
18389
18390 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
18391
18392         PR c/35751
18393         * c-decl.c (finish_decl): If extern or static var has variable
18394         size, set TREE_TYPE (decl) to error_mark_node.
18395
18396 2008-04-15  Rafael Espíndola  <espindola@google.com>
18397
18398         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
18399         variable arg1.
18400
18401 2008-04-15  Richard Guenther  <rguenther@suse.de>
18402
18403         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
18404         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
18405         (visit_reference_op_load): Do walk vuse-vdef chains on
18406         vn_reference_lookup.
18407         (visit_reference_op_store): But do not here.
18408         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
18409         vn_reference_lookup.
18410         (vn_lookup_with_vuses): But do so here.
18411
18412 2008-04-14  Ian Lance Taylor  <iant@google.com>
18413
18414         * fold-const.c (fold_overflow_warning): Remove assertion.
18415
18416 2008-04-15  Ben Elliston  <bje@au.ibm.com>
18417
18418         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
18419         temp1 local variables.
18420
18421 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
18422
18423         PR target/35661
18424         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
18425         ".text.unlikely" section as executable.
18426
18427 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
18428
18429         * config/ia64/ia64.c (rtx_needs_barrier): Handle
18430         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
18431         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
18432         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
18433         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
18434         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
18435         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
18436
18437 2008-04-14  Ian Lance Taylor  <iant@google.com>
18438
18439         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
18440         * fold-const.c (fold_comparison): If appropriate, test
18441         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
18442         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
18443         reassociating a pointer type.
18444         * doc/invoke.texi (Optimize Options): Document that
18445         -fstrict-overflow applies to pointer wraparound.
18446
18447 2008-04-13  Jan Hubicka  <jh@suse.cz>
18448
18449         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
18450
18451 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
18452
18453         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
18454         we are going to "save the world".
18455
18456 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
18457
18458         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
18459         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
18460         operand 0 constraint, not "=".
18461
18462 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
18463
18464         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
18465
18466 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
18467
18468         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
18469         of size of positions_needed * CHAR_BIT.
18470
18471 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
18472
18473         PR middle-end/35897
18474         * dse.c (store_info): Change positions_needed to unsigned
18475         HOST_WIDE_INT.
18476         (lowpart_bitmask): New.
18477         (record_store): Cast to unsigned HOST_WIDE_INT for
18478         positions_needed.  Assert width <= size of positions_needed *
18479         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
18480         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
18481         lowpart_bitmask to set mask.
18482
18483 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
18484
18485         * config/bfin/constraints.md: New file.
18486         * config/bfin/bfin.md: Include it.
18487         (adddi3): Use satisfies_constraint functions instead of the old macros.
18488         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
18489         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
18490         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
18491         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
18492         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
18493         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
18494         EXTRA_CONSTRAINT): Delete.
18495         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
18496         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
18497         of the old macros.
18498         * config/bfin/bfin.c: Include "tm-constrs.h".
18499         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
18500         Use satisfies_constraint functions instead of the old macros.
18501         * doc/md.texi (Blackfin Constraints): Update file name reference.
18502
18503 2008-04-11  Richard Guenther  <rguenther@suse.de>
18504
18505         PR tree-optimization/35869
18506         * tree-vrp.c (execute_vrp): Move switch statement update after
18507         jump threading.  Schedule another cfg cleanup run.
18508
18509 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
18510
18511         PR c/35744
18512         * attribs.c (decl_attributes): Return early on errorneous node.
18513
18514 2008-04-10  Oleg Ryjkov  <olegr@google.com>
18515
18516         * tree.h (struct tree_base): Added a new flag default_def_flag.
18517         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
18518
18519 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
18520
18521         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
18522
18523 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18524
18525         PR target/35768
18526         * pa.md: Define mode iterator P.  Define mode attribute dwc.
18527         (dcacheflush): Update pattern to use iterator P and attribute dwc.
18528         (icacheflush): Likewise.
18529         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
18530         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
18531
18532 2008-04-11  Ben Elliston  <bje@au.ibm.com>
18533
18534         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
18535
18536 2008-04-10  Rafael Espíndola  <espindola@google.com>
18537
18538         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
18539         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
18540         (extract_range_from_expr): The same.
18541
18542 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
18543
18544         * config/mips/mips.md (GPR2): New mode iterator.
18545         (seq): Add comment.
18546         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
18547         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
18548         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
18549         Rewrite these to take two modes, the mode of comparison and the
18550         mode of the destination.
18551         * config/mips/mips.c (mips_expand_scc): Instead of having
18552         paradoxical subreg as destination, expand "narrowing" scc if mode
18553         of comparison is SI and target is requested in DI mode.
18554         (mips_emit_int_order_test): Update comment.  Make mode of
18555         comparison match CMP0 rather than TARGET.  When creating inverse
18556         target use mode of TARGET.
18557
18558 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
18559
18560         * gcov-dump.c (tag_summary): Only print summaries for the first
18561         GCOV_COUNTERS_SUMMABLE counters.
18562
18563 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
18564
18565         * config/i386/i386.md (absneg): New code iterator.
18566         (absnegprefix): New code attribute.
18567         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
18568         patterns using absneg code iterator.
18569         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
18570         using absneg code iterator.
18571         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
18572         *neg<mode>2 patterns using absneg code iterator.
18573         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
18574         *negextendsfdf2 patterns using absneg code iterator.
18575         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
18576         *negextendsfxf2 patterns using absneg code iterator.
18577         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
18578         *negextendsfdf2 patterns using absneg code iterator.
18579         * config/i386/sse.md (<code><mode>2): Macroize expander from
18580         abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
18581
18582 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
18583
18584         * config/s390/s390.h: Remove the remains of the recent search
18585         & replace action of current_function_outgoing_args_size.
18586
18587 2008-04-10  Ira Rosen  <irar@il.ibm.com>
18588
18589         PR tree-optimization/35821
18590         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
18591         NEW_STMT_LIST is not NULL.
18592
18593 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
18594
18595         PR libstdc++/35597
18596         * toplev.c (process_options): Remove -ffunction-sections debugging
18597         warning.
18598
18599 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
18600
18601         PR middle-end/PR28690
18602         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
18603         than gen_rtx_fmt_ee to perform more canonicalizations.
18604
18605 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18606
18607         PR driver/35665
18608         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
18609
18610 2008-04-09  Richard Guenther  <rguenther@suse.de>
18611
18612         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
18613         (dump_function_to_file): Dump function arguments with types.
18614
18615 2008-04-08  Richard Guenther  <rguenther@suse.de>
18616
18617         * fold-const.c (fold_widened_comparison): Do not allow
18618         sign-changes that change the result.
18619
18620 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
18621
18622         PR target/35839
18623         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
18624         kinds of indirect references.
18625
18626 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
18627
18628         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
18629         GNU Fortran language string.
18630
18631 2008-04-08  Rafael Espíndola  <espindola@google.com>
18632
18633         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
18634         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
18635         * tree.h (tree_call_nonnegative_warnv_p): New.
18636
18637 2008-04-08  Jan Hubicka  <jh@suse.cz>
18638
18639         * function.c (free_after_compilation): Clear out regno_reg_rtx
18640         pointer.
18641
18642 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
18643
18644         Revert
18645         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
18646
18647         PR middle-end/PR28690
18648         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
18649         same precedence as REG_POINTER and MEM_POINTER operands.
18650
18651 2008-04-08  Richard Guenther  <rguenther@suse.de>
18652
18653         PR middle-end/35834
18654         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
18655         for adding index to base.
18656
18657 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
18658
18659         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
18660         (MINGW_ENABLE_EXECUTE_STACK): New.
18661         (IN_LIBGCC2): For libgcc include windows.h file for
18662         function declarations.
18663
18664 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
18665
18666         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
18667         and tem2 if tem1 is not a REG or MULT.
18668
18669 2008-04-08  Jan Hubicka  <jh@suse.cz>
18670
18671         * function.h (incomming_args): Break out of struct function.
18672         (function_subsections): Break out of struct function.
18673         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
18674         return_rtx and hard_reg_initial_vals from struct function.
18675         Kill inl_max_label_num.
18676         (current_function_pops_args, current_function_args_info,
18677         current_function_args_size, current_function_args_size,
18678         current_function_pretend_args_size,
18679         current_function_outgoing_args_size,
18680         current_function_internal_arg_pointer, current_function_return_rtx):
18681         Kill compatibility accestor macros.
18682         * builtins.c (expand_builtin_apply_args_1): Update.
18683         (expand_builtin_next_arg): Update.
18684         * df-scan.c (df_get_call_refs): Update.
18685         * dbxout.c (dbxout_function_end): Update.
18686         * dwarf2out.c (dwarf2out_switch_text_section): Update.
18687         (output_line_info): Update.
18688         (secname_for_decl): Update.
18689         (dwarf2out_var_location): Update.
18690         * function.c (free_after_compilation): Update.
18691         (assign_parm_find_stack_rtl): Update.
18692         (assign_parms): Update.
18693         (expand_dummy_function_end): Update.
18694         (expand_function_end): Update.
18695         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
18696         (expand_call): Update.
18697         (emit_library_call_value_1): Update.
18698         (store_one_arg): Update.
18699         * varasm.c (initialize_cold_section_name): Update.
18700         (unlikely_text_section): Update.
18701         (unlikely_text_section_p): Update.
18702         (assemble_start_function): Update.
18703         (assemble_end_function): Update.
18704         (default_section_type_flags): Update.
18705         (switch_to_section): Update.
18706         * integrate.c (set_decl_abstract_flags): Update.
18707         (get_hard_reg_initial_val): Update.
18708         (has_hard_reg_initial_val): Update.
18709         (allocate_initial_values): Update.
18710         * resource.c (init_resource_info): Update.
18711         * config/alpha/alpha.c (NUM_ARGS): Update.
18712         (direct_return): Update.
18713         (alpha_va_start): Update.
18714         (alpha_sa_size): Update.
18715         (alpha_initial_elimination_offset): Update.
18716         (alpha_expand_prologue): Update.
18717         (alpha_start_function): Update.
18718         (alpha_expand_epilogue): Update.
18719         (unicosmk_initial_elimination_offset):
18720         * config/alpha/alpha.md (call expander): Update.
18721         * config/s390/s390.c (s390_register_info): Update.
18722         (s390_register_info): Update.
18723         (s390_frame_info): Update.
18724         (s390_initial_elimination_offset): Update.
18725         (s390_build_builtin_va_list): Update.
18726         (s390_va_start): Update.
18727         * config/spu/spu.c (direct_return): Update.
18728         (spu_expand_prologue): Update.
18729         (spu_initial_elimination_offset): Update.
18730         (spu_build_builtin_va_list): Update.
18731         (spu_va_start): Update.
18732         * config/sparc/sparc.c (sparc_init_modes): Update.
18733         (sparc_compute_frame_size): Update.
18734         (function_value): Update.
18735         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
18736         * config/i386/i386.md (return expander): Update.
18737         * config/i386/i386.c (ix86_va_start): Update.
18738         (ix86_can_use_return_insn_p): Update.
18739         (ix86_compute_frame_layout): Update.
18740         (ix86_expand_epilogue): Update.
18741         * config/sh/sh.c (output_stack_adjust): Update.
18742         (calc_live_regs): Update.
18743         (sh_expand_prologue): Update.
18744         (sh_builtin_saveregs): Update.
18745         (sh_va_start): Update.
18746         (initial_elimination_offset): Update.
18747         (sh_allocate_initial_value): Update.
18748         (sh_function_ok_for_sibcall): Update.
18749         (sh_get_pr_initial_val): Update.
18750         * config/sh/sh.md (return expander): Update.
18751         * config/avr/avr.c (frame_pointer_required_p): UPdate.
18752         * config/crx/crx.c (crx_compute_frame): UPdate.
18753         (crx_initial_elimination_offset): UPdate.
18754         * config/xtensa/xtensa.c (compute_frame_size): Update
18755         (xtensa_builtin_saveregs): Update.
18756         (xtensa_va_start): Update.
18757         (order_regs_for_local_alloc): Update.
18758         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
18759         (xstormy16_expand_builtin_va_start): Update.
18760         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
18761         * config/m68hc11/m68hc11.md (return expanders): Update.
18762         * config/m68hc11/m68hc11.c (expand_prologue): Update.
18763         (expand_epilogue): Update.
18764         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
18765         (cris_simple_epilogue): Update.
18766         (cris_expand_prologue): Update.
18767         (cris_expand_epilogue): Update.
18768         * config/iq2000/iq2000.c (iq2000_va_start): Update.
18769         (compute_frame_size): Update.
18770         * config/mt/mt.c (mt_compute_frame_size): Update.
18771         * config/mn10300/mn10300.c (expand_prologue): Update.
18772         (expand_epilogue): Update.
18773         (initial_offset): Update.
18774         (mn10300_builtin_saveregs):
18775         * config/mn10300/mn10300.md (return expander): Update.
18776         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
18777         (ia64_initial_elimination_offset): Update.
18778         (ia64_initial_elimination_offset): Update.
18779         (ia64_expand_prologue): Update.
18780         * config/m68k/m68k.md (return expander): Update.
18781         * config/rs6000/rs6000.c (rs6000_va_start): Update.
18782         (rs6000_stack_info): Update.
18783         * config/mcore/mcore.c (layout_mcore_frame): Update.
18784         (mcore_expand_prolog): Update.
18785         * config/arc/arc.c (arc_compute_frame_size): Update.
18786         * config/score/score3.c (score3_compute_frame_size): Update.
18787         * config/score/score7.c (score7_compute_frame_size): Update.
18788         * config/arm/arm.c (use_return_insn): Update.
18789         (thumb_find_work_register): Update.
18790         (arm_compute_save_reg_mask): Update.
18791         (arm_output_function_prologue): Update.
18792         (arm_output_epilogue): Update.
18793         (arm_size_return_regs): Update.
18794         (arm_get_frame_offsets): Update.
18795         (arm_expand_prologue): Update.
18796         (thumb_exit): Update.
18797         (thumb_unexpanded_epilogue): Update.
18798         (thumb1_output_function_prologue): Update.
18799         * config/pa/pa.md (return expander): Update.
18800         * config/pa/pa.c (compute_frame_size): Update.
18801         (hppa_builtin_saveregs): Update.
18802         * config/mips/mips.c (mips_va_start): Update.
18803         (mips16_build_function_stub): Update.
18804         (mips_compute_frame_info): Update.
18805         (mips_restore_gp): Update.
18806         (mips_output_function_prologue): Update.
18807         (mips_expand_prologue): Update.
18808         * config/v850/v850.c (compute_frame_size): Update.
18809         (expand_prologue): * config/mmix/mmix.c (along): update.
18810         (mmix_initial_elimination_offset): update.
18811         (mmix_reorg): update.
18812         (mmix_use_simple_return): update.
18813         (mmix_expand_prologue): update.
18814         (mmix_expand_epilogue): Update.
18815         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
18816         (emit_link_insn): Update.
18817
18818 2008-04-08  Anatoly Sokolov <aesok@post.ru>
18819
18820         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
18821         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
18822         instructions.
18823         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
18824         atmega103 device.
18825
18826 2008-04-07  Jan Hubicka  <jh@suse.cz>
18827
18828         * function.h (rtl): Rename to x_rtl.
18829         (crtl): New define.
18830         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
18831         frame_offset, stack_check_probe_note, arg_pointer_save_area,
18832         used_temp_slots avail_temp_slots, temp_slot_level,
18833         nonlocal_goto_handler_labels): Update accesstors.
18834         (rtl): New global variable.
18835         (struct function): Move some fileds to rtl_data.
18836         (get_arg_pointer_save_area): Update prototype.
18837         * builtins.c (expand_builtin_setjmp_receiver): Update call of
18838         get_arg_pointer_save_area.
18839         * expr.c (init_expr): Update
18840         * function.c (get_frame_size): Update
18841         (assign_stack_local): Update
18842         (expand_function_end): Update.
18843         (get_art_pointer_save_area): Update
18844         * function.h
18845         * emit-rtl.c (rtl): Declare.
18846         (regno_reg_rtx): Declare.
18847         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
18848         Update.
18849         (gen_reg_rtx): Update.
18850         * varasm.c (n_deferred_constatns): Update accestor.
18851         (init_varasm_status): Do not allocate varasm_status.
18852         (force_const_mem, get_pool_size, output_constant_pool): Update.
18853         * stmt.c (force_label_rtx): Do not use x_ prefixes.
18854         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
18855         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
18856         * sparc/sparc.h (INIT_EXPANDERS): Update.
18857         * ia64/ia64.h (INIT_EXPANDERS): Update.
18858
18859 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
18860
18861         * reload.c (push_secondary_reload): Add missing break to for loop.
18862
18863 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
18864
18865         PR middle-end/PR28690
18866         * rtlanal.c: Update copyright years.
18867         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
18868         as REG_POINTER and MEM_POINTER operands.
18869         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
18870         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
18871         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
18872         * gcse.c: Update copyright years.
18873         (pre_delete): Call gen_reg_rtx_and_attrs.
18874         (hoist_code): Likewise.
18875         (build_store_vectors): Likewise.
18876         (delete_store): Likewise.
18877         * loop-invariant.c (move_invariant_reg): Likewise.
18878         Update copyright years.
18879
18880 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
18881
18882         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
18883         control string instead of quoted.
18884
18885 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
18886
18887         * doc/rtl.texi: Rewrite of subreg section.
18888
18889 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
18890
18891         PR/35842
18892         * config/i386/i386.c (legitimize_pic_address): Add treating
18893         of dllimport SYM_REF's.
18894         (legitimize_dllimport_symbol): Add prototype.
18895
18896 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
18897
18898         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
18899         reference in constructor with non self-referential type.
18900
18901 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
18902
18903         Removal of Return with Depressed Stack Pointer support
18904         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
18905         (ECF_SP_DEPRESSED): Likewise.
18906         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
18907         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
18908         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
18909         (expand_call): Do not test ECF_SP_DEPRESSED.
18910         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
18911         * function.c (keep_stack_depressed): Delete.
18912         (handle_epilogue_set): Likewise.
18913         (update_epilogue_consts): Likewise.
18914         (emit_equiv_load): Likewise.
18915         (thread_prologue_and_epilogue_insns): Remove support for Return with
18916         Depressed Stack Pointer.
18917         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
18918
18919 2008-04-06  Richard Guenther  <rguenther@suse.de>
18920
18921         PR tree-optimization/35400
18922         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
18923         information from SSA_NAMEs.
18924
18925 2008-04-06  Anatoly Sokolov <aesok@post.ru>
18926
18927         * config/avr/avr.h (avr_mega_p): Remove declaration.
18928         (AVR_MEGA): Remove macro.
18929         * config/avr/avr.c (avr_mega_p): Remove variable.
18930         (avr_override_options): Remove inicializion of avr_mega_p.
18931         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
18932         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
18933         (avr_jump_mode): (Ditto.).
18934         (avr_output_progmem_section_asm_op): (Ditto.).
18935         (avr_asm_init_sections): (Ditto.).
18936         (avr_asm_init_sections): (Ditto.).
18937         (avr_rtx_costs): (Ditto.).
18938         * config/avr/avr.md: (Ditto.).
18939         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
18940         '__AVR_MEGA__'.
18941
18942 2008-04-06  Richard Guenther  <rguenther@suse.de>
18943
18944         PR tree-optimization/35842
18945         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
18946         is_gimple_invariant_address.
18947
18948 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
18949
18950         * gcc.c (default_compilers): Sync Fortran extensions list with
18951         that in fortran/lang-specs.h.
18952         * doc/invoke.texi: Likewise.
18953         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
18954         * dwarf2out.c (gen_compile_unit_die): Likewise.
18955
18956 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
18957
18958         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
18959
18960 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
18961
18962         PR target/12329
18963         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
18964         attribute is used for nested functions.
18965
18966 2008-04-05  Jan Hubicka  <jh@suse.cz>
18967
18968         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
18969
18970         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
18971         letter argument.
18972         (dump_files): Update.
18973         (enable_rtl_dump_file): Do not accept letter argument.
18974         * tree-pass.h (dump_file_info): Remove letter argument.
18975         * toplev.c (decode_d_option): Update -da handling.
18976         * toplev.h (enable_rtl_dump_file): Update prototype.
18977         * passes.c (register_one_dump_file): Do not accept IPA argument; work
18978         it out based on pass type.
18979         (register_dump_files_1): Likewise.
18980         (init_optimization_passes): Update register_one_dump_file calls.
18981         (execute_one_pass): Sanity check that IPA passes are called at IPA
18982         level and RTL passes at RTL level.
18983         (execute_pass_list): IPA pass can not be after or subpass of
18984         GIMPLE/RTL pass.
18985         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
18986         disallov RTL subpasses of IPA subpasses.
18987
18988 2008-04-05  Ben Elliston  <bje@au.ibm.com>
18989
18990         * tree-cfg.c (need_fake_edge_p): Return false for calls to
18991         builtins that return exactly once and do not throw. Cache call to
18992         call_expr_flags.
18993
18994 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
18995
18996         PR rtl-optimization/34916
18997         PR middle-end/35519
18998         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
18999         between instruction pairs.
19000
19001 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
19002
19003         * doc/invoke.texi: Document -mbitops for SH.
19004         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
19005         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
19006         * config/sh/sh.c (print_operand): Add %t operand code.
19007         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
19008         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
19009         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
19010         (extendqihi2): Likewise.
19011         (movqi_i): Likewise.
19012         (insv): Use bset, bclr and bst instructions for SH2A if possible.
19013         (extv): Use bld instruction for SH2A if possible.
19014         (extzv): Likewise.
19015         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
19016         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
19017         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
19018         (bset.b, bclr.b): Define peepholes.
19019         * config/sh/sh.opt (mbitops): New option.
19020
19021 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
19022
19023         PR target/35620
19024         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
19025         and view convert expression.
19026
19027 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
19028
19029         PR target/35364
19030         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
19031
19032 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
19033
19034         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
19035
19036         * config/i386/cpuid.h (bit_AES): New.
19037         (bit_PCLMUL): Likewise.
19038
19039         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
19040         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
19041         SSE2 if AES or PCLMUL is enabled.
19042         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
19043         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
19044         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
19045         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
19046         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
19047         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
19048         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
19049         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
19050         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
19051         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
19052         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
19053         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
19054         __builtin_ia32_aeskeygenassist128 and
19055         __builtin_ia32_pclmulqdq128.
19056         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
19057         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
19058         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
19059
19060         * config/i386/i386.h (TARGET_AES): New.
19061         (TARGET_PCLMUL): Likewise.
19062         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
19063
19064         * config/i386/i386.md (UNSPEC_AESENC): New.
19065         (UNSPEC_AESENCLAST): Likewise.
19066         (UNSPEC_AESDEC): Likewise.
19067         (UNSPEC_AESDECLAST): Likewise.
19068         (UNSPEC_AESIMC): Likewise.
19069         (UNSPEC_AESKEYGENASSIST): Likewise.
19070         (UNSPEC_PCLMUL): Likewise.
19071
19072         * config/i386/i386.opt (maes): New.
19073         (mpclmul): Likewise.
19074
19075         * config/i386/sse.md (aesenc): New pattern.
19076         (aesenclast): Likewise.
19077         (aesdec): Likewise.
19078         (aesdeclast): Likewise.
19079         (aesimc): Likewise.
19080         (aeskeygenassist): Likewise.
19081         (pclmulqdq): Likewise.
19082
19083         * config/i386/wmmintrin.h: New.
19084
19085         * doc/extend.texi: Document AES and PCLMUL built-in function.
19086
19087         * doc/invoke.texi: Document -maes and -mpclmul.
19088
19089 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
19090
19091         * function.c (free_after_parsing): Replace with
19092         cxx_push_function_context from C++ front-end.
19093         (allocate_struct_function): Don't call langhook.
19094         * langhooks.h (struct lang_hooks_for_functions): Delete.
19095         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
19096         member "function".
19097         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
19098         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
19099         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
19100         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
19101         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
19102         remove LANG_HOOKS_FUNCTION_INITIALIZER.
19103         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
19104
19105         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
19106         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
19107
19108 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
19109
19110         PR c/35440
19111         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
19112         for all types.
19113
19114 2008-04-04  Richard Guenther  <rguenther@suse.de>
19115
19116         PR middle-end/35823
19117         * fold-const.c (optimize_minmax_comparison): Use the correct
19118         type for the constant in the simplified comparison.
19119
19120 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
19121
19122         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
19123         Pass L2 size as "--param l2-cache-size" to the compiler.
19124         (decode_l2_cache): New function to decode L2 cache parameters using
19125         0x8000006 extended cpuid function.
19126         (detect_caches_amd): Determine parameters of L2 cache using
19127         decode_l2_caches function.
19128         (decode_caches_intel): Decode L2 cache parameters.
19129         (detect_caches_intel): Determine L2 cache parameters using
19130         decode_caches_intel and decode_l2_caches functions.
19131
19132 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
19133
19134         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
19135         secondary input reload for subword loads from the constant pool.
19136
19137 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
19138
19139         PR target/35713
19140         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
19141           constants of the appropriate size for runtime calculations.
19142
19143         PR c/35712
19144         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
19145           decimal-float literal constant zero.
19146
19147 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
19148
19149         PR c/35738
19150         * c-parser.c (c_parser_omp_atomic): Call
19151         default_function_array_conversion on the RHS.
19152
19153         PR middle-end/35818
19154         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
19155         call is_variable_sized if decl has incomplete type.
19156
19157 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
19158
19159         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
19160
19161 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
19162
19163         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
19164         iterators.
19165         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
19166         (sgt<u>): Merge sgt and sgtu into new expander.
19167         (sgt, sgtu): Remove expanders.
19168         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
19169         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
19170         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
19171         *sgtu_<mode>_mips16 into new pattern.
19172         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
19173         (sge<u>): Merge sge and sgeu into new expander.
19174         (sge, sgeu): Remove expanders.
19175         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
19176         new pattern.
19177         (*sge_<mode>, second *sge_<mode>): Remove patterns.
19178         (slt<u>): Merge slt and sltu into new expander.
19179         (slt, sltu): Remove expanders.
19180         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
19181         (*slt_<mode>, *sltu_<mode>): Remove patterns.
19182         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
19183         *sltu_<mode>_mips16 into new pattern.
19184         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
19185         (sle<u>): Merge sle and sleu into new expander.
19186         (sle, sleu): Remove expanders.
19187         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
19188         (*sle_<mode>, *sleu_<mode>): Remove patterns.
19189         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
19190         *sleu_<mode>_mips16 into new pattern.
19191         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
19192
19193 2008-04-03  Jan Hubicka  <jh@suse.cz>
19194
19195         PR tree-optimization/35795
19196         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
19197         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
19198         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
19199         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
19200         * score/score3.c (score3_output_mi_thunk): Likewise.
19201         * score/score7.c (score7_output_mi_thunk): Likewise.
19202         * mips/mips.c (mips_output_mi_thunk): Likewise.
19203
19204 2008-04-03  Richard Guenther  <rguenther@suse.de>
19205
19206         * tree-vrp.c (extract_range_from_unary_expr): Handle all
19207         conversions.  Simplify code.
19208
19209 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
19210
19211         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
19212
19213 2008-04-03  Tom Tromey  <tromey@redhat.com>
19214             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19215
19216         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
19217         * config/bfin/t-bfin-linux (generated_files): Add
19218         linux-sysroot-suffix.h.
19219         * doc/install.texi (Prerequisites): Require make 3.80.
19220         * doc/sourcebuild.texi (Front End Directory): Document new
19221         variable.
19222         * Makefile.in (generated_files): New variable.
19223         (ALL_HOST_OBJS): New variable.
19224         ($(ALL_HOST_OBJS)): New target.
19225
19226 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
19227
19228         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
19229         (remap_block): Call id->transform_lang_insert_block instead
19230         of langhook.
19231         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
19232         Set id.transform_lang_insert_block to NULL.
19233         (clone_body): Move to cp/optimize.c
19234         * tree-inline.h (struct copy_body_data): Change
19235         transform_lang_insert_block to function pointer.
19236         (copy_generic_body, copy_decl_no_change): Export.
19237         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
19238         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
19239         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
19240
19241         * c-tree.h (insert_block): Kill.
19242         * c-decl.c (insert_block): Kill.
19243
19244 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
19245
19246         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
19247         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
19248         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
19249         argument.
19250         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
19251         argument, call {push,pop}_function_context from here.
19252         * c-parser.c: Use c_{push,pop}_function_context.
19253
19254         * function.c (push_function_context_to): Move meat ...
19255         (push_function_context): ... here.  Simplify.
19256         * function.c (pop_function_context_from): Move meat ...
19257         (pop_function_context): ... here.  Simplify.
19258         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
19259         leave_nested).
19260         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
19261         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
19262         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
19263         * tree.h (push_function_context_to, pop_function_context_from): Remove.
19264
19265 2008-04-03  Ben Elliston  <bje@au.ibm.com>
19266
19267         * expmed.c (extract_force_align_mem_bit_field): Remove.
19268
19269 2008-04-03  Richard Guenther  <rguenther@suse.de>
19270
19271         PR middle-end/35800
19272         * expr.h (try_casesi): Adjust prototype.
19273         * expr.c (try_casesi): Take fallback label as extra parameter.
19274         Use that for gen_casesi if default_label is NULL.
19275         * stmt.c (expand_case): Pass fallback label to try_casesi,
19276         make sure to fill gaps with a fallback label if default_label
19277         is not present.
19278
19279 2008-04-03  Dominique d'Humières <dominiq@lps.ens.fr>
19280
19281         PR target/35801
19282         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
19283
19284 2008-04-03  Ben Elliston  <bje@au.ibm.com>
19285
19286         * expmed.c (extract_split_bit_field): Remove if (0) code.
19287         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
19288         (do_ds_constraint): Likewise.
19289
19290 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
19291
19292         * doc/cppopts.texi (-dU): Document.
19293         * c-common.h (flag_dump_macros): Update comment.
19294         * c-opts.c (handle_OPT_d): Handle -dU.
19295         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
19296         dump_queued_macros, cb_used_define, cb_used_undef): New.
19297         (init_pp_output): Handle -dU.
19298         (cb_line_change): Call dump_queued_macros.
19299         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
19300
19301 2008-04-02  Anatoly Sokolov <aesok@post.ru>
19302
19303         * config/avr/predicates.md (io_address_operand): New predicate.
19304         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
19305         * config/avr/avr.c (avr_io_address_p): Remove function.
19306         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
19307         'avr_io_address_p' function.
19308         (out_movhi_r_mr): (Ditto.).
19309         (out_movqi_mr_r): (Ditto.).
19310         (out_movhi_mr_r): (Ditto.).
19311         (avr_address_cost): (Ditto.).
19312
19313 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
19314
19315         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
19316         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
19317         in 32bit mode when XMM registers are available to avoid store
19318         forwarding stalls.
19319         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
19320         corresponding post-reload splitters.
19321
19322 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
19323
19324         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
19325         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
19326         __builtin_ia32_roundss.
19327         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
19328         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
19329         __builtin_ia32_roundss.
19330         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
19331         IX86_BUILTIN_SHUFPD here.
19332
19333 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
19334
19335         * config/i386/i386.md (plogic): New.
19336         (plogicprefix): Likewise.
19337
19338         * config/i386/mmx.md (mmx_<code><mode>3): New.
19339         (mmx_and<mode>3): Removed.
19340         (mmx_ior<mode>3): Likewise.
19341         (mmx_xor<mode>3): Likewise.
19342
19343         * config/i386/sse.md (<code><mode>3): New.
19344         (*<code><mode>3): Likewise.
19345         (*<code><mode>3): Likewise.
19346         (<code><mode>3): Likewise.
19347         (*sse_<code><mode>3): Likewise.
19348         (*sse2_<code><mode>3): Likewise.
19349         (<code>tf3): Likewise.
19350         (*<code>tf3): Likewise.
19351         (and<mode>3): Likewise.
19352         (*and<mode>3): Likewise.
19353         (ior<mode>3): Removed.
19354         (*ior<mode>3): Likewise.
19355         (xor<mode>3): Likewise.
19356         (*xor<mode>3): Likewise.
19357         (*and<mode>3): Likewise.
19358         (*ior<mode>3): Likewise.
19359         (*xor<mode>3): Likewise.
19360         (and<mode>3): Likewise.
19361         (*sse_and<mode>3): Likewise.
19362         (*sse2_and<mode>3): Likewise.
19363         (andtf3): Likewise.
19364         (*andtf3): Likewise.
19365         (ior<mode>3): Likewise.
19366         (*sse_ior<mode>3): Likewise.
19367         (*sse2_ior<mode>3): Likewise.
19368         (iortf3): Likewise.
19369         (*iortf3): Likewise.
19370         (xor<mode>3): Likewise.
19371         (*sse_xor<mode>3): Likewise.
19372         (*sse2_xor<mode>3): Likewise.
19373         (xortf3): Likewise.
19374         (*xortf3): Likewise.
19375
19376 2008-04-02  Richard Guenther  <rguenther@suse.de>
19377
19378         PR tree-optimization/14495
19379         PR tree-optimization/34793
19380         * tree-vrp.c (struct switch_update): New structure.
19381         (to_remove_edges, to_update_switch_stmts): New VECs.
19382         (simplify_switch_using_ranges): New function.  Remove not taken
19383         case labels and edges.
19384         (simplify_stmt_using_ranges): Call it.
19385         (identify_jump_threads): Mark edges we have queued for removal
19386         so we don't thread them.
19387         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
19388         case label vector.
19389         * tree-cfg.c (group_case_labels): Deal with missing default label.
19390         (tree_verify_flow_info): Allow missing default label.
19391         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
19392         (emit_case_nodes): Likewise.
19393         (expand_case): Do not rely on the default label to be present.
19394         * expr.c (try_casesi): Deal with NULL default_label.
19395         (do_tablejump): Likewise.
19396
19397 2008-04-02  Richard Guenther  <rguenther@suse.de>
19398
19399         PR tree-optimization/14495
19400         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
19401         SWITCH_EXPR here ...
19402         (vrp_visit_switch_stmt): ... but here (new function).
19403         (find_case_label_index): New helper function.
19404         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
19405
19406 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
19407
19408         * fwprop.c: Fix ISO-C99ism.
19409
19410 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
19411
19412         PR bootstrap/35752
19413         * Makefile.in (objdir): Set it here.
19414         * configure.ac: Not here.  Find dynamic linker characteristics.
19415         * exec-tool.in: Use them.
19416         * aclocal.m4: Regenerate.
19417         * configure: Regenerate.
19418
19419 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
19420
19421         * expr.c (expand_var): Delete it.
19422         * expr.h (expand_var): Delete prototype.
19423         * function.c (expand_function_start): Use expand_decl instead.
19424         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
19425         langhook.
19426
19427 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
19428
19429         PR rtl-optimization/35542
19430         * fwprop.c (forward_propagate_and_simplify): Replace
19431         loc_reg_mentioned_in_p with reg_mentioned_p.
19432
19433 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
19434
19435         PR rtl-optimization/35281
19436         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
19437         (propagate_rtx_1): Handle PR_HANDLE_MEM.
19438         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
19439         (varying_mem_p): Move above propagate_rtx.
19440         (all_uses_available_at): Do not check MEMs.
19441
19442 2008-04-02  Rafael Espíndola  <espindola@google.com>
19443
19444         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
19445         (register_edge_assert_for_2): Split the cond argument.
19446         (register_edge_assert_for_1): Adjust for the change in
19447         register_edge_assert_for_2.
19448         (register_edge_assert_for): Split the cond argument.
19449         (find_switch_asserts): Adjust for the change in
19450         register_edge_assert_for.
19451
19452 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
19453
19454         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
19455         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
19456         offsets for 64-bit mingw.
19457         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
19458         abi for x86_64-pc-mingw.
19459
19460 2008-04-02  Richard Guenther  <rguenther@suse.de>
19461
19462         * tree-vrp.c (extract_range_from_assert): Make sure to not
19463         produce range min/max with TREE_OVERFOW set.
19464         If merging a anti-range and a range keep the anti-range if
19465         the range covers all values of the type.
19466         (register_edge_assert_for_2): Only allow sign-changing
19467         conversions in detecting canonical range checks.  Also
19468         register an assert for the unsigned name if useful.
19469
19470         PR tree-optimization/35787
19471         * tree-vrp.c (vrp_val_max): New function.
19472         (vrp_val_min): Likewise.
19473         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
19474         (vrp_val_is_min): Likewise.
19475         (supports_overflow_infinity): Use vrp_val_{min,max}.
19476         (negative_overflow_infinity): Likewise.
19477         (positive_overflow_infinity): Likewise.
19478         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
19479         (is_positive_overflow_infinity): Likewise.
19480         (is_overflow_infinity): Likewise.
19481         (avoid_overflow_infinity): Use vrp_val_{min,max} and
19482         vrp_val_is_{min,max}.
19483         (set_and_canonicalize_value_range): Canonicalize anti-ranges
19484         to ranges if possible.  Avoid empty ranges.
19485
19486 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19487
19488         PR middle-end/35705
19489         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
19490         the expression is a function address.
19491
19492 2008-04-01  George Helffrich  <george@gcc.gnu.org>
19493
19494         PR fortran/35154, fortran/23057
19495         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
19496         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
19497         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
19498         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
19499         in common.
19500         (dbxout_syms): Check for COMMON-based symbol and wrap in
19501         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
19502         in bracket for efficiency.
19503
19504         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
19505         using DW_TAG_common_block + member offset.
19506         (add_pubname_string): New function.
19507         (dw_expand_expr): New function to find block name and offset for
19508         COMMON var.
19509         (common_check): New function to check whether symbol in Fortran COMMON.
19510         (gen_variable_die): If COMMON, use DW_TAG_common_block.
19511
19512 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
19513
19514         PR c/35436
19515         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
19516
19517 2008-04-02  Ben Elliston  <bje@au.ibm.com>
19518
19519         * config/v850/v850.md (casesi): Remove if (0) code.
19520         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
19521         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
19522
19523 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
19524
19525         * config/i386/i386.md (rex64suffix): New mode attribute.
19526         (floathi<mode>2): Disable expander for SSE math.
19527         (*floathi<mode>2_1): New insn insn_and_split pattern.
19528         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
19529         corresponding post-reload splitters.
19530         (*floathi<mode>2_i387): New macroized insn pattern.
19531         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
19532         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
19533         insn_and_split pattern.
19534         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
19535         New macroized instruction patterns and corresponding post-reload
19536         splitters.
19537         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
19538         and corresponding post-reload splitters.
19539         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
19540         New macroized instruction patterns.
19541         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
19542         macroized instruction patterns and corresponding post-reload splitters.
19543         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
19544         corresponding post-reload splitters.
19545         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
19546         New macroized instruction patterns.
19547         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
19548         corresponding post-reload splitters.
19549         (*floatsi<mode>2_i387): New macroized instruction patterns.
19550
19551 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
19552
19553         * config/i386/i386.md (smaxmin): New.
19554         (umaxmin): Likewise.
19555         (maxminiprefix): Likewise.
19556         (maxminfprefix): Likewise.
19557         (<code><mode>3): Likewise.
19558         (smin<mode>3): Removed.
19559         (smax<mode>3): Likewise.
19560
19561         * config/i386/mmx.md (mmx_<code>v2sf3): New.
19562         (mmx_<code>v4hi3): Likewise.
19563         (mmx_<code>v8qi3): Likewise.
19564         (mmx_smaxv2sf3): Removed.
19565         (mmx_sminv2sf3): Likewise.
19566         (mmx_umaxv8qi3): Likewise.
19567         (mmx_smaxv4hi3): Likewise.
19568         (mmx_uminv8qi3): Likewise.
19569         (mmx_sminv4hi3): Likewise.
19570
19571         * config/i386/sse.md (<addsub><mode>3): New.
19572         (*<addsub><mode>3): Likewise.
19573         (<sse>_vm<addsub><mode>3): Likewise.
19574         (<maxmin><mode>3): Likewise.
19575         (*<maxmin><mode>3_finite): Likewise.
19576         (*<maxmin><mode>3): Likewise.
19577         (<sse>_vm<maxmin><mode>3): Likewise.
19578         (sse3_h<addsub>v4sf3): Likewise.
19579         (sse3_h<addsub>v2df3): Likewise.
19580         (<maxmin>v16qi3): Likewise.
19581         (*<maxmin>v16qi3): Likewise.
19582         (<maxmin>v8hi3): Likewise.
19583         (*<maxmin>v8hi3): Likewise.
19584         (*sse4_1_<maxmin><mode>3): Likewise.
19585         (*sse4_1_<maxmin><mode>3): Likewise.
19586         (add<mode>3): Removed.
19587         (*add<mode>3): Likewise.
19588         (<sse>_vmadd<mode>3): Likewise.
19589         (sub<mode>3): Likewise.
19590         (*sub<mode>3): Likewise.
19591         (<sse>_vmsub<mode>3): Likewise.
19592         (smin<mode>3): Likewise.
19593         (*smin<mode>3_finite): Likewise.
19594         (*smin<mode>3): Likewise.
19595         (<sse>_vmsmin<mode>3): Likewise.
19596         (smax<mode>3): Likewise.
19597         (*smax<mode>3_finite): Likewise.
19598         (*smax<mode>3): Likewise.
19599         (<sse>_vmsmax<mode>3): Likewise.
19600         (sse3_haddv4sf3): Likewise.
19601         (sse3_haddv2df3): Likewise.
19602         (sse3_hsubv4sf3): Likewise.
19603         (sse3_hsubv2df3): Likewise.
19604         (umaxv16qi3): Likewise.
19605         (*umaxv16qi3): Likewise.
19606         (smaxv8hi3): Likewise.
19607         (*smaxv8hi3): Likewise.
19608         (*sse4_1_smax<mode>3): Likewise.
19609         (*sse4_1_umax<mode>3): Likewise.
19610         (uminv16qi3): Likewise.
19611         (*uminv16qi3): Likewise.
19612         (sminv8hi3): Likewise.
19613         (*sminv8hi3): Likewise.
19614         (*sse4_1_smin<mode>3): Likewise.
19615         (*sse4_1_umin<mode>3): Likewise.
19616
19617 2008-04-01  Rafael Espíndola  <espindola@google.com>
19618
19619         * tree-cfg.c (verify_expr): remove in_phi.
19620         (verify_stmt): Don't call walk_tree with verify_expr. Use
19621         is_gimple_min_invariant instead of is_gimple_val.
19622
19623 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
19624
19625         * doc/include/gpl_v3.texi: Update for manpage generation.
19626         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
19627         gpl.texi.
19628         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
19629         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
19630         gpl_v3.texi instead of gpl.texi.
19631         (gpl.pod): New.
19632
19633 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
19634
19635         PR pch/13675
19636         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
19637
19638 2008-04-01  Rafael Espíndola  <espindola@google.com>
19639
19640         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
19641         (extract_code_and_val_from_cond): Use
19642         extract_code_and_val_from_cond_with_ops.
19643
19644 2008-04-01  Jan Hubicka  <jh@suse.cz>
19645
19646         * function.c (free_after_compilation): Free epilogue_delay_list.
19647         (prepare_function_start): Assert that previous compilation was freed.
19648
19649 2008-04-01  Jan Hubicka  <jh@suse.cz>
19650             Jim Wilson  <wilson@tuliptree.org>
19651             Andreas Tobler <andreast@gcc.gnu.org>
19652
19653         PR middle-end/35781
19654         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
19655         rtl.emit instead cfun->emit.
19656         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
19657         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
19658
19659 2008-04-01  Ben Elliston  <bje@au.ibm.com>
19660
19661         * doc/c-tree.texi (Function Basics): Fix grammatical error.
19662
19663 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
19664
19665         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
19666         New options
19667         (fprofile-use): Add var flag_profile_use
19668         * coverage.c (coverage_begin_output): Do not open a gcno file for
19669         output only if -ftest-coverage is set.
19670         Do not add getpwd() to gcda file path.
19671         (build_gcov_info): Check the new flag
19672         flag_profile_datafile_relative_path.
19673         (coverage_init): Use profile_data_prefix.
19674         Read profile counter only if flag_profile_use is set.
19675         * opts.c (common_handle_option): New option fprofile-use=,
19676         fprofile-dir=, fprofile-generate=.
19677         * toplev.c (profile_data_prefix): New variable definition.
19678         * toplev.h (profile_data_prefix): New declaration.
19679         * doc/invoke.tex (Option Summary, Optimization Options):
19680         Add new options.
19681
19682 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
19683
19684         * varasm.c (output_constant_pool_1): In LABEL_REF check,
19685         use tmp consistently.
19686
19687         PR target/35695
19688         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
19689         * config/ia64/ia64.c (rtx_needs_barrier): Handle
19690         UNSPEC_FR_RECIP_APPROX_RES.
19691         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
19692
19693 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
19694
19695         PR c/35750
19696         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
19697
19698 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19699
19700         PR middle-end/30186
19701         * fold-const.c (fold_indirect_ref_1): Support accessing non first
19702         element of the vector via a pointer.
19703
19704 2008-03-31  Ian Lance Taylor  <iant@google.com>
19705
19706         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
19707
19708 2008-03-31  Jan Hubicka  <jh@suse.cz>
19709
19710         * builtins.c (expand_builtin_setjmp_receiver): Update call of
19711         get_arg_pointer_save_area.
19712         * expr.c (init_expr): Just clear out rtl.expr.
19713         * function.c (free_after_compilation): Clear out whole RTL structure.
19714         (get_func_frame_size): Merge into ...
19715         (get_frame_size): ... this one.
19716         (assign_stack_local_1): Merge into ...
19717         (assign_stack_local): ... this one.
19718         (expand_function_end): Update call of get_arg_pointer_save_area.
19719         (get_art_pointer_save_area): Remove cfun argument.
19720         * function.h (emit_status): regno_pointer_align does not need length
19721         attribute. Move x_regno_reg_rtx to ...
19722         (regno_reg_rtx): ... new global array.
19723         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
19724         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
19725         apply_args_value, forced_labels, stack_pointer_delta):
19726         Update accestors.
19727         (struct varasm_status): Move here from varasm.c
19728         (struct rtl_data): New. Move here some fields from struct function.
19729         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
19730         frame_offset, stack_check_probe_note, arg_pointer_save_area,
19731         used_temp_slots avail_temp_slots, temp_slot_level,
19732         nonlocal_goto_handler_labels): Update accesstors.
19733         (rtl): New global variable.
19734         (struct function): Move some fileds to rtl_data.
19735         (get_arg_pointer_save_area): Update prototype.
19736         * emit-rtl.c (rtl): Declare.
19737         (regno_reg_rtx): Declare.
19738         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
19739         Update.
19740         (gen_reg_rtx): Update.
19741         (init_virtual_regs): Do not tate emit_status argument.
19742         (init_emit): Do not allocate emit.
19743         * varasm.c (varasm_statuc): Move to function.h.
19744         (n_deferred_constatns): Update accestor.
19745         (init_varasm_status): Do not allocate varasm_status.
19746         (force_const_mem, get_pool_size, output_constant_pool): Update.
19747         * stmt.c (force_label_rtx): Do not use x_ prefixes.
19748         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
19749
19750 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
19751
19752         PR rtl-optimization/35729
19753         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
19754         references.
19755
19756 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19757
19758         PR target/32000
19759         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
19760         load/store if memory is unaligned.
19761         (*movti_rex64): Likewise.
19762
19763         * config/i386/predicates.md (misaligned_operand): New.
19764
19765 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
19766
19767         PR tree-opt/35431
19768         * tree-ssa-phiopt.c (conditional_replacement): Return early for
19769         complex types.
19770
19771 2008-03-31  Jan Beulich  <jbeulich@novell.com>
19772
19773         * config/ia64/constraints.md: Add 'j' constraint.
19774         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
19775         (movdi_internal): Likewise.
19776
19777 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
19778
19779         PR c/35748
19780         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
19781
19782 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
19783
19784         PR target/35757
19785         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
19786         proper error message for the third argument on blendpd and
19787         blendps.
19788
19789         * config/i386/sse.md (blendbits): New.
19790         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
19791
19792 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
19793
19794         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
19795
19796 2008-03-30  Richard Guenther  <rguenther@suse.de>
19797
19798         PR middle-end/31023
19799         * fold-const.c (fold_sign_changed_comparison): Do leave
19800         conversions to base-types alone.
19801
19802 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19803
19804         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
19805         the link register if one altivec register is be saved.
19806
19807 2008-03-30  Ben Elliston  <bje@au.ibm.com>
19808
19809         * final.c (final_scan_insn): Remove if (0) code.
19810
19811 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
19812
19813         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
19814
19815 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
19816
19817         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
19818         of V4SFmode to ix86_binary_operator_ok.
19819
19820 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
19821
19822         * config/i386/i386.c (override_options): Initialize
19823         ix86_veclib_handler to ix86_veclibabi_svml when
19824         -mveclibabi=svml is used.
19825         (ix86_veclibabi_svml): New function for SVML ABI style
19826         vectorization support.
19827         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
19828
19829 2008-03-28  Rafael Espíndola  <espindola@google.com>
19830
19831         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
19832         (tree_binary_nonnegative_warnv_p): Make it public.
19833         (tree_single_nonnegative_warnv_p): Make it public.
19834         (tree_invalid_nonnegative_warnv_p): Make it public.
19835         (tree_unary_nonzero_warnv_p): Make it public.
19836         (tree_binary_nonzero_warnv_p): Make it public
19837         (tree_single_nonzero_warnv_p): Make it public.
19838         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
19839         (extract_range_from_binary_expr): Split the expr argument.
19840         (extract_range_from_unary_expr): Split the expr argument.
19841         (extract_range_from_comparison): Split the expr argument.
19842         (extract_range_from_expr): Use the new aux functions.
19843         (vrp_evaluate_conditional_warnv): Use
19844         vrp_evaluate_conditional_warnv_with_ops.
19845         * tree.h (tree_unary_nonzero_warnv_p): Declare.
19846         (tree_binary_nonzero_warnv_p): Declare.
19847         (tree_single_nonzero_warnv_p): Declare.
19848         (tree_expr_nonzero_warnv_p): Declare.
19849         (tree_unary_nonnegative_warnv_p): Declare.
19850         (tree_binary_nonnegative_warnv_p): Declare.
19851         (tree_single_nonnegative_warnv_p): Declare.
19852         (tree_invalid_nonnegative_warnv_p): Declare.
19853
19854 2008-03-28  Richard Guenther  <rguenther@suse.de>
19855
19856         PR tree-optimization/30317
19857         PR tree-optimization/30911
19858         PR tree-optimization/34793
19859         * tree-vrp.c (set_and_canonicalize_value_range): New function.
19860         (struct assert_locus_d): New member EXPR.
19861         (register_new_assert_for): Add EXPR parameter to support
19862         ASSERT_EXPR <name, expr OP limit>.
19863         (register_edge_assert_for_1): Adjust callers.
19864         (find_assert_locations): Likewise.
19865         (process_assert_insertions_for): Build condition from expression.
19866         (extract_range_from_assert): Handle ASSERT_EXPRs
19867         of the form ASSERT_EXPR <name, expr OP limit>.
19868         (register_edge_assert_for_2): New helper registering
19869         asserts for comparisons.  Recognize range tests of the form
19870         (unsigned)i - CST1 OP CST2.
19871         (register_edge_assert_for_1): Use it.
19872         (register_edge_assert_for): Likewise.
19873         (needs_overflow_infinity): Integer sub-types
19874         do not need overflow infinities.
19875         (vrp_val_is_max): The extreme values of integer sub-types
19876         are those of the base type.
19877         (vrp_val_is_min): Likewise.
19878         * tree.def (ASSERT_EXPR): Document extra allowed conditional
19879         expressions.
19880
19881 2008-03-28  Nick Clifton  <nickc@redhat.com>
19882
19883         PR target/31110
19884         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
19885         Return GENERAL_REGS for stack adjustment reloads.
19886
19887 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19888
19889         PR target/31334
19890         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
19891         const_vector when all the vectors are constant.
19892
19893 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
19894
19895         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
19896         comparisons.
19897         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
19898         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
19899         (scc_sf): New.
19900         (s<code>_sf): Use new scc_sf attribute for opcode names.
19901
19902 2008-03-27  Tom Tromey  <tromey@redhat.com>
19903
19904         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
19905         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
19906         config/spu/t-spu-elf, config/i386/t-interix,
19907         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
19908         config/i386/x-darwin, config/i386/x-mingw32,
19909         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
19910         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
19911         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
19912         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
19913         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
19914         config/rs6000/x-darwin, config/rs6000/t-rs6000,
19915         config/score/t-score-elf, config/arm/t-strongarm-pe,
19916         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
19917         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
19918         Revert automatic dependency patch.
19919
19920 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
19921
19922         PR target/35657
19923         * config/i386/i386.c (ix86_function_arg_boundary): Align
19924         decimal floating point to its natural boundary.
19925
19926 2008-03-27  Richard Guenther  <rguenther@suse.de>
19927
19928         PR middle-end/35716
19929         * fold-const.c (fold_comparison): Restrict distinct decl
19930         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
19931         solely rely on operand_equal_p.
19932
19933 2008-03-27  Richard Guenther  <rguenther@suse.de>
19934
19935         PR c/32511
19936         * c-common.c (handle_weak_attribute): Reject combination of
19937         weak and inline.
19938
19939 2008-03-27  Richard Guenther  <rguenther@suse.de>
19940
19941         PR tree-optimization/32810
19942         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
19943         conversions from DECL_INITIAL.
19944         (fold_const_aggregate_ref): Likewise from constructor elements.
19945
19946 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
19947
19948         * tree-affine.h (aff_combination_expand): Declare.
19949         (get_inner_reference_aff): Likewise.
19950         * tree-affine.c (aff_combination_expand): Split out from
19951         tree_to_aff_combination_expand.
19952         (get_inner_reference_aff): New function.
19953         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
19954         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
19955         (struct lim_aux_data): sm_done field removed.
19956         (mem_ref_loc_p, mem_ref_locs_p): New types.
19957         (struct mem_ref): Added id, stored, accesses_in_loop,
19958         indep_loop, dep_loop, indep_ref, dep_ref fields.
19959         Removed is_stored, locs and next fields.
19960         (memory_accesses): New variable.
19961         (movement_possibility): Do not allow moving statements
19962         that store to memory.
19963         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
19964         New functions.
19965         (determine_max_movement): For statements with memory references,
19966         find the outermost loop in that the reference is independent.
19967         (move_computations_stmt): Mark the virtual operands for renaming.
19968         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
19969         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
19970         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
19971         add_vop_ref_mapping, create_vop_ref_mapping_loop,
19972         create_vop_ref_mapping, analyze_memory_references,
19973         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
19974         get_all_locs_in_loop, ref_always_accessed_p,
19975         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
19976         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
19977         store_motion_loop, store_motion): New functions.
19978         (struct vop_to_refs_elt): New type.
19979         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
19980         memref_hash, memref_eq, hoist_memory_references): Rewritten.
19981         (schedule_sm): Replaced by...
19982         (execute_sm): ... this.
19983         (determine_lsm_ref, hoist_memory_references,
19984         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
19985         find_more_ref_vops, free_mem_ref, free_mem_refs,
19986         determine_lsm_loop, determine_lsm): Removed.
19987         (tree_ssa_lim_finalize): Free data structures used by store motion.
19988         (tree_ssa_lim): Call analyze_memory_references.  Use
19989         store_motion instead of determine_lsm.
19990
19991 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
19992
19993         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
19994         rename tmake_file to m68hc11/t-m68hc11.
19995         (mcore): Set inhibit_libc to true.
19996         * config.host (alpha*-dec-*vms*): Set extra_programs.
19997         (interix3*): Don't use host_xmake_file.
19998         * configure.ac: Let config.gcc override inhibit_libc.
19999         * configure: Regenerate.
20000
20001         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
20002         * config/t-openbsd-thread: Remove commented out lines.
20003
20004         * config/x-interix: Remove.
20005
20006         * config/m68hc11/t-m68hc11-gas: Rename to...
20007         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
20008
20009         * config/mcore/t-mcore: Remove T_CFLAGS.
20010         * config/mcore/t-mcore-pe: Likewise.
20011
20012 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
20013
20014         * configure.ac: Replace custom __GNU_SOURCE test with
20015         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
20016         * aclocal.m4: Regenerate.
20017         * configure: Regenerate.
20018         * config.in: Regenerate.
20019
20020 2008-03-27  Richard Guenther  <rguenther@suse.de>
20021
20022         * fold-const.c (target.h): Include.
20023         (fold_comparison): Fold comparison of addresses of decls
20024         that bind locally or of constants.  Consolidate address folding code.
20025         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
20026         results from fold_binary_to_constant.
20027         (compare_values_warnv): Likewise.
20028
20029 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
20030
20031         PR middle-end/35429
20032         * fold-const.c (fold_truthop): Check for integeral types when folding
20033         a == 0 && b == 0 and a != 0 || b != 0 .
20034
20035 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
20036
20037         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
20038
20039 2008-03-26  Andreas Schwab  <schwab@suse.de>
20040
20041         * doc/invoke.texi: Fix use of @item vs. @itemx.
20042
20043 2008-03-26  Tom Tromey  <tromey@redhat.com>
20044
20045         * Makefile.in (build/gensupport.o, build/print-rtl.o,
20046         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
20047         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
20048         build/gencodes.o, build/genconditions.o, build/genconfig.o,
20049         build/genconstants.o, build/genemit.o, build/genextract.o,
20050         build/genflags.o, build/genmddeps.o, build/genopinit.o,
20051         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
20052         options.h.
20053
20054 2008-03-26  Richard Guenther  <rguenther@suse.de>
20055
20056         Revert
20057         2008-03-26  Richard Guenther  <rguenther@suse.de>
20058
20059         * fold-const.c (target.h): Include.
20060         (fold_comparison): Fold comparison of addresses of two decls
20061         that bind locally.  Consolidate address folding code.
20062
20063 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20064
20065         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
20066         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
20067         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
20068         dconstsqrt2, dconstthird, dconste and/or dconst10.
20069         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
20070         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
20071         dconstsqrt2, dconste): Delete.
20072         (init_emit_once): Likewise.  Simplify initializing dconstm1.
20073         Constify variable.
20074         * real.c (get_real_const): New.
20075         * real.h (dconst3, dconst10, dconstm2, dconstthird,
20076         dconstsqrt2, dconste): Delete.
20077         (real_value_const, get_real_const): New.
20078
20079 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
20080
20081         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
20082
20083         * config/i386/i386.c (ix86_function_arg_boundary): Check
20084         BIGGEST_ALIGNMENT instead of 128.
20085         (setup_incoming_varargs_64): Likewise.
20086
20087 2008-03-26  Tom Tromey  <tromey@redhat.com>
20088
20089         * Makefile.in (DEPFILES): Add missing '/'.
20090
20091 2008-03-26  Richard Guenther  <rguenther@suse.de>
20092
20093         * fold-const.c (target.h): Include.
20094         (fold_comparison): Fold comparison of addresses of two decls
20095         that bind locally.  Consolidate address folding code.
20096
20097 2008-03-26  Nick Clifton  <nickc@redhat.com>
20098
20099         PR target/31232
20100         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
20101         not allow INT+INT as a legitimate addressing mode.
20102
20103 2008-03-26  Richard Guenther  <rguenther@suse.de>
20104
20105         * tree-flow.h (widen_bitfield): Remove declaration.
20106         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
20107         (widen_bitfield): Remove function.
20108         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
20109         code.
20110
20111 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20112
20113         PR target/31558
20114         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
20115         error_mark_node's.
20116
20117 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
20118
20119         PR rtl-optimization/35232
20120         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
20121         (forget_old_reloads_1, forget_marked_reloads): Don't clear
20122         reg_reloaded_call_part_clobbered here.
20123         (reload_regs_reach_end_p): New function.
20124         (reload_reg_rtx_for_input): New variable.
20125         (reload_reg_rtx_for_output): Likewise.
20126         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
20127         when reassigning a pseudo register.  Load reloadreg from
20128         reload_reg_rtx_for_input, moving the mode and register
20129         calculation to...
20130         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
20131         instead of the original when deciding whether an input reload
20132         would be a no-op or whether an output reload can be deleted.
20133         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
20134         when setting up new_spill_reg_store.  Load it from
20135         reload_reg_rtx_for_output, moving the mode and register
20136         calculation to...
20137         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
20138         instead of the original when deciding whether an output reload
20139         would be a no-op.  Do the same when modifying insn notes.
20140         Use rtx_equal_p instead of == to compare the registers.
20141         (inherit_piecemeal_p): Take a mode and two register numbers
20142         as argument.
20143         (emit_reload_insns): Clear new_spill_reg_store for every hard
20144         register in the reload register.  Remove spill registers
20145         from reg_reloaded_valid before considering whether to record
20146         inheritance information for them.  Use reload_reg_rtx_for_output
20147         instead of reg_rtx when recording output reloads.  Use
20148         reload_reg_rtx_for_input instead of reg_rtx when recording
20149         input reloads.  Set or clear reg_reloaded_call_part_clobbered
20150         at the same time as setting reg_reloaded_valid.
20151         (delete_output_reload): Add a new_reload_reg parameter and use it
20152         instead of rld[j].reg_rtx.
20153         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
20154         calls accordingly.
20155
20156 2008-03-25  Tom Tromey  <tromey@redhat.com>
20157
20158         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
20159         (build/genattr.o): Likewise.
20160         (build/genattrtab.o): Likewise.
20161         (build/gencodes.o): Likewise.
20162         (build/genconfig.o): Likewise.
20163         (build/genconstants.o): Likewise.
20164         (build/genemit.o): Likewise.
20165         (build/genextract.o): Likewise.
20166         (build/genflags.o): Likewise.
20167
20168 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
20169
20170         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
20171         instead of size_int for integer types.
20172         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
20173         to match type of MINUS_EXPR.
20174
20175 2008-03-25  Tom Tromey  <tromey@redhat.com>
20176
20177         * configure: Rebuilt.
20178         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
20179         Makefile.
20180
20181 2008-03-25  Tom Tromey  <tromey@redhat.com>
20182
20183         * config/x-solaris (host-solaris.o): Update.
20184         * config/x-linux (host-linux.o): Update.
20185         * config/x-hpux (host-hpux.o): Update.
20186         * config/x-darwin (host-darwin.o): Update.
20187         * config/v850/t-v850e (v850-c.o): Update.
20188         * config/v850/t-v850 (v850-c.o): Update.
20189         * config/t-vxworks (vxworks.o): Update.
20190         * config/t-sol2 (sol2-c.o, sol2.o): Update.
20191         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
20192         * config/spu/t-spu-elf (spu-c.o): Update.
20193         (spu.o): Remove.
20194         * config/sh/t-symbian (sh-c.o): Update.
20195         (symbian.o): Update.
20196         * config/sh/t-sh (sh-c.o): Update.
20197         * config/score/t-score-elf (score7.o, score3.o): Update.
20198         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
20199         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
20200         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
20201         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
20202         (rs6000.o): Remove.
20203         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
20204         * config/m32c/t-m32c (m32c-pragma.o): Update.
20205         * config/ia64/t-ia64 (ia64-c.o): Update.
20206         * config/i386/x-mingw32 (host-mingw32.o): Update.
20207         * config/i386/x-i386 (driver-i386.o): Update.
20208         * config/i386/x-darwin (host-i386-darwin.o): Update.
20209         * config/i386/x-cygwin (host-cygwin.o): Update.
20210         * config/i386/t-nwld (nwld.o): Update.
20211         * config/i386/t-netware (netware.o): Update.
20212         * config/i386/t-interix (winnt.o): Update.
20213         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
20214         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
20215         msformat-c.o): Update.
20216         * config/bfin/t-bfin-linux (generated_files): Add
20217         linux-sysroot-suffix.h.
20218         * config/arm/t-wince-pe (pe.o): Update.
20219         * config/arm/t-strongarm-pe (pe.o): Update.
20220         * config/arm/t-pe (pe.o): Update.
20221         * config/arm/t-arm (arm-c.o): Update.
20222         * doc/install.texi (Prerequisites): Require make 3.80.
20223         * Makefile.in: Remove .o targets.
20224         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
20225         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
20226         (simple_generated_h, simple_generated_c): Move earlier.
20227         (generated_files): New variable.
20228         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
20229         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
20230         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
20231         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
20232         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
20233         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
20234         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
20235         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
20236         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
20237         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
20238         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
20239         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
20240         (.c.o): Remove.
20241         (COMPILE.base, COMPILE): New variables.
20242         (%.o): New pattern rule.
20243         (ALL_HOST_OBJS): New variable.
20244         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
20245         (dummy-checksum.o, cc1-checksum.o): Remove.
20246         (DRIVER_SHLIB): New variable.
20247         (DRIVER_DEFINES): Use it.
20248         (gencondmd.c): Move out of build/.
20249         (s-conditions): Update.
20250         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
20251         (ALL_BUILD_OBJS): Likewise.
20252         (build/%.o): Use BUILDCOMPILE.
20253         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
20254         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
20255         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
20256         build/gencheck.o, build/gencodes.o, build/genconditions.o,
20257         build/genconfig.o, build/genconstants.o, build/genemit.o,
20258         build/genextract.o, build/genflags.o, build/genmddeps.o,
20259         build/genopinit.o, build/genoutput.o, build/genpeep.o,
20260         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
20261         build/gen-protos.o, build/scan.o, build/fix-header.o,
20262         build/scan-decls.o): Simplify.
20263         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
20264         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
20265         prefix.o, toplev.o): Reduce to variable setting.
20266         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
20267         ($(out_object_file), gcc-options.o): New targets.
20268         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
20269         * configure: Rebuilt.
20270         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
20271         * doc/sourcebuild.texi (Front End Directory): Document new variable.
20272
20273 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
20274
20275         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
20276         complain when we hit an error, return ERROR_MARK_NODE.
20277
20278 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
20279
20280         * config/sh/constraints.md (Pso, Psz): New constraints.
20281         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
20282         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
20283
20284 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
20285
20286         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
20287         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
20288
20289 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
20290
20291         * config/sh/sh.md (prefetch): Add condition for SH2A target.
20292         (prefetch_sh2a): New.
20293
20294 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
20295             Naveen.H.S  <naveen.hs@kpitcummins.com>
20296
20297         * config/sh/constraints.md (I28): New constraint.
20298         * config/sh/sh.c (broken_move): Add support for movi20s.
20299         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
20300
20301 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
20302             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
20303             Naveen.H.S  <naveen.hs@kpitcummins.com>
20304
20305         * config/sh/sh.c (SH_ATTRIBUTES): Define.
20306         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
20307         (print_operand): Handle resbank in %@ operand code.
20308         (sh_encode_section_info): New.
20309         (push_regs): Add conditions for resbank.
20310         (sh_expand_epilogue): Likewise.
20311         (sh_insert_attributes): Likewise.
20312         (sh_attribute_table): Likewise.
20313         (sh_handle_resbank_handler_attribute): New.
20314         (sh2a_handle_function_vector_handler_attribute): New.
20315         (sh2a_is_function_vector_call): New.
20316         (sh2a_get_function_vector_number): New.
20317         (sh2a_function_vector_p): New.
20318         (sh_cfun_resbank_handler_p): New.
20319         * config/sh/sh.md (calli): Emit jsr/n if possible.
20320         (calli_tbr_rel): New.
20321         (calli_pcrel): Emit jsr/n if possible.
20322         (return_i): Emit rts/n if possible.
20323         (call_valuei_tbr_rel): New.
20324         (call_valuei_pcrel): Add condition for SH2A target.
20325         (call_value): Likewise.
20326         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
20327         (sh2a_get_function_vector_number): Likewise.
20328         (sh2a_is_function_vector_call): Likewise.
20329         * doc/extend.texi: Document TBR relative addressing of SH2A.
20330         (resbank): Add description for SH2A.
20331
20332 2008-03-24  Richard Guenther  <rguenther@suse.de>
20333
20334         PR c/22371
20335         * gimplify.c (gimplify_modify_expr): For frontend type-correct
20336         pointer assignments change conversions according to middle-end rules.
20337         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
20338         * configure.ac: Include type checking in yes.
20339         * configure: Regenerate.
20340
20341 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20342
20343         * diagnostic.c (diagnostic_count_diagnostic): Delete.
20344         (diagnostic_report_diagnostic): Update. Handle ICEs here.
20345
20346 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
20347
20348         * gthr-vxworks.h (UNUSED): Define.
20349
20350 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
20351
20352         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
20353
20354 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
20355
20356         * doc/extend.texi (Function Attributes): Add missing comma in the
20357         example of the "alloc_size" attribute.
20358
20359 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
20360
20361         Revert:
20362         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
20363
20364         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
20365         32bit host.
20366
20367         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
20368
20369         PR target/35496
20370         * stor-layout.c (update_alignment_for_field): Set minimum alignment
20371         of the underlying type of a MS bitfield layout to the natural
20372         alignment of the type.
20373
20374         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
20375
20376         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
20377         to their natural alignment to avoid store forwarding stalls.
20378
20379 2008-03-22  Richard Guenther  <rguenther@suse.de>
20380
20381         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
20382         For PHI nodes verify the address is invariant.
20383         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
20384         (get_symbol_constant_value): Use is_gimple_min_invariant.
20385         (maybe_fold_stmt_indirect): Likewise.
20386
20387 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
20388
20389         PR rtl-optimization/33927
20390         * Makefile.in (dse.o): Depend on $(TM_P_H).
20391         * expr.h (extract_low_bits): Declare.
20392         * expmed.c (extract_low_bits): New function.
20393         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
20394         * dse.c: Include tm_p.h.
20395         (find_shift_sequence): Remove the read_reg argument and return the
20396         read value.  Emit the instructions instead of returning them.
20397         Iterate on new_mode rather than calculating it each time.
20398         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
20399         source to NEW_MODE and extract_low_bits to convert the shifted
20400         value to READ_MODE.
20401         (replace_read): Allow the load and store to have different mode
20402         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
20403         or extraction instructions before trying the replacement.  Update
20404         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
20405
20406 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
20407
20408         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
20409         to their natural alignment to avoid store forwarding stalls.
20410
20411 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20412
20413         PR target/27946
20414         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
20415         encouraging but not allowing gprs for input;
20416         change the input constraint to !f#r.
20417         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
20418         gprs for output;
20419         change the output constraint to !f#r.
20420
20421 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
20422
20423         PR target/13958
20424         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
20425         corresponding post-reload splitters.
20426         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
20427         when x87 FP math is selected.
20428         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
20429         New function prototype.
20430         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
20431         unreachable function to ease macroization of insn patterns.
20432
20433 2008-03-21  Martin Jambor  <mjambor@suse.cz>
20434
20435         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
20436         reference dumps if ddr is NULL or dependence is unknown.
20437
20438 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
20439
20440         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
20441         unsigned extension into account.
20442         (ATOMIC_COMPARE_AND_SWAP): Likewise.
20443         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
20444         Do computations on a scratch register.
20445
20446 2008-03-21  Richard Guenther  <rguenther@suse.de>
20447
20448         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
20449         Use is_gimple_min_invariant instead of TREE_INVARIANT.
20450         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
20451         * tree-ssa-dom.c (record_equality): Likewise.
20452         * tree-inline.c (copy_body_r): Likewise.
20453         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
20454         TREE_INVARIANT.
20455
20456 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
20457
20458         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
20459         as 'delete_unused' argument.
20460
20461 2008-03-20  Richard Guenther  <rguenther@suse.de>
20462
20463         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
20464         special casing of constant qualifiers.
20465         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
20466         care about them in general.
20467         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
20468         regardless of their type.
20469         (fold_stmt_r): Forcefully fold *& if we end up with that.
20470
20471 2008-03-20  Paul Brook  <paul@codesourcery.com>
20472
20473         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
20474         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
20475         linker flags.
20476         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
20477         definition.
20478         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
20479         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
20480
20481 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
20482
20483         * common.opt (Wmudflap): New option.
20484         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
20485         (mx_register_decls): Likewise.
20486         (mudflap_finish_file): Likewise.
20487         * doc/invoke.texi: Document -Wno-mudflap.
20488
20489 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
20490
20491         * c-format.c (replace_format_name_to_system_name): New.
20492         (cmp_attribs): New.
20493         (convert_format_name_to_system_name): New.
20494         (decode_format_attr): Add use of convert_format_name_to_system_name.
20495         (format_types_orig): Add gnu_ prefix to names.
20496         (check_format_info_main): Special treating of \0 escaped names for
20497         supporting multi-character format specifiers as I32, I64.
20498         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
20499         (gnu_target_overrides_format_attributes): New.
20500         * c-format.h: Add structure target_ovr_attr to hold
20501         system specific formatter names.
20502         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
20503         msformat-c.o file to c_target_objs and cxx_target_objs.
20504         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
20505         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
20506         (TARGET_N_FORMAT_TYPES): New.
20507         * config/i386/msformat-c.c: New.
20508         * config/i386/t-cygming: Add build rule for msformat-c.o.
20509         * doc/extend.texi: Add new format names gnu_* and ms_* and
20510         further details.
20511         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
20512
20513 2008-03-20  Ira Rosen  <irar@il.ibm.com>
20514
20515         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
20516         optimizations turned on under -O3.
20517         (ftree-vectorize): Add that the flag is turned on with -O3.
20518
20519 2008-03-20  Ben Elliston  <bje@au.ibm.com>
20520
20521         * regmove.c (try_auto_increment): Fix spelling error in comment.
20522         * final.c (final_scan_insn): Likewise.
20523
20524 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
20525
20526         PR target/14552
20527         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
20528         allocator preferences for "y" and "r" class registers.
20529         ("*mov<mode>_internal"): Ditto.
20530         ("*movv2sf_internal_rex64"): Ditto.
20531         ("*movv2sf_internal"): Ditto.
20532
20533 2008-03-19  Michael Matz  <matz@suse.de>
20534
20535         PR middle-end/35616
20536         * calls.c (expand_call): Check overlap of arguments with call
20537         address for sibcalls.
20538
20539 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
20540
20541         PR target/35496
20542         * stor-layout.c (update_alignment_for_field): Set minimum alignment
20543         of the underlying type of a MS bitfield layout to the natural
20544         alignment of the type.
20545
20546 2008-03-19  Jan Hubicka  <jh@suse.cz>
20547
20548         PR other/35094
20549         * toplev.c (decode_d_option): Handle all CPP flags.
20550         * tree-vrp.c: Update tree_pass descriptors.
20551         * regrename.c: Update tree_pass descriptors.
20552         * fwprop.c: Update tree_pass descriptors.
20553         * doc/invoke.texi: Remove documentation of dropped -d? flags.
20554         * tree-into-ssa.c: Update tree_pass descriptors.
20555         * tree-dump.c: Update tree_pass descriptors.
20556         * tree-complex.c: Update tree_pass descriptors.
20557         * tree-dump.h: Update tree_pass descriptors.
20558         * see.c: Update tree_pass descriptors.
20559         * cgraphbuild.c: Update tree_pass descriptors.
20560         * tracer.c: Update tree_pass descriptors.
20561         * tree-loop-distribution.c: Update tree_pass descriptors.
20562         * cgraph.c: Update tree_pass descriptors.
20563         * postreload-gcse.c: Update tree_pass descriptors.
20564         * postreload.c: Update tree_pass descriptors.
20565         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
20566         * tree-tailcall.c: Update tree_pass descriptors.
20567         * tree-pass.h (tree_opt_pass): Rename to ...
20568         (opt_pass) ... this one; add "type" field and remove letter field.
20569         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
20570         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
20571         all_lowering_passes): Update declaration.
20572         * ipa-cp.c: Update tree_pass descriptors.
20573         * final.c: Update tree_pass descriptors.
20574         * omp-low.c: Update tree_pass descriptors.
20575         * tree-ssa-dse.c: Update tree_pass descriptors.
20576         * ipa-reference.c: Update tree_pass descriptors.
20577         * tree-ssa-uncprop.c: Update tree_pass descriptors.
20578         * auto-inc-dec.c: Update tree_pass descriptors.
20579         * reorg.c: Update tree_pass descriptors.
20580         * cgraphunit.c: Update tree_pass descriptors.
20581         * tree-ssa-copyrename.c: Update tree_pass descriptors.
20582         * tree-ssa-ccp.c: Update tree_pass descriptors.
20583         * df-core.c: Update tree_pass descriptors.
20584         * mode-switching.c: Update tree_pass descriptors.
20585         * tree-nomudflap.c: Update tree_pass descriptors.
20586         * modulo-sched.c: Update tree_pass descriptors.
20587         * ipa-pure-const.c: Update tree_pass descriptors.
20588         * cse.c: Update tree_pass descriptors.
20589         * web.c: Update tree_pass descriptors.
20590         * tree-stdarg.c: Update tree_pass descriptors.
20591         * tree-ssa-math-opts.c: Update tree_pass descriptors.
20592         * tree-ssa-dom.c: Update tree_pass descriptors.
20593         * tree-nrv.c: Update tree_pass descriptors.
20594         * tree-ssa-alias.c: Update tree_pass descriptors.
20595         * loop-init.c: Update tree_pass descriptors.
20596         * gimple-low.c: Update tree_pass descriptors.
20597         * ipa-inline.c: Update tree_pass descriptors.
20598         * tree-ssa-sink.c: Update tree_pass descriptors.
20599         * global.c: Update tree_pass descriptors.
20600         * ifcvt.c: Update tree_pass descriptors.
20601         * jump.c: Update tree_pass descriptors.
20602         * predict.c: Update tree_pass descriptors.
20603         * tree-ssa-loop.c: Update tree_pass descriptors.
20604         * recog.c: Update tree_pass descriptors.
20605         * dse.c: Update tree_pass descriptors.
20606         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
20607         * tree-eh.c: Update tree_pass descriptors.
20608         * regmove.c: Update tree_pass descriptors.
20609         * local-alloc.c
20610         * function.c: Update tree_pass descriptors.
20611         * tree-vectorizer.c: Update tree_pass descriptors.
20612         * gcse.c: Update tree_pass descriptors.
20613         * ipa-type-escape.c: Update tree_pass descriptors.
20614         * tree-if-conv.c: Update tree_pass descriptors.
20615         * init-regs.c: Update tree_pass descriptors.
20616         * ipa.c: Update tree_pass descriptors.
20617         * tree-ssa-phiopt.c: Update tree_pass descriptors.
20618         * rtl-factoring.c: Update tree_pass descriptors.
20619         * lower-subreg.c: Update tree_pass descriptors.
20620         * bt-load.c: Update tree_pass descriptors.
20621         * tree-dfa.c: Update tree_pass descriptors.
20622         * except.c: Update tree_pass descriptors.
20623         * emit-rtl.c: Update tree_pass descriptors.
20624         * cfgexpand.c: Update tree_pass descriptors.
20625         * tree-cfgcleanup.c: Update tree_pass descriptors.
20626         * cfgcleanup.c: Update tree_pass descriptors.
20627         * tree-ssa-pre.c: Update tree_pass descriptors.
20628         * tree-sra.c: Update tree_pass descriptors.
20629         * tree-mudflap.c: Update tree_pass descriptors.
20630         * tree-ssa-copy.c: Update tree_pass descriptors.
20631         * cfglayout.c: Update tree_pass descriptors.
20632         * tree-ssa-forwprop.c: Update tree_pass descriptors.
20633         * tree-ssa-dce.c: Update tree_pass descriptors.
20634         * tree-ssa.c: Update tree_pass descriptors.
20635         * regclass.c: Update tree_pass descriptors.
20636         * integrate.c: Update tree_pass descriptors.
20637         * tree-optimize.c: Update tree_pass descriptors.
20638         * tree-ssa-phiprop.c: Update tree_pass descriptors.
20639         * tree-object-size.c: Update tree_pass descriptors.
20640         * combine.c: Update tree_pass descriptors.
20641         * tree-outof-ssa.c: Update tree_pass descriptors.
20642         * bb-reorder.c: Update tree_pass descriptors.
20643         * stack-ptr-mod.c: Update tree_pass descriptors.
20644         * var-tracking.c: Update tree_pass descriptors.
20645         * tree-profile.c: Update tree_pass descriptors.
20646         * tree-vect-generic.c: Update tree_pass descriptors.
20647         * reg-stack.c: Update tree_pass descriptors.
20648         * sched-rgn.c: Update tree_pass descriptors.
20649         * tree-ssa-structalias.c: Update tree_pass descriptors.
20650         * tree-cfg.c: Update tree_pass descriptors.
20651         * passes.c (current_pass): Update declaration.
20652         (finish_optimization_passes): Update.
20653         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
20654         (register_one_dump_file, register_dump_files_1, next_pass_1):
20655         Update arguments.
20656         (init_optimization_passes): Update handling of new types.
20657         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
20658         * ipa-struct-reorg.c: Update tree_pass descriptors.
20659         * tree-ssa-reassoc.c: Update tree_pass descriptors.
20660         * combine-stack-adj.c: Update tree_pass descriptors.
20661         * cfgrtl.c: Update tree_pass descriptors.
20662         * dce.c: Update tree_pass descriptors.
20663         * tree-ssanames.c: Update tree_pass descriptors.
20664
20665 2008-03-19  Richard Guenther  <rguenther@suse.de>
20666
20667         PR middle-end/35609
20668         * tree-ssa.c (walk_data): New structure.
20669         (warn_uninitialized_var): If not always_executed warn with "maybe"
20670         instead of "is".
20671         (execute_early_warn_uninitialized): Compute post-dominators.
20672         Initialize always_executed before processing each basic block.
20673
20674 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
20675
20676         PR target/35504
20677         * config/i386/i386.c (x86_this_parameter): Calculate correct location
20678         of "this" pointer when "regparm = N" or "fastcall" is in effect.
20679
20680 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20681
20682         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
20683
20684 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
20685
20686         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
20687         is true.
20688         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
20689         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
20690         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
20691         target after ignore has been set, and move there also the commputation
20692         of subtarget and original_target.
20693         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
20694         (LANG_HOOKS_INITIALIZER): Remove it.
20695         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
20696
20697 2008-03-18  Richard Guenther  <rguenther@suse.de>
20698
20699         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
20700         found an expression with constants, note that in the VN for the lhs.
20701         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
20702         fold them to constants if possible.  Run cleanup_cfg if done so.
20703         (execute_pre): Return todo.
20704         (do_pre): Likewise.
20705         (execute_fre): Likewise.
20706         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
20707         of constants.
20708         (get_prop_source_stmt): Look through pointer conversions.
20709
20710 2008-03-18  Jan Hubicka  <jh@suse.cz>
20711
20712         * tree-pretty-print.c: Include predict.h.
20713         (dump_generic_node): Dump predictor.
20714         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
20715         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
20716         * gimple-low.c (lower_stmt): Likewise.
20717         * expr.c (expand_expr_real): Likewise.
20718         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
20719         them.
20720         (build_predict_expr, build_predict_expr): New.
20721         * predict.h (predictor_name, build_predict_expr): Update.
20722         * c-typeck.c (c_finish_bc_stmt): Add prediction.
20723         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
20724         * predict.def (PRED_CONTINUE): Update hitrate.
20725         * tree.def (PREDICT_EXPR): Define.
20726         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
20727         do not handle BIND_EXPR.
20728         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
20729         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
20730         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
20731         operands.
20732
20733 2008-03-18  Michael Matz  <matz@suse.de>
20734
20735         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
20736
20737 2008-03-18  Richard Guenther  <rguenther@suse.de>
20738
20739         * tree-gimple.h (is_gimple_invariant_address): Declare.
20740         (is_gimple_constant): Likewise.
20741         * tree-gimple.c (is_gimple_constant): New function.
20742         (is_gimple_invariant_address): Likewise.
20743         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
20744         and is_gimple_invariant_address.
20745         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
20746         previous change.
20747         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
20748         an addressable base.
20749
20750 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
20751
20752         PR middle-end/35611
20753         * gimplify.c (gimplify_expr): Gimplify second operand of
20754         OMP_ATOMIC_LOAD.
20755
20756 2008-03-17  Richard Guenther  <rguenther@suse.de>
20757
20758         PR tree-optimization/19637
20759         * fold-const.c (fold_unary): Remove restrictions of removing
20760         intermediate pointer-conversions (P2)(P1)P0.
20761         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
20762         conversion to void pointer.
20763         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
20764
20765 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
20766
20767         PR debug/31510
20768         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
20769         emulated thread local variables.
20770
20771 2008-03-16  Richard Guenther  <rguenther@suse.de>
20772
20773         PR middle-end/35607
20774         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
20775         expand TREE_INVARIANT operations that are not gimple invariant.
20776
20777 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
20778
20779         * doc/extend.texi (Alignment): Say that the ABI controls
20780         the __alignof__ for non-strict-alignment targets rather
20781         than being a recommendation.
20782
20783 2008-03-15  Paul Brook  <paul@codesourcery.com>
20784
20785         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
20786         annotations.
20787         (arm_output_fn_unwind): Mark functions that can not be unwound.
20788
20789 2008-03-15  Paul Brook  <paul@codesourcery.com>
20790
20791         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
20792         extension instructions.
20793
20794 2008-03-15  Richard Guenther  <rguenther@suse.de>
20795
20796         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
20797         and fold constant aggregate refs.
20798         (fold_const_aggregate_ref): Handle string constants
20799         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
20800         (evaluate_stmt): Simplify now that ccp_fold folds constant
20801         aggregate refs.
20802
20803 2008-03-15  Paul Brook  <paul@codesourcery.com>
20804
20805         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
20806         (extzv): Use gen_extzv_t2.
20807         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
20808
20809 2008-03-15  Richard Guenther  <rguenther@suse.de>
20810
20811         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
20812         (fold_const_aggregate_ref): Likewise.
20813         (get_value): Return NULL if we don't have any values.
20814         (ccp_finalize): Set const_val to NULL after freeing it.
20815         * tree-flow.h (get_symbol_constant_value): Declare.
20816         (fold_const_aggregate_ref): Likewise.
20817         * tree-ssa-sccvn.c (try_to_simplify): Use them.
20818
20819 2008-03-15  Richard Guenther  <rguenther@suse.de>
20820
20821         PR middle-end/35593
20822         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
20823         to not produce negative array indices if not allowed.  Add
20824         parameter to indicate that.
20825         (maybe_fold_offset_to_component_ref): Allow negative array
20826         indices only for the first member of a structure.
20827         (maybe_fold_offset_to_reference): Allow negative array indices.
20828         (maybe_fold_stmt_addition): Likewise.
20829
20830 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
20831             Anatoly Sokolov <aesok@post.ru>
20832
20833         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
20834         (avr_arch): Add ARCH_AVR6.
20835         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
20836         (initial_elimination_offset): Initialize and use 'avr_pc_size'
20837         instead of fixed value 2.
20838         (print_operand_address): Use gs() asm specifier instead of pm().
20839         (avr_assemble_integer): (Ditto.).
20840         (avr_output_addr_vec_elt): (Ditto.).
20841         (print_operand): Handle "!" code.
20842         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
20843         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
20844         (AVR_HAVE_EIJMP_EICALL): Define.
20845         (AVR_3_BYTE_PC): Redefine.
20846         (AVR_2_BYTE_PC): (Ditto.).
20847         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
20848         (LINK_SPEC): Add atmega2560 and atmega2561.
20849         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
20850         (crtm2561.o).
20851         * config/avr/avr.md (call_insn): Use eicall instead of icall
20852         for 3 byte PC devices.
20853         (call_value_insn): (Ditto.).
20854         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
20855         (indirect_jump): Use only for for 2 byte PC devices.
20856         (*tablejump): (Ditto.).
20857         (*indirect_jump_avr6): Add insn.
20858         (*tablejump_rjmp): Don't use for 3 byte PC devices.
20859         * config/avr/libgcc.S (__prologue_saves__): Use eijmp
20860         instead of ijmp for 3 byte PC devices.
20861         (__tablejump2__): (Ditto.).
20862         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
20863         (MULITLIB_DIRNAMES): (Ditto.).
20864         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
20865
20866 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
20867
20868         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
20869         "sse2_umulsidi3".  Use V1DI mode for operand 0.
20870         ("mmx_psadbw"): Use V1DI mode for operand 0.
20871         * config/i386/i386-modes.def (V1SI): New vector mode.
20872         * config/i386/i386.c (struct builtin_description)
20873         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
20874         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
20875         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
20876         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
20877         v1di_ftype_v8qi_v8qi type.
20878         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
20879
20880         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
20881         __builtin_ia32_pmuludq]: Fix the mode of return value.
20882
20883 2008-03-15  Richard Guenther  <rguenther@suse.de>
20884
20885         PR middle-end/35595
20886         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
20887         being a PHI_NODE.
20888
20889 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
20890
20891         * doc/invoke.texi (Option Summary, Xtensa Options): Document
20892         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
20893         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
20894         unless TARGET_SERIALIZE_VOLATILE is enabled.
20895         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
20896         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
20897         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
20898
20899 2008-03-14  Richard Guenther  <rguenther@suse.de>
20900
20901         PR tree-optimization/34172
20902         * tree-flow.h (refs_may_alias_p): Declare.
20903         (get_single_def_stmt): Likewise.
20904         (get_single_def_stmt_from_phi): Likewise.
20905         (get_single_def_stmt_with_phi): Likewise.
20906         * tree-dfa.c (refs_may_alias_p): New function.
20907         (get_single_def_stmt): Likewise.
20908         (get_single_def_stmt_from_phi): Likewise.
20909         (get_single_def_stmt_with_phi): Likewise.
20910         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
20911         (vn_reference_lookup_1): New helper function.
20912         (vn_reference_lookup): Walk the virtual use-def chain to
20913         continue searching for a match if the def does not alias the
20914         reference we are looking for.
20915
20916 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
20917
20918         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
20919         archive and Perzl.  Update The Written Word listing.
20920
20921 2008-03-14  Richard Guenther  <rguenther@suse.de>
20922
20923         PR tree-optimization/34043
20924         PR tree-optimization/33989
20925         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
20926         when doing FRE.
20927         (bitmap_find_leader): Use extra argument to verify dominance
20928         relationship inside a basic-block.
20929         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
20930         (find_leader_in_sets): Adjust.
20931         (create_component_ref_by_pieces): Take extra argument for
20932         dominance check, handle lookup failures.
20933         (find_or_generate_expression): Likewise.
20934         (create_expression_by_pieces): Likewise.
20935         (insert_into_preds_of_block): Adjust.
20936         (create_value_expr_from): If asked for, verify all operands
20937         are in the blocks AVAIL_OUT set.
20938         (make_values_for_stmt): Check for SSA_NAMEs that are life
20939         over an abnormal edge.
20940         (compute_avail): Remove such check.
20941         (do_SCCVN_insertion): New function.
20942         (eliminate): If we do not find a leader suitable for replacement
20943         insert a replacement expression from SCCVN if available.
20944         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
20945         (struct vn_ssa_aux): Add needs_insertion flag.
20946         * tree-ssa-sccvn.c (may_insert): New global flag.
20947         (copy_reference_ops_from_ref): Value-number union member access
20948         based on its size, not type and member if insertion is allowed.
20949         (visit_reference_op_load): For a weak match from union type
20950         punning lookup a view-converted value and insert a SSA_NAME
20951         for that value if that is not found.
20952         (visit_use): Make dumps shorter.  Do not disallow value numbering
20953         SSA_NAMEs that are life over an abnormal edge to constants.
20954         (free_scc_vn): Release inserted SSA_NAMEs.
20955         (run_scc_vn): New flag to specify whether insertion is allowed.
20956         Process SSA_NAMEs in forward order.
20957         * tree-ssa-loop-im.c (for_each_index): Handle invariant
20958         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
20959         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
20960         pointer type to/from integral types that do not change the
20961         precision to regular conversions.
20962
20963 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
20964
20965         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
20966         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
20967         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
20968         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
20969         input arguments and the mode of return value.  Built-in functions
20970         that operate on whole 64-bit MMX register now use V1DI mode.
20971
20972 2008-03-13  Alon Dayan  <alond@il.ibm.com>
20973             Olga Golovanevsky  <olga@il.ibm.com>
20974
20975         PR tree-optimization/35041
20976         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
20977         to locate the right position in a statement.
20978
20979 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
20980
20981         PR target/34000
20982         PR target/35553
20983         * config/i386/xmmintrin.h:  Change all static inline functions to
20984         extern inline and add __gnu_inline__ attribute.
20985         * config/i386/bmintrin.h: Ditto.
20986         * config/i386/smmintrin.h: Ditto.
20987         * config/i386/tmmintrin.h: Ditto.
20988         * config/i386/mmintrin-common.h: Ditto.
20989         * config/i386/ammintrin.h: Ditto.
20990         * config/i386/emmintrin.h: Ditto.
20991         * config/i386/pmmintrin.h: Ditto.
20992         * config/i386/mmintrin.h: Ditto.
20993         * config/i386/mm3dnow.h: Ditto.
20994
20995 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
20996
20997         PR middle-end/35185
20998         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
20999         (lower_omp_2): New function.
21000         (lower_omp_1, lower_omp): Rewritten.
21001
21002 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
21003
21004         PR 35054
21005         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
21006         with the phrase "Microsoft Windows compilers".
21007         (Push/Pop Macro Pragmas): New subsection. Document
21008         #pragma push_macro and pragma pop_macro.
21009
21010 2008-03-12  Paul Brook  <paul@codesourcery.com>
21011
21012         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
21013
21014 2008-03-12  Paul Brook  <paul@codesourcery.com>
21015
21016         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
21017         (thumb2_alusi3_short): Exclude PLUS and MINUS.
21018         (thumb2_addsi_shortim): Rename ...
21019         (thumb2_addsi_short): ... to this.  Allow register operands.
21020         (thumb2_subsi_short): New pattern.
21021         (thumb2_one_cmplsi2_short,
21022         thumb2_negsi2_short): New patterns and peepholes.
21023
21024 2008-03-12  Paul Brook  <paul@codesourcery.com>
21025
21026         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
21027
21028 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
21029
21030         * config/i386/i386.md (int_cond): New code iterator.
21031         (fp_cond): Ditto.
21032         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
21033         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
21034         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
21035         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
21036         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
21037         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
21038         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
21039         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
21040
21041 2008-03-12  Paul Brook  <paul@codesourcery.com>
21042
21043         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
21044         instead of {arm,thumb}_compute_save_reg_mask.
21045         (output_return_instruction): Ditto.
21046         (thumb_unexpanded_epilogue): Ditto.
21047         (thumb1_expand_prologue): Ditto.
21048         (thumb1_output_function_prologue): Ditto.
21049         (arm_set_return_address): Ditto.
21050         (thumb_set_return_address): Ditto.
21051         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
21052         regs to achieve stack alignment.
21053         (thumb1_compute_save_reg_mask): Fix compiler warning.
21054         (arm_output_epilogue): Use offsets->saved_regs_mask.
21055         Adjust stack pointer by poping call clobered registers.
21056         (arm_expand_prologue): Use offsets->saved_regs_mask.
21057         Adjust stack pointer by pushing extra registers.
21058         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
21059
21060 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
21061
21062         PR tree-opt/35422
21063         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
21064         conversion to the operands of a multiplication.
21065
21066 2008-03-12  Richard Guenther  <rguenther@suse.de>
21067
21068         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
21069         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
21070         * timevar.def (TV_TREE_PHIPROP): Add.
21071         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
21072         pass description.  Use TV_TREE_PHIPROP.
21073         * tree-ssa-forwprop.c: Remove phiprop code.
21074
21075 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
21076
21077         PR middle-end/35549
21078         * omp-low.c (maybe_lookup_decl): Constify first argument.
21079         (use_pointer_for_field): Change last argument from bool to
21080         omp_context *.  Disallow shared copy-in/out in nested
21081         parallel if decl is shared in outer parallel too.
21082         (build_outer_var_ref, scan_sharing_clauses,
21083         lower_rec_input_clauses, lower_copyprivate_clauses,
21084         lower_send_clauses, lower_send_shared_vars): Adjust callers.
21085
21086 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
21087             Ira Rosen  <irar@il.ibm.com>
21088
21089         * tree-vectorizer.c (free_stmt_vec_info): New function.
21090         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
21091         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
21092         * tree-vectorizer.h (free_stmt_vec_info): Declare.
21093         * tree-vect-transform.c (vectorizable_conversion): Free
21094         vec_oprnds0 if it was allocated.
21095         (vect_permute_store_chain): Remove unused VECs.
21096         (vectorizable_store): Free VECs that are allocated in the..
21097         function.
21098         (vect_transform_strided_load, vectorizable_load): Likewise.
21099         (vect_remove_stores): Simplify the code.
21100         (vect_transform_loop): Move code to vect_remove_stores().
21101         Call vect_remove_stores() and free_stmt_vec_info().
21102
21103 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21104
21105         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
21106         TARGET_HPUX.  Revise comment.
21107         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
21108         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
21109         Use sr4 variant of `be' instruction when not generating PIC code.
21110         (attr_length_call): Adjust for above change.
21111
21112 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21113
21114         * ipa-reference.c (static_execute): Remove module_statics_const and
21115         associated setting code.
21116
21117 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
21118
21119         PR target/35540
21120         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
21121         predicate for operand 1.
21122         (paritysi2_cmp): Use register_operand predicate for operand 2.
21123         Use earlyclobber modifier for operand 1.  Remove support for
21124         memory operands.
21125         (paritydi2_cmp): Use register_operand predicate for operand 3.
21126         Use earlyclobber modifier for operand 1.  Remove support for
21127         memory operands.
21128
21129 2008-03-11  Paul Brook  <paul@codesourcery.com>
21130             Vladimir Prus  <vladimir@codesourcery.com>
21131
21132         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
21133         (arm_compute_save_reg0_reg12_mask): Always
21134         check if register 11 must be saved.  Always safe hard frame pointer
21135         when frame_pointer_needeed.
21136         (arm_compute_save_reg_mask): Save IP and PC
21137         only with apcs frames.
21138         (arm_output_epilogue): Adjust Thumb2 codepath to
21139         be also invoked and work for ARM non-apcs frames.
21140         (arm_expand_prologue): Don't bother saving IP
21141         for non-apcs frame, since it's not clobbered by
21142         prologue code.  Implement non-apcs frame
21143         layout.
21144
21145 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
21146
21147         PR rtl-optimization/35281
21148         * expr.c (convert_move): Use a new pseudo for the intermediate
21149         from_mode->word_mode result.
21150
21151 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
21152
21153         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
21154         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
21155         * toplev.c (compile_file): Don't call it.
21156
21157 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
21158
21159         PR middle-end/35526
21160         * expr.c (store_expr): Call emit_block_move if the mode
21161         of "temp" RTX is BLKmode.
21162
21163 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21164             Richard Guenther  <rguenther@suse.de>
21165
21166         PR tree-optimization/31358
21167         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
21168         the step with a NULL_TREE.
21169         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
21170         to sizetype if type is a pointer type.
21171         (add_candidate_1): Don't convert the base and step to
21172         the generic type if the orginal type is a pointer type.
21173         (add_iv_value_candidates): Use sizetype for the step
21174         if type is a pointer type.
21175         (cand_value_at): Likewise.
21176         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
21177         for pointer types.
21178         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
21179         Don't convert the tem affine to the type.
21180         (add_elt_to_tree): Use sizetype for the step if a pointer.
21181         Use POINTER_PLUS_EXPR for pointers.
21182         (aff_combination_to_tree): Use sizetype for the step if a
21183         pointer.
21184
21185 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
21186
21187         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
21188         Remove commutativity hint.
21189
21190 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
21191
21192         PR c/35438
21193         PR c/35439
21194         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
21195         errorneous type.  Check that v is a VAR_DECL.
21196
21197         PR middle-end/35099
21198         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
21199
21200 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
21201
21202         PR tree-optimization/35494
21203         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
21204         may be overriden at link and run time.
21205
21206 2008-03-10  Richard Guenther  <rguenther@suse.de>
21207
21208         PR tree-optimization/34677
21209         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
21210         (poolify_tree): Likewise.
21211         (modify_expr_template): Likewise.
21212         (poolify_modify_stmt): Likewise.
21213         (insert_fake_stores): Handle all component-ref style stores
21214         in addition to INDIRECT_REF.  Also handle complex types.
21215         Do not poolify the inserted load.
21216         (realify_fake_stores): Do not rebuild the tree but only
21217         make it a SSA_NAME copy.
21218         (init_pre): Remove initialzation of modify_expr_template.
21219         Do not allocate modify_expr_node_pool.
21220         (fini_pre): Do not free modify_expr_node_pool.
21221
21222 2008-03-10  Paul Brook  <paul@codesourcery.com>
21223
21224         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
21225         to avoid conflicts.
21226
21227 2008-03-10  Paul Brook  <paul@codesourcery.com>
21228             Mark Shinwell  <shinwell@codesourcery.com>
21229
21230         * config/arm/cortex-r4.md: New.
21231         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
21232         insn attributes.
21233         * config/arm/arm.md: Include cortex-r4.md.
21234         (insn): Add smmls, sdiv and udiv values.
21235         (generic_sched): Don't use generic scheduling for Cortex-R4.
21236         (arm_issue_rate): New function.
21237         (TARGET_SCHED_ISSUE_RATE): Define.
21238
21239 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
21240
21241         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
21242
21243 2008-03-10  Richard Guenther  <rguenther@suse.de>
21244
21245         * tree-ssa-pre.c (get_sccvn_value): Simplify.
21246         (compute_avail): Do not add stmt uses to AVAIL_OUT.
21247
21248 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
21249
21250         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
21251         Set default to true.
21252
21253 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21254
21255         * c.opt (Wsynth): Deprecate.
21256         * doc/invoke.texi (Option Summary, Warning Options): Document
21257         -Wno-format-contains-nul.
21258
21259 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
21260
21261         PR target/35496
21262         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
21263         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
21264
21265 2008-03-09  Ira Rosen  <irar@il.ibm.com>
21266
21267         * config/rs6000/rs6000.c (builtin_description): Rename vector
21268         left shift operations.
21269         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
21270         (altivec_vsl<VI_char>): Rename to ...
21271         (ashl<mode>3): ... new name.
21272         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
21273         gen_ashlv4si3.
21274         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
21275
21276 2008-03-08  Richard Guenther  <rguenther@suse.de>
21277
21278         * coverage.h (tree_coverage_counter_addr): Declare.
21279         * coverage.c (tree_coverage_counter_addr): New function.
21280         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
21281         before using again.
21282         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
21283         (tree_gen_one_value_profiler): Likewise.
21284         (tree_gen_ic_profiler): Likewise.
21285         (tree_gen_average_profiler): Likewise.
21286         (tree_gen_ior_profiler): Likewise.
21287
21288 2008-03-08  Richard Guenther  <rguenther@suse.de>
21289
21290         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
21291         (vn_binary_op_insert): Likewise.
21292         (vn_unary_op_lookup): Likewise.
21293         (vn_unary_op_insert): Likewise.
21294         (vn_nary_op_lookup): Declare.
21295         (vn_nary_op_insert): Likewise.
21296         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
21297         and binary hashes, use a single obstack for unary_op_pool
21298         and binary_op_pool.
21299         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
21300         a single struct vn_nary_op_s.  Store tree code length and
21301         a variable number of operands.
21302         (struct vn_reference_op_struct): Remove unused op2.
21303         (vn_reference_op_eq): Do not compare op2.
21304         (vn_reference_op_compute_hash): Do not compute hash of op2.
21305         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
21306         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
21307         with vn_nary_op_compute_hash.
21308         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
21309         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
21310         vn_nary_op_lookup.
21311         (vn_unary_op_insert, vn_binary_op_insert): Replace with
21312         vn_nary_op_insert.
21313         (visit_unary_op): Call nary functions.
21314         (visit_binary_op): Likewise.
21315         (process_scc): Adjust for struct vn_tables_s changes.
21316         (allocate_vn_table): Likewise.
21317         (free_vn_table): Likewise.
21318         * tree-vn.c (vn_add): Call nary functions.
21319         (vn_lookup): Likewise.
21320
21321 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
21322
21323         PR target/35498
21324         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
21325         wdst back after sync_compare_and_swapqhi_internal.
21326
21327 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
21328
21329         PR target/22152
21330         * config/i386/i386-modes.def (V1DI): New vector mode.
21331         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
21332         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
21333         (MMXMODE248): Ditto.
21334         (MMXMODE): Add V1DI mode.
21335         (mmxvecsize): Change DI mode to V1DI mode.
21336         ("mov<mode>): Use MMXMODEI8 mode iterator.
21337         ("*mov<mode>_internal_rex64"): Ditto.
21338         ("*mov<mode>_internal"): Ditto.
21339         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
21340         ("mmx_sub<mode>3"): Ditto.
21341         ("mmx_adddi3"): Remove insn pattern.
21342         ("mmx_subdi3"): Ditto.
21343         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
21344         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
21345         ("mmx_ashl<mode>3"): Ditto.
21346         ("mmx_lshrdi3"): Remove insn pattern.
21347         ("mmx_ashldi3"): Ditto.
21348         * config/i386/i386.c (classify_argument): Handle V1DImode.
21349         (function_arg_advance_32): Ditto.
21350         (function_arg_32): Ditto.
21351         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
21352         mmx_addv1di3 insn pattern.
21353         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
21354         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
21355         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
21356         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
21357         Remove definitions of built-in functions.
21358         (V1DI_type_node): New node.
21359         (v1di_ftype_v1di_int): Ditto.
21360         (v1di_ftype_v1di_v1di): Ditto.
21361         (v2si_ftype_v2si_si): Ditto.
21362         (v4hi_ftype_v4hi_di): Remove node.
21363         (v2si_ftype_v2si_di): Ditto.
21364         (ix86_init_mmx_sse_builtins): Handle V1DImode.
21365         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
21366         Redefine builtins using def_builtin_const with *_ftype_*_int node.
21367         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
21368         Add new builtins using def_builtin_const.
21369         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
21370         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
21371         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
21372         * config/i386/mmintrin.h (__v1di): New typedef.
21373         (_mm_add_si64): Cast arguments to __v1di type.
21374         (_mm_sub_si64): Ditto.
21375         (_mm_sll_pi16): Cast __count to __v4hi type.
21376         (_mm_sll_pi32): Cast __count to __v2si type.
21377         (_mm_sll_si64): Cast arguments to __v1di type.
21378         (_mm_srl_pi16): Cast __count to __v4hi type.
21379         (_mm_srl_pi32): Cast __count to __v2si type.
21380         (_mm_srl_si64): Cast arguments to __v1di type.
21381         (_mm_sra_pi16): Cast __count to __v4hi type.
21382         (_mm_sra_pi32): Cast __count to __v2si type.
21383         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
21384         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
21385         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
21386         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
21387         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
21388         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
21389         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
21390         (_mm_srai_pi32): Use __builtin_ia32_psradi.
21391         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
21392         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
21393         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
21394         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
21395
21396 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
21397
21398         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
21399
21400 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
21401
21402         PR target/35373
21403         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
21404         reg+const addressing for Altivec modes.  Don't generate reg+reg
21405         addressing for TFmode or TDmode quantities.
21406
21407 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
21408
21409         * c-common.c (vector_types_convertible_p): Call langhook
21410         instead of comptypes.
21411
21412 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21413
21414         PR tree-opt/35402
21415         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
21416         integral and scalar float variables which have a
21417         NULL DECL_INITIAL.
21418
21419 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
21420
21421         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
21422         dwarf_register_span hook when emitting unwind information for
21423         register-to-memory saves.
21424         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
21425         (rs6000_frame_related): Remove call to spe_synthesize_frame.
21426
21427 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
21428
21429         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
21430         for the same VAR_DECL.
21431
21432 2008-03-06  Tom Tromey  <tromey@redhat.com>
21433
21434         * treelang: Delete.
21435         * doc/standards.texi (Standards): Don't mention treelang.
21436         * doc/invoke.texi (Overall Options): Don't mention treelang.
21437         * doc/install.texi (Prerequisites): Don't mention bison or
21438         treelang.
21439         (Configuration): Don't mention treelang.
21440         (Building): Likewise.
21441         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
21442
21443 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
21444
21445         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
21446         word-extractions out of a multi-word object.
21447
21448 2008-03-06  Richard Guenther  <rguenther@suse.de>
21449
21450         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
21451         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
21452         result type and precision.
21453         * expr.c (get_inner_reference): Set unsignedp based on the result
21454         type of BIT_FIELD_REF.
21455         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
21456         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
21457         (try_instantiate_multiple_fields): Likewise.  Use the correct type
21458         for BIT_FIELD_REF.
21459         (sra_build_assignment): Likewise.
21460         (sra_build_elt_assignment): Likewise.
21461         (sra_explode_bitfield_assignment): Likewise.
21462         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
21463         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
21464         set BIT_FIELD_REF_UNSIGNED.
21465         (vectorizable_load): Likewise.
21466
21467 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
21468
21469         * cse.c (cse_extended_basic_block): Invalidate artificial defs
21470         at bb start.
21471
21472 2008-03-06  Richard Guenther  <rguenther@suse.de>
21473
21474         * alias.c (struct alias_set_entry): Move has_zero_child field
21475         to pack with alias_set.
21476
21477 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
21478
21479         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
21480         32bit host.
21481
21482 2008-03-05  Ian Lance Taylor  <iant@google.com>
21483
21484         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
21485
21486 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
21487
21488         * fwprop.c (update_df): Support width and offset parameters of
21489         df_ref_create.
21490         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
21491         global_conflicts): Change DF_REF_EXTRACT to either
21492         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
21493         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
21494         * df-scan.c (df_ref_record, df_defs_record,
21495         df_ref_create_structure, df_def_record_1, df_uses_record,
21496         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
21497         df_bb_refs_collect, df_entry_block_defs_collect,
21498         df_exit_block_uses_collect): Support new width and offset fields.
21499         (ref_extract_pool): New storage pool.
21500         (df_free_ref): New function.
21501         (df_reg_chain_unlink, df_free_collection_rec,
21502         df_sort_and_compress_refs): Call df_free_ref.
21503         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
21504         of df_ref_extract.
21505         (df_ref_create_structure): Allocate df_ref_extract if offset and
21506         width fields are used.
21507         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
21508         (df_uses_record): Get offset and width from ZERO_EXTRACT
21509         and SIGN_EXTRACT.
21510         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
21511         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
21512         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
21513         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
21514         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
21515         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
21516         (df_ref_extract): New structure.
21517         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
21518         (df_ref_create): Add width and offset parameters.
21519
21520 2008-03-05  Richard Guenther  <rguenther@suse.de>
21521
21522         * tree-ssa-structalias.c (get_constraint_for_component_ref):
21523         Use ranges_overlap_p.
21524         (offset_overlaps_with_access): Rename
21525         to ranges_overlap_p and move ...
21526         * tree-flow-inline.h (ranges_overlap_p): ... here.
21527
21528         * tree.h (get_inner_reference, handled_component_p): Update
21529         comments.
21530
21531         * tree.h (record_component_aliases, get_alias_set,
21532         alias_sets_conflict_p, alias_sets_must_conflict_p,
21533         objects_must_conflict_p): Move declarations ...
21534         * alias.h (record_component_aliases, get_alias_set,
21535         alias_sets_conflict_p, alias_sets_must_conflict_p,
21536         objects_must_conflict_p): ... here.
21537         Include coretypes.h.
21538         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
21539
21540 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
21541
21542         * cfg.c: Include tree-flow.h.
21543         (remove_edge_raw): Call redirect_edge_var_map_clear.
21544         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
21545         * tree-flow-inline.h (redirect_edge_var_map_def): New.
21546         (redirect_edge_var_map_result): New.
21547         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
21548         PENDING_STMT use with redirect_edge_var_map_*.
21549         * tree-ssa.c (edge_var_maps): New definition.
21550         (redirect_edge_var_map_add): New.
21551         (redirect_edge_var_map_clear): New.
21552         (redirect_edge_var_map_dup): New.
21553         (redirect_edge_var_map_vector): New.
21554         (redirect_edge_var_map_destroy): New.
21555         (ssa_redirect_edge): Replace PENDING_STMT use with
21556         redirect_edge_var_map_*.
21557         (flush_pending_stmts): Same.
21558         (delete_tree_ssa): Destroy edge var map.
21559         * tree-flow.h (struct _edge_var_map): New.
21560         Define edge_var_map vector type.
21561         Declare redirect_edge_var_map_* prototypes.
21562         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
21563         * tree-cfg.c (reinstall_phi_args): Replace
21564         PENDING_STMT use with redirect_edge_var_map_*.
21565
21566 2008-03-05  Richard Guenther  <rguenther@suse.de>
21567
21568         PR tree-optimization/35472
21569         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
21570         whose single use_stmt has a overlapping set of loaded and
21571         stored symbols as that use_stmt might be a noop assignment then.
21572
21573 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
21574
21575         * gthr-rtems.h: Implement __gthread_mutex_destroy.
21576
21577 2008-03-05  Richard Guenther  <rguenther@suse.de>
21578
21579         PR c++/35336
21580         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
21581         should be constants.
21582         * tree-cfg.c (verify_expr): Verify it.
21583         * fold-const.c (fold_truthop): Remove code generating
21584         BIT_FIELD_REFs of structure bases.
21585         (fold_binary): Likewise.
21586         (fold_ternary): Position and size of BIT_FIELD_REFs are
21587         always host integers.
21588         (make_bit_field_ref): Remove.
21589         (optimize_bit_field_compare): Remove.
21590         (all_ones_mask_p): Remove.
21591
21592 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
21593
21594         PR gcc/33009
21595         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
21596         (split_block_and_df_analyze): New. Split basic block and rebuild
21597         dataflow.
21598         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
21599         SPLIT_BLOCK.
21600         (split_pattern_seq): Likewise.
21601         (erase_matching_seqs): Likewise.
21602         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
21603
21604 2008-03-04  Geoff Keating  <geoffk@apple.com>
21605
21606         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
21607         declaration and code.
21608         (tree_invalid_nonnegative_warnv_p): Likewise.
21609
21610 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
21611
21612         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
21613         examples.  Truncate option-names then causing overfull hbox.
21614
21615 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21616
21617         PR target/35222
21618         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
21619         on hpux10.
21620         * configure: Rebuilt.
21621
21622 2008-03-04  Rafael Espíndola  <espindola@google.com>
21623
21624         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
21625         (tree_unary_nonnegative_warnv_p): New.
21626         (tree_binary_nonnegative_warnv_p): New.
21627         (tree_single_nonnegative_warnv_p): New.
21628         (tree_invalid_nonnegative_warnv_p): New.
21629         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
21630
21631 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21632
21633         PR 28322
21634         * opts.c (handle_option): Postpone 'unknown option' errors only for
21635         warning options.
21636
21637 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
21638
21639         PR target/35453
21640         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
21641         (_SIDD_XXX): This.
21642
21643 2008-03-04  Rafael Espíndola  <espindola@google.com>
21644
21645         * fold-const.c (tree_unary_nonzero_warnv_p): New.
21646         (tree_binary_nonzero_warnv_p): New.
21647         (tree_single_nonzero_warnv_p): New.
21648         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
21649
21650 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
21651
21652         PR middle-end/35456
21653         * fold-const.c (fold_cond_expr_with_comparison): Prevent
21654         transformations for modes that have signed zeros.
21655         * ifcvt.c (noce_try_abs): Ditto.
21656
21657 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
21658
21659         * config/i386/i386.c (override_options): Force
21660         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
21661
21662 2008-03-04  Jan Hubicka  <jh@suse.cz>
21663
21664         PR c++/35262
21665         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
21666         in last commit.
21667
21668 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
21669
21670         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
21671         label to probe the stack.
21672
21673 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
21674
21675         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
21676         (__gthr_win32_mutex_destroy): Declare.
21677         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
21678         __gthr_win32_mutex_destroy.
21679         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
21680
21681 2008-03-03  Jan Hubicka  <jh@suse.cz>
21682
21683         PR c++/35262
21684         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
21685         aggressive on inlining cold calls.
21686
21687 2008-03-03  Richard Guenther  <rguenther@suse.de>
21688
21689         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
21690         struct copies into the expression table.
21691         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
21692         (try_to_simplify): Likewise.
21693         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
21694         integral and pointer arguments which do not change the
21695         precision to NOP_EXPRs.
21696         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
21697         VIEW_CONVERT_EXPR case.
21698
21699 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
21700
21701         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
21702         defined in a loop at depth 0 is invariant.
21703         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
21704         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
21705         be called at loop depth 0.
21706
21707 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
21708
21709         PR driver/35420
21710         * gcc.c (process_command): Update copyright notice dates.
21711         * gcov.c (print_version): Likewise.
21712         * gcov-dump.c (print_version): Likewise.
21713         * mips-tfile.c (main): Likewise.
21714         * mips-tdump.c (main): Likewise.
21715
21716 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21717
21718         PR 24924
21719         * c-common.c (flag_permissive): Delete.
21720         (constant_expression_warnings): Check flags first.
21721         (constant_expression_error): New.
21722         * c-common.h (flag_permissive): Delete.
21723         (constant_expression_error): Declare.
21724         * flags.h (flag_permissive): Declare. Update description.
21725         * diagnostic.c (pedwarn): Update.
21726         (permerror): New.
21727         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
21728         (permissive_error_kind): New.
21729         * toplev.c (flag_permissive): Define. Update description.
21730         * toplev.h (permissive_error_kind): Declare.
21731         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
21732         (pedwarn_c90): Use pedantic_warning_kind.
21733         * c-opts.c (c_common_post_options): flag_permissive does not affect
21734         flag_pedantic_errors.
21735
21736 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
21737
21738         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
21739         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
21740         __absvsi2, __absvDI2): Use unsigned arithmetic.
21741
21742 2008-03-02  Andi Kleen  <ak@suse.de>
21743             Richard Guenther  <rguenther@suse.de>
21744
21745         * struct-equiv.c: Remove file.
21746         * cfg_cleanup.c (condjump_equiv_p): Remove.
21747         * Makefile.in (OBJS-common): Remove struct-equiv.o.
21748         (struct-equiv.o): Remove rule.
21749         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
21750         insns_match_p, struct_equiv_block_eq, struct_equiv_init,
21751         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
21752
21753 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
21754
21755         * ifcvt.c (noce_process_if_block): Try to handle only the then
21756         block if the else block exists but isn't suitable.
21757
21758 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
21759
21760         PR gcc/35063
21761         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
21762         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
21763         regression from previous patch.
21764
21765 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
21766
21767         PR gcc/35063
21768         * gthr.h: Add __gthread_mutex_destroy as a function that must be
21769         implemented.
21770         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
21771         * gthr-single.h (__gthread_mutex_destroy): Likewise.
21772         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
21773         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
21774         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
21775         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
21776         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
21777         (__gthread_mutex_destroy_function): Rename to
21778         __gthread_mutex_destroy.
21779         * gthr-dce.h (__gthread_mutex_destroy): Call
21780         pthread_mutex_destroy.
21781         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
21782         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
21783         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
21784
21785 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
21786
21787         * df-scan.c (df_ref_chain_change_bb): Simplify.
21788         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
21789         set_block_for_insn if there's any change.
21790         * df.h ((df_insn_change_bb): Fix prototype.
21791         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
21792         df_insn_change_bb, don't call set_block_for_insn.
21793         * emit-rtl.c (reorder_insns): Likewise.
21794         * haifa-sched.c (move_insn): Likewise.
21795
21796 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
21797
21798         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
21799
21800 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
21801
21802         * tree-flow-inline.h (next_readonly_imm_use): Return
21803         NULL_USE_OPERAND_P after the end.
21804
21805 2008-03-01  Richard Guenther  <rguenther@suse.de>
21806
21807         PR tree-optimization/35411
21808         * tree-sra.c (sra_build_assignment): Split conversion to
21809         final type to a separate statement if we are not assigning
21810         to a register.
21811
21812 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
21813
21814         * fold-const.c (fold_convertible_p): Correct the logic to follow
21815         that in fold_convert().
21816
21817 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
21818
21819         PR c++/35315
21820         * tree-inline.c (build_duplicate_type): When we make a
21821         duplicate type, make it unique in the canonical types system.
21822
21823 2008-02-29  Tom Tromey  <tromey@redhat.com>
21824
21825         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
21826         input_file_stack_history, input_file_stack_restored): Remove.
21827         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
21828         * input.h (struct file_stack): Remove.
21829         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
21830         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
21831         Likewise.
21832         * diagnostic.h (struct diagnostic_context) <last_module>: Change
21833         type.
21834         (diagnostic_last_module_changed): Add 'map' argument.
21835         (diagnostic_set_last_function): Likewise.
21836         * diagnostic.c (undiagnostic_report_current_module): Iterate using
21837         line map, not input_file_stack.
21838         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
21839
21840 2008-02-29  Paul Brook  <paul@codesourcery.com>
21841
21842         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
21843
21844 2008-02-29  Paul Brook  <paul@codesourcery.com>
21845
21846         * config/arm/ieee754-df.S (muldf3): Use RET macros.
21847
21848 2008-02-29  Richard Guenther  <rguenther@suse.de>
21849
21850         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
21851         vn_lookup_or_add.
21852         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
21853         value for comparing for a store match.
21854         (simplify_unary_expression): Do nothing for SSA_NAMEs.
21855         (try_to_simplify): Do not do a full-blown reference lookup.
21856
21857 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
21858
21859         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
21860         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
21861
21862         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
21863
21864 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
21865
21866         * tree-loop-linear.c (try_interchange_loops): Compare memory access
21867         strides against cache sizes.
21868
21869 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
21870
21871         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
21872         constant to fpul.
21873
21874 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
21875
21876         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
21877         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
21878         is smaller than the original promoted value.
21879         (simplify_subreg): If OP is a SUBREG, try to preserve its
21880         SUBREG_PROMOTED_VAR_P information.
21881
21882 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
21883
21884         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
21885         (VN_INFO_GET): Allocate new objects on the obstack.
21886         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
21887         for rpo_numbers_temp, for consistency.
21888         (free_scc_vn): Free the obstack.
21889
21890 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
21891
21892         * doc/invoke.texi: Document -ftree-loop-distribution.
21893         * tree-loop-distribution.c: New.
21894         * tree-pass.h (pass_loop_distribution): New.
21895         * graphds.h (struct graph): Add htab_t indices.
21896         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
21897         * tree-vectorizer.c (rename_variables_in_loop): Extern.
21898         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
21899         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
21900         * tree-data-ref.c (debug_data_dependence_relations): New.
21901         (dump_data_dependence_relation): Also print data references.
21902         (free_data_ref): Extern.
21903         (same_access_functions): Moved...
21904         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
21905         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
21906         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
21907         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
21908         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
21909         (stmts_from_loop): Skip LABEL_EXPR.
21910         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
21911         New.
21912         (build_rdg): Initialize rdg->indices htab.
21913         (free_rdg, stores_from_loop, ref_base_address,
21914         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
21915         have_similar_memory_accesses_1, ref_base_address_1,
21916         remove_similar_memory_refs): New.
21917         * tree-data-ref.h: Depend on tree-chrec.h.
21918         (debug_data_dependence_relations, free_data_ref): Declared.
21919         (same_access_functions): ... here.
21920         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
21921         New.
21922         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
21923         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
21924         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
21925         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
21926         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
21927         rdg_vertex_for_stmt): Declared.
21928         (struct rdg_edge): Add level.
21929         (RDGE_LEVEL): New.
21930         (free_rdg, stores_from_loop, remove_similar_memory_refs,
21931         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
21932         Declared.
21933         (rdg_has_similar_memory_accesses): New.
21934         * tree-vect-analyze.c: Remove unused static decls.
21935         * lambda.h (dependence_level): New.
21936         * common.opt (ftree-loop-distribution): New.
21937         * tree-flow.h (mark_virtual_ops_in_bb,
21938         slpeel_tree_duplicate_loop_to_edge_cfg,
21939         rename_variables_in_loop): Declared.
21940         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
21941         (OBJS-common): Add tree-loop-distribution.o.
21942         (tree-loop-distribution.o): New rule.
21943         * tree-cfg.c (mark_virtual_ops_in_bb): New.
21944         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
21945         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
21946
21947 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
21948
21949         PR target/33963
21950         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
21951         other than structures and unions.
21952
21953 2008-02-28  Richard Guenther  <rguenther@suse.de>
21954
21955         Revert:
21956         2008-02-26  Richard Guenther  <rguenther@suse.de>
21957
21958         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
21959         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
21960         (lookup_decl_from_uid): Declare.
21961         (remove_decl_from_map): Likewise.
21962         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
21963         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
21964         (decl_for_uid_map): New global hashtable mapping DECL_UID
21965         to the decl tree.
21966         (init_ttree): Allocate it.
21967         (insert_decl_to_uid_decl_map): New helper function.
21968         (make_node_stat): Insert new decls into the map.
21969         (copy_node_stat): Likewise.
21970         (lookup_decl_from_uid): New function.
21971         (remove_decl_from_map): Likewise.
21972         (print_decl_for_uid_map_statistics): New helper.
21973         (dump_tree_statistics): Call it.
21974
21975         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
21976         (referenced_var_iterator): Adjust.
21977         (FOR_EACH_REFERENCED_VAR): Adjust.
21978         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
21979         (num_referenced_vars): Adjust.
21980         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
21981         (first_referenced_var): Remove.
21982         (end_referenced_vars_p): Likewise.
21983         (next_referenced_var): Likewise.
21984         (referenced_var_iterator_set): New helper function.
21985         * tree-dfa.c (referenced_var_lookup): Adjust.
21986         (referenced_var_check_and_insert): Likewise.
21987         (remove_referenced_var): Likewise.
21988         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
21989         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21990         (verify_call_clobbering): Likewise.
21991         (verify_memory_partitions): Likewise.
21992         (init_tree_ssa): Allocate bitmap instead of hashtable for
21993         referenced_vars.
21994         (delete_tree_ssa): Adjust.
21995         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
21996         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21997         (compute_tag_properties): Likewise.
21998         (set_initial_properties): Likewise.
21999         (find_partition_for): Likewise.
22000         (update_reference_counts): Likewise.
22001         (dump_may_aliases_for): Likewise.
22002         * tree-ssa-operands.c (add_virtual_operand): Likewise.
22003         (add_call_clobber_ops): Likewise.
22004         (add_call_read_ops): Likewise.
22005         (get_asm_expr_operands): Likewise.
22006         * tree-into-ssa.c (dump_decl_set): Likewise.
22007         (update_ssa): Likewise.
22008         * tree-sra.c (scan_function): Likewise.
22009         (decide_instantiations): Likewise.
22010         (scalarize_parms): Likewise.
22011         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
22012         (dsa_named_for): Likewise.
22013         * tree-ssa-structalias.c (update_alias_info): Likewise.
22014         (merge_smts_into): Likewise.
22015
22016 2008-02-27  David Daney  <ddaney@avtrex.com>
22017
22018         PR target/34409
22019         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
22020         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
22021         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
22022         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
22023         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
22024
22025 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
22026
22027         PR target/25477
22028         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
22029         (BUILT_IN_NEXTTOWARD): Remove.
22030         (BUILT_IN_NEXTTOWARDF): Ditto.
22031         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
22032         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
22033
22034 2008-02-27  Tom Tromey  <tromey@redhat.com>
22035
22036         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
22037         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
22038
22039 2008-02-27  Jan Beulich  <jbeulich@novell.com>
22040
22041         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
22042         update the respective field on newdecl.
22043
22044 2008-02-27  Revital Eres  <eres@il.ibm.com>
22045
22046         PR rtl-optimization/34999
22047         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
22048         crossing edges that ends with a call insn.
22049         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
22050         call insn and clear the EDGE_CROSSING flag of the crossing edge
22051         when fixing fallthru edges.
22052
22053 2008-02-27  Richard Guenther  <rguenther@suse.de>
22054
22055         PR middle-end/35390
22056         * fold-const.c (fold_unary): Return the correct argument,
22057         converted to the result type.
22058
22059 2008-02-27  Richard Guenther  <rguenther@suse.de>
22060
22061         PR middle-end/34971
22062         * expr.c (expand_expr_real_1): Assert on rotates that operate
22063         on partial modes.
22064         * fold-const.c (fold_binary): Use the types precision, not the
22065         bitsize of the mode if folding rotate expressions.  Build rotates
22066         only for full modes.
22067
22068 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
22069
22070         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
22071         and CPP_PRAGMA_EOL.
22072         * c-pragma.c (pragma_ns_name): New typedef.
22073         (registered_pp_pragmas): New variable.
22074         (c_pp_lookup_pragma): New function.
22075         (c_register_pragma_1): If flag_preprocess_only, do nothing
22076         for non-expanded pragmas, for expanded ones push pragma's
22077         namespace and name into registered_pp_pragmas vector.
22078         (c_invoke_pragma_handler): Register OpenMP pragmas even when
22079         flag_preprocess_only, don't register GCC pch_preprocess
22080         pragma if flag_preprocess_only.
22081         * c-opts.c (c_common_init): Call init_pragma even if
22082         flag_preprocess_only.
22083         * c-pragma.c (c_pp_lookup_pragma): New prototype.
22084         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
22085         cpp_register_pragma if flag_preprocess_only.
22086
22087 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22088
22089         PR c/28800
22090         * c-parser.c (c_parser_translation_unit): Warn for empty
22091         translation unit, not empty source file.
22092
22093 2008-02-26  Paul Brook  <paul@codesourcery.com>
22094
22095         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
22096         operand for Thumb-2.
22097         * config/arm/arm.h (reg_class): Add CORE_REGS.
22098         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
22099         (BASE_REG_CLASS): Use CORE_REGS.
22100         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
22101         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
22102         (REGNO_OK_FOR_INDEX_P): Exclude SP.
22103         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
22104         ARM_REGNO_OK_FOR_INDEX_P.
22105         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
22106         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
22107         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
22108         (ldm/stm peepholes): Ditto.
22109         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
22110         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
22111         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
22112         * config/arm/constraints.md: Enable "k" constraint on ARM.
22113
22114 2008-02-27  Ben Elliston  <bje@au.ibm.com>
22115
22116         * config/rs6000/rs6000.c: Annotate cache line size field in all
22117         instances of struct processor_costs.
22118
22119 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
22120
22121         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
22122         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
22123         jump_bypass): New counters.
22124         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
22125         * dce.c (gate_ud_dce): Same.
22126         (gate_fast_dce): Same.
22127         * dse.c (gate_dse1): New function.
22128         (gate_dse2): New function.
22129         (gate_dse): Merge results of new gate functions.
22130         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
22131         (gate_handle_jump_bypass): Add dbg_cnt.
22132         (gate_handle_gcse): Add dbg_cnt.
22133         * ifcvt.c (gate_handle_if_conversion): Same.
22134         (gate_handle_if_after_combine): Same.
22135         (gate_handle_if_after_reload): Same.
22136         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
22137
22138 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
22139
22140         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
22141         line sizes.
22142         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
22143
22144 2008-02-26  Jason Merrill  <jason@redhat.com>
22145
22146         PR c++/35315
22147         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
22148         alone if it's the naming decl for the type's main variant.
22149
22150 2008-02-26  Tom Tromey  <tromey@redhat.com>
22151
22152         * system.h (USE_MAPPED_LOCATION): Poison.
22153         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
22154         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
22155         (make_goto_expr_edges): Likewise.
22156         (remove_bb): Likewise.
22157         (execute_warn_function_return): Likewise.
22158         * basic-block.h (struct edge_def) <goto_locus>: Change type to
22159         location_t.
22160         * c-common.c (fname_decl): Remove old location code.
22161         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
22162         location code.
22163         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
22164         variant.
22165         (ASM_INPUT_SOURCE_LOCATION): Likewise.
22166         (gen_rtx_ASM_INPUT): Likewise.
22167         (gen_rtx_ASM_INPUT_loc): Likewise.
22168         (get_rtx_asm_OPERANDS): Remove.
22169         * cfglayout.c (insn_locators_alloc): Remove old location code.
22170         (set_curr_insn_source_location): Likewise.
22171         (curr_insn_locator): Likewise.
22172         * print-tree.c (print_node): Remove old location code.
22173         * tree-mudflap.c (mf_varname_tree): Remove old location code.
22174         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
22175         * cfgexpand.c (expand_gimple_cond_expr): Don't use
22176         location_from_locus.
22177         (construct_exit_block): Remove old location code.
22178         * emit-rtl.c (force_next_line_note): Remove old location code.
22179         * profile.c (branch_prob): Remove old location code.
22180         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
22181         LOC_LINE): Remove old-location variants.
22182         * langhooks.c (lhd_print_error_function): Remove old location
22183         code.
22184         * configure, config.in: Rebuilt.
22185         * configure.ac (--enable-mapped-location): Remove.
22186         * c-decl.c (c_init_decl_processing): Remove old location code.
22187         (finish_function): Likewise.
22188         * recog.c (decode_asm_operands): Remove old location code.
22189         * c-pch.c (c_common_read_pch): Remove old location code.
22190         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
22191         variants.
22192         * gimple-low.c (lower_function_body): Remove old location code.
22193         * toplev.c (unknown_location): Remove.
22194         (push_srcloc): Remove old-location variant.
22195         (process_options): Remove old location code.
22196         (lang_dependent_init): Likewise.
22197         * input.h (UNKNOWN_LOCATION): Move definition.
22198         (location_t): Undeprecate.
22199         (source_locus): Remove.
22200         (location_from_locus): Remove.
22201         (struct location_s): Remove.
22202         Remove all old-location code.
22203         (input_line, input_filename): Remove.
22204         * final.c (final_scan_insn): Remove old location code.
22205         * diagnostic.c (diagnostic_build_prefix): Remove
22206         USE_MAPPED_LOCATION test.
22207         * tree.h (gimple_stmt) <locus>: Now a location_t.
22208         (tree_exp) <locus>: Likewise.
22209         (DECL_IS_BUILTIN): Remove old-location variant.
22210         (annotate_with_file_line, annotate_with_locus): Likewise.
22211         (expr_locus, set_expr_locus): Update.
22212         * tree.c (build1_stat): Remove old location code.
22213         (last_annotated_node): Remove.
22214         (annotate_with_file_line): Remove old-location variant.
22215         (annotate_with_locus): Likewise.
22216         (expr_location): Remove old location code.
22217         (set_expr_location): Likewise.
22218         (expr_has_location): Likewise.
22219         (expr_locus): Likewise.
22220         (set_expr_locus): Likewise.
22221         (expr_filename): Don't use location_from_locus.
22222         (expr_lineno): Likewise.
22223         * rtl-error.c (location_for_asm): Remove old location code.
22224         * c-lex.c (cb_line_change): Remove old location code.
22225         (fe_file_change): Likewise.
22226         (cb_def_pragma): Likewise.
22227         (c_lex_with_flags): Likewise.
22228         * gengtype.c (do_typedef): Don't special-case location types.
22229         (define_location_structures): Remove.
22230         (main): Don't call define_location_structures.
22231         * tree-pretty-print.c (dump_implicit_edges): Remove old location
22232         code.
22233
22234 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22235
22236         PR 26264
22237         * builtins.def (BUILT_IN_STDARG_START): Remove.
22238         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
22239         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
22240         * tree-inline.c (inline_forbidden_p_1): Likewise.
22241
22242 2008-02-26  Richard Guenther  <rguenther@suse.de>
22243
22244         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
22245         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
22246         (lookup_decl_from_uid): Declare.
22247         (remove_decl_from_map): Likewise.
22248         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
22249         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
22250         (decl_for_uid_map): New global hashtable mapping DECL_UID
22251         to the decl tree.
22252         (init_ttree): Allocate it.
22253         (insert_decl_to_uid_decl_map): New helper function.
22254         (make_node_stat): Insert new decls into the map.
22255         (copy_node_stat): Likewise.
22256         (lookup_decl_from_uid): New function.
22257         (remove_decl_from_map): Likewise.
22258         (print_decl_for_uid_map_statistics): New helper.
22259         (dump_tree_statistics): Call it.
22260
22261         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
22262         (referenced_var_iterator): Adjust.
22263         (FOR_EACH_REFERENCED_VAR): Adjust.
22264         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
22265         (num_referenced_vars): Adjust.
22266         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
22267         (first_referenced_var): Remove.
22268         (end_referenced_vars_p): Likewise.
22269         (next_referenced_var): Likewise.
22270         (referenced_var_iterator_set): New helper function.
22271         * tree-dfa.c (referenced_var_lookup): Adjust.
22272         (referenced_var_check_and_insert): Likewise.
22273         (remove_referenced_var): Likewise.
22274         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
22275         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
22276         (verify_call_clobbering): Likewise.
22277         (verify_memory_partitions): Likewise.
22278         (init_tree_ssa): Allocate bitmap instead of hashtable for
22279         referenced_vars.
22280         (delete_tree_ssa): Adjust.
22281         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
22282         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
22283         (compute_tag_properties): Likewise.
22284         (set_initial_properties): Likewise.
22285         (find_partition_for): Likewise.
22286         (update_reference_counts): Likewise.
22287         (dump_may_aliases_for): Likewise.
22288         * tree-ssa-operands.c (add_virtual_operand): Likewise.
22289         (add_call_clobber_ops): Likewise.
22290         (add_call_read_ops): Likewise.
22291         (get_asm_expr_operands): Likewise.
22292         * tree-into-ssa.c (dump_decl_set): Likewise.
22293         (update_ssa): Likewise.
22294         * tree-sra.c (scan_function): Likewise.
22295         (decide_instantiations): Likewise.
22296         (scalarize_parms): Likewise.
22297         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
22298         (dsa_named_for): Likewise.
22299         * tree-ssa-structalias.c (update_alias_info): Likewise.
22300         (merge_smts_into): Likewise.
22301
22302 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22303
22304         PR 34351
22305         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
22306         * c-opts.c (c_common_handle_option): Wall enables
22307         Wvolatile-register-var.
22308         * common.opt: Move Wvolatile-register-var to...
22309         * c.opt: ...here.
22310
22311 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22312
22313         * common.opt (Wlarger-than=): New.
22314         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
22315         -Wlarger-than=.
22316         * opts.c (common_handle_option): Handle -Wlarger-than=.
22317         * optc-gen.awk: Likewise.
22318         * opth-gen.awk: Likewise.
22319         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
22320         * tree-optimize.c (tree_rest_of_compilation): Likewise.
22321
22322 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22323
22324         * c-common.c (match_case_to_enum_1): Add appropriate
22325         OPT_W* parameter to warning.
22326         (c_do_switch_warnings): Likewise.
22327         * c-typeck.c (warning_init): Add one more parameter following
22328         'warning' function.
22329         (push_init_level): Update call to warning_init.
22330         (pop_init_level): Likewise.
22331         (add_pending_init): Likewise.
22332         (output_init_element: Likewise.
22333
22334 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22335
22336         PR 28322
22337         * toplev.c (toplev_main): If there are warnings or error, print
22338         errors for ignored options.
22339         * opts.c (ignored_options): New static variable.
22340         (postpone_unknown_option_error): New.
22341         (print_ignored_options): New.
22342         (handle_option): Postpone errors for unknown -Wno-* options.
22343         * opts.h (print_ignored_options): Declare.
22344
22345 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
22346
22347         * config/mips/mips.md (loadgp_blockage, blockage): Change type
22348         to "ghost".
22349
22350 2008-02-25  Richard Guenther  <rguenther@suse.de>
22351
22352         Revert:
22353         2008-02-25  Richard Guenther  <rguenther@suse.de>
22354
22355         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
22356         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
22357         (lookup_decl_from_uid): Declare.
22358         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
22359         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
22360         (decl_for_uid_map): New global hashtable mapping DECL_UID
22361         to the decl tree.
22362         (init_ttree): Allocate it.
22363         (insert_decl_to_uid_decl_map): New helper function.
22364         (make_node_stat): Insert new decls into the map.
22365         (copy_node_stat): Likewise.
22366         (lookup_decl_from_uid): New function.
22367         (print_decl_for_uid_map_statistics): New helper.
22368         (dump_tree_statistics): Call it.
22369
22370         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
22371         (referenced_var_iterator): Adjust.
22372         (FOR_EACH_REFERENCED_VAR): Adjust.
22373         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
22374         (num_referenced_vars): Adjust.
22375         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
22376         (first_referenced_var): Remove.
22377         (end_referenced_vars_p): Likewise.
22378         (next_referenced_var): Likewise.
22379         (referenced_var_iterator_set): New helper function.
22380         * tree-dfa.c (referenced_var_lookup): Adjust.
22381         (referenced_var_check_and_insert): Likewise.
22382         (remove_referenced_var): Likewise.
22383         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
22384         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
22385         (verify_call_clobbering): Likewise.
22386         (verify_memory_partitions): Likewise.
22387         (init_tree_ssa): Allocate bitmap instead of hashtable for
22388         referenced_vars.
22389         (delete_tree_ssa): Adjust.
22390         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
22391         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
22392         (compute_tag_properties): Likewise.
22393         (set_initial_properties): Likewise.
22394         (find_partition_for): Likewise.
22395         (update_reference_counts): Likewise.
22396         (dump_may_aliases_for): Likewise.
22397         * tree-ssa-operands.c (add_virtual_operand): Likewise.
22398         (add_call_clobber_ops): Likewise.
22399         (add_call_read_ops): Likewise.
22400         (get_asm_expr_operands): Likewise.
22401         * tree-into-ssa.c (dump_decl_set): Likewise.
22402         (update_ssa): Likewise.
22403         * tree-sra.c (scan_function): Likewise.
22404         (decide_instantiations): Likewise.
22405         (scalarize_parms): Likewise.
22406         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
22407         (dsa_named_for): Likewise.
22408         * tree-ssa-structalias.c (update_alias_info): Likewise.
22409         (merge_smts_into): Likewise.
22410
22411 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
22412
22413         PR fortran/29549
22414         * doc/invoke.texi (-fcx-limited-range): Document new option.
22415         * toplev.c (process_options): Handle -fcx-fortran-rules.
22416         * common.opt: Add documentation for -fcx-fortran-rules.
22417
22418 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
22419
22420         PR c/35162
22421         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
22422         actual behaviour and C99.
22423
22424 2008-02-26  Ben Elliston  <bje@au.ibm.com>
22425
22426         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
22427         (ASM_CPU_POWER6_SPEC): Likewise.
22428         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
22429         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
22430         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
22431
22432 2008-02-25  Richard Guenther  <rguenther@suse.de>
22433
22434         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
22435         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
22436         (lookup_decl_from_uid): Declare.
22437         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
22438         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
22439         (decl_for_uid_map): New global hashtable mapping DECL_UID
22440         to the decl tree.
22441         (init_ttree): Allocate it.
22442         (insert_decl_to_uid_decl_map): New helper function.
22443         (make_node_stat): Insert new decls into the map.
22444         (copy_node_stat): Likewise.
22445         (lookup_decl_from_uid): New function.
22446         (print_decl_for_uid_map_statistics): New helper.
22447         (dump_tree_statistics): Call it.
22448
22449         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
22450         (referenced_var_iterator): Adjust.
22451         (FOR_EACH_REFERENCED_VAR): Adjust.
22452         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
22453         (num_referenced_vars): Adjust.
22454         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
22455         (first_referenced_var): Remove.
22456         (end_referenced_vars_p): Likewise.
22457         (next_referenced_var): Likewise.
22458         (referenced_var_iterator_set): New helper function.
22459         * tree-dfa.c (referenced_var_lookup): Adjust.
22460         (referenced_var_check_and_insert): Likewise.
22461         (remove_referenced_var): Likewise.
22462         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
22463         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
22464         (verify_call_clobbering): Likewise.
22465         (verify_memory_partitions): Likewise.
22466         (init_tree_ssa): Allocate bitmap instead of hashtable for
22467         referenced_vars.
22468         (delete_tree_ssa): Adjust.
22469         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
22470         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
22471         (compute_tag_properties): Likewise.
22472         (set_initial_properties): Likewise.
22473         (find_partition_for): Likewise.
22474         (update_reference_counts): Likewise.
22475         (dump_may_aliases_for): Likewise.
22476         * tree-ssa-operands.c (add_virtual_operand): Likewise.
22477         (add_call_clobber_ops): Likewise.
22478         (add_call_read_ops): Likewise.
22479         (get_asm_expr_operands): Likewise.
22480         * tree-into-ssa.c (dump_decl_set): Likewise.
22481         (update_ssa): Likewise.
22482         * tree-sra.c (scan_function): Likewise.
22483         (decide_instantiations): Likewise.
22484         (scalarize_parms): Likewise.
22485         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
22486         (dsa_named_for): Likewise.
22487         * tree-ssa-structalias.c (update_alias_info): Likewise.
22488         (merge_smts_into): Likewise.
22489
22490 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
22491
22492         PR target/35258
22493         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
22494         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
22495         * alias.h (nonoverlapping_memrefs_p): Likewise.
22496
22497 2008-02-25  Jan Beulich  <jbeulich@novell.com>
22498
22499         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
22500         * config/i386/netware-libgcc.exp: Add __bswap?i2,
22501         __emultls_get_address, __emultls_register_common,
22502         __floatundi?f, and _Unwind_GetIPInfo.
22503         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
22504         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
22505         (gen_regparm_prefix): Likewise.
22506         (i386_nlm_encode_section_info): Sync with
22507         config/i386/winnt.c:i386_pe_encode_section_info().
22508         (i386_nlm_maybe_mangle_decl_assembler_name): New.
22509         i386_nlm_mangle_decl_assembler_name): New.
22510         (netware_override_options): New.
22511         * config/i386/netware.h (netware_override_options): Declare.
22512         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
22513         (i386_nlm_mangle_decl_assembler_name): Declare.
22514         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
22515
22516 2008-02-25  Ben Elliston  <bje@au.ibm.com>
22517
22518         PR other/32948
22519         * c-decl.c (grokdeclarator): Remove unused local variables
22520         `typedef_type' and `type_as_written'.
22521         * bb-reorder.c
22522         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
22523         unused local variable `has_hot_blocks'.
22524         (fix_crossing_conditional_branches): Remove unused local variable
22525         `prev_bb'.
22526
22527 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
22528
22529         PR middle-end/19984
22530         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
22531         using DEF_C99_BUILTIN.
22532         (BUILT_IN_NANF): Ditto.
22533         (BUILT_IN_NANL): Ditto.
22534
22535 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
22536             Revital Eres  <eres@il.ibm.com>
22537
22538         * modulo-sched.c (calculate_must_precede_follow): Address TODO
22539         regarding the order of two dependent insns in the same row.
22540
22541 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
22542
22543         * stor-layout.c (layout_decl): Do not bump the alignment of a
22544         bit-field to more than byte alignment if it is packed.
22545
22546 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
22547
22548         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
22549         e300c2 and e300c3.
22550
22551 2008-02-24  Diego Novillo  <dnovillo@google.com>
22552
22553         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
22554
22555         PR 33738
22556         * tree-vrp.c (vrp_evaluate_conditional): With
22557         -Wtype-limits, emit a warning when comparing against a
22558         constant outside the natural range of OP0's type.
22559         * c.opt (Wtype-limits): Move ...
22560         * common.opt (Wtype-limits): ... here.
22561
22562 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
22563
22564         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
22565         * config/rs6000/e300c2c3.md: New file.
22566         * config/rs6000/rs6000.c (processor_costs): Add new costs for
22567         e300c2 and e300c3.
22568         (rs6000_override_options): Add e300c2 and e300c3 cases to
22569         processor_target_table. Do not allow usage of Altivec or Spe
22570         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
22571         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
22572         * config/rs6000/rs6000.h (processor_type): Add
22573         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
22574         (ASM_CPU_SPEC): Add e300c2 and e300c3.
22575         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
22576         and ppce300c3. Include e300c2c3.md.
22577
22578 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
22579
22580         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
22581         instead of TARGET_STRICT_ALIGN.
22582
22583 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
22584
22585         * explow.c (memory_address): Assert that the generated address is
22586         valid.
22587
22588 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
22589
22590         PR target/25477
22591         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
22592         * config/darwin-ppc-ldouble-patch.def: New file.
22593         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
22594         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
22595         SUBTARGET_INIT_BUILTINS if defined.
22596         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
22597         New functions.
22598
22599 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
22600
22601         PR rtl-opt/33512
22602         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
22603         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
22604
22605 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
22606
22607         PR pch/35027
22608         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
22609         file" warning condtional on -Winvalid-PCH.
22610
22611 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
22612
22613         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
22614
22615 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
22616
22617         PR target/22076
22618         PR target/34256
22619         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
22620         prevent reload from using MMX registers.
22621         (*mov<mode>_internal): Ditto.
22622         (*movv2sf_internal_rex64): Ditto.
22623         (*movv2sf_internal): Ditto.
22624
22625 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22626
22627         PR documentation/31569
22628         * doc/install.texi2html: Use makeinfo --no-number-sections.
22629
22630 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
22631
22632         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
22633         ensure that we can address an entire entity > 8 bytes.  Don't
22634         generate reg+reg addressing for such data.
22635
22636 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
22637
22638         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
22639         strings when optimizing for size, unless the target cares about
22640         alignment.
22641
22642 2008-02-22  Tom Tromey  <tromey@redhat.com>
22643
22644         * regclass.c (current_pass): Remove declaration.
22645
22646 2008-02-22  Anatoly Sokolov <aesok@post.ru>
22647
22648         * config/avr/libgcc.S (__RAMPZ__): Define.
22649         (__do_copy_data): Add for devices with 128KB code memory.
22650
22651 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
22652
22653         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
22654         Use spe_abi.
22655         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
22656
22657 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
22658
22659         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
22660         GENNONACR_REGS.
22661
22662 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22663
22664         PR c/19999
22665         * c-typeck.c (build_binary_op): Warn about floating point
22666         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
22667
22668 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
22669
22670         PR target/34526
22671         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
22672         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
22673         add vrsave.
22674         (rs6000_override_options): Set altivec_abi as default, not override,
22675         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
22676         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
22677         is used; use new member spe_abi.
22678         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
22679         spe_abi and altivec_abi.
22680
22681 2008-02-22  Tomas Bily  <tbily@suse.cz>
22682
22683         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
22684
22685 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22686
22687         PR bootstrap/35273
22688         * config.build (build_file_translate): Set to `CMD //c' only if
22689         it works.
22690         * Makefile.in (build_file_translate): Improve comment.
22691
22692 2008-02-21  Jan Hubicka  <jh@suse.cz>
22693
22694         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
22695         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
22696         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
22697
22698 2008-02-21  Michael Matz  <matz@suse.de>
22699
22700         PR target/35264
22701         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
22702
22703 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
22704
22705         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
22706         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
22707         as insn constraint.
22708         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
22709         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
22710         SSE_VEC_FLOAT_MODE_P as insn constraint.
22711         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
22712         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
22713         sse4a_movntdf using MODEF mode iterator.
22714         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
22715         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
22716         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
22717         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
22718         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
22719         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
22720         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
22721
22722 2008-02-21  Richard Guenther  <rguenther@suse.de>
22723
22724         * tree.def (PAREN_EXPR): New tree code.
22725         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
22726         and PAREN_EXPR.
22727         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
22728         * expr.c (expand_expr_real_1): Likewise.
22729         * tree-inline.c (estimate_num_insns_1): Likewise.
22730         * tree-complex.c (expand_complex_move): Likewise.
22731         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
22732         as plain x.
22733
22734 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
22735
22736         PR target/35225
22737         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
22738
22739 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
22740
22741         PR target/35190
22742         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
22743
22744         * config/sh/sh.c (find_barrier): Don't go past
22745         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
22746
22747 2008-02-20  DJ Delorie  <dj@redhat.com>
22748
22749         * config/h8300/h8300.md (insv): Force source operand to be a register.
22750
22751         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
22752         as a jump, not as a plain insn.
22753
22754 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
22755
22756         * doc/invoke.texi (Warning Options): Add new option
22757         -Wframe-larger-than=.
22758         (-Wframe-larger-than): Document.
22759
22760         * flags.h (warn_frame_larger_than, frame_larger_than_size):
22761         Add declarations for new option variables.
22762
22763         * final.c (final_start_function): Check the frame size
22764         before emission and issue a Wframe-larger-than warning.
22765
22766         * opts.c (warn_frame_larger_than, frame_larger_than_size):
22767         Add definitions for new option variables.
22768         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
22769
22770         * common.opt (Wframe-larger-than=): New option.
22771
22772 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
22773
22774         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
22775         (<sse>_div<mode>3): Ditto.
22776         (<sse>_vmdiv<mode>3): Ditto.
22777         (<sse>_vmsqrt<mode>2): Ditto.
22778         (*smax<mode>3): Ditto.
22779         (sse5_frcz<mode>2): Ditto.
22780         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
22781         as insn constraint.
22782
22783 2008-02-20  Richard Guenther  <rguenther@suse.de>
22784
22785         PR middle-end/35265
22786         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
22787         be happy with INTEGRAL_TYPE_P.
22788
22789 2008-02-20  Richard Guenther  <rguenther@suse.de>
22790
22791         * fold-const.c (split_tree): Associate floatig-point expressions
22792         if flag_associative_math is set.
22793
22794 2008-02-20  Richard Guenther  <rguenther@suse.de>
22795
22796         * tree.h (fold_real_zero_addition_p): Declare.
22797         * fold-const.c (fold_real_zero_addition_p): Export.
22798         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
22799         floating-point operations with zero and one.
22800
22801 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
22802
22803         * doc/install.texi: Correct references to CFLAGS, replacing them
22804         with BOOT_CFLAGS.  Document flags used during bootstrap for
22805         target libraries.
22806
22807 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
22808
22809         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
22810         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
22811         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
22812         insn constraint.
22813         (smin<mode>3): Ditto from similar patterns.
22814         (smax<mode>3): Ditto.
22815         (*ieee_smin<mode>3): Ditto.
22816         (*ieee_smax<mode>3): Ditto.
22817         * config/i386/sse.md (sse): New mode attribute.
22818         (mov<mode>): Macroize expander from movv4sf and movv2df using
22819         SSEMODEF2P mode iterator.
22820         (<sse>_movnt<mode>): Ditto from similar patterns. Use
22821         SSE_VEC_FLOAT_MODE_P as insn constraint.
22822         (storent<mode>): Ditto.
22823         (storent<mode>): Macroize expander from storentsf and storentdf using
22824         MODEF mode iterator.
22825         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
22826         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
22827         (abs<mode>2): Ditto from similar patterns.
22828         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
22829         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
22830         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
22831         (<sse>_vmsqrt<mode>2): Ditto.
22832         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
22833         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
22834         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
22835         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
22836         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
22837         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
22838         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
22839         insn constraint.
22840         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
22841         iterator and SSE_FLOAT_MODE_P as insn constraint.
22842         (<sse>_ucomi): Ditto from similar patterns.
22843         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
22844         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
22845         SSE_VEC_FLOAT_MODE_P as insn constraint.
22846         (vcond<mode>): Ditto from similar patterns.
22847         (and<mode>3, *and<mode>3): Ditto.
22848         (<sse>_nand<mode>3): Ditto.
22849         (ior<mode>3, *ior<mode>3): Ditto.
22850         (xor<mode>3, *xor<mode>3): Ditto.
22851         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
22852         iterator and SSE_FLOAT_MODE_P as insn constraint.
22853         (*nand<mode>3): Ditto from similar patterns.
22854         (*ior<mode>3): Ditto.
22855         (*xor<mode>3): Ditto.
22856
22857 2008-02-20  Ira Rosen  <irar@il.ibm.com>
22858
22859         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
22860         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
22861         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
22862
22863 2008-02-19  Jan Hubicka  <jh@suse.cz>
22864
22865         * predict.c (tree_bb_level_predictions): Remove variable next
22866         mistakely introduced by previous commit.
22867
22868 2008-02-19  Jan Hubicka  <jh@suse.cz>
22869
22870         * predict.c (predict_paths_leading_to): Rewrite.
22871         (predict_paths_for_bb): New.
22872         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
22873
22874 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22875
22876         PR bootstrap/35218
22877         * Makefile.in (build_file_translate): New.
22878         (gcc-vers.texi): Use it for translating $(abs_srcdir).
22879         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
22880         * configure.ac (build_file_translate): Substitute it.
22881         * configure: Regenerate.
22882
22883 2008-02-19  Jan Hubicka  <jh@suse.cz>
22884
22885         PR rtl-optimization/34408
22886         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
22887         invalid sharing.
22888
22889 2008-02-19  Jan Hubicka  <jh@suse.cz>
22890
22891         PR middle-end/28779
22892         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
22893         call_expr.
22894
22895 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
22896
22897         PR Ada/35186
22898         * config/i386/i386-modes.def: Revert the last DI alignment
22899         change until Ada people can look into it.
22900
22901 2008-02-19  Nick Clifton  <nickc@redhat.com>
22902
22903         * opts.c (print_specific_help): Fix typo in --help text.
22904
22905 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
22906
22907         PR target/35239
22908         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
22909         32-bit inline asm without asm alternatives for host GCC < 3.0.
22910
22911 2008-02-19  Richard Guenther  <rguenther@suse.de>
22912
22913         PR tree-optimization/34989
22914         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
22915         Allow propagation to INDIRECT_REF if we can simplify only.
22916
22917 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22918
22919         * c-common.c (warn_for_collisions_1): Use appropriate option when
22920         warning.
22921
22922 2008-02-19  Nick Clifton  <nickc@redhat.com>
22923
22924         PR other/31349
22925         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
22926         (handle_options): Fix indentation.
22927         (print_filtered_help): If no language-specific options were
22928         displayed tell the user how to list all the options supported by
22929         the language's front-end.
22930         (print_specific_help): Fix indentation and remove duplicate line.
22931         (common_handle_option): Handle the -v option.
22932         For --help enable the display of undocumented options if the -v
22933         switch has been included on the command line.
22934         For --help= check for overlaps in the arguments between the option
22935         classes and the language names and issue a warning when they
22936         cannot be disambiguated.
22937         * c.opt (v): Pass on to the common option handler.
22938
22939 2008-02-19  Revital Eres  <eres@il.ibm.com>
22940
22941         * modulo-sched.c (sms_schedule): Change dump message when
22942         create_ddg function fails.
22943         (try_scheduling_node_in_cycle): Rename row to cycle.
22944         (print_partial_schedule): Rename CYCLE to ROW.
22945
22946 2008-02-19  Christian Bruel  <christian.bruel@st.com>
22947             Zdenek Dvorak  <ook@ucw.cz>
22948
22949         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
22950
22951 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
22952
22953         PR target/33555
22954         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
22955         (*x86_movdicc_0_m1_se): Ditto.
22956
22957 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
22958
22959         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
22960         (CMPtype): Define as __gcc_CMPtype.
22961         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
22962         (CMPtype): Define as __gcc_CMPtype.
22963
22964 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
22965
22966         Support valgrind 3.3 for --enable-checking=valgrind.
22967         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
22968         here.
22969         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
22970         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
22971         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
22972         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
22973         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
22974         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
22975         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
22976         respectively.
22977         * ggc-zone.c: Similar.
22978         * ggc-page.c: Similar.
22979
22980 2008-02-19  Paul Brook  <paul@codesourcery.com>
22981
22982         PR target/35071
22983         * config/arm/ieee754-df.S: Fix do_it typo.
22984         * config/arm/ieee754-sf.S: Fix do_it typo.
22985
22986 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
22987
22988         PR target/35189
22989         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
22990         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
22991         (OPTION_MASK_ISA_SSE_SET): Likewise.
22992         (OPTION_MASK_ISA_SSE2_SET): Likewise.
22993         (OPTION_MASK_ISA_SSE3_SET): Likewise.
22994         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
22995         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
22996         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
22997         (OPTION_MASK_ISA_SSE4_SET): Likewise.
22998         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
22999         (OPTION_MASK_ISA_SSE5_SET): Likewise.
23000         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
23001         (OPTION_MASK_ISA_MMX_UNSET): Updated.
23002         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
23003         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
23004         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
23005         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
23006         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
23007         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
23008         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
23009         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
23010         (OPTION_MASK_ISA_SSE4): Removed.
23011         (ix86_handle_option): Turn on bits in ix86_isa_flags and
23012         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
23013         (override_options): Don't turn on implied SSE/MMX bits in
23014         ix86_isa_flags.
23015
23016 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
23017
23018         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
23019         32bit host.
23020
23021 2008-02-18  Joey Ye  <joey.ye@intel.com>
23022
23023         PR middle-end/34921
23024         * tree-nested.c (insert_field_into_struct): Set type alignment
23025         to field alignment if the former is less than the latter.
23026
23027 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
23028
23029         * BASE-VER: Set to 4.4.0.
23030
23031 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23032
23033         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
23034         * doc/cfg.texi: Likewise.
23035         * doc/extend.texi: Likewise.
23036         * doc/gty.texi: Likewise.
23037         * doc/invoke.texi: Likewise.
23038         * doc/loop.texi: Likewise.
23039         * doc/md.texi: Likewise.
23040         * doc/passes.texi: Likewise.
23041         * doc/rtl.texi: Likewise.
23042         * doc/sourcebuild.texi: Likewise.
23043         * doc/tm.texi: Likewise.
23044         * doc/tree-ssa.texi: Likewise.
23045
23046 2008-02-17  Richard Guenther  <rguenther@suse.de>
23047
23048         PR middle-end/35227
23049         * tree-complex.c (init_parameter_lattice_values): Handle parameters
23050         without default definition.
23051
23052 2008-02-17  Richard Guenther  <rguenther@suse.de>
23053
23054         PR tree-optimization/35231
23055         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
23056         if A | B != 1.
23057
23058 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
23059
23060         Revert:
23061         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
23062         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
23063         libgcc_cmp_return mode.
23064
23065 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23066
23067         PR c/28368
23068         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
23069
23070 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
23071
23072         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
23073         multilibs.
23074
23075 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23076
23077         * doc/c-tree.texi: Use `@.' where appropriate.
23078         * doc/extend.texi: Likewise.
23079         * doc/install.texi: Likewise.
23080         * doc/invoke.texi: Likewise.
23081         * doc/loop.texi: Likewise.
23082         * doc/makefile.texi: Likewise.
23083         * doc/md.texi: Likewise.
23084         * doc/passes.texi: Likewise.
23085         * doc/standards.texi: Likewise.
23086         * doc/tm.texi: Likewise.
23087
23088 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
23089
23090         PR middle-end/35196
23091         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
23092         in entry_bb.
23093         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
23094         rather than in entry_bb.
23095
23096 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
23097
23098         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
23099         libgcc_cmp_return mode.
23100
23101 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
23102
23103         PR middle-end/35130
23104         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
23105         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
23106
23107 2008-02-15  Richard Guenther  <rguenther@suse.de>
23108             Zdenek Dvorak  <ook@ucw.cz>
23109
23110         PR tree-optimization/35164
23111         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
23112         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
23113         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
23114         Only propagate addresses which do not have abnormal SSA_NAMEs
23115         in their operands.
23116
23117 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
23118
23119         PR target/35088
23120         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
23121
23122 2008-02-15  Jan Hubicka  <jh@suse.cz>
23123
23124         PR middle-end/35149
23125         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
23126
23127 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
23128
23129         PR middle-end/34621
23130         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
23131         when calculating alignment_pad.
23132
23133 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
23134
23135         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
23136         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
23137         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
23138         and STACK_BOUNDARY define.
23139
23140 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
23141
23142         PR preprocessor/35061
23143         * c-pragma.c (handle_pragma_pop_macro): Check that
23144         pushed_macro_table has been allocated.
23145
23146 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
23147
23148         PR middle-end/35136
23149         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
23150         (force_gimple_operand): Likewise.
23151         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
23152         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
23153         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
23154         (find_interesting_uses_address): Check addressability and alignment
23155         of the base expression only after substituting bases of IVs into it.
23156
23157 2008-02-14  Michael Matz  <matz@suse.de>
23158
23159         PR target/34930
23160         * function.c (instantiate_virtual_regs_in_insn): Reload address
23161         before falling back to reloading the whole operand.
23162
23163 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
23164
23165         * config/s390/s390.c (s390_mainpool_start): Emit the pool
23166         before the first section switch note.
23167
23168 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23169
23170         * doc/bugreport.texi: Update copyright years.
23171         * doc/c-tree.texi: Likewise.
23172         * doc/cfg.texi: Likewise.
23173         * doc/cpp.texi: Likewise.
23174         * doc/cppinternals.texi: Likewise.
23175         * doc/fragments.texi: Likewise.
23176         * doc/frontends.texi: Likewise.
23177         * doc/gcc.texi: Likewise.
23178         * doc/gty.texi: Likewise.
23179         * doc/hostconfig.texi: Likewise.
23180         * doc/implement-c.texi: Likewise.
23181         * doc/libgcc.texi: Likewise.
23182         * doc/loop.texi: Likewise.
23183         * doc/makefile.texi: Likewise.
23184         * doc/options.texi: Likewise.
23185         * doc/passes.texi: Likewise.
23186         * doc/rtl.texi: Likewise.
23187         * doc/sourcebuild.texi: Likewise.
23188         * doc/standards.texi: Likewise.
23189         * doc/tree-ssa.texi: Likewise.
23190         * doc/trouble.texi: Likewise.
23191
23192         * doc/extend.texi: Use @: or add comma where appropriate.
23193         * doc/invoke.texi: Likewise.
23194         * doc/tm.texi: Likewise.
23195
23196 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
23197
23198         PR target/34393
23199         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
23200         to a reg.
23201
23202 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
23203
23204         * doc/md.texi (clz, ctz): Add reference.
23205         * doc/rtl.texi (clz, ctz): Likewise.
23206
23207 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23208
23209         PR other/35148
23210         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
23211         srcdir.
23212
23213 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
23214
23215         * config/s390/s390.c (struct constant_pool): New field
23216         emit_pool_after added.
23217         (s390_mainpool_start): Set the emit_pool_after flag according
23218         to the section switch notes.
23219         (s390_mainpool_finish): Consider emit_pool_after when emitting
23220         the literal pool at the end of the function.
23221         (s390_chunkify_start): Force literal pool splits at section
23222         switch notes.
23223
23224 2008-02-13  Michael Matz  <matz@suse.de>
23225
23226         PR debug/35065
23227         * var-tracking.c (clobber_variable_part): Correctly traverse the
23228         list.
23229
23230 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23231
23232         PR 29673
23233         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
23234         Add -fdump-ipa-inline.
23235         * tree-dump.c (dump_files): Remove tree-inlined dump.
23236         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
23237
23238 2008-02-12  Richard Guenther  <rguenther@suse.de>
23239
23240         PR tree-optimization/35171
23241         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
23242         default defs.
23243
23244 2008-02-12  Richard Guenther  <rguenther@suse.de>
23245
23246         PR middle-end/35163
23247         * fold-const.c (fold_widened_comparison): Use get_unwidened in
23248         value-preserving mode.  Disallow final truncation.
23249
23250 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
23251
23252         PR middle-end/35136
23253         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
23254         code from here to...
23255         (force_gimple_operand): ...here.
23256
23257 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
23258
23259         PR c++/35144
23260         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
23261         non-compatible pointers.
23262         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
23263         different FIELD_DECLs, try harder by comparing field offsets, sizes
23264         and types.
23265
23266         PR inline-asm/35160
23267         * function.c (match_asm_constraints_1): Don't replace the same input
23268         multiple times.
23269
23270 2008-02-12  Anatoly Sokolov <aesok@post.ru>
23271
23272         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
23273         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
23274         (expand_epilogue): Restore RAMPZ register.
23275         * config/avr/avr.md (RAMPZ_ADDR): New constant.
23276
23277 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
23278
23279         * config/i386/cygwin.asm: (__alloca): Correct calling
23280         convention and alignment.
23281         (__chkstk): Force 8 byte stack alignment.
23282
23283 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
23284             Richard Guenther  <rguenther@suse.de>
23285
23286         PR tree-optimization/33992
23287         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
23288         the zero we compare against.
23289
23290 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
23291
23292         PR libfortran/35063
23293         * gthr-win32.h (__gthread_mutex_destroy_function): New function
23294         to CloseHandle after unlocking to prevent accumulation of handle
23295         count.
23296
23297 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23298
23299         PR middle_end/34150
23300         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
23301         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
23302         and update LABEL_NUSES during and after reload.
23303
23304 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
23305
23306         PR middle-end/34627
23307         * combine.c (simplify_if_then_else): Make sure the comparison is
23308         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
23309
23310 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
23311
23312         PR bootstrap/35051
23313         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
23314         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
23315         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
23316         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
23317         * tree.h (get_type_static_bounds): Likewise.
23318
23319 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23320
23321         * doc/invoke.texi (Option Summary, C++ Dialect Options)
23322         (Objective-C and Objective-C++ Dialect Options, Warning Options):
23323         Make -Wfoo language annotations match what the compiler outputs.
23324
23325 2008-02-08  Sa Liu  <saliu@de.ibm.com>
23326
23327         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
23328         intrinsics spu_convts, spu_convtu, spu_convtf.
23329
23330 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
23331
23332         * doc/extend.texi (Function Attributes) <noinline>: Mention
23333         asm ("") as method to keep calls.
23334
23335 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23336
23337         PR other/32754
23338         * doc/options.texi (Options): Replace references to opts.sh with
23339         optc-gen.awk.
23340         * opts-common.c: Likewise.
23341         * optc-gen.awk: Likewise.
23342
23343 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
23344
23345         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
23346
23347 2008-02-07  Richard Henderson  <rth@redhat.com>
23348
23349         PR rtl-opt/33410
23350         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
23351         EXPR_LIST for the REG_EQUAL instead of a comparison with a
23352         funny mode.
23353
23354 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
23355
23356         PR tree-optimization/35085
23357         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
23358         for operand entry oe2 in addition to operand entry oe3 in order to
23359         expose more opportunities for vectorizer sum reduction.
23360
23361 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23362
23363         PR other/35107
23364         * Makefile.in (LIBS): Remove $(GMPLIBS).
23365         (cc1-dummy, cc1): Add $(GMPLIBS).
23366
23367 2008-02-06  Jan Hubicka  <jh@suse.cz>
23368
23369         PR target/23322
23370         * i386.md (moddf_integer): Do not produce partial memory stalls for
23371         targets where it hurts.
23372
23373 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
23374
23375         PR target/35083
23376         * optabs.c (expand_float): Do not check for decimal modes when
23377         expanding unsigned integer through signed conversion.
23378
23379 2008-02-06  Nick Clifton  <nickc@redhat.com>
23380
23381         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
23382         inside the clobber with a match_operand and duplicated operand
23383         number in the constraint.
23384         (ineqbranchsi): Delete redundant comment.
23385
23386 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
23387
23388         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
23389         builtin_define ("__USE_INIT_FINI__").
23390         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
23391         -msx multilibs.
23392         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
23393
23394 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23395
23396         PR documentation/30330
23397         * doc/invoke.texi (C++ Dialect Options)
23398         (Objective-C and Objective-C++ Dialect Options, Warning Options):
23399         For each warning option -Wfoo that allows -Wno-foo, ensure both
23400         -Wfoo and -Wno-foo are listed in the option index.  Fix index
23401         entry of -Wswitch-default, index -Wnormalized= including the
23402         `=', and -Wlarger-than-@var{len} including @var{len}.
23403
23404 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
23405
23406         * config/i386/i386.md (floatunssisf2): Use
23407         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
23408         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
23409         Macroize expander using MODEF mode iterator.
23410
23411 2008-02-05  Diego Novillo  <dnovillo@google.com>
23412
23413         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
23414
23415         PR 33738
23416         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
23417
23418 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23419
23420         PR other/35070
23421         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
23422
23423 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
23424
23425         PR target/35084
23426         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
23427         to indicate if a message should be generated.
23428         (init_cumulative_args): Updated.
23429         (function_value_32): Likewise.
23430
23431 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
23432
23433         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
23434
23435 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
23436
23437         PR target/35083
23438         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
23439         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
23440
23441 2008-02-04  Diego Novillo  <dnovillo@google.com>
23442
23443         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
23444
23445         PR 33738
23446         * tree-vrp.c (vrp_evaluate_conditional): With
23447         -Wtype-limits, emit a warning when comparing against a
23448         constant outside the natural range of OP0's type.
23449
23450 2008-02-04  Richard Guenther  <rguenther@suse.de>
23451
23452         PR middle-end/33631
23453         * expr.c (count_type_elements): Give for unions instead of
23454         guessing.
23455
23456 2008-02-04  Richard Guenther  <rguenther@suse.de>
23457
23458         PR middle-end/35043
23459         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
23460         to TYPE_DOMAINs base type instead of using bitsizetype here.
23461
23462 2008-02-03  Jason Merrill  <jason@redhat.com>
23463
23464         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
23465
23466 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23467
23468         PR other/29972
23469         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
23470         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
23471         (RS/6000 and PowerPC Options): Fix typos and markup.
23472         * doc/passes.texi (Tree-SSA passes): Likewise.
23473
23474 2008-02-02  Michael Matz  <matz@suse.de>
23475
23476         PR target/35045
23477         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
23478         from record_last_reg_set_info.
23479         (record_last_reg_set_info): Take an RTX argument, iterate over all
23480         constituent hardregs.
23481         (record_last_set_info, record_opr_changes): Change calls to
23482         new signature or to record_last_reg_set_info_regno.
23483
23484 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
23485
23486         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
23487
23488 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
23489
23490         PR rtl-optimization/34773
23491         * reg-notes.def (EQUAL): Mention significance of combination of
23492         REG_EQUAL and REG_RETVAL.
23493         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
23494         insn that has a REG_RETVAL.
23495
23496 2008-02-01  Roger Sayle  <roger@eyesopen.com>
23497
23498         PR bootstrap/33781
23499         * configure.ac (--enable-fixed-point): Disable unless explicitly
23500         requested on IRIX.
23501         * configure: Regenerate.
23502
23503 2008-02-01  Richard Guenther  <rguenther@suse.de>
23504
23505         PR other/35042
23506         * invoke.texi (-finline-limit): Remove no longer true parts
23507         of the documentation.  Note that there is no default value.
23508
23509 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
23510             Mark Mitchell  <mark@codesourcery.com>
23511             Ben Elliston  <bje@au.ibm.com>
23512
23513         PR c/29326
23514         * doc/extend.texi (Other Builtins): Document.
23515
23516 2008-01-31  Tom Browder <tom.browder@gmail.com>
23517
23518         * doc/c-tree.texi (Types): Fix grammar.
23519         (Expression trees): Ditto.
23520         * doc/passes.texi (Tree-SSA passes): Ditto.
23521
23522         * doc/configterms.texi (Configure Terms): Fix typo.
23523         * doc/cpp.texi (Common Predefined Macros): Ditto.
23524         * doc/md.texi (Machine Constraints): Ditto.
23525
23526         * doc/makefile.texi (Makefile): Add comma.
23527
23528 2008-01-31  Tom Browder  <tom.browder@gmail.com>
23529             Gerald Pfeifer  <gerald@pfeifer.com>
23530
23531         * doc/sourcebuild.texi (Front End): Remove references to CVS
23532         and CVSROOT/modules.
23533         (Texinfo Manuals): Replace reference to CVS by one to SVN.
23534         (Back End): Remove reference to CVS.
23535
23536 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
23537
23538         PR target/34900
23539         * config/mips/mips.c (gen_load_const_gp): New function, taking a
23540         comment from...
23541         (mips16_gp_pseudo_reg): ...here.
23542         * config/mips/mips.md (load_const_gp): Replace with...
23543         (load_const_gp_<mode>): ...this :P-based insn.
23544
23545 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23546
23547         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
23548         options. Minor fixes.
23549         (-std): Move reference to standards closer to where language
23550         standards are first mentioned.
23551
23552 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
23553
23554         PR rtl-optimization/34995
23555         * reload.c (alternative_allows_const_pool_ref): Take an rtx
23556         parameter and return a bool.  If the rtx parameter is nonnull,
23557         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
23558         (find_reloads): Update call accordingly.  Pass the new operand
23559         if it needed no address reloads, otherwise pass null.
23560
23561 2008-01-30  Richard Henderson  <rth@redhat.com>
23562
23563         PR c/34993
23564         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
23565         for unbounded arrays.
23566
23567 2008-01-30  Silvius Rus  <rus@google.com>
23568
23569         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
23570
23571 2008-01-30  Jan Hubicka  <jh@suse.cz>
23572
23573         PR target/34982
23574         * i386.c (init_cumulative_args): Use real function declaration when
23575         calling locally.
23576
23577 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
23578
23579         PR rtl-optimization/34998
23580         * global.c (build_insn_chain): Treat non-subreg_lowpart
23581         SUBREGs of pseudos as clobbering all the words covered by the
23582         SUBREG, not just all the bytes.
23583         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
23584         original df_ref rather than an extract parameter.
23585         (global_conflicts): Update call accordingly.
23586
23587 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
23588
23589         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
23590         the overflow check to make it easier to read.
23591         (__fixtfdi): Change the type of the ll member in union
23592         long_double to UDItype_x.
23593
23594 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
23595
23596         PR middle-end/34969
23597         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
23598         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
23599         * tree-inline.c (fold_marked_statements): Call
23600         cgraph_update_edges_for_call_stmt if folding a call statement.
23601         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
23602         debug_generic_stmt calls, reset it back afterwards.
23603
23604         PR c/35017
23605         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
23606         static decls.
23607         * c-typeck.c (build_external_ref): Don't pedwarn about
23608         static vars in current function's scope.
23609
23610 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
23611
23612         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
23613
23614 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
23615
23616         PR c/35002
23617         * ipa-struct-reorg.c: Fix spelling.
23618         * params.def: Ditto.
23619
23620 2008-01-29  Richard Guenther  <rguenther@suse.de>
23621
23622         PR middle-end/35006
23623         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
23624         field.
23625         * tree-inline.c (remap_type): Increment remapping_type_depth
23626         around remapping types.
23627         (copy_body_r): Only add referenced variables if they are referenced
23628         from code, not types.
23629
23630 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
23631
23632         PR c++/34055
23633         PR c++/34103
23634         PR c++/34219
23635         PR c++/34606
23636         PR c++/34753
23637         PR c++/34754
23638         PR c++/34755
23639         PR c++/34919
23640         PR c++/34961
23641         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
23642         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
23643
23644 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
23645
23646         PR target/34412
23647         * config/avr/avr.c (expand_prologue): Use correct QI mode frame
23648         pointer for tiny stack.
23649
23650 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
23651
23652         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
23653
23654 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
23655
23656         * config/vx-common.h: Fix typo in comment.
23657
23658 2008-01-28  Ian Lance Taylor  <iant@google.com>
23659
23660         PR c++/34862
23661         PR c++/33407
23662         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
23663         coalesce pointers if they have different DECL_NO_TBAA_P values.
23664         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
23665         between variables with different DECL_NO_TBAA_P values.
23666
23667 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
23668
23669         PR 31535
23670         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
23671         are not legitimate small data references on SPE targets.
23672
23673 2008-01-28  David Daney  <ddaney@avtrex.com>
23674
23675         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
23676
23677 2008-01-28  David Daney  <ddaney@avtrex.com>
23678
23679         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
23680
23681 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
23682
23683         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
23684         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
23685         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
23686         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
23687         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
23688         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
23689         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
23690         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
23691
23692 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
23693
23694         * basic-block.h (condjump_equiv_p): Fix comment.
23695
23696 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
23697
23698         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
23699         print_generic_stmt_indented): Fix comment.
23700
23701 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
23702
23703         * configure.ac (__stack_chk_fail): Add detecion for availability
23704         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
23705         * configure: Regenerate.
23706
23707 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
23708
23709         PR middle-end/34688
23710         * final.c (output_addr_const): Handle TRUNCATE.
23711
23712 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
23713
23714         PR target/34711
23715         * tree-ssa-loop-ivopts.c (comp_cost): New type.
23716         (zero_cost, infinite_cost): New constants.
23717         (struct cost_pair): Change type of cost to comp_cost.
23718         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
23719         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
23720         New functions.
23721         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
23722         split_address_cost, ptr_difference_cost, difference_cost,
23723         get_computation_cost_at, get_computation_cost,
23724         determine_use_iv_cost_generic, determine_use_iv_cost_address,
23725         determine_use_iv_cost_condition, determine_use_iv_costs,
23726         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
23727         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
23728         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
23729         Change type of cost to comp_cost.
23730         (determine_iv_cost): Increase cost of non-original ivs, instead
23731         of decreasing the cost of original ones.
23732         (get_address_cost): Indicate the complexity of the addressing mode
23733         in comp_cost.
23734         (try_add_cand_for): Prefer using ivs not specific to some object.
23735         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
23736
23737 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
23738             Janis Johnson  <janis187@us.ibm.com>
23739
23740         PR target/34814
23741         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
23742         (TARGET_INSTANTIATE_DECLS): Likewise.
23743         * target.h (expand_to_rtl_hook): New target hook.
23744         (instantiate_decls): Likewise.
23745         * function.c (instantiate_decl): Make non-static.  Rename to...
23746         (instantiate_decl_rtl): ... this.
23747         (instantiate_expr): Use instantiate_decl_rtl.
23748         (instantiate_decls_1): Likewise.
23749         (instantiate_decls): Likewise.
23750         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
23751         * function.h (instantiate_decl_rtl): Add prototype.
23752         * cfgexpand.c (target.h): New include.
23753         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
23754         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
23755         (TARGET_INSTANTIATE_DECLS): Likewise.
23756         (TARGET_INITIALIZER): New target hooks added.
23757         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
23758         New prototype.
23759         * config/rs6000/rs6000.c (tree-flow.h): New include.
23760         (machine_function): Add sdmode_stack_slot field.
23761         (rs6000_alloc_sdmode_stack_slot): New function.
23762         (rs6000_instantiate_decls): Likewise.
23763         (rs6000_secondary_memory_needed_rtx): Likewise.
23764         (rs6000_check_sdmode): Likewise.
23765         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
23766         (TARGET_INSTANTIATE_DECLS): Likewise.
23767         (rs6000_hard_regno_mode_ok): Allow SDmode.
23768         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
23769         (rs6000_emit_move): Handle SDmode.
23770         (function_arg_advance): Likewise.
23771         (function_arg): Likewise.
23772         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
23773         SDmode var args for 32-bit compiles.
23774         (rs6000_secondary_reload_class): Handle SDmode.
23775         (rs6000_output_function_epilogue): Likewise.
23776         (rs6000_function_value): Simplify if statement.
23777         (rs6000_libcall_value): Likewise.
23778         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
23779         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
23780         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
23781         (movsd_hardfloat): New define_insn.
23782         (movsd_softfloat): Likewise.
23783         (movsd_store): Likewise.
23784         (movsd_load): Likewise.
23785         (extendsddd2): Likewise.
23786         (extendsdtd2): Likewise.
23787         (truncddsd2): Likewise.
23788         (movdd_hardfloat64): Fixup comment.
23789         (UNSPEC_MOVSD_LOAD): New constant.
23790         (UNSPEC_MOVSD_STORE): Likewise.
23791
23792 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
23793
23794         PR c++/34965
23795         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
23796         TRUTH_XOR_EXPR.
23797         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
23798         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
23799         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
23800         and TRUTH_XOR_EXPR.
23801
23802 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
23803
23804         PR target/34794
23805         * config.gcc: Separate AIX 5.3 from AIX 6.1.
23806         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
23807         __LONGDOUBLE128 too.
23808         * config/rs6000/aix61.h: New file.
23809
23810 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
23811
23812         PR rtl-optimization/34959
23813         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
23814         popcount and parity rtxes the same mode as their operand.
23815         Truncate or extend the result to the return value's mode
23816         if necessary.
23817
23818 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
23819
23820         PR target/34981
23821         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
23822         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
23823         to GOT_VERSION_REGNUM.
23824         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
23825         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
23826         * config/mips/mips.c (mips_emit_call_insn): New function.
23827         (mips_call_tls_get_addr): Call mips_expand_call directly.
23828         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
23829         emit_call_insn.
23830         (mips16_build_call_stub): Likewise.  Return the call insn or null.
23831         (mips_expand_call): Update the call to mips16_build_call_stub
23832         accordingly and a remove redundant condition.  Assert that MIPS16
23833         stubs do not use lazy binding.  Use mips_emit_call_insn and return
23834         the call insn.
23835         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
23836         TARGET_USE_GOT.
23837         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
23838         (mips_avoid_hazard): Remove hazard_set handling.
23839         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
23840         (UNSPEC_RESTORE_GP): ...this.
23841         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
23842         (FAKE_CALL_REGNO): Rename to...
23843         (GOT_VERSION_REGNUM): ...this.
23844         (type): Add "ghost" value.  Add an associated insn reservation.
23845         (hazard_set): Remove.
23846         (exception_receiver): Rename to...
23847         (restore_gp): ...this and update the unspec identifier accordingly.
23848         (exception_receiver, nonlocal_got_receiver): New expanders.
23849         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
23850         FAKE_CALL_REGNO.  Remove hazard_set attribute.
23851         (set_got_version, update_got_version): New patterns.
23852
23853 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
23854
23855         PR target/34970
23856         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
23857
23858 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
23859
23860         PR other/31955
23861         * doc/install.texi2html: Generate gcc-vers.texi.
23862
23863 2008-01-25  DJ Delorie  <dj@redhat.com>
23864
23865         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
23866
23867 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
23868
23869         * config/c4x: Remove directory.
23870         * config.gcc (crx-*, mt-*): Mark obsolete.
23871         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
23872         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
23873         sh-*-rtemscoff*): Remove cases.
23874         * defaults.h (C4X_FLOAT_FORMAT): Remove.
23875         * real.c (encode_c4x_single, decode_c4x_single,
23876         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
23877         c4x_extended_format): Remove.
23878         * real.h (c4x_single_format, c4x_extended_format): Remove.
23879         * doc/extend.texi (interrupt, naked): Remove mention of attributes
23880         on C4x.
23881         (Pragmas): Remove comment about c4x pragmas.
23882         * doc/install.texi (c4x): Remove target-specific instructions.
23883         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
23884         * doc/md.texi (Machine Constraints): Remove C4x documentation.
23885         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
23886         refer to C4x source files as examples.
23887         (C4X_FLOAT_FORMAT): Remove documentation.
23888
23889 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
23890
23891         * config/bfin/bfin.c (override_options): Reorder tests so that
23892         flag_pic gets enabled for -msep-data.
23893
23894 2008-01-25  Richard Guenther  <rguenther@suse.de>
23895
23896         PR middle-end/32244
23897         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
23898         to its bitfield precision if required.
23899
23900 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
23901
23902         PR middle-end/33880
23903         * tree-nested.c (walk_omp_for): New function.
23904         (convert_nonlocal_reference, convert_local_reference): Call
23905         walk_omp_for on OMP_FOR.
23906         (convert_call_expr): Call walk_body on OMP_FOR's
23907         OMP_FOR_PRE_INIT_BODY.
23908
23909 2008-01-25  Richard Guenther  <rguenther@suse.de>
23910
23911         PR tree-optimization/34966
23912         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
23913         default defs and PHI_NODEs we have to insert after the
23914         defining statement.
23915
23916 2008-01-24  Nick Clifton  <nickc@redhat.com>
23917
23918         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
23919         Provide a default definition.
23920         (LIBGCC2_UNITS_PER_WORD): Likewise.
23921
23922         * config/stormy16/stormy16.c: Include df.h for the prototype
23923         for df_regs_ever_live_p.
23924         (xstormy16_expand_builtin_va_start): Convert the stack offset
23925         into a component_ref and then use POINTER_PLUS_EXPR to add it
23926         to the incoming_virtual_args_rtx.
23927         (xstormy16_gimplify_va_arg_expr): Rename to
23928         xstormy16_gimplify_va_arg_expr.
23929         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
23930         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
23931         xstormy16_gimplify_va_arg_expr.
23932         Fix up some formatting issues.
23933
23934         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
23935         Move to predicates.md.
23936         (xs_hi_general_operand): Likewise.
23937         (xs_hi_nonmemory_operand): Likewise.
23938         * config/stormy16/predicates.md:
23939         (xstormy16_carry_plus_operand): New predicate.
23940         (xs_hi_general_operand): New predicate.
23941         (xs_hi_nonmemory_operand): New predicate.
23942         * config/stormy16/stormy16-protos.h:
23943         (xstormy16_carry_plus_operand): Delete prototype.
23944         (xs_hi_general_operand): Likewise.
23945         (xs_hi_nonmemory_operand): Likewise.
23946
23947         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
23948         modifiers as they are no longer needed and they can trigger
23949         reload spill failures.
23950
23951         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
23952         with a match_operand in order to help reload.
23953
23954         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
23955         constraint with 'e' for the 8th alternative as this version of
23956         the mov.w instruction only accepts the lower 8 registers.
23957
23958 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
23959
23960         PR target/34856
23961         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
23962         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
23963         vector elements.
23964
23965 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
23966
23967         PR middle-end/33333
23968         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
23969
23970 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
23971
23972         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
23973         New functions.
23974         (remove_structure): Update allocations list before removing structure.
23975
23976 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
23977
23978         * ipa-struct-reorg.c (is_safe_cond_expr,
23979         create_new_stmts_for_cond_expr): Use integer_zerop function,
23980         that recognize not only zero-pointer, but zero-integer too.
23981
23982 2008-01-25  Ben Elliston  <bje@au.ibm.com>
23983
23984         PR other/22232
23985         * fixproto: Escape "." in sed expression that strips leading "./".
23986
23987 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
23988
23989         PR driver/34904
23990         * gcc.c (SWITCH_OK): Removed.
23991         (SWITCH_LIVE): Changed to bit.
23992         (SWITCH_FALSE): Likewise.
23993         (SWITCH_IGNORE): Likewise.
23994         (switchstr): Change live_cond to unsigned int.
23995         (process_command): Replace SWITCH_OK with 0.
23996         (do_self_spec): Likewise.
23997         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
23998         (give_switch): Likewise.
23999         (used_arg): Likewise.
24000         (do_spec_1): Set the SWITCH_IGNORE bit.
24001         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
24002         bits.  Set the SWITCH_LIVE bit.
24003
24004 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
24005
24006         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
24007
24008 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
24009
24010         PR tree-optimization/34472
24011         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
24012         parameter to a "bool *" and set *DATA to false if there is
24013         an unsafe access.  Do not delete the structure here.
24014         (check_cond_exprs): Delete it here instead.
24015         (check_cond_exprs, exclude_cold_structs): Do not increase
24016         I when removing a structure.
24017
24018 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
24019
24020         PR target/34856
24021         * config/i386/i386.c (ix86_expand_vector_init): Consider only
24022         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
24023
24024 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
24025
24026         PR middle-end/34934
24027         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
24028         a fixed vector for stack.
24029
24030 2008-01-24  Ben Elliston  <bje@au.ibm.com>
24031
24032         PR c++/25701
24033         * doc/gcc.texi (Software development): Add a direntry for g++.
24034
24035 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
24036
24037         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
24038         stale and straggling -fforce-addr comments above.
24039
24040         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
24041         define.
24042         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
24043         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
24044
24045 2008-01-23  Michael Matz  <matz@suse.de>
24046
24047         PR debug/34895
24048         * dwarf2out.c (force_type_die): Use modified_type_die instead of
24049         gen_type_die.
24050
24051 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
24052
24053         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
24054         malloc result type.
24055
24056 2008-01-23 Anatoly Sokolov <aesok@post.ru>
24057
24058         * config/avr/avr.c (avr_current_arch): New variable.
24059         (avr_arch_types): Add 'avr31' and 'avr51' entries.
24060         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
24061         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
24062         (avr_override_options): Init 'avr_current_arch'.
24063         (base_arch_s): Move from here...
24064         * config/avr/avr.h (base_arch_s): ... here. Add new members
24065         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
24066         'mega' to 'have_jmp_call'.
24067         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
24068         "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
24069         macros.
24070         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
24071         architectures.
24072         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
24073         MULTILIB_MATCHES): Ditto.
24074
24075 2008-01-23  Richard Guenther  <rguenther@suse.de>
24076
24077         PR middle-end/31529
24078         * cgraphunit.c (cgraph_reset_node): Always mark the node
24079         not reachable if it is not queued already.
24080
24081 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
24082
24083         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
24084         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
24085         (cputype_selected): New static variable.
24086         (bfin_handle_option): Set it if -mcpu is used.
24087         (override_option): Select default set of workarounds if no cpu type
24088         selected on the command line.
24089         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
24090
24091         From  Michael Frysinger  <michael.frysinger@analog.com>
24092         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
24093         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
24094
24095         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
24096         for bf547, bf523, bf524, and bf526.
24097         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
24098         bf526.
24099         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
24100         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
24101         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
24102         __ADSPBF547__ and __ADSPBF54x__ for bf547.
24103         * doc/invoke.texi (Blackfin Options): Document that
24104         -mcpu now accept bf547, bf523, bf524, and bf526.
24105
24106 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
24107
24108         PR rtl-optimization/34628
24109         * combine.c (try_combine): Stop and undo after the first combination
24110         if an autoincrement side-effect on the first insn has effectively
24111         been lost.
24112
24113 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
24114
24115         PR target/34529
24116         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
24117         Offset addresses are not valid for Altivec or paired float modes.
24118
24119 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
24120
24121         PR c++/34607
24122         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
24123         if DECL_INITIAL (decl) is error_mark_node.
24124
24125         PR c++/34914
24126         * c-common.c (handle_vector_size_attribute): Only allow
24127         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
24128         the same way as pointer, array etc. types.
24129         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
24130
24131         PR c++/34917
24132         * tree.c (build_type_attribute_qual_variant): Call
24133         build_qualified_type if attributes are equal, but quals are not.
24134
24135 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24136
24137         PR 32102
24138         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
24139         * flags.h (warn_strict_aliasing): Remove.
24140         (warn_strict_overflow): Remove.
24141         * opts.c (warn_strict_aliasing): Remove.
24142         (warn_strict_overflow): Remove.
24143         * c-opts.c (c_common_handle_option): -Wall only sets
24144         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
24145         (c_common_post_options): Give default values to -Wstrict-aliasing
24146         and -Wstrict-overflow if they are uninitialized.
24147         * common.opt (Wstrict-aliasing): Specify Var and Init.
24148         (Wstrict-overflow): Likewise.
24149
24150 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
24151
24152         PR rtl-optimization/26854
24153         PR rtl-optimization/34400
24154         PR rtl-optimization/34884
24155         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
24156         DF_RD->gen.
24157         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
24158         (df_rd_bb_info.expanded_lr_out): Deleted
24159         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
24160         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
24161         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
24162         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
24163         Removed code to allocate, initialize or free expanded_lr_out.
24164         (df_rd_bb_local_compute_process_def): Restructured to make more
24165         understandable.
24166         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
24167         sets if the sets are being trimmed.
24168
24169 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
24170
24171         PR bootstrap/32287
24172         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
24173         (as_vers): Likewise.
24174         * configure: Regenerated.
24175
24176 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24177
24178         PR middle-end/33092
24179         * tree-pass.h (pass_build_alias): New pass.
24180         * tree-ssa-alias.c (gate_build_alias): New.
24181         (pass_build_alias): New.
24182         * passes.c (init_optimization_passes): Add pass_build_alias after
24183         pass_create_structure_vars.
24184
24185 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
24186
24187         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
24188         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
24189         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
24190         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
24191         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
24192         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
24193         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
24194         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
24195         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
24196         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
24197         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
24198         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
24199         * config/s390/s390.md (FP_ALL): New mode iterator.
24200         (_d): New mode attribute.
24201         ("*signbit<mode>2>"): Changed mode of first operand.
24202         ("isinf<mode>2"): Changed mode of first operand.
24203         ("*TDC_insn"): Adaptation for DFP modes.
24204
24205 2008-01-22  Ben Elliston  <bje@au.ibm.com>
24206
24207         * tree.c (check_qualified_type): Improve function description.
24208
24209 2008-01-21  Jason Merrill  <jason@redhat.com>
24210
24211         PR c++/34196
24212         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
24213         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
24214         if it is set.
24215
24216 2008-01-21  DJ Delorie  <dj@redhat.com>
24217
24218         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
24219         return zero.
24220
24221 2008-01-21  Richard Guenther  <rguenther@suse.de>
24222
24223         PR middle-end/34856
24224         * tree-cfg.c (verify_expr): Allow all invariant expressions
24225         instead of just constant class ones as reference argument.
24226         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
24227         like any other constant.
24228         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
24229
24230 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
24231
24232         * regmove.c (fixup_match_1): Update call crossed frequencies.
24233
24234 2008-01-21  Richard Guenther  <rguenther@suse.de>
24235
24236         PR c/34885
24237         * tree-inline.c (setup_one_parameter): Deal with mismatched
24238         types using a VIEW_CONVERT_EXPR.
24239
24240 2008-01-21  Alon Dayan  <alond@il.ibm.com>
24241             Olga Golovanevsky  <olga@il.ibm.com>
24242
24243         PR tree-optimization/34701
24244         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
24245         when the structure size is not a power of 2.
24246
24247 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
24248
24249         * doc/install.texi: Add doc for --enable-checking=df.
24250
24251 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
24252
24253         PR rtl-optimization/34808
24254         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
24255
24256 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
24257
24258         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
24259         input.
24260
24261 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
24262
24263         PR rtl-optimization/26854
24264         PR rtl-optimization/34400
24265         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
24266         DF_RD->gen.
24267         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
24268         (df_rd_bb_info.expanded_lr_out): New.
24269         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
24270         * loop_iv.c (iv_analysis_loop_init): Ditto.
24271         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
24272         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
24273         Added code to allocate, initialize or free expanded_lr_out.
24274         (df_rd_bb_local_compute_process_def): Restructured to make
24275         more understandable.
24276         (df_rd_confluence_n): Add code to do nothing with fake edges and
24277         code to no apply invalidate_by_call sets if the sets are being trimmed.
24278         (df_lr_local_finalize): Renamed to df_lr_finalize.
24279         (df_live_local_finalize): Renamed to df_live_finalize.
24280
24281 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
24282
24283         PR target/34831
24284         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
24285         deciding whether to use reciprocal instructions.
24286
24287 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
24288
24289         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
24290         dwarf2out_note_section_used if cold_text_section is NULL.
24291
24292 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
24293
24294         PR gcov-profile/34610
24295         * tree-cfg.c (make_edges): Mark both outgoing edges from
24296         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
24297         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
24298         from OMP_FOR and OMP_CONTINUE outgoing edges.
24299
24300         * tree-profile.c (tree_profiling): Return early if
24301         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
24302         at the end.
24303         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
24304         from cfun to child_cfun.
24305         * function.h (struct function): Add after_tree_profile bit.
24306
24307 2008-01-19 Anatoly Sokolov <aesok@post.ru>
24308
24309         * config/avr/avr.S (_exit): Disable interrupt.
24310
24311 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
24312             Steven Bosscher  <stevenb.gcc@gmail.com>
24313
24314         PR rtl-optimization/26854
24315         PR rtl-optimization/34400
24316         * df-problems.c (df_live_scratch): New scratch bitmap.
24317         (df_live_alloc): Allocate df_live_scratch when doing df_live.
24318         (df_live_reset): Clear the proper bitmaps.
24319         (df_live_bb_local_compute): Only process the artificial defs once
24320         since the order is not important.
24321         (df_live_init): Init the df_live sets only with the variables
24322         found live by df_lr.
24323         (df_live_transfer_function): Use the df_lr sets to prune the
24324         df_live sets as they are being computed.
24325         (df_live_free): Free df_live_scratch.
24326
24327 2008-01-18  Ian Lance Taylor  <iant@google.com>
24328
24329         * common.opt: Add fmerge-debug-strings.
24330         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
24331         flag_merge_debug_strings rather than flag_merge_constants.
24332         * doc/invoke.texi (Option Summary): Mention
24333         -fmerge-debug-strings.
24334         (Debugging Options): Document -fmerge-debug-strings.
24335
24336 2008-01-18  Ian Lance Taylor  <iant@google.com>
24337
24338         PR c++/33407
24339         * tree.h (DECL_IS_OPERATOR_NEW): Define.
24340         (struct tree_function_decl): Add new field operator_new_flag.
24341         * tree-inline.c (expand_call_inline): When inlining a call to
24342         operator new, force the return value to go into a variable, and
24343         set DECL_NO_TBAA_P on that variable.
24344         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
24345
24346 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
24347
24348         PR debug/34484
24349         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
24350         DWARF2_DEBUGGING_INFO.
24351         (dwarf2out_note_section_used): Ditto.  Add prototype.
24352         (have_multiple_function_sections, text_section_used,
24353         cold_text_section_used, *cold_text_sections): Move declarations
24354         before their uses.
24355
24356 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
24357
24358         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
24359         field and add signal_ra.
24360         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
24361         assignments to frame state pc.  Move end of stack check after
24362         MD_FALLBACK_FRAME_STATE_FOR.
24363         (uw_update_context_1): Use frame state signal_regs if set, instead
24364         of checking signal_frame flag.
24365         (uw_update_context): Use frame state signal_ra if set.
24366         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
24367         * config/xtensa/linux-unwind.h: New file.
24368
24369 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
24370
24371         * modulo-sched.c (get_sched_window): Fix comment typo.
24372
24373 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
24374
24375         PR tree-optimization/34648
24376         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
24377
24378 2008-01-17  Anatoly Sokolov <aesok@post.ru>
24379
24380         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
24381         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
24382
24383 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
24384
24385         PR rtl-optimization/34400
24386         * df-core.c (df_worklist_dataflow_overeager,
24387         df_worklist_dataflow_doublequeue): New functions.
24388         (df_worklist_dataflow): Two different worklist solvers.
24389         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
24390         New param.
24391
24392 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
24393
24394         PR testsuite/34821
24395         * doc/invoke.texi: Document the dependence on pthread for fopenmp
24396         and ftree-parallelize-loops.
24397
24398 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
24399
24400         PR rtl-optimization/34826
24401         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
24402
24403 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
24404
24405         * global.c (find_reg): Mark the eh regs as used if necessary.
24406         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
24407         * ra.h (struct allocno): no_eh_reg field added.  Changed
24408         no_stack_reg type to bitfield.
24409
24410 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
24411
24412         * tree.c (substitute_in_expr): Add missing 'break'.
24413
24414 2008-01-17  Richard Guenther  <rguenther@suse.de>
24415
24416         PR tree-optimization/34825
24417         * tree-ssa-math-opts.c (is_division_by): Do not recognize
24418         x / x as division to handle.
24419
24420 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24421
24422         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
24423         "-pthread" is specified.
24424         * pa-hpux11.h (LIB_SPEC): Likewise.
24425
24426 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
24427             Peter Bergner  <bergner@vnet.ibm.com>
24428
24429         PR rtl-optimization/33796
24430         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
24431
24432 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24433
24434         PR libgfortran/34699
24435         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
24436         static links.
24437         * pa-hpux10.h (LINK_SPEC): Likewise.
24438         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
24439
24440 2008-01-16  Richard Guenther  <rguenther@suse.de>
24441
24442         PR middle-end/32628
24443         * fold-const.c (fold_convert_const_int_from_int): Do not
24444         set overflow if that occured only because of a sign extension
24445         change when converting from/to a sizetype with the same
24446         precision and signedness.
24447
24448 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
24449
24450         PR debug/34249
24451         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
24452         location address to the correct place.  Update copyright year.
24453
24454 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
24455
24456         * lambda-code.c (lambda_transform_legal_p): Handle the case of
24457         no dependences in the dependence_relations vector.
24458
24459 2008-01-16  Jan Hubicka  <jh@suse.cz>
24460
24461         PR rtl-optimization/31396
24462         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
24463         * cfg.c (dump_reg_info): Print it.
24464         * regs.h (struct reg_info_t): add freq_calls_crossed.
24465         (REG_FREQ_CALLS_CROSSED): New macro.
24466         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
24467         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
24468         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
24469         regmove_optimize): Update call crossed frequencies.
24470         * local-alloc.c (struct qty): Add freq_calls_crossed.
24471         (alloc_qty): Copute freq_calls_crossed.
24472         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
24473         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
24474         * ra.h (struct allocno): Add freq_calls_crossed.
24475
24476 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
24477
24478         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
24479         libgomp when compiling with ftree-parallelize-loops.
24480         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
24481
24482 2008-01-16  Richard Guenther  <rguenther@suse.de>
24483
24484         PR tree-optimization/34769
24485         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
24486         * tree.c (int_cst_value): Instead make this function more
24487         permissive in what it accepts as valid input.  Document this
24488         function always sign-extends the value.
24489
24490 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
24491             Richard Guenther  <rguenther@suse.de>
24492
24493         PR c/34668
24494         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
24495         (gimple_fold_indirect_ref_rhs): ... this.
24496         (gimple_fold_indirect_ref): New function with foldings
24497         that preserve lvalueness.
24498         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
24499         * tree-flow.h (gimple_fold_indirect_ref): Declare.
24500         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
24501         to fold an INDIRECT_REF, fall back to the old use of
24502         fold_indirect_ref_1.
24503
24504 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
24505
24506         * tree-data-ref.c (subscript_dependence_tester_1): Call
24507         free_conflict_function.
24508         (compute_self_dependence): Same.
24509
24510 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
24511
24512         PR debug/34249
24513         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
24514         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
24515         function global.
24516         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
24517         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
24518         for DWARF2_UNWIND_INFO targets.
24519
24520 2008-01-16  Richard Guenther  <rguenther@suse.de>
24521
24522         PR c/34768
24523         * c-typeck.c (common_pointer_type): Do not merge inconsistent
24524         type qualifiers for function types.
24525
24526 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
24527
24528         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
24529         loop_iterator li from previous commit.
24530
24531 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
24532
24533         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
24534
24535 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
24536
24537         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
24538         (parallelize_loops): Don't parallelize irreducible components.
24539
24540 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24541
24542         PR c++/24924
24543         * c-opts (c_common_post_options): Do not enable CPP
24544         flag_pedantic_errors by default.
24545
24546 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
24547
24548         PR rtl-optimization/31944
24549         * cse.c (remove_pseudo_from_table): New function.
24550         (merge_equiv_classes): Use above function to remove pseudo-registers.
24551         (invalidate): Likewise.
24552
24553 2008-01-13  Richard Guenther  <rguenther@suse.de>
24554
24555         PR middle-end/34601
24556         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
24557         instead of TYPE_MODE to deal with calls from expand_one_error_var.
24558
24559 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
24560
24561         * gcse.c (cprop_jump): Call validate_unshare_change instead of
24562         validate_change to unshare the source of the PC set.
24563
24564 2008-01-12  Jan Hubicka  <jh@suse.cz>
24565
24566         PR middle-end/32135
24567         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
24568         references above array bounds.  This might trigger bounds checks for
24569         pointers to arrays.
24570
24571 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
24572
24573         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
24574         new_replaceable_dependencies.
24575
24576 2008-01-12  Doug Kwan  <dougkwan@google.com>
24577
24578         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
24579         instead of OPT_Wreturn_type in warning due to ignored return type
24580         qualifiers.
24581         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
24582         options included in -Wextra.
24583         * c.opt: New option -Wignored_qualifiers.
24584         * doc/invoke.texi (Warning Options, -Wextra): Add new option
24585         -Wignore_qualifiers.
24586         (-Wignored-qualifiers): Document.
24587         (-Wreturn-type): Remove description of functionality now handled
24588         by -Wignored-qualifiers.
24589
24590 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
24591
24592         PR ada/33788
24593         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
24594         NOP_EXPR if it is between integral types with the same precision.
24595
24596 2008-01-12  Jan Hubicka  <jh@suse.cz>
24597
24598         PR other/28023
24599         * invoke.texi (max-inline-recursive-depth): Fix default value.
24600
24601 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
24602
24603         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
24604         correct type.
24605
24606 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
24607
24608         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
24609
24610 2008-01-11  James E. Wilson  <wilson@specifix.com>
24611
24612         PR target/26015
24613         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
24614
24615 2008-01-11  Anatoly Sokolov <aesok@post.ru>
24616
24617         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
24618         save/restore frame pointer register and don't use 'call-prologues'
24619         optimization in function with "OS_task" attribute.
24620
24621 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
24622
24623         PR middle-end/31309
24624         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
24625         when copying to memory.
24626
24627 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
24628
24629         PR rtl-optimization/30905
24630         * cfgcleanup.c: Include dce.h
24631         (crossjumps_occured): New global variable.
24632         (try_crossjump_bb): Exit loop after finding a fallthru edge.
24633         If something changed, set crossjumps_occured to true.
24634         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
24635         Don't add/remove fake edges to exit here...
24636         (cleanup_cfg): ...but do it here, when crossjumping.
24637         Run a fast DCE when successful crossjumps occured in the latest
24638         iteration of try_optimize_cfg.
24639
24640 2008-01-11  Richard Guenther  <rguenther@suse.de>
24641
24642         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
24643         (struct vn_unary_op_s): Likewise.
24644         (vn_reference_insert): Free old reference on hash collision.
24645
24646 2008-01-10  Raksit Ashok  <raksit@google.com>
24647
24648         PR rtl-optimization/27971
24649         * combine.c (find_split_point): Split PLUS expressions which are
24650         inside a MEM rtx, and whose first operand is complex.
24651
24652 2008-01-10  DJ Delorie  <dj@redhat.com>
24653
24654         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
24655         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
24656         (m32c_hard_regno_ok): Call the underlying function.
24657
24658 2008-01-10  Richard Guenther  <rguenther@suse.de>
24659
24660         PR middle-end/34683
24661         * tree-cfg.c (tree_merge_blocks): Do not go through the
24662         full-blown folding and stmt updating path if we just deal
24663         with virtual operands.
24664         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
24665         test for abnormal SSA_NAMEs.
24666
24667 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
24668
24669         PR middle-end/34641
24670         * reload.c (push_reload): Add assertions.  All constants from
24671         reg_equiv_constant should have been used for replacing the respective
24672         pseudo earlier.
24673         (find_reloads_address): Invoke find_reloads_address_part for
24674         constant taken from the reg_equiv_constant array.
24675
24676 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
24677
24678         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
24679         field (valnum) the first in the struct.  Replace bools with
24680         unit bit fields.
24681
24682 2008-01-10  Richard Guenther  <rguenther@suse.de>
24683
24684         PR tree-optimization/34651
24685         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
24686         types and ordering for masking and converting.
24687
24688 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
24689
24690         PR tree-optimization/34017
24691         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
24692         also for PHI_NODE expressions.
24693
24694 2008-01-09  Jan Hubicka  <jh@suse.cz>
24695
24696         PR tree-optimization/34708
24697         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
24698         based on number of case labels.
24699         (init_inline_once): Remove switch_cost.
24700         * tree-inline.h (eni_weights_d): Remove switch_cost.
24701
24702 2008-01-09  Richard Guenther  <rguenther@suse.de>
24703         Andrew Pinski  <andrew_pinski@playstation.sony.com>
24704
24705         PR middle-end/30132
24706         * gimplify.c (gimplify_cond_expr): Do not create an addressable
24707         temporary if an rvalue is ok or an lvalue is not required.
24708
24709 2008-01-09  Richard Guenther  <rguenther@suse.de>
24710
24711         PR middle-end/34458
24712         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
24713         adjust return type.
24714
24715 2008-01-09  Richard Guenther  <rguenther@suse.de>
24716
24717         PR middle-end/34679
24718         * tree.c (host_integerp): Check for sizetype only if the
24719         type is an integer type.
24720
24721 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
24722
24723         PR debug/26364
24724         * opts.c (decode_options): Disable inlining of functions called
24725         once if not in unit-at-a-time mode.
24726
24727 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
24728
24729         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
24730
24731 2008-01-08  Richard Guenther  <rguenther@suse.de>
24732
24733         PR middle-end/31863
24734         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
24735         out early if the result will be unused.
24736
24737 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
24738
24739         PR target/34709
24740         Revert:
24741
24742         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
24743         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
24744         for TARGET_RECIP.
24745
24746 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
24747
24748         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
24749         for vectorization tuned.
24750
24751 2008-01-08  Richard Guenther  <rguenther@suse.de>
24752
24753         PR tree-optimization/34683
24754         * tree-ssa-operands.c (operand_build_cmp): Export.
24755         * tree-ssa-operands.h (operand_build_cmp): Declare.
24756         * tree-vn.c (vuses_compare): Remove.
24757         (sort_vuses): Use operand_build_cmp.
24758         (sort_vuses_heap): Likewise.
24759         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
24760         to re-use old VEC if available.  Do not sort already sorted VUSEs.
24761         (vdefs_to_vec): Do not sort already sorted VDEFs.
24762
24763 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
24764
24765         PR middle-end/34694
24766         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
24767
24768 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
24769
24770         PR target/34702
24771         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
24772         limitations of reciprocal sequences on x86 targets.
24773
24774 2008-01-08  Richard Guenther  <rguenther@suse.de>
24775
24776         PR tree-optimization/34683
24777         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
24778
24779 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
24780
24781         PR target/34622
24782         * config/darwin.c (darwin_mergeable_string_section): Don't use
24783         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
24784
24785 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
24786
24787         PR target/34682
24788         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
24789         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
24790         predicates of op0 and op1 to register_operand.
24791         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
24792         expander using X87MODEF mode iterator.  Change predicates of
24793         op0 and op1 to register_operand.
24794         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
24795         corresponding patterns and macroize using MODEF macro.  Change
24796         predicates of op0 and op1 to register_operand and remove
24797         "m" constraint. Disparage "r" alternative with "!".
24798         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
24799         macroize using X87MODEF macro.  Change predicates of op0 and op1
24800         to register_operand and remove "m" constraint.  Disparage "r"
24801         alternative with "!".
24802         (absneg splitter with memory operands): Remove.
24803         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
24804         patterns and macroize using X87MODEF mode iterator.
24805         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
24806         Change predicate of op1 to register_operand.
24807         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
24808         for memory operands.
24809
24810 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
24811
24812         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
24813
24814 2008-01-07  Richard Guenther  <rguenther@suse.de>
24815
24816         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
24817         fields.
24818
24819 2008-01-07  Richard Guenther  <rguenther@suse.de>
24820
24821         PR tree-optimization/34683
24822         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
24823         VOPs of the needed size to save memory.  Use VEC_quick_push
24824         to save compile-time.
24825         (vdefs_to_vec): Likewise.
24826
24827 2008-01-07  Sa Liu  <saliu@de.ibm.com>
24828
24829         * config/spu/spu.md (divdf3): Genetate inline code for double
24830         division.  The implementation doesn't handle INF or NAN, therefore it
24831         only applies when -ffinite-math-only is given.
24832
24833 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
24834
24835         PR libstdc++/34680
24836         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
24837         * doc/cpp.texi ([Common Predefined Macros]): Document.
24838
24839 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
24840
24841         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
24842         order to use commutative addition instead of subtraction.
24843
24844 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
24845             Mircea Namolaru  <namolaru@il.ibm.com>
24846             Vladimir Yanovsky  <yanov@il.ibm.com>
24847             Revital Eres  <eres@il.ibm.com>
24848
24849         PR tree-optimization/34263
24850         * tree-outof-ssa.c (process_single_block_loop_latch,
24851         contains_tree_r): New functions.
24852         (analyze_edges_for_bb): Call process_single_block_loop_latch
24853         function to empty single-basic-block latch block if possible.
24854
24855 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
24856
24857         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
24858         for TARGET_RECIP.
24859         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
24860
24861 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
24862
24863         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
24864
24865 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
24866
24867         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
24868
24869 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
24870
24871         PR tree-optimization/34618
24872         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
24873         flag from T.
24874
24875 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
24876
24877         PR target/34673
24878         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
24879         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
24880         Update copyright year.
24881
24882         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
24883         Update copyright year.
24884         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
24885         using NR fixup.
24886
24887 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
24888
24889         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
24890         edge does not point to current bb before changing need_assert.
24891
24892 2008-01-04  Richard Guenther  <rguenther@suse.de>
24893
24894         PR middle-end/34029
24895         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
24896         for verifying purposes if they are is_gimple_min_invariant.
24897
24898 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
24899
24900         PR tree-optimization/34448
24901         PR tree-optimization/34465
24902         * gimplify.c (gimplify_init_constructor): Add new parameter
24903         notify_temp_creation.  Use it.
24904         (gimplify_modify_expr_rhs): Take volatiles into account when
24905         optimizing constructors.
24906         Do not optimize constructors if gimplify_init_constructor will dump to
24907         memory.
24908         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
24909         * gcc.c-torture/compile/pr34448.c: New.
24910
24911 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
24912
24913         PR gcov-profile/34609
24914         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
24915         return_slot if result is TREE_ADDRESSABLE.
24916
24917 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
24918
24919         * config/mips/mips.md (sqrt_condition): Tweak comment.
24920         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
24921
24922 2008-01-03  Tom Tromey  <tromey@redhat.com>
24923
24924         PR c/34457
24925         * c-common.c (c_type_hash): Handle VLAs.
24926
24927 2008-01-03  Jan Hubicka  <jh@suse.cz>
24928
24929         PR tree-optimization/31081
24930         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
24931         0 when inlining and not inlining to first basic block.
24932         (remap_decl): When var is initialized to 0, don't set default_def.
24933         (expand_call_inline): Set entry_bb.
24934         * tree-inline.h (copy_body_data): Add entry_bb.
24935
24936 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
24937
24938         PR c++/34619
24939         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
24940         before returning.
24941
24942         PR tree-optimization/29484
24943         * tree-inline.c (inline_forbidden_p_2): New function.
24944         (inline_forbidden_p): Disallow inlining if some static var
24945         has an address of a local LABEL_DECL in its initializer.
24946         * doc/extend.texi (Labels as Values): Document &&foo behaviour
24947         vs. inlining.
24948
24949 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
24950
24951         PR tree-optimization/34635
24952         * tree-data-ref.c (add_other_self_distances): Make sure that the
24953         evolution step is constant.
24954
24955 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
24956
24957         PR middle-end/34608
24958         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
24959
24960 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
24961
24962         * tree-sra.c (scalarize_init): Insert the generate_element_init
24963         statements after the generate_element_zero statements.
24964
24965 2008-01-02  Richard Guenther  <rguenther@suse.de>
24966
24967         PR middle-end/34093
24968         PR middle-end/31976
24969         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
24970         for very large number of operands instead of ICEing.
24971
24972 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
24973
24974         PR target/34013
24975         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
24976         while stack probing.
24977
24978 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
24979
24980         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
24981         in C++0x mode.
24982
24983 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
24984
24985         PR libmudflap/26442
24986         * tree-mudflap.c (mx_register_decls): Guard warning by
24987         !DECL_ARTIFICIAL check.
24988
24989 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
24990
24991         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
24992         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
24993         sse5_perm<mode>): Fix constraints.